com.mysql.cj.x.protobuf.MysqlxExpr Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mysql-connector-java
Show all versions of mysql-connector-java
JDBC Type 4 driver for MySQL
/*
* Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, version 2.0, as published by the
* Free Software Foundation.
*
* This program is also distributed with certain software (including but not
* limited to OpenSSL) that is licensed under separate terms, as designated in a
* particular file or component or in included license documentation. The
* authors of MySQL hereby grant you an additional permission to link the
* program and your derivative works with the separately licensed software that
* they have included with MySQL.
*
* Without limiting anything contained in the foregoing, this file, which is
* part of MySQL Connector/J, is also subject to the Universal FOSS Exception,
* version 1.0, a copy of which can be found at
* http://oss.oracle.com/licenses/universal-foss-exception.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU General Public License, version 2.0,
* for more details.
*
* You should have received a copy of the GNU General Public License along with
* this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
package com.mysql.cj.x.protobuf;
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: mysqlx_expr.proto
@SuppressWarnings({ "cast", "deprecation" })
public final class MysqlxExpr {
private MysqlxExpr() {
}
public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface ExprOrBuilder extends
// @@protoc_insertion_point(interface_extends:Mysqlx.Expr.Expr)
com.google.protobuf.MessageOrBuilder {
/**
* required .Mysqlx.Expr.Expr.Type type = 1;
*/
boolean hasType();
/**
* required .Mysqlx.Expr.Expr.Type type = 1;
*/
com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Type getType();
/**
* optional .Mysqlx.Expr.ColumnIdentifier identifier = 2;
*/
boolean hasIdentifier();
/**
* optional .Mysqlx.Expr.ColumnIdentifier identifier = 2;
*/
com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier getIdentifier();
/**
* optional .Mysqlx.Expr.ColumnIdentifier identifier = 2;
*/
com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifierOrBuilder getIdentifierOrBuilder();
/**
* optional string variable = 3;
*/
boolean hasVariable();
/**
* optional string variable = 3;
*/
java.lang.String getVariable();
/**
* optional string variable = 3;
*/
com.google.protobuf.ByteString getVariableBytes();
/**
* optional .Mysqlx.Datatypes.Scalar literal = 4;
*/
boolean hasLiteral();
/**
* optional .Mysqlx.Datatypes.Scalar literal = 4;
*/
com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar getLiteral();
/**
* optional .Mysqlx.Datatypes.Scalar literal = 4;
*/
com.mysql.cj.x.protobuf.MysqlxDatatypes.ScalarOrBuilder getLiteralOrBuilder();
/**
* optional .Mysqlx.Expr.FunctionCall function_call = 5;
*/
boolean hasFunctionCall();
/**
* optional .Mysqlx.Expr.FunctionCall function_call = 5;
*/
com.mysql.cj.x.protobuf.MysqlxExpr.FunctionCall getFunctionCall();
/**
* optional .Mysqlx.Expr.FunctionCall function_call = 5;
*/
com.mysql.cj.x.protobuf.MysqlxExpr.FunctionCallOrBuilder getFunctionCallOrBuilder();
/**
* optional .Mysqlx.Expr.Operator operator = 6;
*/
boolean hasOperator();
/**
* optional .Mysqlx.Expr.Operator operator = 6;
*/
com.mysql.cj.x.protobuf.MysqlxExpr.Operator getOperator();
/**
* optional .Mysqlx.Expr.Operator operator = 6;
*/
com.mysql.cj.x.protobuf.MysqlxExpr.OperatorOrBuilder getOperatorOrBuilder();
/**
* optional uint32 position = 7;
*/
boolean hasPosition();
/**
* optional uint32 position = 7;
*/
int getPosition();
/**
* optional .Mysqlx.Expr.Object object = 8;
*/
boolean hasObject();
/**
* optional .Mysqlx.Expr.Object object = 8;
*/
com.mysql.cj.x.protobuf.MysqlxExpr.Object getObject();
/**
* optional .Mysqlx.Expr.Object object = 8;
*/
com.mysql.cj.x.protobuf.MysqlxExpr.ObjectOrBuilder getObjectOrBuilder();
/**
* optional .Mysqlx.Expr.Array array = 9;
*/
boolean hasArray();
/**
* optional .Mysqlx.Expr.Array array = 9;
*/
com.mysql.cj.x.protobuf.MysqlxExpr.Array getArray();
/**
* optional .Mysqlx.Expr.Array array = 9;
*/
com.mysql.cj.x.protobuf.MysqlxExpr.ArrayOrBuilder getArrayOrBuilder();
}
/**
*
* Expressions
* the "root" of the expression tree
* .. productionlist::
* expr: `operator` |
* : `identifier` |
* : `function_call` |
* : variable |
* : `literal` |
* : placeholder
* If expression type is PLACEHOLDER then it refers to the value of a parameter
* specified when executing a statement (see `args` field of `StmtExecute` command).
* Field `position` (which must be present for such an expression) gives 0-based
* position of the parameter in the parameter list.
*
*
* Protobuf type {@code Mysqlx.Expr.Expr}
*/
public static final class Expr extends com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Mysqlx.Expr.Expr)
ExprOrBuilder {
private static final long serialVersionUID = 0L;
// Use Expr.newBuilder() to construct.
private Expr(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private Expr() {
this.type_ = 1;
this.variable_ = "";
this.position_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private Expr(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 8: {
int rawValue = input.readEnum();
@SuppressWarnings("deprecation")
com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Type value = com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Type.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(1, rawValue);
} else {
this.bitField0_ |= 0x00000001;
this.type_ = rawValue;
}
break;
}
case 18: {
com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier.Builder subBuilder = null;
if (((this.bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = this.identifier_.toBuilder();
}
this.identifier_ = input.readMessage(com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(this.identifier_);
this.identifier_ = subBuilder.buildPartial();
}
this.bitField0_ |= 0x00000002;
break;
}
case 26: {
com.google.protobuf.ByteString bs = input.readBytes();
this.bitField0_ |= 0x00000004;
this.variable_ = bs;
break;
}
case 34: {
com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Builder subBuilder = null;
if (((this.bitField0_ & 0x00000008) == 0x00000008)) {
subBuilder = this.literal_.toBuilder();
}
this.literal_ = input.readMessage(com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(this.literal_);
this.literal_ = subBuilder.buildPartial();
}
this.bitField0_ |= 0x00000008;
break;
}
case 42: {
com.mysql.cj.x.protobuf.MysqlxExpr.FunctionCall.Builder subBuilder = null;
if (((this.bitField0_ & 0x00000010) == 0x00000010)) {
subBuilder = this.functionCall_.toBuilder();
}
this.functionCall_ = input.readMessage(com.mysql.cj.x.protobuf.MysqlxExpr.FunctionCall.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(this.functionCall_);
this.functionCall_ = subBuilder.buildPartial();
}
this.bitField0_ |= 0x00000010;
break;
}
case 50: {
com.mysql.cj.x.protobuf.MysqlxExpr.Operator.Builder subBuilder = null;
if (((this.bitField0_ & 0x00000020) == 0x00000020)) {
subBuilder = this.operator_.toBuilder();
}
this.operator_ = input.readMessage(com.mysql.cj.x.protobuf.MysqlxExpr.Operator.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(this.operator_);
this.operator_ = subBuilder.buildPartial();
}
this.bitField0_ |= 0x00000020;
break;
}
case 56: {
this.bitField0_ |= 0x00000040;
this.position_ = input.readUInt32();
break;
}
case 66: {
com.mysql.cj.x.protobuf.MysqlxExpr.Object.Builder subBuilder = null;
if (((this.bitField0_ & 0x00000080) == 0x00000080)) {
subBuilder = this.object_.toBuilder();
}
this.object_ = input.readMessage(com.mysql.cj.x.protobuf.MysqlxExpr.Object.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(this.object_);
this.object_ = subBuilder.buildPartial();
}
this.bitField0_ |= 0x00000080;
break;
}
case 74: {
com.mysql.cj.x.protobuf.MysqlxExpr.Array.Builder subBuilder = null;
if (((this.bitField0_ & 0x00000100) == 0x00000100)) {
subBuilder = this.array_.toBuilder();
}
this.array_ = input.readMessage(com.mysql.cj.x.protobuf.MysqlxExpr.Array.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(this.array_);
this.array_ = subBuilder.buildPartial();
}
this.bitField0_ |= 0x00000100;
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 com.mysql.cj.x.protobuf.MysqlxExpr.internal_static_Mysqlx_Expr_Expr_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
return com.mysql.cj.x.protobuf.MysqlxExpr.internal_static_Mysqlx_Expr_Expr_fieldAccessorTable
.ensureFieldAccessorsInitialized(com.mysql.cj.x.protobuf.MysqlxExpr.Expr.class, com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder.class);
}
/**
* Protobuf enum {@code Mysqlx.Expr.Expr.Type}
*/
public enum Type implements com.google.protobuf.ProtocolMessageEnum {
/**
* IDENT = 1;
*/
IDENT(1),
/**
* LITERAL = 2;
*/
LITERAL(2),
/**
* VARIABLE = 3;
*/
VARIABLE(3),
/**
* FUNC_CALL = 4;
*/
FUNC_CALL(4),
/**
* OPERATOR = 5;
*/
OPERATOR(5),
/**
* PLACEHOLDER = 6;
*/
PLACEHOLDER(6),
/**
* OBJECT = 7;
*/
OBJECT(7),
/**
* ARRAY = 8;
*/
ARRAY(8),;
/**
* IDENT = 1;
*/
public static final int IDENT_VALUE = 1;
/**
* LITERAL = 2;
*/
public static final int LITERAL_VALUE = 2;
/**
* VARIABLE = 3;
*/
public static final int VARIABLE_VALUE = 3;
/**
* FUNC_CALL = 4;
*/
public static final int FUNC_CALL_VALUE = 4;
/**
* OPERATOR = 5;
*/
public static final int OPERATOR_VALUE = 5;
/**
* PLACEHOLDER = 6;
*/
public static final int PLACEHOLDER_VALUE = 6;
/**
* OBJECT = 7;
*/
public static final int OBJECT_VALUE = 7;
/**
* ARRAY = 8;
*/
public static final int ARRAY_VALUE = 8;
public final int getNumber() {
return this.value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Type valueOf(int value) {
return forNumber(value);
}
public static Type forNumber(int value) {
switch (value) {
case 1:
return IDENT;
case 2:
return LITERAL;
case 3:
return VARIABLE;
case 4:
return FUNC_CALL;
case 5:
return OPERATOR;
case 6:
return PLACEHOLDER;
case 7:
return OBJECT;
case 8:
return ARRAY;
default:
return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() {
public Type findValueByNumber(int number) {
return Type.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
return com.mysql.cj.x.protobuf.MysqlxExpr.Expr.getDescriptor().getEnumTypes().get(0);
}
private static final Type[] VALUES = values();
public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int value;
private Type(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:Mysqlx.Expr.Expr.Type)
}
private int bitField0_;
public static final int TYPE_FIELD_NUMBER = 1;
private int type_;
/**
* required .Mysqlx.Expr.Expr.Type type = 1;
*/
public boolean hasType() {
return ((this.bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .Mysqlx.Expr.Expr.Type type = 1;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Type getType() {
@SuppressWarnings("deprecation")
com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Type result = com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Type.valueOf(this.type_);
return result == null ? com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Type.IDENT : result;
}
public static final int IDENTIFIER_FIELD_NUMBER = 2;
private com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier identifier_;
/**
* optional .Mysqlx.Expr.ColumnIdentifier identifier = 2;
*/
public boolean hasIdentifier() {
return ((this.bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .Mysqlx.Expr.ColumnIdentifier identifier = 2;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier getIdentifier() {
return this.identifier_ == null ? com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier.getDefaultInstance() : this.identifier_;
}
/**
* optional .Mysqlx.Expr.ColumnIdentifier identifier = 2;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifierOrBuilder getIdentifierOrBuilder() {
return this.identifier_ == null ? com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier.getDefaultInstance() : this.identifier_;
}
public static final int VARIABLE_FIELD_NUMBER = 3;
private volatile java.lang.Object variable_;
/**
* optional string variable = 3;
*/
public boolean hasVariable() {
return ((this.bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string variable = 3;
*/
public java.lang.String getVariable() {
java.lang.Object ref = this.variable_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
this.variable_ = s;
}
return s;
}
}
/**
* optional string variable = 3;
*/
public com.google.protobuf.ByteString getVariableBytes() {
java.lang.Object ref = this.variable_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
this.variable_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LITERAL_FIELD_NUMBER = 4;
private com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar literal_;
/**
* optional .Mysqlx.Datatypes.Scalar literal = 4;
*/
public boolean hasLiteral() {
return ((this.bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional .Mysqlx.Datatypes.Scalar literal = 4;
*/
public com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar getLiteral() {
return this.literal_ == null ? com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.getDefaultInstance() : this.literal_;
}
/**
* optional .Mysqlx.Datatypes.Scalar literal = 4;
*/
public com.mysql.cj.x.protobuf.MysqlxDatatypes.ScalarOrBuilder getLiteralOrBuilder() {
return this.literal_ == null ? com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.getDefaultInstance() : this.literal_;
}
public static final int FUNCTION_CALL_FIELD_NUMBER = 5;
private com.mysql.cj.x.protobuf.MysqlxExpr.FunctionCall functionCall_;
/**
* optional .Mysqlx.Expr.FunctionCall function_call = 5;
*/
public boolean hasFunctionCall() {
return ((this.bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional .Mysqlx.Expr.FunctionCall function_call = 5;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.FunctionCall getFunctionCall() {
return this.functionCall_ == null ? com.mysql.cj.x.protobuf.MysqlxExpr.FunctionCall.getDefaultInstance() : this.functionCall_;
}
/**
* optional .Mysqlx.Expr.FunctionCall function_call = 5;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.FunctionCallOrBuilder getFunctionCallOrBuilder() {
return this.functionCall_ == null ? com.mysql.cj.x.protobuf.MysqlxExpr.FunctionCall.getDefaultInstance() : this.functionCall_;
}
public static final int OPERATOR_FIELD_NUMBER = 6;
private com.mysql.cj.x.protobuf.MysqlxExpr.Operator operator_;
/**
* optional .Mysqlx.Expr.Operator operator = 6;
*/
public boolean hasOperator() {
return ((this.bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional .Mysqlx.Expr.Operator operator = 6;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.Operator getOperator() {
return this.operator_ == null ? com.mysql.cj.x.protobuf.MysqlxExpr.Operator.getDefaultInstance() : this.operator_;
}
/**
* optional .Mysqlx.Expr.Operator operator = 6;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.OperatorOrBuilder getOperatorOrBuilder() {
return this.operator_ == null ? com.mysql.cj.x.protobuf.MysqlxExpr.Operator.getDefaultInstance() : this.operator_;
}
public static final int POSITION_FIELD_NUMBER = 7;
private int position_;
/**
* optional uint32 position = 7;
*/
public boolean hasPosition() {
return ((this.bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional uint32 position = 7;
*/
public int getPosition() {
return this.position_;
}
public static final int OBJECT_FIELD_NUMBER = 8;
private com.mysql.cj.x.protobuf.MysqlxExpr.Object object_;
/**
* optional .Mysqlx.Expr.Object object = 8;
*/
public boolean hasObject() {
return ((this.bitField0_ & 0x00000080) == 0x00000080);
}
/**
* optional .Mysqlx.Expr.Object object = 8;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.Object getObject() {
return this.object_ == null ? com.mysql.cj.x.protobuf.MysqlxExpr.Object.getDefaultInstance() : this.object_;
}
/**
* optional .Mysqlx.Expr.Object object = 8;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.ObjectOrBuilder getObjectOrBuilder() {
return this.object_ == null ? com.mysql.cj.x.protobuf.MysqlxExpr.Object.getDefaultInstance() : this.object_;
}
public static final int ARRAY_FIELD_NUMBER = 9;
private com.mysql.cj.x.protobuf.MysqlxExpr.Array array_;
/**
* optional .Mysqlx.Expr.Array array = 9;
*/
public boolean hasArray() {
return ((this.bitField0_ & 0x00000100) == 0x00000100);
}
/**
* optional .Mysqlx.Expr.Array array = 9;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.Array getArray() {
return this.array_ == null ? com.mysql.cj.x.protobuf.MysqlxExpr.Array.getDefaultInstance() : this.array_;
}
/**
* optional .Mysqlx.Expr.Array array = 9;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.ArrayOrBuilder getArrayOrBuilder() {
return this.array_ == null ? com.mysql.cj.x.protobuf.MysqlxExpr.Array.getDefaultInstance() : this.array_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = this.memoizedIsInitialized;
if (isInitialized == 1) {
return true;
}
if (isInitialized == 0) {
return false;
}
if (!hasType()) {
this.memoizedIsInitialized = 0;
return false;
}
if (hasIdentifier()) {
if (!getIdentifier().isInitialized()) {
this.memoizedIsInitialized = 0;
return false;
}
}
if (hasLiteral()) {
if (!getLiteral().isInitialized()) {
this.memoizedIsInitialized = 0;
return false;
}
}
if (hasFunctionCall()) {
if (!getFunctionCall().isInitialized()) {
this.memoizedIsInitialized = 0;
return false;
}
}
if (hasOperator()) {
if (!getOperator().isInitialized()) {
this.memoizedIsInitialized = 0;
return false;
}
}
if (hasObject()) {
if (!getObject().isInitialized()) {
this.memoizedIsInitialized = 0;
return false;
}
}
if (hasArray()) {
if (!getArray().isInitialized()) {
this.memoizedIsInitialized = 0;
return false;
}
}
this.memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (((this.bitField0_ & 0x00000001) == 0x00000001)) {
output.writeEnum(1, this.type_);
}
if (((this.bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, getIdentifier());
}
if (((this.bitField0_ & 0x00000004) == 0x00000004)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, this.variable_);
}
if (((this.bitField0_ & 0x00000008) == 0x00000008)) {
output.writeMessage(4, getLiteral());
}
if (((this.bitField0_ & 0x00000010) == 0x00000010)) {
output.writeMessage(5, getFunctionCall());
}
if (((this.bitField0_ & 0x00000020) == 0x00000020)) {
output.writeMessage(6, getOperator());
}
if (((this.bitField0_ & 0x00000040) == 0x00000040)) {
output.writeUInt32(7, this.position_);
}
if (((this.bitField0_ & 0x00000080) == 0x00000080)) {
output.writeMessage(8, getObject());
}
if (((this.bitField0_ & 0x00000100) == 0x00000100)) {
output.writeMessage(9, getArray());
}
this.unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = this.memoizedSize;
if (size != -1) {
return size;
}
size = 0;
if (((this.bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, this.type_);
}
if (((this.bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getIdentifier());
}
if (((this.bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, this.variable_);
}
if (((this.bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getLiteral());
}
if (((this.bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getFunctionCall());
}
if (((this.bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getOperator());
}
if (((this.bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream.computeUInt32Size(7, this.position_);
}
if (((this.bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getObject());
}
if (((this.bitField0_ & 0x00000100) == 0x00000100)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getArray());
}
size += this.unknownFields.getSerializedSize();
this.memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.mysql.cj.x.protobuf.MysqlxExpr.Expr)) {
return super.equals(obj);
}
com.mysql.cj.x.protobuf.MysqlxExpr.Expr other = (com.mysql.cj.x.protobuf.MysqlxExpr.Expr) obj;
boolean result = true;
result = result && (hasType() == other.hasType());
if (hasType()) {
result = result && this.type_ == other.type_;
}
result = result && (hasIdentifier() == other.hasIdentifier());
if (hasIdentifier()) {
result = result && getIdentifier().equals(other.getIdentifier());
}
result = result && (hasVariable() == other.hasVariable());
if (hasVariable()) {
result = result && getVariable().equals(other.getVariable());
}
result = result && (hasLiteral() == other.hasLiteral());
if (hasLiteral()) {
result = result && getLiteral().equals(other.getLiteral());
}
result = result && (hasFunctionCall() == other.hasFunctionCall());
if (hasFunctionCall()) {
result = result && getFunctionCall().equals(other.getFunctionCall());
}
result = result && (hasOperator() == other.hasOperator());
if (hasOperator()) {
result = result && getOperator().equals(other.getOperator());
}
result = result && (hasPosition() == other.hasPosition());
if (hasPosition()) {
result = result && (getPosition() == other.getPosition());
}
result = result && (hasObject() == other.hasObject());
if (hasObject()) {
result = result && getObject().equals(other.getObject());
}
result = result && (hasArray() == other.hasArray());
if (hasArray()) {
result = result && getArray().equals(other.getArray());
}
result = result && this.unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (this.memoizedHashCode != 0) {
return this.memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasType()) {
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + this.type_;
}
if (hasIdentifier()) {
hash = (37 * hash) + IDENTIFIER_FIELD_NUMBER;
hash = (53 * hash) + getIdentifier().hashCode();
}
if (hasVariable()) {
hash = (37 * hash) + VARIABLE_FIELD_NUMBER;
hash = (53 * hash) + getVariable().hashCode();
}
if (hasLiteral()) {
hash = (37 * hash) + LITERAL_FIELD_NUMBER;
hash = (53 * hash) + getLiteral().hashCode();
}
if (hasFunctionCall()) {
hash = (37 * hash) + FUNCTION_CALL_FIELD_NUMBER;
hash = (53 * hash) + getFunctionCall().hashCode();
}
if (hasOperator()) {
hash = (37 * hash) + OPERATOR_FIELD_NUMBER;
hash = (53 * hash) + getOperator().hashCode();
}
if (hasPosition()) {
hash = (37 * hash) + POSITION_FIELD_NUMBER;
hash = (53 * hash) + getPosition();
}
if (hasObject()) {
hash = (37 * hash) + OBJECT_FIELD_NUMBER;
hash = (53 * hash) + getObject().hashCode();
}
if (hasArray()) {
hash = (37 * hash) + ARRAY_FIELD_NUMBER;
hash = (53 * hash) + getArray().hashCode();
}
hash = (29 * hash) + this.unknownFields.hashCode();
this.memoizedHashCode = hash;
return hash;
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.Expr parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.Expr parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.Expr parseFrom(com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.Expr parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.Expr parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.Expr parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.Expr parseFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.Expr 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.mysql.cj.x.protobuf.MysqlxExpr.Expr parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.Expr 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.mysql.cj.x.protobuf.MysqlxExpr.Expr parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.Expr 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(com.mysql.cj.x.protobuf.MysqlxExpr.Expr 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;
}
/**
*
* Expressions
* the "root" of the expression tree
* .. productionlist::
* expr: `operator` |
* : `identifier` |
* : `function_call` |
* : variable |
* : `literal` |
* : placeholder
* If expression type is PLACEHOLDER then it refers to the value of a parameter
* specified when executing a statement (see `args` field of `StmtExecute` command).
* Field `position` (which must be present for such an expression) gives 0-based
* position of the parameter in the parameter list.
*
*
* Protobuf type {@code Mysqlx.Expr.Expr}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Mysqlx.Expr.Expr)
com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.mysql.cj.x.protobuf.MysqlxExpr.internal_static_Mysqlx_Expr_Expr_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
return com.mysql.cj.x.protobuf.MysqlxExpr.internal_static_Mysqlx_Expr_Expr_fieldAccessorTable
.ensureFieldAccessorsInitialized(com.mysql.cj.x.protobuf.MysqlxExpr.Expr.class, com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder.class);
}
// Construct using com.mysql.cj.x.protobuf.MysqlxExpr.Expr.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getIdentifierFieldBuilder();
getLiteralFieldBuilder();
getFunctionCallFieldBuilder();
getOperatorFieldBuilder();
getObjectFieldBuilder();
getArrayFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
this.type_ = 1;
this.bitField0_ = (this.bitField0_ & ~0x00000001);
if (this.identifierBuilder_ == null) {
this.identifier_ = null;
} else {
this.identifierBuilder_.clear();
}
this.bitField0_ = (this.bitField0_ & ~0x00000002);
this.variable_ = "";
this.bitField0_ = (this.bitField0_ & ~0x00000004);
if (this.literalBuilder_ == null) {
this.literal_ = null;
} else {
this.literalBuilder_.clear();
}
this.bitField0_ = (this.bitField0_ & ~0x00000008);
if (this.functionCallBuilder_ == null) {
this.functionCall_ = null;
} else {
this.functionCallBuilder_.clear();
}
this.bitField0_ = (this.bitField0_ & ~0x00000010);
if (this.operatorBuilder_ == null) {
this.operator_ = null;
} else {
this.operatorBuilder_.clear();
}
this.bitField0_ = (this.bitField0_ & ~0x00000020);
this.position_ = 0;
this.bitField0_ = (this.bitField0_ & ~0x00000040);
if (this.objectBuilder_ == null) {
this.object_ = null;
} else {
this.objectBuilder_.clear();
}
this.bitField0_ = (this.bitField0_ & ~0x00000080);
if (this.arrayBuilder_ == null) {
this.array_ = null;
} else {
this.arrayBuilder_.clear();
}
this.bitField0_ = (this.bitField0_ & ~0x00000100);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.mysql.cj.x.protobuf.MysqlxExpr.internal_static_Mysqlx_Expr_Expr_descriptor;
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxExpr.Expr getDefaultInstanceForType() {
return com.mysql.cj.x.protobuf.MysqlxExpr.Expr.getDefaultInstance();
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxExpr.Expr build() {
com.mysql.cj.x.protobuf.MysqlxExpr.Expr result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxExpr.Expr buildPartial() {
com.mysql.cj.x.protobuf.MysqlxExpr.Expr result = new com.mysql.cj.x.protobuf.MysqlxExpr.Expr(this);
int from_bitField0_ = this.bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.type_ = this.type_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (this.identifierBuilder_ == null) {
result.identifier_ = this.identifier_;
} else {
result.identifier_ = this.identifierBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.variable_ = this.variable_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
if (this.literalBuilder_ == null) {
result.literal_ = this.literal_;
} else {
result.literal_ = this.literalBuilder_.build();
}
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
if (this.functionCallBuilder_ == null) {
result.functionCall_ = this.functionCall_;
} else {
result.functionCall_ = this.functionCallBuilder_.build();
}
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
if (this.operatorBuilder_ == null) {
result.operator_ = this.operator_;
} else {
result.operator_ = this.operatorBuilder_.build();
}
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000040;
}
result.position_ = this.position_;
if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
to_bitField0_ |= 0x00000080;
}
if (this.objectBuilder_ == null) {
result.object_ = this.object_;
} else {
result.object_ = this.objectBuilder_.build();
}
if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
to_bitField0_ |= 0x00000100;
}
if (this.arrayBuilder_ == null) {
result.array_ = this.array_;
} else {
result.array_ = this.arrayBuilder_.build();
}
result.bitField0_ = to_bitField0_;
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 com.mysql.cj.x.protobuf.MysqlxExpr.Expr) {
return mergeFrom((com.mysql.cj.x.protobuf.MysqlxExpr.Expr) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.mysql.cj.x.protobuf.MysqlxExpr.Expr other) {
if (other == com.mysql.cj.x.protobuf.MysqlxExpr.Expr.getDefaultInstance()) {
return this;
}
if (other.hasType()) {
setType(other.getType());
}
if (other.hasIdentifier()) {
mergeIdentifier(other.getIdentifier());
}
if (other.hasVariable()) {
this.bitField0_ |= 0x00000004;
this.variable_ = other.variable_;
onChanged();
}
if (other.hasLiteral()) {
mergeLiteral(other.getLiteral());
}
if (other.hasFunctionCall()) {
mergeFunctionCall(other.getFunctionCall());
}
if (other.hasOperator()) {
mergeOperator(other.getOperator());
}
if (other.hasPosition()) {
setPosition(other.getPosition());
}
if (other.hasObject()) {
mergeObject(other.getObject());
}
if (other.hasArray()) {
mergeArray(other.getArray());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasType()) {
return false;
}
if (hasIdentifier()) {
if (!getIdentifier().isInitialized()) {
return false;
}
}
if (hasLiteral()) {
if (!getLiteral().isInitialized()) {
return false;
}
}
if (hasFunctionCall()) {
if (!getFunctionCall().isInitialized()) {
return false;
}
}
if (hasOperator()) {
if (!getOperator().isInitialized()) {
return false;
}
}
if (hasObject()) {
if (!getObject().isInitialized()) {
return false;
}
}
if (hasArray()) {
if (!getArray().isInitialized()) {
return false;
}
}
return true;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.mysql.cj.x.protobuf.MysqlxExpr.Expr parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.mysql.cj.x.protobuf.MysqlxExpr.Expr) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int type_ = 1;
/**
* required .Mysqlx.Expr.Expr.Type type = 1;
*/
public boolean hasType() {
return ((this.bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .Mysqlx.Expr.Expr.Type type = 1;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Type getType() {
@SuppressWarnings("deprecation")
com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Type result = com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Type.valueOf(this.type_);
return result == null ? com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Type.IDENT : result;
}
/**
* required .Mysqlx.Expr.Expr.Type type = 1;
*/
public Builder setType(com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Type value) {
if (value == null) {
throw new NullPointerException();
}
this.bitField0_ |= 0x00000001;
this.type_ = value.getNumber();
onChanged();
return this;
}
/**
* required .Mysqlx.Expr.Expr.Type type = 1;
*/
public Builder clearType() {
this.bitField0_ = (this.bitField0_ & ~0x00000001);
this.type_ = 1;
onChanged();
return this;
}
private com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier identifier_ = null;
private com.google.protobuf.SingleFieldBuilderV3 identifierBuilder_;
/**
* optional .Mysqlx.Expr.ColumnIdentifier identifier = 2;
*/
public boolean hasIdentifier() {
return ((this.bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .Mysqlx.Expr.ColumnIdentifier identifier = 2;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier getIdentifier() {
if (this.identifierBuilder_ == null) {
return this.identifier_ == null ? com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier.getDefaultInstance() : this.identifier_;
} else {
return this.identifierBuilder_.getMessage();
}
}
/**
* optional .Mysqlx.Expr.ColumnIdentifier identifier = 2;
*/
public Builder setIdentifier(com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier value) {
if (this.identifierBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
this.identifier_ = value;
onChanged();
} else {
this.identifierBuilder_.setMessage(value);
}
this.bitField0_ |= 0x00000002;
return this;
}
/**
* optional .Mysqlx.Expr.ColumnIdentifier identifier = 2;
*/
public Builder setIdentifier(com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier.Builder builderForValue) {
if (this.identifierBuilder_ == null) {
this.identifier_ = builderForValue.build();
onChanged();
} else {
this.identifierBuilder_.setMessage(builderForValue.build());
}
this.bitField0_ |= 0x00000002;
return this;
}
/**
* optional .Mysqlx.Expr.ColumnIdentifier identifier = 2;
*/
public Builder mergeIdentifier(com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier value) {
if (this.identifierBuilder_ == null) {
if (((this.bitField0_ & 0x00000002) == 0x00000002) && this.identifier_ != null
&& this.identifier_ != com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier.getDefaultInstance()) {
this.identifier_ = com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier.newBuilder(this.identifier_).mergeFrom(value).buildPartial();
} else {
this.identifier_ = value;
}
onChanged();
} else {
this.identifierBuilder_.mergeFrom(value);
}
this.bitField0_ |= 0x00000002;
return this;
}
/**
* optional .Mysqlx.Expr.ColumnIdentifier identifier = 2;
*/
public Builder clearIdentifier() {
if (this.identifierBuilder_ == null) {
this.identifier_ = null;
onChanged();
} else {
this.identifierBuilder_.clear();
}
this.bitField0_ = (this.bitField0_ & ~0x00000002);
return this;
}
/**
* optional .Mysqlx.Expr.ColumnIdentifier identifier = 2;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier.Builder getIdentifierBuilder() {
this.bitField0_ |= 0x00000002;
onChanged();
return getIdentifierFieldBuilder().getBuilder();
}
/**
* optional .Mysqlx.Expr.ColumnIdentifier identifier = 2;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifierOrBuilder getIdentifierOrBuilder() {
if (this.identifierBuilder_ != null) {
return this.identifierBuilder_.getMessageOrBuilder();
} else {
return this.identifier_ == null ? com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier.getDefaultInstance() : this.identifier_;
}
}
/**
* optional .Mysqlx.Expr.ColumnIdentifier identifier = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3 getIdentifierFieldBuilder() {
if (this.identifierBuilder_ == null) {
this.identifierBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<>(
getIdentifier(), getParentForChildren(), isClean());
this.identifier_ = null;
}
return this.identifierBuilder_;
}
private java.lang.Object variable_ = "";
/**
* optional string variable = 3;
*/
public boolean hasVariable() {
return ((this.bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string variable = 3;
*/
public java.lang.String getVariable() {
java.lang.Object ref = this.variable_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
this.variable_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string variable = 3;
*/
public com.google.protobuf.ByteString getVariableBytes() {
java.lang.Object ref = this.variable_;
if (ref instanceof String) {
com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
this.variable_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string variable = 3;
*/
public Builder setVariable(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
this.bitField0_ |= 0x00000004;
this.variable_ = value;
onChanged();
return this;
}
/**
* optional string variable = 3;
*/
public Builder clearVariable() {
this.bitField0_ = (this.bitField0_ & ~0x00000004);
this.variable_ = getDefaultInstance().getVariable();
onChanged();
return this;
}
/**
* optional string variable = 3;
*/
public Builder setVariableBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
this.bitField0_ |= 0x00000004;
this.variable_ = value;
onChanged();
return this;
}
private com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar literal_ = null;
private com.google.protobuf.SingleFieldBuilderV3 literalBuilder_;
/**
* optional .Mysqlx.Datatypes.Scalar literal = 4;
*/
public boolean hasLiteral() {
return ((this.bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional .Mysqlx.Datatypes.Scalar literal = 4;
*/
public com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar getLiteral() {
if (this.literalBuilder_ == null) {
return this.literal_ == null ? com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.getDefaultInstance() : this.literal_;
} else {
return this.literalBuilder_.getMessage();
}
}
/**
* optional .Mysqlx.Datatypes.Scalar literal = 4;
*/
public Builder setLiteral(com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar value) {
if (this.literalBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
this.literal_ = value;
onChanged();
} else {
this.literalBuilder_.setMessage(value);
}
this.bitField0_ |= 0x00000008;
return this;
}
/**
* optional .Mysqlx.Datatypes.Scalar literal = 4;
*/
public Builder setLiteral(com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Builder builderForValue) {
if (this.literalBuilder_ == null) {
this.literal_ = builderForValue.build();
onChanged();
} else {
this.literalBuilder_.setMessage(builderForValue.build());
}
this.bitField0_ |= 0x00000008;
return this;
}
/**
* optional .Mysqlx.Datatypes.Scalar literal = 4;
*/
public Builder mergeLiteral(com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar value) {
if (this.literalBuilder_ == null) {
if (((this.bitField0_ & 0x00000008) == 0x00000008) && this.literal_ != null
&& this.literal_ != com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.getDefaultInstance()) {
this.literal_ = com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.newBuilder(this.literal_).mergeFrom(value).buildPartial();
} else {
this.literal_ = value;
}
onChanged();
} else {
this.literalBuilder_.mergeFrom(value);
}
this.bitField0_ |= 0x00000008;
return this;
}
/**
* optional .Mysqlx.Datatypes.Scalar literal = 4;
*/
public Builder clearLiteral() {
if (this.literalBuilder_ == null) {
this.literal_ = null;
onChanged();
} else {
this.literalBuilder_.clear();
}
this.bitField0_ = (this.bitField0_ & ~0x00000008);
return this;
}
/**
* optional .Mysqlx.Datatypes.Scalar literal = 4;
*/
public com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Builder getLiteralBuilder() {
this.bitField0_ |= 0x00000008;
onChanged();
return getLiteralFieldBuilder().getBuilder();
}
/**
* optional .Mysqlx.Datatypes.Scalar literal = 4;
*/
public com.mysql.cj.x.protobuf.MysqlxDatatypes.ScalarOrBuilder getLiteralOrBuilder() {
if (this.literalBuilder_ != null) {
return this.literalBuilder_.getMessageOrBuilder();
} else {
return this.literal_ == null ? com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.getDefaultInstance() : this.literal_;
}
}
/**
* optional .Mysqlx.Datatypes.Scalar literal = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3 getLiteralFieldBuilder() {
if (this.literalBuilder_ == null) {
this.literalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<>(
getLiteral(), getParentForChildren(), isClean());
this.literal_ = null;
}
return this.literalBuilder_;
}
private com.mysql.cj.x.protobuf.MysqlxExpr.FunctionCall functionCall_ = null;
private com.google.protobuf.SingleFieldBuilderV3 functionCallBuilder_;
/**
* optional .Mysqlx.Expr.FunctionCall function_call = 5;
*/
public boolean hasFunctionCall() {
return ((this.bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional .Mysqlx.Expr.FunctionCall function_call = 5;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.FunctionCall getFunctionCall() {
if (this.functionCallBuilder_ == null) {
return this.functionCall_ == null ? com.mysql.cj.x.protobuf.MysqlxExpr.FunctionCall.getDefaultInstance() : this.functionCall_;
} else {
return this.functionCallBuilder_.getMessage();
}
}
/**
* optional .Mysqlx.Expr.FunctionCall function_call = 5;
*/
public Builder setFunctionCall(com.mysql.cj.x.protobuf.MysqlxExpr.FunctionCall value) {
if (this.functionCallBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
this.functionCall_ = value;
onChanged();
} else {
this.functionCallBuilder_.setMessage(value);
}
this.bitField0_ |= 0x00000010;
return this;
}
/**
* optional .Mysqlx.Expr.FunctionCall function_call = 5;
*/
public Builder setFunctionCall(com.mysql.cj.x.protobuf.MysqlxExpr.FunctionCall.Builder builderForValue) {
if (this.functionCallBuilder_ == null) {
this.functionCall_ = builderForValue.build();
onChanged();
} else {
this.functionCallBuilder_.setMessage(builderForValue.build());
}
this.bitField0_ |= 0x00000010;
return this;
}
/**
* optional .Mysqlx.Expr.FunctionCall function_call = 5;
*/
public Builder mergeFunctionCall(com.mysql.cj.x.protobuf.MysqlxExpr.FunctionCall value) {
if (this.functionCallBuilder_ == null) {
if (((this.bitField0_ & 0x00000010) == 0x00000010) && this.functionCall_ != null
&& this.functionCall_ != com.mysql.cj.x.protobuf.MysqlxExpr.FunctionCall.getDefaultInstance()) {
this.functionCall_ = com.mysql.cj.x.protobuf.MysqlxExpr.FunctionCall.newBuilder(this.functionCall_).mergeFrom(value).buildPartial();
} else {
this.functionCall_ = value;
}
onChanged();
} else {
this.functionCallBuilder_.mergeFrom(value);
}
this.bitField0_ |= 0x00000010;
return this;
}
/**
* optional .Mysqlx.Expr.FunctionCall function_call = 5;
*/
public Builder clearFunctionCall() {
if (this.functionCallBuilder_ == null) {
this.functionCall_ = null;
onChanged();
} else {
this.functionCallBuilder_.clear();
}
this.bitField0_ = (this.bitField0_ & ~0x00000010);
return this;
}
/**
* optional .Mysqlx.Expr.FunctionCall function_call = 5;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.FunctionCall.Builder getFunctionCallBuilder() {
this.bitField0_ |= 0x00000010;
onChanged();
return getFunctionCallFieldBuilder().getBuilder();
}
/**
* optional .Mysqlx.Expr.FunctionCall function_call = 5;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.FunctionCallOrBuilder getFunctionCallOrBuilder() {
if (this.functionCallBuilder_ != null) {
return this.functionCallBuilder_.getMessageOrBuilder();
} else {
return this.functionCall_ == null ? com.mysql.cj.x.protobuf.MysqlxExpr.FunctionCall.getDefaultInstance() : this.functionCall_;
}
}
/**
* optional .Mysqlx.Expr.FunctionCall function_call = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3 getFunctionCallFieldBuilder() {
if (this.functionCallBuilder_ == null) {
this.functionCallBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<>(
getFunctionCall(), getParentForChildren(), isClean());
this.functionCall_ = null;
}
return this.functionCallBuilder_;
}
private com.mysql.cj.x.protobuf.MysqlxExpr.Operator operator_ = null;
private com.google.protobuf.SingleFieldBuilderV3 operatorBuilder_;
/**
* optional .Mysqlx.Expr.Operator operator = 6;
*/
public boolean hasOperator() {
return ((this.bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional .Mysqlx.Expr.Operator operator = 6;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.Operator getOperator() {
if (this.operatorBuilder_ == null) {
return this.operator_ == null ? com.mysql.cj.x.protobuf.MysqlxExpr.Operator.getDefaultInstance() : this.operator_;
} else {
return this.operatorBuilder_.getMessage();
}
}
/**
* optional .Mysqlx.Expr.Operator operator = 6;
*/
public Builder setOperator(com.mysql.cj.x.protobuf.MysqlxExpr.Operator value) {
if (this.operatorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
this.operator_ = value;
onChanged();
} else {
this.operatorBuilder_.setMessage(value);
}
this.bitField0_ |= 0x00000020;
return this;
}
/**
* optional .Mysqlx.Expr.Operator operator = 6;
*/
public Builder setOperator(com.mysql.cj.x.protobuf.MysqlxExpr.Operator.Builder builderForValue) {
if (this.operatorBuilder_ == null) {
this.operator_ = builderForValue.build();
onChanged();
} else {
this.operatorBuilder_.setMessage(builderForValue.build());
}
this.bitField0_ |= 0x00000020;
return this;
}
/**
* optional .Mysqlx.Expr.Operator operator = 6;
*/
public Builder mergeOperator(com.mysql.cj.x.protobuf.MysqlxExpr.Operator value) {
if (this.operatorBuilder_ == null) {
if (((this.bitField0_ & 0x00000020) == 0x00000020) && this.operator_ != null
&& this.operator_ != com.mysql.cj.x.protobuf.MysqlxExpr.Operator.getDefaultInstance()) {
this.operator_ = com.mysql.cj.x.protobuf.MysqlxExpr.Operator.newBuilder(this.operator_).mergeFrom(value).buildPartial();
} else {
this.operator_ = value;
}
onChanged();
} else {
this.operatorBuilder_.mergeFrom(value);
}
this.bitField0_ |= 0x00000020;
return this;
}
/**
* optional .Mysqlx.Expr.Operator operator = 6;
*/
public Builder clearOperator() {
if (this.operatorBuilder_ == null) {
this.operator_ = null;
onChanged();
} else {
this.operatorBuilder_.clear();
}
this.bitField0_ = (this.bitField0_ & ~0x00000020);
return this;
}
/**
* optional .Mysqlx.Expr.Operator operator = 6;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.Operator.Builder getOperatorBuilder() {
this.bitField0_ |= 0x00000020;
onChanged();
return getOperatorFieldBuilder().getBuilder();
}
/**
* optional .Mysqlx.Expr.Operator operator = 6;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.OperatorOrBuilder getOperatorOrBuilder() {
if (this.operatorBuilder_ != null) {
return this.operatorBuilder_.getMessageOrBuilder();
} else {
return this.operator_ == null ? com.mysql.cj.x.protobuf.MysqlxExpr.Operator.getDefaultInstance() : this.operator_;
}
}
/**
* optional .Mysqlx.Expr.Operator operator = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3 getOperatorFieldBuilder() {
if (this.operatorBuilder_ == null) {
this.operatorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<>(
getOperator(), getParentForChildren(), isClean());
this.operator_ = null;
}
return this.operatorBuilder_;
}
private int position_;
/**
* optional uint32 position = 7;
*/
public boolean hasPosition() {
return ((this.bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional uint32 position = 7;
*/
public int getPosition() {
return this.position_;
}
/**
* optional uint32 position = 7;
*/
public Builder setPosition(int value) {
this.bitField0_ |= 0x00000040;
this.position_ = value;
onChanged();
return this;
}
/**
* optional uint32 position = 7;
*/
public Builder clearPosition() {
this.bitField0_ = (this.bitField0_ & ~0x00000040);
this.position_ = 0;
onChanged();
return this;
}
private com.mysql.cj.x.protobuf.MysqlxExpr.Object object_ = null;
private com.google.protobuf.SingleFieldBuilderV3 objectBuilder_;
/**
* optional .Mysqlx.Expr.Object object = 8;
*/
public boolean hasObject() {
return ((this.bitField0_ & 0x00000080) == 0x00000080);
}
/**
* optional .Mysqlx.Expr.Object object = 8;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.Object getObject() {
if (this.objectBuilder_ == null) {
return this.object_ == null ? com.mysql.cj.x.protobuf.MysqlxExpr.Object.getDefaultInstance() : this.object_;
} else {
return this.objectBuilder_.getMessage();
}
}
/**
* optional .Mysqlx.Expr.Object object = 8;
*/
public Builder setObject(com.mysql.cj.x.protobuf.MysqlxExpr.Object value) {
if (this.objectBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
this.object_ = value;
onChanged();
} else {
this.objectBuilder_.setMessage(value);
}
this.bitField0_ |= 0x00000080;
return this;
}
/**
* optional .Mysqlx.Expr.Object object = 8;
*/
public Builder setObject(com.mysql.cj.x.protobuf.MysqlxExpr.Object.Builder builderForValue) {
if (this.objectBuilder_ == null) {
this.object_ = builderForValue.build();
onChanged();
} else {
this.objectBuilder_.setMessage(builderForValue.build());
}
this.bitField0_ |= 0x00000080;
return this;
}
/**
* optional .Mysqlx.Expr.Object object = 8;
*/
public Builder mergeObject(com.mysql.cj.x.protobuf.MysqlxExpr.Object value) {
if (this.objectBuilder_ == null) {
if (((this.bitField0_ & 0x00000080) == 0x00000080) && this.object_ != null
&& this.object_ != com.mysql.cj.x.protobuf.MysqlxExpr.Object.getDefaultInstance()) {
this.object_ = com.mysql.cj.x.protobuf.MysqlxExpr.Object.newBuilder(this.object_).mergeFrom(value).buildPartial();
} else {
this.object_ = value;
}
onChanged();
} else {
this.objectBuilder_.mergeFrom(value);
}
this.bitField0_ |= 0x00000080;
return this;
}
/**
* optional .Mysqlx.Expr.Object object = 8;
*/
public Builder clearObject() {
if (this.objectBuilder_ == null) {
this.object_ = null;
onChanged();
} else {
this.objectBuilder_.clear();
}
this.bitField0_ = (this.bitField0_ & ~0x00000080);
return this;
}
/**
* optional .Mysqlx.Expr.Object object = 8;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.Object.Builder getObjectBuilder() {
this.bitField0_ |= 0x00000080;
onChanged();
return getObjectFieldBuilder().getBuilder();
}
/**
* optional .Mysqlx.Expr.Object object = 8;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.ObjectOrBuilder getObjectOrBuilder() {
if (this.objectBuilder_ != null) {
return this.objectBuilder_.getMessageOrBuilder();
} else {
return this.object_ == null ? com.mysql.cj.x.protobuf.MysqlxExpr.Object.getDefaultInstance() : this.object_;
}
}
/**
* optional .Mysqlx.Expr.Object object = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3 getObjectFieldBuilder() {
if (this.objectBuilder_ == null) {
this.objectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<>(
getObject(), getParentForChildren(), isClean());
this.object_ = null;
}
return this.objectBuilder_;
}
private com.mysql.cj.x.protobuf.MysqlxExpr.Array array_ = null;
private com.google.protobuf.SingleFieldBuilderV3 arrayBuilder_;
/**
* optional .Mysqlx.Expr.Array array = 9;
*/
public boolean hasArray() {
return ((this.bitField0_ & 0x00000100) == 0x00000100);
}
/**
* optional .Mysqlx.Expr.Array array = 9;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.Array getArray() {
if (this.arrayBuilder_ == null) {
return this.array_ == null ? com.mysql.cj.x.protobuf.MysqlxExpr.Array.getDefaultInstance() : this.array_;
} else {
return this.arrayBuilder_.getMessage();
}
}
/**
* optional .Mysqlx.Expr.Array array = 9;
*/
public Builder setArray(com.mysql.cj.x.protobuf.MysqlxExpr.Array value) {
if (this.arrayBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
this.array_ = value;
onChanged();
} else {
this.arrayBuilder_.setMessage(value);
}
this.bitField0_ |= 0x00000100;
return this;
}
/**
* optional .Mysqlx.Expr.Array array = 9;
*/
public Builder setArray(com.mysql.cj.x.protobuf.MysqlxExpr.Array.Builder builderForValue) {
if (this.arrayBuilder_ == null) {
this.array_ = builderForValue.build();
onChanged();
} else {
this.arrayBuilder_.setMessage(builderForValue.build());
}
this.bitField0_ |= 0x00000100;
return this;
}
/**
* optional .Mysqlx.Expr.Array array = 9;
*/
public Builder mergeArray(com.mysql.cj.x.protobuf.MysqlxExpr.Array value) {
if (this.arrayBuilder_ == null) {
if (((this.bitField0_ & 0x00000100) == 0x00000100) && this.array_ != null
&& this.array_ != com.mysql.cj.x.protobuf.MysqlxExpr.Array.getDefaultInstance()) {
this.array_ = com.mysql.cj.x.protobuf.MysqlxExpr.Array.newBuilder(this.array_).mergeFrom(value).buildPartial();
} else {
this.array_ = value;
}
onChanged();
} else {
this.arrayBuilder_.mergeFrom(value);
}
this.bitField0_ |= 0x00000100;
return this;
}
/**
* optional .Mysqlx.Expr.Array array = 9;
*/
public Builder clearArray() {
if (this.arrayBuilder_ == null) {
this.array_ = null;
onChanged();
} else {
this.arrayBuilder_.clear();
}
this.bitField0_ = (this.bitField0_ & ~0x00000100);
return this;
}
/**
* optional .Mysqlx.Expr.Array array = 9;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.Array.Builder getArrayBuilder() {
this.bitField0_ |= 0x00000100;
onChanged();
return getArrayFieldBuilder().getBuilder();
}
/**
* optional .Mysqlx.Expr.Array array = 9;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.ArrayOrBuilder getArrayOrBuilder() {
if (this.arrayBuilder_ != null) {
return this.arrayBuilder_.getMessageOrBuilder();
} else {
return this.array_ == null ? com.mysql.cj.x.protobuf.MysqlxExpr.Array.getDefaultInstance() : this.array_;
}
}
/**
* optional .Mysqlx.Expr.Array array = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3 getArrayFieldBuilder() {
if (this.arrayBuilder_ == null) {
this.arrayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<>(
getArray(), getParentForChildren(), isClean());
this.array_ = null;
}
return this.arrayBuilder_;
}
@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:Mysqlx.Expr.Expr)
}
// @@protoc_insertion_point(class_scope:Mysqlx.Expr.Expr)
private static final com.mysql.cj.x.protobuf.MysqlxExpr.Expr DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.mysql.cj.x.protobuf.MysqlxExpr.Expr();
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.Expr getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated
public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Expr parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Expr(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 com.mysql.cj.x.protobuf.MysqlxExpr.Expr getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface IdentifierOrBuilder extends
// @@protoc_insertion_point(interface_extends:Mysqlx.Expr.Identifier)
com.google.protobuf.MessageOrBuilder {
/**
* required string name = 1;
*/
boolean hasName();
/**
* required string name = 1;
*/
java.lang.String getName();
/**
* required string name = 1;
*/
com.google.protobuf.ByteString getNameBytes();
/**
* optional string schema_name = 2;
*/
boolean hasSchemaName();
/**
* optional string schema_name = 2;
*/
java.lang.String getSchemaName();
/**
* optional string schema_name = 2;
*/
com.google.protobuf.ByteString getSchemaNameBytes();
}
/**
*
* identifier: name, schame.name
* .. productionlist::
* identifier: string "." string |
* : string
*
*
* Protobuf type {@code Mysqlx.Expr.Identifier}
*/
public static final class Identifier extends com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Mysqlx.Expr.Identifier)
IdentifierOrBuilder {
private static final long serialVersionUID = 0L;
// Use Identifier.newBuilder() to construct.
private Identifier(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private Identifier() {
this.name_ = "";
this.schemaName_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private Identifier(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: {
com.google.protobuf.ByteString bs = input.readBytes();
this.bitField0_ |= 0x00000001;
this.name_ = bs;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
this.bitField0_ |= 0x00000002;
this.schemaName_ = bs;
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 com.mysql.cj.x.protobuf.MysqlxExpr.internal_static_Mysqlx_Expr_Identifier_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
return com.mysql.cj.x.protobuf.MysqlxExpr.internal_static_Mysqlx_Expr_Identifier_fieldAccessorTable.ensureFieldAccessorsInitialized(
com.mysql.cj.x.protobuf.MysqlxExpr.Identifier.class, com.mysql.cj.x.protobuf.MysqlxExpr.Identifier.Builder.class);
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
* required string name = 1;
*/
public boolean hasName() {
return ((this.bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = this.name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
this.name_ = s;
}
return s;
}
}
/**
* required string name = 1;
*/
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = this.name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
this.name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SCHEMA_NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object schemaName_;
/**
* optional string schema_name = 2;
*/
public boolean hasSchemaName() {
return ((this.bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string schema_name = 2;
*/
public java.lang.String getSchemaName() {
java.lang.Object ref = this.schemaName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
this.schemaName_ = s;
}
return s;
}
}
/**
* optional string schema_name = 2;
*/
public com.google.protobuf.ByteString getSchemaNameBytes() {
java.lang.Object ref = this.schemaName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
this.schemaName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = this.memoizedIsInitialized;
if (isInitialized == 1) {
return true;
}
if (isInitialized == 0) {
return false;
}
if (!hasName()) {
this.memoizedIsInitialized = 0;
return false;
}
this.memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (((this.bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, this.name_);
}
if (((this.bitField0_ & 0x00000002) == 0x00000002)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, this.schemaName_);
}
this.unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = this.memoizedSize;
if (size != -1) {
return size;
}
size = 0;
if (((this.bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, this.name_);
}
if (((this.bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, this.schemaName_);
}
size += this.unknownFields.getSerializedSize();
this.memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.mysql.cj.x.protobuf.MysqlxExpr.Identifier)) {
return super.equals(obj);
}
com.mysql.cj.x.protobuf.MysqlxExpr.Identifier other = (com.mysql.cj.x.protobuf.MysqlxExpr.Identifier) obj;
boolean result = true;
result = result && (hasName() == other.hasName());
if (hasName()) {
result = result && getName().equals(other.getName());
}
result = result && (hasSchemaName() == other.hasSchemaName());
if (hasSchemaName()) {
result = result && getSchemaName().equals(other.getSchemaName());
}
result = result && this.unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (this.memoizedHashCode != 0) {
return this.memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasName()) {
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
}
if (hasSchemaName()) {
hash = (37 * hash) + SCHEMA_NAME_FIELD_NUMBER;
hash = (53 * hash) + getSchemaName().hashCode();
}
hash = (29 * hash) + this.unknownFields.hashCode();
this.memoizedHashCode = hash;
return hash;
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.Identifier parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.Identifier parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.Identifier parseFrom(com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.Identifier parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.Identifier parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.Identifier parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.Identifier parseFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.Identifier 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.mysql.cj.x.protobuf.MysqlxExpr.Identifier parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.Identifier 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.mysql.cj.x.protobuf.MysqlxExpr.Identifier parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.Identifier 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(com.mysql.cj.x.protobuf.MysqlxExpr.Identifier 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;
}
/**
*
* identifier: name, schame.name
* .. productionlist::
* identifier: string "." string |
* : string
*
*
* Protobuf type {@code Mysqlx.Expr.Identifier}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Mysqlx.Expr.Identifier)
com.mysql.cj.x.protobuf.MysqlxExpr.IdentifierOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.mysql.cj.x.protobuf.MysqlxExpr.internal_static_Mysqlx_Expr_Identifier_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
return com.mysql.cj.x.protobuf.MysqlxExpr.internal_static_Mysqlx_Expr_Identifier_fieldAccessorTable.ensureFieldAccessorsInitialized(
com.mysql.cj.x.protobuf.MysqlxExpr.Identifier.class, com.mysql.cj.x.protobuf.MysqlxExpr.Identifier.Builder.class);
}
// Construct using com.mysql.cj.x.protobuf.MysqlxExpr.Identifier.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();
this.name_ = "";
this.bitField0_ = (this.bitField0_ & ~0x00000001);
this.schemaName_ = "";
this.bitField0_ = (this.bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.mysql.cj.x.protobuf.MysqlxExpr.internal_static_Mysqlx_Expr_Identifier_descriptor;
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxExpr.Identifier getDefaultInstanceForType() {
return com.mysql.cj.x.protobuf.MysqlxExpr.Identifier.getDefaultInstance();
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxExpr.Identifier build() {
com.mysql.cj.x.protobuf.MysqlxExpr.Identifier result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxExpr.Identifier buildPartial() {
com.mysql.cj.x.protobuf.MysqlxExpr.Identifier result = new com.mysql.cj.x.protobuf.MysqlxExpr.Identifier(this);
int from_bitField0_ = this.bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.name_ = this.name_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.schemaName_ = this.schemaName_;
result.bitField0_ = to_bitField0_;
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 com.mysql.cj.x.protobuf.MysqlxExpr.Identifier) {
return mergeFrom((com.mysql.cj.x.protobuf.MysqlxExpr.Identifier) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.mysql.cj.x.protobuf.MysqlxExpr.Identifier other) {
if (other == com.mysql.cj.x.protobuf.MysqlxExpr.Identifier.getDefaultInstance()) {
return this;
}
if (other.hasName()) {
this.bitField0_ |= 0x00000001;
this.name_ = other.name_;
onChanged();
}
if (other.hasSchemaName()) {
this.bitField0_ |= 0x00000002;
this.schemaName_ = other.schemaName_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasName()) {
return false;
}
return true;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.mysql.cj.x.protobuf.MysqlxExpr.Identifier parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.mysql.cj.x.protobuf.MysqlxExpr.Identifier) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
* required string name = 1;
*/
public boolean hasName() {
return ((this.bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = this.name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
this.name_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string name = 1;
*/
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = this.name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
this.name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string name = 1;
*/
public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
this.bitField0_ |= 0x00000001;
this.name_ = value;
onChanged();
return this;
}
/**
* required string name = 1;
*/
public Builder clearName() {
this.bitField0_ = (this.bitField0_ & ~0x00000001);
this.name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* required string name = 1;
*/
public Builder setNameBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
this.bitField0_ |= 0x00000001;
this.name_ = value;
onChanged();
return this;
}
private java.lang.Object schemaName_ = "";
/**
* optional string schema_name = 2;
*/
public boolean hasSchemaName() {
return ((this.bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string schema_name = 2;
*/
public java.lang.String getSchemaName() {
java.lang.Object ref = this.schemaName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
this.schemaName_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string schema_name = 2;
*/
public com.google.protobuf.ByteString getSchemaNameBytes() {
java.lang.Object ref = this.schemaName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
this.schemaName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string schema_name = 2;
*/
public Builder setSchemaName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
this.bitField0_ |= 0x00000002;
this.schemaName_ = value;
onChanged();
return this;
}
/**
* optional string schema_name = 2;
*/
public Builder clearSchemaName() {
this.bitField0_ = (this.bitField0_ & ~0x00000002);
this.schemaName_ = getDefaultInstance().getSchemaName();
onChanged();
return this;
}
/**
* optional string schema_name = 2;
*/
public Builder setSchemaNameBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
this.bitField0_ |= 0x00000002;
this.schemaName_ = value;
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:Mysqlx.Expr.Identifier)
}
// @@protoc_insertion_point(class_scope:Mysqlx.Expr.Identifier)
private static final com.mysql.cj.x.protobuf.MysqlxExpr.Identifier DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.mysql.cj.x.protobuf.MysqlxExpr.Identifier();
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.Identifier getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated
public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Identifier parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Identifier(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 com.mysql.cj.x.protobuf.MysqlxExpr.Identifier getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DocumentPathItemOrBuilder extends
// @@protoc_insertion_point(interface_extends:Mysqlx.Expr.DocumentPathItem)
com.google.protobuf.MessageOrBuilder {
/**
* required .Mysqlx.Expr.DocumentPathItem.Type type = 1;
*/
boolean hasType();
/**
* required .Mysqlx.Expr.DocumentPathItem.Type type = 1;
*/
com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem.Type getType();
/**
* optional string value = 2;
*/
boolean hasValue();
/**
* optional string value = 2;
*/
java.lang.String getValue();
/**
* optional string value = 2;
*/
com.google.protobuf.ByteString getValueBytes();
/**
* optional uint32 index = 3;
*/
boolean hasIndex();
/**
* optional uint32 index = 3;
*/
int getIndex();
}
/**
*
* DocumentPathItem
* .. productionlist::
* document_path: path_item | path_item document_path
* path_item : member | array_index | "**"
* member : "." string | "." "*"
* array_index : "[" number "]" | "[" "*" "]"
*
*
* Protobuf type {@code Mysqlx.Expr.DocumentPathItem}
*/
public static final class DocumentPathItem extends com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Mysqlx.Expr.DocumentPathItem)
DocumentPathItemOrBuilder {
private static final long serialVersionUID = 0L;
// Use DocumentPathItem.newBuilder() to construct.
private DocumentPathItem(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private DocumentPathItem() {
this.type_ = 1;
this.value_ = "";
this.index_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private DocumentPathItem(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 8: {
int rawValue = input.readEnum();
@SuppressWarnings("deprecation")
com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem.Type value = com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem.Type
.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(1, rawValue);
} else {
this.bitField0_ |= 0x00000001;
this.type_ = rawValue;
}
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
this.bitField0_ |= 0x00000002;
this.value_ = bs;
break;
}
case 24: {
this.bitField0_ |= 0x00000004;
this.index_ = input.readUInt32();
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 com.mysql.cj.x.protobuf.MysqlxExpr.internal_static_Mysqlx_Expr_DocumentPathItem_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
return com.mysql.cj.x.protobuf.MysqlxExpr.internal_static_Mysqlx_Expr_DocumentPathItem_fieldAccessorTable.ensureFieldAccessorsInitialized(
com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem.class, com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem.Builder.class);
}
/**
* Protobuf enum {@code Mysqlx.Expr.DocumentPathItem.Type}
*/
public enum Type implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* .member
*
*
* MEMBER = 1;
*/
MEMBER(1),
/**
*
* .*
*
*
* MEMBER_ASTERISK = 2;
*/
MEMBER_ASTERISK(2),
/**
*
* [index]
*
*
* ARRAY_INDEX = 3;
*/
ARRAY_INDEX(3),
/**
*
* [*]
*
*
* ARRAY_INDEX_ASTERISK = 4;
*/
ARRAY_INDEX_ASTERISK(4),
/**
*
* **
*
*
* DOUBLE_ASTERISK = 5;
*/
DOUBLE_ASTERISK(5),;
/**
*
* .member
*
*
* MEMBER = 1;
*/
public static final int MEMBER_VALUE = 1;
/**
*
* .*
*
*
* MEMBER_ASTERISK = 2;
*/
public static final int MEMBER_ASTERISK_VALUE = 2;
/**
*
* [index]
*
*
* ARRAY_INDEX = 3;
*/
public static final int ARRAY_INDEX_VALUE = 3;
/**
*
* [*]
*
*
* ARRAY_INDEX_ASTERISK = 4;
*/
public static final int ARRAY_INDEX_ASTERISK_VALUE = 4;
/**
*
* **
*
*
* DOUBLE_ASTERISK = 5;
*/
public static final int DOUBLE_ASTERISK_VALUE = 5;
public final int getNumber() {
return this.value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Type valueOf(int value) {
return forNumber(value);
}
public static Type forNumber(int value) {
switch (value) {
case 1:
return MEMBER;
case 2:
return MEMBER_ASTERISK;
case 3:
return ARRAY_INDEX;
case 4:
return ARRAY_INDEX_ASTERISK;
case 5:
return DOUBLE_ASTERISK;
default:
return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() {
public Type findValueByNumber(int number) {
return Type.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
return com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem.getDescriptor().getEnumTypes().get(0);
}
private static final Type[] VALUES = values();
public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int value;
private Type(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:Mysqlx.Expr.DocumentPathItem.Type)
}
private int bitField0_;
public static final int TYPE_FIELD_NUMBER = 1;
private int type_;
/**
* required .Mysqlx.Expr.DocumentPathItem.Type type = 1;
*/
public boolean hasType() {
return ((this.bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .Mysqlx.Expr.DocumentPathItem.Type type = 1;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem.Type getType() {
@SuppressWarnings("deprecation")
com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem.Type result = com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem.Type.valueOf(this.type_);
return result == null ? com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem.Type.MEMBER : result;
}
public static final int VALUE_FIELD_NUMBER = 2;
private volatile java.lang.Object value_;
/**
* optional string value = 2;
*/
public boolean hasValue() {
return ((this.bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string value = 2;
*/
public java.lang.String getValue() {
java.lang.Object ref = this.value_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
this.value_ = s;
}
return s;
}
}
/**
* optional string value = 2;
*/
public com.google.protobuf.ByteString getValueBytes() {
java.lang.Object ref = this.value_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
this.value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INDEX_FIELD_NUMBER = 3;
private int index_;
/**
* optional uint32 index = 3;
*/
public boolean hasIndex() {
return ((this.bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional uint32 index = 3;
*/
public int getIndex() {
return this.index_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = this.memoizedIsInitialized;
if (isInitialized == 1) {
return true;
}
if (isInitialized == 0) {
return false;
}
if (!hasType()) {
this.memoizedIsInitialized = 0;
return false;
}
this.memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (((this.bitField0_ & 0x00000001) == 0x00000001)) {
output.writeEnum(1, this.type_);
}
if (((this.bitField0_ & 0x00000002) == 0x00000002)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, this.value_);
}
if (((this.bitField0_ & 0x00000004) == 0x00000004)) {
output.writeUInt32(3, this.index_);
}
this.unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = this.memoizedSize;
if (size != -1) {
return size;
}
size = 0;
if (((this.bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, this.type_);
}
if (((this.bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, this.value_);
}
if (((this.bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream.computeUInt32Size(3, this.index_);
}
size += this.unknownFields.getSerializedSize();
this.memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem)) {
return super.equals(obj);
}
com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem other = (com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem) obj;
boolean result = true;
result = result && (hasType() == other.hasType());
if (hasType()) {
result = result && this.type_ == other.type_;
}
result = result && (hasValue() == other.hasValue());
if (hasValue()) {
result = result && getValue().equals(other.getValue());
}
result = result && (hasIndex() == other.hasIndex());
if (hasIndex()) {
result = result && (getIndex() == other.getIndex());
}
result = result && this.unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (this.memoizedHashCode != 0) {
return this.memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasType()) {
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + this.type_;
}
if (hasValue()) {
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
}
if (hasIndex()) {
hash = (37 * hash) + INDEX_FIELD_NUMBER;
hash = (53 * hash) + getIndex();
}
hash = (29 * hash) + this.unknownFields.hashCode();
this.memoizedHashCode = hash;
return hash;
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem parseFrom(com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem parseFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem 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.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem 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.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem 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(com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem 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;
}
/**
*
* DocumentPathItem
* .. productionlist::
* document_path: path_item | path_item document_path
* path_item : member | array_index | "**"
* member : "." string | "." "*"
* array_index : "[" number "]" | "[" "*" "]"
*
*
* Protobuf type {@code Mysqlx.Expr.DocumentPathItem}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Mysqlx.Expr.DocumentPathItem)
com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItemOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.mysql.cj.x.protobuf.MysqlxExpr.internal_static_Mysqlx_Expr_DocumentPathItem_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
return com.mysql.cj.x.protobuf.MysqlxExpr.internal_static_Mysqlx_Expr_DocumentPathItem_fieldAccessorTable.ensureFieldAccessorsInitialized(
com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem.class, com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem.Builder.class);
}
// Construct using com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem.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();
this.type_ = 1;
this.bitField0_ = (this.bitField0_ & ~0x00000001);
this.value_ = "";
this.bitField0_ = (this.bitField0_ & ~0x00000002);
this.index_ = 0;
this.bitField0_ = (this.bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.mysql.cj.x.protobuf.MysqlxExpr.internal_static_Mysqlx_Expr_DocumentPathItem_descriptor;
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem getDefaultInstanceForType() {
return com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem.getDefaultInstance();
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem build() {
com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem buildPartial() {
com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem result = new com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem(this);
int from_bitField0_ = this.bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.type_ = this.type_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.value_ = this.value_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.index_ = this.index_;
result.bitField0_ = to_bitField0_;
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 com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem) {
return mergeFrom((com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem other) {
if (other == com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem.getDefaultInstance()) {
return this;
}
if (other.hasType()) {
setType(other.getType());
}
if (other.hasValue()) {
this.bitField0_ |= 0x00000002;
this.value_ = other.value_;
onChanged();
}
if (other.hasIndex()) {
setIndex(other.getIndex());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasType()) {
return false;
}
return true;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int type_ = 1;
/**
* required .Mysqlx.Expr.DocumentPathItem.Type type = 1;
*/
public boolean hasType() {
return ((this.bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .Mysqlx.Expr.DocumentPathItem.Type type = 1;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem.Type getType() {
@SuppressWarnings("deprecation")
com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem.Type result = com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem.Type.valueOf(this.type_);
return result == null ? com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem.Type.MEMBER : result;
}
/**
* required .Mysqlx.Expr.DocumentPathItem.Type type = 1;
*/
public Builder setType(com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem.Type value) {
if (value == null) {
throw new NullPointerException();
}
this.bitField0_ |= 0x00000001;
this.type_ = value.getNumber();
onChanged();
return this;
}
/**
* required .Mysqlx.Expr.DocumentPathItem.Type type = 1;
*/
public Builder clearType() {
this.bitField0_ = (this.bitField0_ & ~0x00000001);
this.type_ = 1;
onChanged();
return this;
}
private java.lang.Object value_ = "";
/**
* optional string value = 2;
*/
public boolean hasValue() {
return ((this.bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string value = 2;
*/
public java.lang.String getValue() {
java.lang.Object ref = this.value_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
this.value_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string value = 2;
*/
public com.google.protobuf.ByteString getValueBytes() {
java.lang.Object ref = this.value_;
if (ref instanceof String) {
com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
this.value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string value = 2;
*/
public Builder setValue(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
this.bitField0_ |= 0x00000002;
this.value_ = value;
onChanged();
return this;
}
/**
* optional string value = 2;
*/
public Builder clearValue() {
this.bitField0_ = (this.bitField0_ & ~0x00000002);
this.value_ = getDefaultInstance().getValue();
onChanged();
return this;
}
/**
* optional string value = 2;
*/
public Builder setValueBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
this.bitField0_ |= 0x00000002;
this.value_ = value;
onChanged();
return this;
}
private int index_;
/**
* optional uint32 index = 3;
*/
public boolean hasIndex() {
return ((this.bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional uint32 index = 3;
*/
public int getIndex() {
return this.index_;
}
/**
* optional uint32 index = 3;
*/
public Builder setIndex(int value) {
this.bitField0_ |= 0x00000004;
this.index_ = value;
onChanged();
return this;
}
/**
* optional uint32 index = 3;
*/
public Builder clearIndex() {
this.bitField0_ = (this.bitField0_ & ~0x00000004);
this.index_ = 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:Mysqlx.Expr.DocumentPathItem)
}
// @@protoc_insertion_point(class_scope:Mysqlx.Expr.DocumentPathItem)
private static final com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem();
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated
public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DocumentPathItem parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DocumentPathItem(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 com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ColumnIdentifierOrBuilder extends
// @@protoc_insertion_point(interface_extends:Mysqlx.Expr.ColumnIdentifier)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .Mysqlx.Expr.DocumentPathItem document_path = 1;
*/
java.util.List getDocumentPathList();
/**
* repeated .Mysqlx.Expr.DocumentPathItem document_path = 1;
*/
com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem getDocumentPath(int index);
/**
* repeated .Mysqlx.Expr.DocumentPathItem document_path = 1;
*/
int getDocumentPathCount();
/**
* repeated .Mysqlx.Expr.DocumentPathItem document_path = 1;
*/
java.util.List getDocumentPathOrBuilderList();
/**
* repeated .Mysqlx.Expr.DocumentPathItem document_path = 1;
*/
com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItemOrBuilder getDocumentPathOrBuilder(int index);
/**
* optional string name = 2;
*/
boolean hasName();
/**
* optional string name = 2;
*/
java.lang.String getName();
/**
* optional string name = 2;
*/
com.google.protobuf.ByteString getNameBytes();
/**
* optional string table_name = 3;
*/
boolean hasTableName();
/**
* optional string table_name = 3;
*/
java.lang.String getTableName();
/**
* optional string table_name = 3;
*/
com.google.protobuf.ByteString getTableNameBytes();
/**
* optional string schema_name = 4;
*/
boolean hasSchemaName();
/**
* optional string schema_name = 4;
*/
java.lang.String getSchemaName();
/**
* optional string schema_name = 4;
*/
com.google.protobuf.ByteString getSchemaNameBytes();
}
/**
*
* col_identifier (table): col@doc_path, tbl.col@doc_path col, tbl.col, schema.tbl.col
* col_identifier (document): doc_path
* .. productionlist::
* col_identifier: string "." string "." string |
* : string "." string |
* : string |
* : string "." string "." string "@" document_path |
* : string "." string "@" document_path |
* : string "@" document_path |
* : document_path
* document_path: member | arrayLocation | doubleAsterisk
* member = "." string | "." "*"
* arrayLocation = "[" index "]" | "[" "*" "]"
* doubleAsterisk = "**"
*
*
* Protobuf type {@code Mysqlx.Expr.ColumnIdentifier}
*/
public static final class ColumnIdentifier extends com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Mysqlx.Expr.ColumnIdentifier)
ColumnIdentifierOrBuilder {
private static final long serialVersionUID = 0L;
// Use ColumnIdentifier.newBuilder() to construct.
private ColumnIdentifier(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private ColumnIdentifier() {
this.documentPath_ = java.util.Collections.emptyList();
this.name_ = "";
this.tableName_ = "";
this.schemaName_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private ColumnIdentifier(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) == 0x00000001)) {
this.documentPath_ = new java.util.ArrayList<>();
mutable_bitField0_ |= 0x00000001;
}
this.documentPath_.add(input.readMessage(com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem.PARSER, extensionRegistry));
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
this.bitField0_ |= 0x00000001;
this.name_ = bs;
break;
}
case 26: {
com.google.protobuf.ByteString bs = input.readBytes();
this.bitField0_ |= 0x00000002;
this.tableName_ = bs;
break;
}
case 34: {
com.google.protobuf.ByteString bs = input.readBytes();
this.bitField0_ |= 0x00000004;
this.schemaName_ = bs;
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) == 0x00000001)) {
this.documentPath_ = java.util.Collections.unmodifiableList(this.documentPath_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.mysql.cj.x.protobuf.MysqlxExpr.internal_static_Mysqlx_Expr_ColumnIdentifier_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
return com.mysql.cj.x.protobuf.MysqlxExpr.internal_static_Mysqlx_Expr_ColumnIdentifier_fieldAccessorTable.ensureFieldAccessorsInitialized(
com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier.class, com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier.Builder.class);
}
private int bitField0_;
public static final int DOCUMENT_PATH_FIELD_NUMBER = 1;
private java.util.List documentPath_;
/**
* repeated .Mysqlx.Expr.DocumentPathItem document_path = 1;
*/
public java.util.List getDocumentPathList() {
return this.documentPath_;
}
/**
* repeated .Mysqlx.Expr.DocumentPathItem document_path = 1;
*/
public java.util.List getDocumentPathOrBuilderList() {
return this.documentPath_;
}
/**
* repeated .Mysqlx.Expr.DocumentPathItem document_path = 1;
*/
public int getDocumentPathCount() {
return this.documentPath_.size();
}
/**
* repeated .Mysqlx.Expr.DocumentPathItem document_path = 1;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem getDocumentPath(int index) {
return this.documentPath_.get(index);
}
/**
* repeated .Mysqlx.Expr.DocumentPathItem document_path = 1;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItemOrBuilder getDocumentPathOrBuilder(int index) {
return this.documentPath_.get(index);
}
public static final int NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object name_;
/**
* optional string name = 2;
*/
public boolean hasName() {
return ((this.bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string name = 2;
*/
public java.lang.String getName() {
java.lang.Object ref = this.name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
this.name_ = s;
}
return s;
}
}
/**
* optional string name = 2;
*/
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = this.name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
this.name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TABLE_NAME_FIELD_NUMBER = 3;
private volatile java.lang.Object tableName_;
/**
* optional string table_name = 3;
*/
public boolean hasTableName() {
return ((this.bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string table_name = 3;
*/
public java.lang.String getTableName() {
java.lang.Object ref = this.tableName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
this.tableName_ = s;
}
return s;
}
}
/**
* optional string table_name = 3;
*/
public com.google.protobuf.ByteString getTableNameBytes() {
java.lang.Object ref = this.tableName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
this.tableName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SCHEMA_NAME_FIELD_NUMBER = 4;
private volatile java.lang.Object schemaName_;
/**
* optional string schema_name = 4;
*/
public boolean hasSchemaName() {
return ((this.bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string schema_name = 4;
*/
public java.lang.String getSchemaName() {
java.lang.Object ref = this.schemaName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
this.schemaName_ = s;
}
return s;
}
}
/**
* optional string schema_name = 4;
*/
public com.google.protobuf.ByteString getSchemaNameBytes() {
java.lang.Object ref = this.schemaName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
this.schemaName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = this.memoizedIsInitialized;
if (isInitialized == 1) {
return true;
}
if (isInitialized == 0) {
return false;
}
for (int i = 0; i < getDocumentPathCount(); i++) {
if (!getDocumentPath(i).isInitialized()) {
this.memoizedIsInitialized = 0;
return false;
}
}
this.memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
for (int i = 0; i < this.documentPath_.size(); i++) {
output.writeMessage(1, this.documentPath_.get(i));
}
if (((this.bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, this.name_);
}
if (((this.bitField0_ & 0x00000002) == 0x00000002)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, this.tableName_);
}
if (((this.bitField0_ & 0x00000004) == 0x00000004)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, this.schemaName_);
}
this.unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = this.memoizedSize;
if (size != -1) {
return size;
}
size = 0;
for (int i = 0; i < this.documentPath_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, this.documentPath_.get(i));
}
if (((this.bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, this.name_);
}
if (((this.bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, this.tableName_);
}
if (((this.bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, this.schemaName_);
}
size += this.unknownFields.getSerializedSize();
this.memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier)) {
return super.equals(obj);
}
com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier other = (com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier) obj;
boolean result = true;
result = result && getDocumentPathList().equals(other.getDocumentPathList());
result = result && (hasName() == other.hasName());
if (hasName()) {
result = result && getName().equals(other.getName());
}
result = result && (hasTableName() == other.hasTableName());
if (hasTableName()) {
result = result && getTableName().equals(other.getTableName());
}
result = result && (hasSchemaName() == other.hasSchemaName());
if (hasSchemaName()) {
result = result && getSchemaName().equals(other.getSchemaName());
}
result = result && this.unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (this.memoizedHashCode != 0) {
return this.memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getDocumentPathCount() > 0) {
hash = (37 * hash) + DOCUMENT_PATH_FIELD_NUMBER;
hash = (53 * hash) + getDocumentPathList().hashCode();
}
if (hasName()) {
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
}
if (hasTableName()) {
hash = (37 * hash) + TABLE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getTableName().hashCode();
}
if (hasSchemaName()) {
hash = (37 * hash) + SCHEMA_NAME_FIELD_NUMBER;
hash = (53 * hash) + getSchemaName().hashCode();
}
hash = (29 * hash) + this.unknownFields.hashCode();
this.memoizedHashCode = hash;
return hash;
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier parseFrom(com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier parseFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier 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.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier 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.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier 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(com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier 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;
}
/**
*
* col_identifier (table): col@doc_path, tbl.col@doc_path col, tbl.col, schema.tbl.col
* col_identifier (document): doc_path
* .. productionlist::
* col_identifier: string "." string "." string |
* : string "." string |
* : string |
* : string "." string "." string "@" document_path |
* : string "." string "@" document_path |
* : string "@" document_path |
* : document_path
* document_path: member | arrayLocation | doubleAsterisk
* member = "." string | "." "*"
* arrayLocation = "[" index "]" | "[" "*" "]"
* doubleAsterisk = "**"
*
*
* Protobuf type {@code Mysqlx.Expr.ColumnIdentifier}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Mysqlx.Expr.ColumnIdentifier)
com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifierOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.mysql.cj.x.protobuf.MysqlxExpr.internal_static_Mysqlx_Expr_ColumnIdentifier_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
return com.mysql.cj.x.protobuf.MysqlxExpr.internal_static_Mysqlx_Expr_ColumnIdentifier_fieldAccessorTable.ensureFieldAccessorsInitialized(
com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier.class, com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier.Builder.class);
}
// Construct using com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getDocumentPathFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (this.documentPathBuilder_ == null) {
this.documentPath_ = java.util.Collections.emptyList();
this.bitField0_ = (this.bitField0_ & ~0x00000001);
} else {
this.documentPathBuilder_.clear();
}
this.name_ = "";
this.bitField0_ = (this.bitField0_ & ~0x00000002);
this.tableName_ = "";
this.bitField0_ = (this.bitField0_ & ~0x00000004);
this.schemaName_ = "";
this.bitField0_ = (this.bitField0_ & ~0x00000008);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.mysql.cj.x.protobuf.MysqlxExpr.internal_static_Mysqlx_Expr_ColumnIdentifier_descriptor;
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier getDefaultInstanceForType() {
return com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier.getDefaultInstance();
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier build() {
com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier buildPartial() {
com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier result = new com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier(this);
int from_bitField0_ = this.bitField0_;
int to_bitField0_ = 0;
if (this.documentPathBuilder_ == null) {
if (((this.bitField0_ & 0x00000001) == 0x00000001)) {
this.documentPath_ = java.util.Collections.unmodifiableList(this.documentPath_);
this.bitField0_ = (this.bitField0_ & ~0x00000001);
}
result.documentPath_ = this.documentPath_;
} else {
result.documentPath_ = this.documentPathBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000001;
}
result.name_ = this.name_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000002;
}
result.tableName_ = this.tableName_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000004;
}
result.schemaName_ = this.schemaName_;
result.bitField0_ = to_bitField0_;
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 com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier) {
return mergeFrom((com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier other) {
if (other == com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier.getDefaultInstance()) {
return this;
}
if (this.documentPathBuilder_ == null) {
if (!other.documentPath_.isEmpty()) {
if (this.documentPath_.isEmpty()) {
this.documentPath_ = other.documentPath_;
this.bitField0_ = (this.bitField0_ & ~0x00000001);
} else {
ensureDocumentPathIsMutable();
this.documentPath_.addAll(other.documentPath_);
}
onChanged();
}
} else {
if (!other.documentPath_.isEmpty()) {
if (this.documentPathBuilder_.isEmpty()) {
this.documentPathBuilder_.dispose();
this.documentPathBuilder_ = null;
this.documentPath_ = other.documentPath_;
this.bitField0_ = (this.bitField0_ & ~0x00000001);
this.documentPathBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDocumentPathFieldBuilder() : null;
} else {
this.documentPathBuilder_.addAllMessages(other.documentPath_);
}
}
}
if (other.hasName()) {
this.bitField0_ |= 0x00000002;
this.name_ = other.name_;
onChanged();
}
if (other.hasTableName()) {
this.bitField0_ |= 0x00000004;
this.tableName_ = other.tableName_;
onChanged();
}
if (other.hasSchemaName()) {
this.bitField0_ |= 0x00000008;
this.schemaName_ = other.schemaName_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
for (int i = 0; i < getDocumentPathCount(); i++) {
if (!getDocumentPath(i).isInitialized()) {
return false;
}
}
return true;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List documentPath_ = java.util.Collections.emptyList();
private void ensureDocumentPathIsMutable() {
if (!((this.bitField0_ & 0x00000001) == 0x00000001)) {
this.documentPath_ = new java.util.ArrayList<>(this.documentPath_);
this.bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3 documentPathBuilder_;
/**
* repeated .Mysqlx.Expr.DocumentPathItem document_path = 1;
*/
public java.util.List getDocumentPathList() {
if (this.documentPathBuilder_ == null) {
return java.util.Collections.unmodifiableList(this.documentPath_);
} else {
return this.documentPathBuilder_.getMessageList();
}
}
/**
* repeated .Mysqlx.Expr.DocumentPathItem document_path = 1;
*/
public int getDocumentPathCount() {
if (this.documentPathBuilder_ == null) {
return this.documentPath_.size();
} else {
return this.documentPathBuilder_.getCount();
}
}
/**
* repeated .Mysqlx.Expr.DocumentPathItem document_path = 1;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem getDocumentPath(int index) {
if (this.documentPathBuilder_ == null) {
return this.documentPath_.get(index);
} else {
return this.documentPathBuilder_.getMessage(index);
}
}
/**
* repeated .Mysqlx.Expr.DocumentPathItem document_path = 1;
*/
public Builder setDocumentPath(int index, com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem value) {
if (this.documentPathBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDocumentPathIsMutable();
this.documentPath_.set(index, value);
onChanged();
} else {
this.documentPathBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .Mysqlx.Expr.DocumentPathItem document_path = 1;
*/
public Builder setDocumentPath(int index, com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem.Builder builderForValue) {
if (this.documentPathBuilder_ == null) {
ensureDocumentPathIsMutable();
this.documentPath_.set(index, builderForValue.build());
onChanged();
} else {
this.documentPathBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Mysqlx.Expr.DocumentPathItem document_path = 1;
*/
public Builder addDocumentPath(com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem value) {
if (this.documentPathBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDocumentPathIsMutable();
this.documentPath_.add(value);
onChanged();
} else {
this.documentPathBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .Mysqlx.Expr.DocumentPathItem document_path = 1;
*/
public Builder addDocumentPath(int index, com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem value) {
if (this.documentPathBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDocumentPathIsMutable();
this.documentPath_.add(index, value);
onChanged();
} else {
this.documentPathBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .Mysqlx.Expr.DocumentPathItem document_path = 1;
*/
public Builder addDocumentPath(com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem.Builder builderForValue) {
if (this.documentPathBuilder_ == null) {
ensureDocumentPathIsMutable();
this.documentPath_.add(builderForValue.build());
onChanged();
} else {
this.documentPathBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .Mysqlx.Expr.DocumentPathItem document_path = 1;
*/
public Builder addDocumentPath(int index, com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem.Builder builderForValue) {
if (this.documentPathBuilder_ == null) {
ensureDocumentPathIsMutable();
this.documentPath_.add(index, builderForValue.build());
onChanged();
} else {
this.documentPathBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Mysqlx.Expr.DocumentPathItem document_path = 1;
*/
public Builder addAllDocumentPath(java.lang.Iterable values) {
if (this.documentPathBuilder_ == null) {
ensureDocumentPathIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, this.documentPath_);
onChanged();
} else {
this.documentPathBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .Mysqlx.Expr.DocumentPathItem document_path = 1;
*/
public Builder clearDocumentPath() {
if (this.documentPathBuilder_ == null) {
this.documentPath_ = java.util.Collections.emptyList();
this.bitField0_ = (this.bitField0_ & ~0x00000001);
onChanged();
} else {
this.documentPathBuilder_.clear();
}
return this;
}
/**
* repeated .Mysqlx.Expr.DocumentPathItem document_path = 1;
*/
public Builder removeDocumentPath(int index) {
if (this.documentPathBuilder_ == null) {
ensureDocumentPathIsMutable();
this.documentPath_.remove(index);
onChanged();
} else {
this.documentPathBuilder_.remove(index);
}
return this;
}
/**
* repeated .Mysqlx.Expr.DocumentPathItem document_path = 1;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem.Builder getDocumentPathBuilder(int index) {
return getDocumentPathFieldBuilder().getBuilder(index);
}
/**
* repeated .Mysqlx.Expr.DocumentPathItem document_path = 1;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItemOrBuilder getDocumentPathOrBuilder(int index) {
if (this.documentPathBuilder_ == null) {
return this.documentPath_.get(index);
} else {
return this.documentPathBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .Mysqlx.Expr.DocumentPathItem document_path = 1;
*/
public java.util.List getDocumentPathOrBuilderList() {
if (this.documentPathBuilder_ != null) {
return this.documentPathBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(this.documentPath_);
}
}
/**
* repeated .Mysqlx.Expr.DocumentPathItem document_path = 1;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem.Builder addDocumentPathBuilder() {
return getDocumentPathFieldBuilder().addBuilder(com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem.getDefaultInstance());
}
/**
* repeated .Mysqlx.Expr.DocumentPathItem document_path = 1;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem.Builder addDocumentPathBuilder(int index) {
return getDocumentPathFieldBuilder().addBuilder(index, com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem.getDefaultInstance());
}
/**
* repeated .Mysqlx.Expr.DocumentPathItem document_path = 1;
*/
public java.util.List getDocumentPathBuilderList() {
return getDocumentPathFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3 getDocumentPathFieldBuilder() {
if (this.documentPathBuilder_ == null) {
this.documentPathBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<>(
this.documentPath_, ((this.bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean());
this.documentPath_ = null;
}
return this.documentPathBuilder_;
}
private java.lang.Object name_ = "";
/**
* optional string name = 2;
*/
public boolean hasName() {
return ((this.bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string name = 2;
*/
public java.lang.String getName() {
java.lang.Object ref = this.name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
this.name_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string name = 2;
*/
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = this.name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
this.name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string name = 2;
*/
public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
this.bitField0_ |= 0x00000002;
this.name_ = value;
onChanged();
return this;
}
/**
* optional string name = 2;
*/
public Builder clearName() {
this.bitField0_ = (this.bitField0_ & ~0x00000002);
this.name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* optional string name = 2;
*/
public Builder setNameBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
this.bitField0_ |= 0x00000002;
this.name_ = value;
onChanged();
return this;
}
private java.lang.Object tableName_ = "";
/**
* optional string table_name = 3;
*/
public boolean hasTableName() {
return ((this.bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string table_name = 3;
*/
public java.lang.String getTableName() {
java.lang.Object ref = this.tableName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
this.tableName_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string table_name = 3;
*/
public com.google.protobuf.ByteString getTableNameBytes() {
java.lang.Object ref = this.tableName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
this.tableName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string table_name = 3;
*/
public Builder setTableName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
this.bitField0_ |= 0x00000004;
this.tableName_ = value;
onChanged();
return this;
}
/**
* optional string table_name = 3;
*/
public Builder clearTableName() {
this.bitField0_ = (this.bitField0_ & ~0x00000004);
this.tableName_ = getDefaultInstance().getTableName();
onChanged();
return this;
}
/**
* optional string table_name = 3;
*/
public Builder setTableNameBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
this.bitField0_ |= 0x00000004;
this.tableName_ = value;
onChanged();
return this;
}
private java.lang.Object schemaName_ = "";
/**
* optional string schema_name = 4;
*/
public boolean hasSchemaName() {
return ((this.bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional string schema_name = 4;
*/
public java.lang.String getSchemaName() {
java.lang.Object ref = this.schemaName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
this.schemaName_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string schema_name = 4;
*/
public com.google.protobuf.ByteString getSchemaNameBytes() {
java.lang.Object ref = this.schemaName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
this.schemaName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string schema_name = 4;
*/
public Builder setSchemaName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
this.bitField0_ |= 0x00000008;
this.schemaName_ = value;
onChanged();
return this;
}
/**
* optional string schema_name = 4;
*/
public Builder clearSchemaName() {
this.bitField0_ = (this.bitField0_ & ~0x00000008);
this.schemaName_ = getDefaultInstance().getSchemaName();
onChanged();
return this;
}
/**
* optional string schema_name = 4;
*/
public Builder setSchemaNameBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
this.bitField0_ |= 0x00000008;
this.schemaName_ = value;
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:Mysqlx.Expr.ColumnIdentifier)
}
// @@protoc_insertion_point(class_scope:Mysqlx.Expr.ColumnIdentifier)
private static final com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier();
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated
public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ColumnIdentifier parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ColumnIdentifier(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 com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface FunctionCallOrBuilder extends
// @@protoc_insertion_point(interface_extends:Mysqlx.Expr.FunctionCall)
com.google.protobuf.MessageOrBuilder {
/**
* required .Mysqlx.Expr.Identifier name = 1;
*/
boolean hasName();
/**
* required .Mysqlx.Expr.Identifier name = 1;
*/
com.mysql.cj.x.protobuf.MysqlxExpr.Identifier getName();
/**
* required .Mysqlx.Expr.Identifier name = 1;
*/
com.mysql.cj.x.protobuf.MysqlxExpr.IdentifierOrBuilder getNameOrBuilder();
/**
* repeated .Mysqlx.Expr.Expr param = 2;
*/
java.util.List getParamList();
/**
* repeated .Mysqlx.Expr.Expr param = 2;
*/
com.mysql.cj.x.protobuf.MysqlxExpr.Expr getParam(int index);
/**
* repeated .Mysqlx.Expr.Expr param = 2;
*/
int getParamCount();
/**
* repeated .Mysqlx.Expr.Expr param = 2;
*/
java.util.List getParamOrBuilderList();
/**
* repeated .Mysqlx.Expr.Expr param = 2;
*/
com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder getParamOrBuilder(int index);
}
/**
*
* function call: ``func(a, b, "1", 3)``
* .. productionlist::
* function_call: `identifier` "(" [ `expr` ["," `expr` ]* ] ")"
*
*
* Protobuf type {@code Mysqlx.Expr.FunctionCall}
*/
public static final class FunctionCall extends com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Mysqlx.Expr.FunctionCall)
FunctionCallOrBuilder {
private static final long serialVersionUID = 0L;
// Use FunctionCall.newBuilder() to construct.
private FunctionCall(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private FunctionCall() {
this.param_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private FunctionCall(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: {
com.mysql.cj.x.protobuf.MysqlxExpr.Identifier.Builder subBuilder = null;
if (((this.bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = this.name_.toBuilder();
}
this.name_ = input.readMessage(com.mysql.cj.x.protobuf.MysqlxExpr.Identifier.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(this.name_);
this.name_ = subBuilder.buildPartial();
}
this.bitField0_ |= 0x00000001;
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
this.param_ = new java.util.ArrayList<>();
mutable_bitField0_ |= 0x00000002;
}
this.param_.add(input.readMessage(com.mysql.cj.x.protobuf.MysqlxExpr.Expr.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_ & 0x00000002) == 0x00000002)) {
this.param_ = java.util.Collections.unmodifiableList(this.param_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.mysql.cj.x.protobuf.MysqlxExpr.internal_static_Mysqlx_Expr_FunctionCall_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
return com.mysql.cj.x.protobuf.MysqlxExpr.internal_static_Mysqlx_Expr_FunctionCall_fieldAccessorTable.ensureFieldAccessorsInitialized(
com.mysql.cj.x.protobuf.MysqlxExpr.FunctionCall.class, com.mysql.cj.x.protobuf.MysqlxExpr.FunctionCall.Builder.class);
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
private com.mysql.cj.x.protobuf.MysqlxExpr.Identifier name_;
/**
* required .Mysqlx.Expr.Identifier name = 1;
*/
public boolean hasName() {
return ((this.bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .Mysqlx.Expr.Identifier name = 1;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.Identifier getName() {
return this.name_ == null ? com.mysql.cj.x.protobuf.MysqlxExpr.Identifier.getDefaultInstance() : this.name_;
}
/**
* required .Mysqlx.Expr.Identifier name = 1;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.IdentifierOrBuilder getNameOrBuilder() {
return this.name_ == null ? com.mysql.cj.x.protobuf.MysqlxExpr.Identifier.getDefaultInstance() : this.name_;
}
public static final int PARAM_FIELD_NUMBER = 2;
private java.util.List param_;
/**
* repeated .Mysqlx.Expr.Expr param = 2;
*/
public java.util.List getParamList() {
return this.param_;
}
/**
* repeated .Mysqlx.Expr.Expr param = 2;
*/
public java.util.List getParamOrBuilderList() {
return this.param_;
}
/**
* repeated .Mysqlx.Expr.Expr param = 2;
*/
public int getParamCount() {
return this.param_.size();
}
/**
* repeated .Mysqlx.Expr.Expr param = 2;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.Expr getParam(int index) {
return this.param_.get(index);
}
/**
* repeated .Mysqlx.Expr.Expr param = 2;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder getParamOrBuilder(int index) {
return this.param_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = this.memoizedIsInitialized;
if (isInitialized == 1) {
return true;
}
if (isInitialized == 0) {
return false;
}
if (!hasName()) {
this.memoizedIsInitialized = 0;
return false;
}
if (!getName().isInitialized()) {
this.memoizedIsInitialized = 0;
return false;
}
for (int i = 0; i < getParamCount(); i++) {
if (!getParam(i).isInitialized()) {
this.memoizedIsInitialized = 0;
return false;
}
}
this.memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (((this.bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, getName());
}
for (int i = 0; i < this.param_.size(); i++) {
output.writeMessage(2, this.param_.get(i));
}
this.unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = this.memoizedSize;
if (size != -1) {
return size;
}
size = 0;
if (((this.bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getName());
}
for (int i = 0; i < this.param_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, this.param_.get(i));
}
size += this.unknownFields.getSerializedSize();
this.memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.mysql.cj.x.protobuf.MysqlxExpr.FunctionCall)) {
return super.equals(obj);
}
com.mysql.cj.x.protobuf.MysqlxExpr.FunctionCall other = (com.mysql.cj.x.protobuf.MysqlxExpr.FunctionCall) obj;
boolean result = true;
result = result && (hasName() == other.hasName());
if (hasName()) {
result = result && getName().equals(other.getName());
}
result = result && getParamList().equals(other.getParamList());
result = result && this.unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (this.memoizedHashCode != 0) {
return this.memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasName()) {
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
}
if (getParamCount() > 0) {
hash = (37 * hash) + PARAM_FIELD_NUMBER;
hash = (53 * hash) + getParamList().hashCode();
}
hash = (29 * hash) + this.unknownFields.hashCode();
this.memoizedHashCode = hash;
return hash;
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.FunctionCall parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.FunctionCall parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.FunctionCall parseFrom(com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.FunctionCall parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.FunctionCall parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.FunctionCall parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.FunctionCall parseFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.FunctionCall 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.mysql.cj.x.protobuf.MysqlxExpr.FunctionCall parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.FunctionCall 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.mysql.cj.x.protobuf.MysqlxExpr.FunctionCall parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.FunctionCall 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(com.mysql.cj.x.protobuf.MysqlxExpr.FunctionCall 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;
}
/**
*
* function call: ``func(a, b, "1", 3)``
* .. productionlist::
* function_call: `identifier` "(" [ `expr` ["," `expr` ]* ] ")"
*
*
* Protobuf type {@code Mysqlx.Expr.FunctionCall}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Mysqlx.Expr.FunctionCall)
com.mysql.cj.x.protobuf.MysqlxExpr.FunctionCallOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.mysql.cj.x.protobuf.MysqlxExpr.internal_static_Mysqlx_Expr_FunctionCall_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
return com.mysql.cj.x.protobuf.MysqlxExpr.internal_static_Mysqlx_Expr_FunctionCall_fieldAccessorTable.ensureFieldAccessorsInitialized(
com.mysql.cj.x.protobuf.MysqlxExpr.FunctionCall.class, com.mysql.cj.x.protobuf.MysqlxExpr.FunctionCall.Builder.class);
}
// Construct using com.mysql.cj.x.protobuf.MysqlxExpr.FunctionCall.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getNameFieldBuilder();
getParamFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (this.nameBuilder_ == null) {
this.name_ = null;
} else {
this.nameBuilder_.clear();
}
this.bitField0_ = (this.bitField0_ & ~0x00000001);
if (this.paramBuilder_ == null) {
this.param_ = java.util.Collections.emptyList();
this.bitField0_ = (this.bitField0_ & ~0x00000002);
} else {
this.paramBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.mysql.cj.x.protobuf.MysqlxExpr.internal_static_Mysqlx_Expr_FunctionCall_descriptor;
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxExpr.FunctionCall getDefaultInstanceForType() {
return com.mysql.cj.x.protobuf.MysqlxExpr.FunctionCall.getDefaultInstance();
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxExpr.FunctionCall build() {
com.mysql.cj.x.protobuf.MysqlxExpr.FunctionCall result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxExpr.FunctionCall buildPartial() {
com.mysql.cj.x.protobuf.MysqlxExpr.FunctionCall result = new com.mysql.cj.x.protobuf.MysqlxExpr.FunctionCall(this);
int from_bitField0_ = this.bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (this.nameBuilder_ == null) {
result.name_ = this.name_;
} else {
result.name_ = this.nameBuilder_.build();
}
if (this.paramBuilder_ == null) {
if (((this.bitField0_ & 0x00000002) == 0x00000002)) {
this.param_ = java.util.Collections.unmodifiableList(this.param_);
this.bitField0_ = (this.bitField0_ & ~0x00000002);
}
result.param_ = this.param_;
} else {
result.param_ = this.paramBuilder_.build();
}
result.bitField0_ = to_bitField0_;
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 com.mysql.cj.x.protobuf.MysqlxExpr.FunctionCall) {
return mergeFrom((com.mysql.cj.x.protobuf.MysqlxExpr.FunctionCall) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.mysql.cj.x.protobuf.MysqlxExpr.FunctionCall other) {
if (other == com.mysql.cj.x.protobuf.MysqlxExpr.FunctionCall.getDefaultInstance()) {
return this;
}
if (other.hasName()) {
mergeName(other.getName());
}
if (this.paramBuilder_ == null) {
if (!other.param_.isEmpty()) {
if (this.param_.isEmpty()) {
this.param_ = other.param_;
this.bitField0_ = (this.bitField0_ & ~0x00000002);
} else {
ensureParamIsMutable();
this.param_.addAll(other.param_);
}
onChanged();
}
} else {
if (!other.param_.isEmpty()) {
if (this.paramBuilder_.isEmpty()) {
this.paramBuilder_.dispose();
this.paramBuilder_ = null;
this.param_ = other.param_;
this.bitField0_ = (this.bitField0_ & ~0x00000002);
this.paramBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getParamFieldBuilder() : null;
} else {
this.paramBuilder_.addAllMessages(other.param_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasName()) {
return false;
}
if (!getName().isInitialized()) {
return false;
}
for (int i = 0; i < getParamCount(); i++) {
if (!getParam(i).isInitialized()) {
return false;
}
}
return true;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.mysql.cj.x.protobuf.MysqlxExpr.FunctionCall parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.mysql.cj.x.protobuf.MysqlxExpr.FunctionCall) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.mysql.cj.x.protobuf.MysqlxExpr.Identifier name_ = null;
private com.google.protobuf.SingleFieldBuilderV3 nameBuilder_;
/**
* required .Mysqlx.Expr.Identifier name = 1;
*/
public boolean hasName() {
return ((this.bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .Mysqlx.Expr.Identifier name = 1;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.Identifier getName() {
if (this.nameBuilder_ == null) {
return this.name_ == null ? com.mysql.cj.x.protobuf.MysqlxExpr.Identifier.getDefaultInstance() : this.name_;
} else {
return this.nameBuilder_.getMessage();
}
}
/**
* required .Mysqlx.Expr.Identifier name = 1;
*/
public Builder setName(com.mysql.cj.x.protobuf.MysqlxExpr.Identifier value) {
if (this.nameBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
this.name_ = value;
onChanged();
} else {
this.nameBuilder_.setMessage(value);
}
this.bitField0_ |= 0x00000001;
return this;
}
/**
* required .Mysqlx.Expr.Identifier name = 1;
*/
public Builder setName(com.mysql.cj.x.protobuf.MysqlxExpr.Identifier.Builder builderForValue) {
if (this.nameBuilder_ == null) {
this.name_ = builderForValue.build();
onChanged();
} else {
this.nameBuilder_.setMessage(builderForValue.build());
}
this.bitField0_ |= 0x00000001;
return this;
}
/**
* required .Mysqlx.Expr.Identifier name = 1;
*/
public Builder mergeName(com.mysql.cj.x.protobuf.MysqlxExpr.Identifier value) {
if (this.nameBuilder_ == null) {
if (((this.bitField0_ & 0x00000001) == 0x00000001) && this.name_ != null
&& this.name_ != com.mysql.cj.x.protobuf.MysqlxExpr.Identifier.getDefaultInstance()) {
this.name_ = com.mysql.cj.x.protobuf.MysqlxExpr.Identifier.newBuilder(this.name_).mergeFrom(value).buildPartial();
} else {
this.name_ = value;
}
onChanged();
} else {
this.nameBuilder_.mergeFrom(value);
}
this.bitField0_ |= 0x00000001;
return this;
}
/**
* required .Mysqlx.Expr.Identifier name = 1;
*/
public Builder clearName() {
if (this.nameBuilder_ == null) {
this.name_ = null;
onChanged();
} else {
this.nameBuilder_.clear();
}
this.bitField0_ = (this.bitField0_ & ~0x00000001);
return this;
}
/**
* required .Mysqlx.Expr.Identifier name = 1;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.Identifier.Builder getNameBuilder() {
this.bitField0_ |= 0x00000001;
onChanged();
return getNameFieldBuilder().getBuilder();
}
/**
* required .Mysqlx.Expr.Identifier name = 1;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.IdentifierOrBuilder getNameOrBuilder() {
if (this.nameBuilder_ != null) {
return this.nameBuilder_.getMessageOrBuilder();
} else {
return this.name_ == null ? com.mysql.cj.x.protobuf.MysqlxExpr.Identifier.getDefaultInstance() : this.name_;
}
}
/**
* required .Mysqlx.Expr.Identifier name = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3 getNameFieldBuilder() {
if (this.nameBuilder_ == null) {
this.nameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<>(
getName(), getParentForChildren(), isClean());
this.name_ = null;
}
return this.nameBuilder_;
}
private java.util.List param_ = java.util.Collections.emptyList();
private void ensureParamIsMutable() {
if (!((this.bitField0_ & 0x00000002) == 0x00000002)) {
this.param_ = new java.util.ArrayList<>(this.param_);
this.bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3 paramBuilder_;
/**
* repeated .Mysqlx.Expr.Expr param = 2;
*/
public java.util.List getParamList() {
if (this.paramBuilder_ == null) {
return java.util.Collections.unmodifiableList(this.param_);
} else {
return this.paramBuilder_.getMessageList();
}
}
/**
* repeated .Mysqlx.Expr.Expr param = 2;
*/
public int getParamCount() {
if (this.paramBuilder_ == null) {
return this.param_.size();
} else {
return this.paramBuilder_.getCount();
}
}
/**
* repeated .Mysqlx.Expr.Expr param = 2;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.Expr getParam(int index) {
if (this.paramBuilder_ == null) {
return this.param_.get(index);
} else {
return this.paramBuilder_.getMessage(index);
}
}
/**
* repeated .Mysqlx.Expr.Expr param = 2;
*/
public Builder setParam(int index, com.mysql.cj.x.protobuf.MysqlxExpr.Expr value) {
if (this.paramBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureParamIsMutable();
this.param_.set(index, value);
onChanged();
} else {
this.paramBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .Mysqlx.Expr.Expr param = 2;
*/
public Builder setParam(int index, com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder builderForValue) {
if (this.paramBuilder_ == null) {
ensureParamIsMutable();
this.param_.set(index, builderForValue.build());
onChanged();
} else {
this.paramBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Mysqlx.Expr.Expr param = 2;
*/
public Builder addParam(com.mysql.cj.x.protobuf.MysqlxExpr.Expr value) {
if (this.paramBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureParamIsMutable();
this.param_.add(value);
onChanged();
} else {
this.paramBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .Mysqlx.Expr.Expr param = 2;
*/
public Builder addParam(int index, com.mysql.cj.x.protobuf.MysqlxExpr.Expr value) {
if (this.paramBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureParamIsMutable();
this.param_.add(index, value);
onChanged();
} else {
this.paramBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .Mysqlx.Expr.Expr param = 2;
*/
public Builder addParam(com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder builderForValue) {
if (this.paramBuilder_ == null) {
ensureParamIsMutable();
this.param_.add(builderForValue.build());
onChanged();
} else {
this.paramBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .Mysqlx.Expr.Expr param = 2;
*/
public Builder addParam(int index, com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder builderForValue) {
if (this.paramBuilder_ == null) {
ensureParamIsMutable();
this.param_.add(index, builderForValue.build());
onChanged();
} else {
this.paramBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Mysqlx.Expr.Expr param = 2;
*/
public Builder addAllParam(java.lang.Iterable values) {
if (this.paramBuilder_ == null) {
ensureParamIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, this.param_);
onChanged();
} else {
this.paramBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .Mysqlx.Expr.Expr param = 2;
*/
public Builder clearParam() {
if (this.paramBuilder_ == null) {
this.param_ = java.util.Collections.emptyList();
this.bitField0_ = (this.bitField0_ & ~0x00000002);
onChanged();
} else {
this.paramBuilder_.clear();
}
return this;
}
/**
* repeated .Mysqlx.Expr.Expr param = 2;
*/
public Builder removeParam(int index) {
if (this.paramBuilder_ == null) {
ensureParamIsMutable();
this.param_.remove(index);
onChanged();
} else {
this.paramBuilder_.remove(index);
}
return this;
}
/**
* repeated .Mysqlx.Expr.Expr param = 2;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder getParamBuilder(int index) {
return getParamFieldBuilder().getBuilder(index);
}
/**
* repeated .Mysqlx.Expr.Expr param = 2;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder getParamOrBuilder(int index) {
if (this.paramBuilder_ == null) {
return this.param_.get(index);
} else {
return this.paramBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .Mysqlx.Expr.Expr param = 2;
*/
public java.util.List getParamOrBuilderList() {
if (this.paramBuilder_ != null) {
return this.paramBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(this.param_);
}
}
/**
* repeated .Mysqlx.Expr.Expr param = 2;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder addParamBuilder() {
return getParamFieldBuilder().addBuilder(com.mysql.cj.x.protobuf.MysqlxExpr.Expr.getDefaultInstance());
}
/**
* repeated .Mysqlx.Expr.Expr param = 2;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder addParamBuilder(int index) {
return getParamFieldBuilder().addBuilder(index, com.mysql.cj.x.protobuf.MysqlxExpr.Expr.getDefaultInstance());
}
/**
* repeated .Mysqlx.Expr.Expr param = 2;
*/
public java.util.List getParamBuilderList() {
return getParamFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3 getParamFieldBuilder() {
if (this.paramBuilder_ == null) {
this.paramBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<>(
this.param_, ((this.bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean());
this.param_ = null;
}
return this.paramBuilder_;
}
@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:Mysqlx.Expr.FunctionCall)
}
// @@protoc_insertion_point(class_scope:Mysqlx.Expr.FunctionCall)
private static final com.mysql.cj.x.protobuf.MysqlxExpr.FunctionCall DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.mysql.cj.x.protobuf.MysqlxExpr.FunctionCall();
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.FunctionCall getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated
public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FunctionCall parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new FunctionCall(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 com.mysql.cj.x.protobuf.MysqlxExpr.FunctionCall getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface OperatorOrBuilder extends
// @@protoc_insertion_point(interface_extends:Mysqlx.Expr.Operator)
com.google.protobuf.MessageOrBuilder {
/**
* required string name = 1;
*/
boolean hasName();
/**
* required string name = 1;
*/
java.lang.String getName();
/**
* required string name = 1;
*/
com.google.protobuf.ByteString getNameBytes();
/**
* repeated .Mysqlx.Expr.Expr param = 2;
*/
java.util.List getParamList();
/**
* repeated .Mysqlx.Expr.Expr param = 2;
*/
com.mysql.cj.x.protobuf.MysqlxExpr.Expr getParam(int index);
/**
* repeated .Mysqlx.Expr.Expr param = 2;
*/
int getParamCount();
/**
* repeated .Mysqlx.Expr.Expr param = 2;
*/
java.util.List getParamOrBuilderList();
/**
* repeated .Mysqlx.Expr.Expr param = 2;
*/
com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder getParamOrBuilder(int index);
}
/**
*
* operator: ``<<(a, b)``
* .. note::
* Non-authoritative list of operators implemented (case sensitive):
* Nullary
* * ``*``
* * ``default``
* Unary
* * ``!``
* * ``sign_plus``
* * ``sign_minus``
* * ``~``
* Binary
* * ``&&``
* * ``||``
* * ``xor``
* * ``==``
* * ``!=``
* * ``>``
* * ``>=``
* * ``<``
* * ``<=``
* * ``&``
* * ``|``
* * ``^``
* * ``<<``
* * ``>>``
* * ``+``
* * ``-``
* * ``*``
* * ``/``
* * ``div``
* * ``%``
* * ``is``
* * ``is_not``
* * ``regexp``
* * ``not_regexp``
* * ``like``
* * ``not_like``
* * ``cast``
* * ``cont_in``
* * ``not_cont_in``
* * ``overlaps``
* * ``not_overlaps``
* Using special representation, with more than 2 params
* * ``in`` (param[0] IN (param[1], param[2], ...))
* * ``not_in`` (param[0] NOT IN (param[1], param[2], ...))
* Ternary
* * ``between``
* * ``between_not``
* * ``date_add``
* * ``date_sub``
* Units for date_add/date_sub
* * ``MICROSECOND``
* * ``SECOND``
* * ``MINUTE``
* * ``HOUR``
* * ``DAY``
* * ``WEEK``
* * ``MONTH``
* * ``QUARTER``
* * ``YEAR``
* * ``SECOND_MICROSECOND``
* * ``MINUTE_MICROSECOND``
* * ``MINUTE_SECOND``
* * ``HOUR_MICROSECOND``
* * ``HOUR_SECOND``
* * ``HOUR_MINUTE``
* * ``DAY_MICROSECOND``
* * ``DAY_SECOND``
* * ``DAY_MINUTE``
* * ``DAY_HOUR``
* Types for cast
* * ``BINARY[(N)]``
* * ``CHAR[(N)]``
* * ``DATE``
* * ``DATETIME``
* * ``DECIMAL[(M[,D])]``
* * ``JSON``
* * ``SIGNED [INTEGER]``
* * ``TIME``
* * ``UNSIGNED [INTEGER]``
* .. productionlist::
* operator: `name` "(" [ `expr` ["," `expr` ]* ] ")"
*
*
* Protobuf type {@code Mysqlx.Expr.Operator}
*/
public static final class Operator extends com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Mysqlx.Expr.Operator)
OperatorOrBuilder {
private static final long serialVersionUID = 0L;
// Use Operator.newBuilder() to construct.
private Operator(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private Operator() {
this.name_ = "";
this.param_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private Operator(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: {
com.google.protobuf.ByteString bs = input.readBytes();
this.bitField0_ |= 0x00000001;
this.name_ = bs;
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
this.param_ = new java.util.ArrayList<>();
mutable_bitField0_ |= 0x00000002;
}
this.param_.add(input.readMessage(com.mysql.cj.x.protobuf.MysqlxExpr.Expr.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_ & 0x00000002) == 0x00000002)) {
this.param_ = java.util.Collections.unmodifiableList(this.param_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.mysql.cj.x.protobuf.MysqlxExpr.internal_static_Mysqlx_Expr_Operator_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
return com.mysql.cj.x.protobuf.MysqlxExpr.internal_static_Mysqlx_Expr_Operator_fieldAccessorTable.ensureFieldAccessorsInitialized(
com.mysql.cj.x.protobuf.MysqlxExpr.Operator.class, com.mysql.cj.x.protobuf.MysqlxExpr.Operator.Builder.class);
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
* required string name = 1;
*/
public boolean hasName() {
return ((this.bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = this.name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
this.name_ = s;
}
return s;
}
}
/**
* required string name = 1;
*/
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = this.name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
this.name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PARAM_FIELD_NUMBER = 2;
private java.util.List param_;
/**
* repeated .Mysqlx.Expr.Expr param = 2;
*/
public java.util.List getParamList() {
return this.param_;
}
/**
* repeated .Mysqlx.Expr.Expr param = 2;
*/
public java.util.List getParamOrBuilderList() {
return this.param_;
}
/**
* repeated .Mysqlx.Expr.Expr param = 2;
*/
public int getParamCount() {
return this.param_.size();
}
/**
* repeated .Mysqlx.Expr.Expr param = 2;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.Expr getParam(int index) {
return this.param_.get(index);
}
/**
* repeated .Mysqlx.Expr.Expr param = 2;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder getParamOrBuilder(int index) {
return this.param_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = this.memoizedIsInitialized;
if (isInitialized == 1) {
return true;
}
if (isInitialized == 0) {
return false;
}
if (!hasName()) {
this.memoizedIsInitialized = 0;
return false;
}
for (int i = 0; i < getParamCount(); i++) {
if (!getParam(i).isInitialized()) {
this.memoizedIsInitialized = 0;
return false;
}
}
this.memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (((this.bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, this.name_);
}
for (int i = 0; i < this.param_.size(); i++) {
output.writeMessage(2, this.param_.get(i));
}
this.unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = this.memoizedSize;
if (size != -1) {
return size;
}
size = 0;
if (((this.bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, this.name_);
}
for (int i = 0; i < this.param_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, this.param_.get(i));
}
size += this.unknownFields.getSerializedSize();
this.memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.mysql.cj.x.protobuf.MysqlxExpr.Operator)) {
return super.equals(obj);
}
com.mysql.cj.x.protobuf.MysqlxExpr.Operator other = (com.mysql.cj.x.protobuf.MysqlxExpr.Operator) obj;
boolean result = true;
result = result && (hasName() == other.hasName());
if (hasName()) {
result = result && getName().equals(other.getName());
}
result = result && getParamList().equals(other.getParamList());
result = result && this.unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (this.memoizedHashCode != 0) {
return this.memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasName()) {
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
}
if (getParamCount() > 0) {
hash = (37 * hash) + PARAM_FIELD_NUMBER;
hash = (53 * hash) + getParamList().hashCode();
}
hash = (29 * hash) + this.unknownFields.hashCode();
this.memoizedHashCode = hash;
return hash;
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.Operator parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.Operator parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.Operator parseFrom(com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.Operator parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.Operator parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.Operator parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.Operator parseFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.Operator 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.mysql.cj.x.protobuf.MysqlxExpr.Operator parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.Operator 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.mysql.cj.x.protobuf.MysqlxExpr.Operator parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.Operator 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(com.mysql.cj.x.protobuf.MysqlxExpr.Operator 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;
}
/**
*
* operator: ``<<(a, b)``
* .. note::
* Non-authoritative list of operators implemented (case sensitive):
* Nullary
* * ``*``
* * ``default``
* Unary
* * ``!``
* * ``sign_plus``
* * ``sign_minus``
* * ``~``
* Binary
* * ``&&``
* * ``||``
* * ``xor``
* * ``==``
* * ``!=``
* * ``>``
* * ``>=``
* * ``<``
* * ``<=``
* * ``&``
* * ``|``
* * ``^``
* * ``<<``
* * ``>>``
* * ``+``
* * ``-``
* * ``*``
* * ``/``
* * ``div``
* * ``%``
* * ``is``
* * ``is_not``
* * ``regexp``
* * ``not_regexp``
* * ``like``
* * ``not_like``
* * ``cast``
* * ``cont_in``
* * ``not_cont_in``
* * ``overlaps``
* * ``not_overlaps``
* Using special representation, with more than 2 params
* * ``in`` (param[0] IN (param[1], param[2], ...))
* * ``not_in`` (param[0] NOT IN (param[1], param[2], ...))
* Ternary
* * ``between``
* * ``between_not``
* * ``date_add``
* * ``date_sub``
* Units for date_add/date_sub
* * ``MICROSECOND``
* * ``SECOND``
* * ``MINUTE``
* * ``HOUR``
* * ``DAY``
* * ``WEEK``
* * ``MONTH``
* * ``QUARTER``
* * ``YEAR``
* * ``SECOND_MICROSECOND``
* * ``MINUTE_MICROSECOND``
* * ``MINUTE_SECOND``
* * ``HOUR_MICROSECOND``
* * ``HOUR_SECOND``
* * ``HOUR_MINUTE``
* * ``DAY_MICROSECOND``
* * ``DAY_SECOND``
* * ``DAY_MINUTE``
* * ``DAY_HOUR``
* Types for cast
* * ``BINARY[(N)]``
* * ``CHAR[(N)]``
* * ``DATE``
* * ``DATETIME``
* * ``DECIMAL[(M[,D])]``
* * ``JSON``
* * ``SIGNED [INTEGER]``
* * ``TIME``
* * ``UNSIGNED [INTEGER]``
* .. productionlist::
* operator: `name` "(" [ `expr` ["," `expr` ]* ] ")"
*
*
* Protobuf type {@code Mysqlx.Expr.Operator}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Mysqlx.Expr.Operator)
com.mysql.cj.x.protobuf.MysqlxExpr.OperatorOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.mysql.cj.x.protobuf.MysqlxExpr.internal_static_Mysqlx_Expr_Operator_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
return com.mysql.cj.x.protobuf.MysqlxExpr.internal_static_Mysqlx_Expr_Operator_fieldAccessorTable.ensureFieldAccessorsInitialized(
com.mysql.cj.x.protobuf.MysqlxExpr.Operator.class, com.mysql.cj.x.protobuf.MysqlxExpr.Operator.Builder.class);
}
// Construct using com.mysql.cj.x.protobuf.MysqlxExpr.Operator.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getParamFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
this.name_ = "";
this.bitField0_ = (this.bitField0_ & ~0x00000001);
if (this.paramBuilder_ == null) {
this.param_ = java.util.Collections.emptyList();
this.bitField0_ = (this.bitField0_ & ~0x00000002);
} else {
this.paramBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.mysql.cj.x.protobuf.MysqlxExpr.internal_static_Mysqlx_Expr_Operator_descriptor;
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxExpr.Operator getDefaultInstanceForType() {
return com.mysql.cj.x.protobuf.MysqlxExpr.Operator.getDefaultInstance();
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxExpr.Operator build() {
com.mysql.cj.x.protobuf.MysqlxExpr.Operator result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxExpr.Operator buildPartial() {
com.mysql.cj.x.protobuf.MysqlxExpr.Operator result = new com.mysql.cj.x.protobuf.MysqlxExpr.Operator(this);
int from_bitField0_ = this.bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.name_ = this.name_;
if (this.paramBuilder_ == null) {
if (((this.bitField0_ & 0x00000002) == 0x00000002)) {
this.param_ = java.util.Collections.unmodifiableList(this.param_);
this.bitField0_ = (this.bitField0_ & ~0x00000002);
}
result.param_ = this.param_;
} else {
result.param_ = this.paramBuilder_.build();
}
result.bitField0_ = to_bitField0_;
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 com.mysql.cj.x.protobuf.MysqlxExpr.Operator) {
return mergeFrom((com.mysql.cj.x.protobuf.MysqlxExpr.Operator) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.mysql.cj.x.protobuf.MysqlxExpr.Operator other) {
if (other == com.mysql.cj.x.protobuf.MysqlxExpr.Operator.getDefaultInstance()) {
return this;
}
if (other.hasName()) {
this.bitField0_ |= 0x00000001;
this.name_ = other.name_;
onChanged();
}
if (this.paramBuilder_ == null) {
if (!other.param_.isEmpty()) {
if (this.param_.isEmpty()) {
this.param_ = other.param_;
this.bitField0_ = (this.bitField0_ & ~0x00000002);
} else {
ensureParamIsMutable();
this.param_.addAll(other.param_);
}
onChanged();
}
} else {
if (!other.param_.isEmpty()) {
if (this.paramBuilder_.isEmpty()) {
this.paramBuilder_.dispose();
this.paramBuilder_ = null;
this.param_ = other.param_;
this.bitField0_ = (this.bitField0_ & ~0x00000002);
this.paramBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getParamFieldBuilder() : null;
} else {
this.paramBuilder_.addAllMessages(other.param_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasName()) {
return false;
}
for (int i = 0; i < getParamCount(); i++) {
if (!getParam(i).isInitialized()) {
return false;
}
}
return true;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.mysql.cj.x.protobuf.MysqlxExpr.Operator parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.mysql.cj.x.protobuf.MysqlxExpr.Operator) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
* required string name = 1;
*/
public boolean hasName() {
return ((this.bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = this.name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
this.name_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string name = 1;
*/
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = this.name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
this.name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string name = 1;
*/
public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
this.bitField0_ |= 0x00000001;
this.name_ = value;
onChanged();
return this;
}
/**
* required string name = 1;
*/
public Builder clearName() {
this.bitField0_ = (this.bitField0_ & ~0x00000001);
this.name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* required string name = 1;
*/
public Builder setNameBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
this.bitField0_ |= 0x00000001;
this.name_ = value;
onChanged();
return this;
}
private java.util.List param_ = java.util.Collections.emptyList();
private void ensureParamIsMutable() {
if (!((this.bitField0_ & 0x00000002) == 0x00000002)) {
this.param_ = new java.util.ArrayList<>(this.param_);
this.bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3 paramBuilder_;
/**
* repeated .Mysqlx.Expr.Expr param = 2;
*/
public java.util.List getParamList() {
if (this.paramBuilder_ == null) {
return java.util.Collections.unmodifiableList(this.param_);
} else {
return this.paramBuilder_.getMessageList();
}
}
/**
* repeated .Mysqlx.Expr.Expr param = 2;
*/
public int getParamCount() {
if (this.paramBuilder_ == null) {
return this.param_.size();
} else {
return this.paramBuilder_.getCount();
}
}
/**
* repeated .Mysqlx.Expr.Expr param = 2;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.Expr getParam(int index) {
if (this.paramBuilder_ == null) {
return this.param_.get(index);
} else {
return this.paramBuilder_.getMessage(index);
}
}
/**
* repeated .Mysqlx.Expr.Expr param = 2;
*/
public Builder setParam(int index, com.mysql.cj.x.protobuf.MysqlxExpr.Expr value) {
if (this.paramBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureParamIsMutable();
this.param_.set(index, value);
onChanged();
} else {
this.paramBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .Mysqlx.Expr.Expr param = 2;
*/
public Builder setParam(int index, com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder builderForValue) {
if (this.paramBuilder_ == null) {
ensureParamIsMutable();
this.param_.set(index, builderForValue.build());
onChanged();
} else {
this.paramBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Mysqlx.Expr.Expr param = 2;
*/
public Builder addParam(com.mysql.cj.x.protobuf.MysqlxExpr.Expr value) {
if (this.paramBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureParamIsMutable();
this.param_.add(value);
onChanged();
} else {
this.paramBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .Mysqlx.Expr.Expr param = 2;
*/
public Builder addParam(int index, com.mysql.cj.x.protobuf.MysqlxExpr.Expr value) {
if (this.paramBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureParamIsMutable();
this.param_.add(index, value);
onChanged();
} else {
this.paramBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .Mysqlx.Expr.Expr param = 2;
*/
public Builder addParam(com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder builderForValue) {
if (this.paramBuilder_ == null) {
ensureParamIsMutable();
this.param_.add(builderForValue.build());
onChanged();
} else {
this.paramBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .Mysqlx.Expr.Expr param = 2;
*/
public Builder addParam(int index, com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder builderForValue) {
if (this.paramBuilder_ == null) {
ensureParamIsMutable();
this.param_.add(index, builderForValue.build());
onChanged();
} else {
this.paramBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Mysqlx.Expr.Expr param = 2;
*/
public Builder addAllParam(java.lang.Iterable values) {
if (this.paramBuilder_ == null) {
ensureParamIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, this.param_);
onChanged();
} else {
this.paramBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .Mysqlx.Expr.Expr param = 2;
*/
public Builder clearParam() {
if (this.paramBuilder_ == null) {
this.param_ = java.util.Collections.emptyList();
this.bitField0_ = (this.bitField0_ & ~0x00000002);
onChanged();
} else {
this.paramBuilder_.clear();
}
return this;
}
/**
* repeated .Mysqlx.Expr.Expr param = 2;
*/
public Builder removeParam(int index) {
if (this.paramBuilder_ == null) {
ensureParamIsMutable();
this.param_.remove(index);
onChanged();
} else {
this.paramBuilder_.remove(index);
}
return this;
}
/**
* repeated .Mysqlx.Expr.Expr param = 2;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder getParamBuilder(int index) {
return getParamFieldBuilder().getBuilder(index);
}
/**
* repeated .Mysqlx.Expr.Expr param = 2;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder getParamOrBuilder(int index) {
if (this.paramBuilder_ == null) {
return this.param_.get(index);
} else {
return this.paramBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .Mysqlx.Expr.Expr param = 2;
*/
public java.util.List getParamOrBuilderList() {
if (this.paramBuilder_ != null) {
return this.paramBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(this.param_);
}
}
/**
* repeated .Mysqlx.Expr.Expr param = 2;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder addParamBuilder() {
return getParamFieldBuilder().addBuilder(com.mysql.cj.x.protobuf.MysqlxExpr.Expr.getDefaultInstance());
}
/**
* repeated .Mysqlx.Expr.Expr param = 2;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder addParamBuilder(int index) {
return getParamFieldBuilder().addBuilder(index, com.mysql.cj.x.protobuf.MysqlxExpr.Expr.getDefaultInstance());
}
/**
* repeated .Mysqlx.Expr.Expr param = 2;
*/
public java.util.List getParamBuilderList() {
return getParamFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3 getParamFieldBuilder() {
if (this.paramBuilder_ == null) {
this.paramBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<>(
this.param_, ((this.bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean());
this.param_ = null;
}
return this.paramBuilder_;
}
@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:Mysqlx.Expr.Operator)
}
// @@protoc_insertion_point(class_scope:Mysqlx.Expr.Operator)
private static final com.mysql.cj.x.protobuf.MysqlxExpr.Operator DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.mysql.cj.x.protobuf.MysqlxExpr.Operator();
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.Operator getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated
public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Operator parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Operator(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 com.mysql.cj.x.protobuf.MysqlxExpr.Operator getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ObjectOrBuilder extends
// @@protoc_insertion_point(interface_extends:Mysqlx.Expr.Object)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .Mysqlx.Expr.Object.ObjectField fld = 1;
*/
java.util.List getFldList();
/**
* repeated .Mysqlx.Expr.Object.ObjectField fld = 1;
*/
com.mysql.cj.x.protobuf.MysqlxExpr.Object.ObjectField getFld(int index);
/**
* repeated .Mysqlx.Expr.Object.ObjectField fld = 1;
*/
int getFldCount();
/**
* repeated .Mysqlx.Expr.Object.ObjectField fld = 1;
*/
java.util.List getFldOrBuilderList();
/**
* repeated .Mysqlx.Expr.Object.ObjectField fld = 1;
*/
com.mysql.cj.x.protobuf.MysqlxExpr.Object.ObjectFieldOrBuilder getFldOrBuilder(int index);
}
/**
*
* an object (with expression values)
*
*
* Protobuf type {@code Mysqlx.Expr.Object}
*/
public static final class Object extends com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Mysqlx.Expr.Object)
ObjectOrBuilder {
private static final long serialVersionUID = 0L;
// Use Object.newBuilder() to construct.
private Object(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private Object() {
this.fld_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private Object(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) == 0x00000001)) {
this.fld_ = new java.util.ArrayList<>();
mutable_bitField0_ |= 0x00000001;
}
this.fld_.add(input.readMessage(com.mysql.cj.x.protobuf.MysqlxExpr.Object.ObjectField.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) == 0x00000001)) {
this.fld_ = java.util.Collections.unmodifiableList(this.fld_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.mysql.cj.x.protobuf.MysqlxExpr.internal_static_Mysqlx_Expr_Object_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
return com.mysql.cj.x.protobuf.MysqlxExpr.internal_static_Mysqlx_Expr_Object_fieldAccessorTable
.ensureFieldAccessorsInitialized(com.mysql.cj.x.protobuf.MysqlxExpr.Object.class, com.mysql.cj.x.protobuf.MysqlxExpr.Object.Builder.class);
}
public interface ObjectFieldOrBuilder extends
// @@protoc_insertion_point(interface_extends:Mysqlx.Expr.Object.ObjectField)
com.google.protobuf.MessageOrBuilder {
/**
* required string key = 1;
*/
boolean hasKey();
/**
* required string key = 1;
*/
java.lang.String getKey();
/**
* required string key = 1;
*/
com.google.protobuf.ByteString getKeyBytes();
/**
* required .Mysqlx.Expr.Expr value = 2;
*/
boolean hasValue();
/**
* required .Mysqlx.Expr.Expr value = 2;
*/
com.mysql.cj.x.protobuf.MysqlxExpr.Expr getValue();
/**
* required .Mysqlx.Expr.Expr value = 2;
*/
com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder getValueOrBuilder();
}
/**
* Protobuf type {@code Mysqlx.Expr.Object.ObjectField}
*/
public static final class ObjectField extends com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Mysqlx.Expr.Object.ObjectField)
ObjectFieldOrBuilder {
private static final long serialVersionUID = 0L;
// Use ObjectField.newBuilder() to construct.
private ObjectField(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private ObjectField() {
this.key_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private ObjectField(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: {
com.google.protobuf.ByteString bs = input.readBytes();
this.bitField0_ |= 0x00000001;
this.key_ = bs;
break;
}
case 18: {
com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder subBuilder = null;
if (((this.bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = this.value_.toBuilder();
}
this.value_ = input.readMessage(com.mysql.cj.x.protobuf.MysqlxExpr.Expr.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(this.value_);
this.value_ = subBuilder.buildPartial();
}
this.bitField0_ |= 0x00000002;
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 com.mysql.cj.x.protobuf.MysqlxExpr.internal_static_Mysqlx_Expr_Object_ObjectField_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
return com.mysql.cj.x.protobuf.MysqlxExpr.internal_static_Mysqlx_Expr_Object_ObjectField_fieldAccessorTable.ensureFieldAccessorsInitialized(
com.mysql.cj.x.protobuf.MysqlxExpr.Object.ObjectField.class, com.mysql.cj.x.protobuf.MysqlxExpr.Object.ObjectField.Builder.class);
}
private int bitField0_;
public static final int KEY_FIELD_NUMBER = 1;
private volatile java.lang.Object key_;
/**
* required string key = 1;
*/
public boolean hasKey() {
return ((this.bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string key = 1;
*/
public java.lang.String getKey() {
java.lang.Object ref = this.key_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
this.key_ = s;
}
return s;
}
}
/**
* required string key = 1;
*/
public com.google.protobuf.ByteString getKeyBytes() {
java.lang.Object ref = this.key_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
this.key_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VALUE_FIELD_NUMBER = 2;
private com.mysql.cj.x.protobuf.MysqlxExpr.Expr value_;
/**
* required .Mysqlx.Expr.Expr value = 2;
*/
public boolean hasValue() {
return ((this.bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required .Mysqlx.Expr.Expr value = 2;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.Expr getValue() {
return this.value_ == null ? com.mysql.cj.x.protobuf.MysqlxExpr.Expr.getDefaultInstance() : this.value_;
}
/**
* required .Mysqlx.Expr.Expr value = 2;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder getValueOrBuilder() {
return this.value_ == null ? com.mysql.cj.x.protobuf.MysqlxExpr.Expr.getDefaultInstance() : this.value_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = this.memoizedIsInitialized;
if (isInitialized == 1) {
return true;
}
if (isInitialized == 0) {
return false;
}
if (!hasKey()) {
this.memoizedIsInitialized = 0;
return false;
}
if (!hasValue()) {
this.memoizedIsInitialized = 0;
return false;
}
if (!getValue().isInitialized()) {
this.memoizedIsInitialized = 0;
return false;
}
this.memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (((this.bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, this.key_);
}
if (((this.bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, getValue());
}
this.unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = this.memoizedSize;
if (size != -1) {
return size;
}
size = 0;
if (((this.bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, this.key_);
}
if (((this.bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getValue());
}
size += this.unknownFields.getSerializedSize();
this.memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.mysql.cj.x.protobuf.MysqlxExpr.Object.ObjectField)) {
return super.equals(obj);
}
com.mysql.cj.x.protobuf.MysqlxExpr.Object.ObjectField other = (com.mysql.cj.x.protobuf.MysqlxExpr.Object.ObjectField) obj;
boolean result = true;
result = result && (hasKey() == other.hasKey());
if (hasKey()) {
result = result && getKey().equals(other.getKey());
}
result = result && (hasValue() == other.hasValue());
if (hasValue()) {
result = result && getValue().equals(other.getValue());
}
result = result && this.unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (this.memoizedHashCode != 0) {
return this.memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasKey()) {
hash = (37 * hash) + KEY_FIELD_NUMBER;
hash = (53 * hash) + getKey().hashCode();
}
if (hasValue()) {
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
}
hash = (29 * hash) + this.unknownFields.hashCode();
this.memoizedHashCode = hash;
return hash;
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.Object.ObjectField parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.Object.ObjectField parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.Object.ObjectField parseFrom(com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.Object.ObjectField parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.Object.ObjectField parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.Object.ObjectField parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.Object.ObjectField parseFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.Object.ObjectField 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.mysql.cj.x.protobuf.MysqlxExpr.Object.ObjectField parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.Object.ObjectField 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.mysql.cj.x.protobuf.MysqlxExpr.Object.ObjectField parseFrom(com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.Object.ObjectField 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(com.mysql.cj.x.protobuf.MysqlxExpr.Object.ObjectField 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 Mysqlx.Expr.Object.ObjectField}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Mysqlx.Expr.Object.ObjectField)
com.mysql.cj.x.protobuf.MysqlxExpr.Object.ObjectFieldOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.mysql.cj.x.protobuf.MysqlxExpr.internal_static_Mysqlx_Expr_Object_ObjectField_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
return com.mysql.cj.x.protobuf.MysqlxExpr.internal_static_Mysqlx_Expr_Object_ObjectField_fieldAccessorTable.ensureFieldAccessorsInitialized(
com.mysql.cj.x.protobuf.MysqlxExpr.Object.ObjectField.class, com.mysql.cj.x.protobuf.MysqlxExpr.Object.ObjectField.Builder.class);
}
// Construct using com.mysql.cj.x.protobuf.MysqlxExpr.Object.ObjectField.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getValueFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
this.key_ = "";
this.bitField0_ = (this.bitField0_ & ~0x00000001);
if (this.valueBuilder_ == null) {
this.value_ = null;
} else {
this.valueBuilder_.clear();
}
this.bitField0_ = (this.bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.mysql.cj.x.protobuf.MysqlxExpr.internal_static_Mysqlx_Expr_Object_ObjectField_descriptor;
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxExpr.Object.ObjectField getDefaultInstanceForType() {
return com.mysql.cj.x.protobuf.MysqlxExpr.Object.ObjectField.getDefaultInstance();
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxExpr.Object.ObjectField build() {
com.mysql.cj.x.protobuf.MysqlxExpr.Object.ObjectField result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxExpr.Object.ObjectField buildPartial() {
com.mysql.cj.x.protobuf.MysqlxExpr.Object.ObjectField result = new com.mysql.cj.x.protobuf.MysqlxExpr.Object.ObjectField(this);
int from_bitField0_ = this.bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.key_ = this.key_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (this.valueBuilder_ == null) {
result.value_ = this.value_;
} else {
result.value_ = this.valueBuilder_.build();
}
result.bitField0_ = to_bitField0_;
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 com.mysql.cj.x.protobuf.MysqlxExpr.Object.ObjectField) {
return mergeFrom((com.mysql.cj.x.protobuf.MysqlxExpr.Object.ObjectField) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.mysql.cj.x.protobuf.MysqlxExpr.Object.ObjectField other) {
if (other == com.mysql.cj.x.protobuf.MysqlxExpr.Object.ObjectField.getDefaultInstance()) {
return this;
}
if (other.hasKey()) {
this.bitField0_ |= 0x00000001;
this.key_ = other.key_;
onChanged();
}
if (other.hasValue()) {
mergeValue(other.getValue());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasKey()) {
return false;
}
if (!hasValue()) {
return false;
}
if (!getValue().isInitialized()) {
return false;
}
return true;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.mysql.cj.x.protobuf.MysqlxExpr.Object.ObjectField parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.mysql.cj.x.protobuf.MysqlxExpr.Object.ObjectField) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object key_ = "";
/**
* required string key = 1;
*/
public boolean hasKey() {
return ((this.bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string key = 1;
*/
public java.lang.String getKey() {
java.lang.Object ref = this.key_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
this.key_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string key = 1;
*/
public com.google.protobuf.ByteString getKeyBytes() {
java.lang.Object ref = this.key_;
if (ref instanceof String) {
com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
this.key_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string key = 1;
*/
public Builder setKey(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
this.bitField0_ |= 0x00000001;
this.key_ = value;
onChanged();
return this;
}
/**
* required string key = 1;
*/
public Builder clearKey() {
this.bitField0_ = (this.bitField0_ & ~0x00000001);
this.key_ = getDefaultInstance().getKey();
onChanged();
return this;
}
/**
* required string key = 1;
*/
public Builder setKeyBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
this.bitField0_ |= 0x00000001;
this.key_ = value;
onChanged();
return this;
}
private com.mysql.cj.x.protobuf.MysqlxExpr.Expr value_ = null;
private com.google.protobuf.SingleFieldBuilderV3 valueBuilder_;
/**
* required .Mysqlx.Expr.Expr value = 2;
*/
public boolean hasValue() {
return ((this.bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required .Mysqlx.Expr.Expr value = 2;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.Expr getValue() {
if (this.valueBuilder_ == null) {
return this.value_ == null ? com.mysql.cj.x.protobuf.MysqlxExpr.Expr.getDefaultInstance() : this.value_;
} else {
return this.valueBuilder_.getMessage();
}
}
/**
* required .Mysqlx.Expr.Expr value = 2;
*/
public Builder setValue(com.mysql.cj.x.protobuf.MysqlxExpr.Expr value) {
if (this.valueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
this.value_ = value;
onChanged();
} else {
this.valueBuilder_.setMessage(value);
}
this.bitField0_ |= 0x00000002;
return this;
}
/**
* required .Mysqlx.Expr.Expr value = 2;
*/
public Builder setValue(com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder builderForValue) {
if (this.valueBuilder_ == null) {
this.value_ = builderForValue.build();
onChanged();
} else {
this.valueBuilder_.setMessage(builderForValue.build());
}
this.bitField0_ |= 0x00000002;
return this;
}
/**
* required .Mysqlx.Expr.Expr value = 2;
*/
public Builder mergeValue(com.mysql.cj.x.protobuf.MysqlxExpr.Expr value) {
if (this.valueBuilder_ == null) {
if (((this.bitField0_ & 0x00000002) == 0x00000002) && this.value_ != null
&& this.value_ != com.mysql.cj.x.protobuf.MysqlxExpr.Expr.getDefaultInstance()) {
this.value_ = com.mysql.cj.x.protobuf.MysqlxExpr.Expr.newBuilder(this.value_).mergeFrom(value).buildPartial();
} else {
this.value_ = value;
}
onChanged();
} else {
this.valueBuilder_.mergeFrom(value);
}
this.bitField0_ |= 0x00000002;
return this;
}
/**
* required .Mysqlx.Expr.Expr value = 2;
*/
public Builder clearValue() {
if (this.valueBuilder_ == null) {
this.value_ = null;
onChanged();
} else {
this.valueBuilder_.clear();
}
this.bitField0_ = (this.bitField0_ & ~0x00000002);
return this;
}
/**
* required .Mysqlx.Expr.Expr value = 2;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder getValueBuilder() {
this.bitField0_ |= 0x00000002;
onChanged();
return getValueFieldBuilder().getBuilder();
}
/**
* required .Mysqlx.Expr.Expr value = 2;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder getValueOrBuilder() {
if (this.valueBuilder_ != null) {
return this.valueBuilder_.getMessageOrBuilder();
} else {
return this.value_ == null ? com.mysql.cj.x.protobuf.MysqlxExpr.Expr.getDefaultInstance() : this.value_;
}
}
/**
* required .Mysqlx.Expr.Expr value = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3 getValueFieldBuilder() {
if (this.valueBuilder_ == null) {
this.valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<>(
getValue(), getParentForChildren(), isClean());
this.value_ = null;
}
return this.valueBuilder_;
}
@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:Mysqlx.Expr.Object.ObjectField)
}
// @@protoc_insertion_point(class_scope:Mysqlx.Expr.Object.ObjectField)
private static final com.mysql.cj.x.protobuf.MysqlxExpr.Object.ObjectField DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.mysql.cj.x.protobuf.MysqlxExpr.Object.ObjectField();
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.Object.ObjectField getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated
public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ObjectField parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ObjectField(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 com.mysql.cj.x.protobuf.MysqlxExpr.Object.ObjectField getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int FLD_FIELD_NUMBER = 1;
private java.util.List fld_;
/**
* repeated .Mysqlx.Expr.Object.ObjectField fld = 1;
*/
public java.util.List getFldList() {
return this.fld_;
}
/**
* repeated .Mysqlx.Expr.Object.ObjectField fld = 1;
*/
public java.util.List getFldOrBuilderList() {
return this.fld_;
}
/**
* repeated .Mysqlx.Expr.Object.ObjectField fld = 1;
*/
public int getFldCount() {
return this.fld_.size();
}
/**
* repeated .Mysqlx.Expr.Object.ObjectField fld = 1;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.Object.ObjectField getFld(int index) {
return this.fld_.get(index);
}
/**
* repeated .Mysqlx.Expr.Object.ObjectField fld = 1;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.Object.ObjectFieldOrBuilder getFldOrBuilder(int index) {
return this.fld_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = this.memoizedIsInitialized;
if (isInitialized == 1) {
return true;
}
if (isInitialized == 0) {
return false;
}
for (int i = 0; i < getFldCount(); i++) {
if (!getFld(i).isInitialized()) {
this.memoizedIsInitialized = 0;
return false;
}
}
this.memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
for (int i = 0; i < this.fld_.size(); i++) {
output.writeMessage(1, this.fld_.get(i));
}
this.unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = this.memoizedSize;
if (size != -1) {
return size;
}
size = 0;
for (int i = 0; i < this.fld_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, this.fld_.get(i));
}
size += this.unknownFields.getSerializedSize();
this.memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.mysql.cj.x.protobuf.MysqlxExpr.Object)) {
return super.equals(obj);
}
com.mysql.cj.x.protobuf.MysqlxExpr.Object other = (com.mysql.cj.x.protobuf.MysqlxExpr.Object) obj;
boolean result = true;
result = result && getFldList().equals(other.getFldList());
result = result && this.unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (this.memoizedHashCode != 0) {
return this.memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getFldCount() > 0) {
hash = (37 * hash) + FLD_FIELD_NUMBER;
hash = (53 * hash) + getFldList().hashCode();
}
hash = (29 * hash) + this.unknownFields.hashCode();
this.memoizedHashCode = hash;
return hash;
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.Object parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.Object parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.Object parseFrom(com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.Object parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.Object parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.Object parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.Object parseFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.Object 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.mysql.cj.x.protobuf.MysqlxExpr.Object parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.Object 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.mysql.cj.x.protobuf.MysqlxExpr.Object parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.Object 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(com.mysql.cj.x.protobuf.MysqlxExpr.Object 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;
}
/**
*
* an object (with expression values)
*
*
* Protobuf type {@code Mysqlx.Expr.Object}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Mysqlx.Expr.Object)
com.mysql.cj.x.protobuf.MysqlxExpr.ObjectOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.mysql.cj.x.protobuf.MysqlxExpr.internal_static_Mysqlx_Expr_Object_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
return com.mysql.cj.x.protobuf.MysqlxExpr.internal_static_Mysqlx_Expr_Object_fieldAccessorTable.ensureFieldAccessorsInitialized(
com.mysql.cj.x.protobuf.MysqlxExpr.Object.class, com.mysql.cj.x.protobuf.MysqlxExpr.Object.Builder.class);
}
// Construct using com.mysql.cj.x.protobuf.MysqlxExpr.Object.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getFldFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (this.fldBuilder_ == null) {
this.fld_ = java.util.Collections.emptyList();
this.bitField0_ = (this.bitField0_ & ~0x00000001);
} else {
this.fldBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.mysql.cj.x.protobuf.MysqlxExpr.internal_static_Mysqlx_Expr_Object_descriptor;
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxExpr.Object getDefaultInstanceForType() {
return com.mysql.cj.x.protobuf.MysqlxExpr.Object.getDefaultInstance();
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxExpr.Object build() {
com.mysql.cj.x.protobuf.MysqlxExpr.Object result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxExpr.Object buildPartial() {
com.mysql.cj.x.protobuf.MysqlxExpr.Object result = new com.mysql.cj.x.protobuf.MysqlxExpr.Object(this);
int from_bitField0_ = this.bitField0_;
if (this.fldBuilder_ == null) {
if (((this.bitField0_ & 0x00000001) == 0x00000001)) {
this.fld_ = java.util.Collections.unmodifiableList(this.fld_);
this.bitField0_ = (this.bitField0_ & ~0x00000001);
}
result.fld_ = this.fld_;
} else {
result.fld_ = this.fldBuilder_.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 com.mysql.cj.x.protobuf.MysqlxExpr.Object) {
return mergeFrom((com.mysql.cj.x.protobuf.MysqlxExpr.Object) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.mysql.cj.x.protobuf.MysqlxExpr.Object other) {
if (other == com.mysql.cj.x.protobuf.MysqlxExpr.Object.getDefaultInstance()) {
return this;
}
if (this.fldBuilder_ == null) {
if (!other.fld_.isEmpty()) {
if (this.fld_.isEmpty()) {
this.fld_ = other.fld_;
this.bitField0_ = (this.bitField0_ & ~0x00000001);
} else {
ensureFldIsMutable();
this.fld_.addAll(other.fld_);
}
onChanged();
}
} else {
if (!other.fld_.isEmpty()) {
if (this.fldBuilder_.isEmpty()) {
this.fldBuilder_.dispose();
this.fldBuilder_ = null;
this.fld_ = other.fld_;
this.bitField0_ = (this.bitField0_ & ~0x00000001);
this.fldBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFldFieldBuilder() : null;
} else {
this.fldBuilder_.addAllMessages(other.fld_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
for (int i = 0; i < getFldCount(); i++) {
if (!getFld(i).isInitialized()) {
return false;
}
}
return true;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.mysql.cj.x.protobuf.MysqlxExpr.Object parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.mysql.cj.x.protobuf.MysqlxExpr.Object) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List fld_ = java.util.Collections.emptyList();
private void ensureFldIsMutable() {
if (!((this.bitField0_ & 0x00000001) == 0x00000001)) {
this.fld_ = new java.util.ArrayList<>(this.fld_);
this.bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3 fldBuilder_;
/**
* repeated .Mysqlx.Expr.Object.ObjectField fld = 1;
*/
public java.util.List getFldList() {
if (this.fldBuilder_ == null) {
return java.util.Collections.unmodifiableList(this.fld_);
} else {
return this.fldBuilder_.getMessageList();
}
}
/**
* repeated .Mysqlx.Expr.Object.ObjectField fld = 1;
*/
public int getFldCount() {
if (this.fldBuilder_ == null) {
return this.fld_.size();
} else {
return this.fldBuilder_.getCount();
}
}
/**
* repeated .Mysqlx.Expr.Object.ObjectField fld = 1;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.Object.ObjectField getFld(int index) {
if (this.fldBuilder_ == null) {
return this.fld_.get(index);
} else {
return this.fldBuilder_.getMessage(index);
}
}
/**
* repeated .Mysqlx.Expr.Object.ObjectField fld = 1;
*/
public Builder setFld(int index, com.mysql.cj.x.protobuf.MysqlxExpr.Object.ObjectField value) {
if (this.fldBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFldIsMutable();
this.fld_.set(index, value);
onChanged();
} else {
this.fldBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .Mysqlx.Expr.Object.ObjectField fld = 1;
*/
public Builder setFld(int index, com.mysql.cj.x.protobuf.MysqlxExpr.Object.ObjectField.Builder builderForValue) {
if (this.fldBuilder_ == null) {
ensureFldIsMutable();
this.fld_.set(index, builderForValue.build());
onChanged();
} else {
this.fldBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Mysqlx.Expr.Object.ObjectField fld = 1;
*/
public Builder addFld(com.mysql.cj.x.protobuf.MysqlxExpr.Object.ObjectField value) {
if (this.fldBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFldIsMutable();
this.fld_.add(value);
onChanged();
} else {
this.fldBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .Mysqlx.Expr.Object.ObjectField fld = 1;
*/
public Builder addFld(int index, com.mysql.cj.x.protobuf.MysqlxExpr.Object.ObjectField value) {
if (this.fldBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFldIsMutable();
this.fld_.add(index, value);
onChanged();
} else {
this.fldBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .Mysqlx.Expr.Object.ObjectField fld = 1;
*/
public Builder addFld(com.mysql.cj.x.protobuf.MysqlxExpr.Object.ObjectField.Builder builderForValue) {
if (this.fldBuilder_ == null) {
ensureFldIsMutable();
this.fld_.add(builderForValue.build());
onChanged();
} else {
this.fldBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .Mysqlx.Expr.Object.ObjectField fld = 1;
*/
public Builder addFld(int index, com.mysql.cj.x.protobuf.MysqlxExpr.Object.ObjectField.Builder builderForValue) {
if (this.fldBuilder_ == null) {
ensureFldIsMutable();
this.fld_.add(index, builderForValue.build());
onChanged();
} else {
this.fldBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Mysqlx.Expr.Object.ObjectField fld = 1;
*/
public Builder addAllFld(java.lang.Iterable values) {
if (this.fldBuilder_ == null) {
ensureFldIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, this.fld_);
onChanged();
} else {
this.fldBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .Mysqlx.Expr.Object.ObjectField fld = 1;
*/
public Builder clearFld() {
if (this.fldBuilder_ == null) {
this.fld_ = java.util.Collections.emptyList();
this.bitField0_ = (this.bitField0_ & ~0x00000001);
onChanged();
} else {
this.fldBuilder_.clear();
}
return this;
}
/**
* repeated .Mysqlx.Expr.Object.ObjectField fld = 1;
*/
public Builder removeFld(int index) {
if (this.fldBuilder_ == null) {
ensureFldIsMutable();
this.fld_.remove(index);
onChanged();
} else {
this.fldBuilder_.remove(index);
}
return this;
}
/**
* repeated .Mysqlx.Expr.Object.ObjectField fld = 1;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.Object.ObjectField.Builder getFldBuilder(int index) {
return getFldFieldBuilder().getBuilder(index);
}
/**
* repeated .Mysqlx.Expr.Object.ObjectField fld = 1;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.Object.ObjectFieldOrBuilder getFldOrBuilder(int index) {
if (this.fldBuilder_ == null) {
return this.fld_.get(index);
} else {
return this.fldBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .Mysqlx.Expr.Object.ObjectField fld = 1;
*/
public java.util.List getFldOrBuilderList() {
if (this.fldBuilder_ != null) {
return this.fldBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(this.fld_);
}
}
/**
* repeated .Mysqlx.Expr.Object.ObjectField fld = 1;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.Object.ObjectField.Builder addFldBuilder() {
return getFldFieldBuilder().addBuilder(com.mysql.cj.x.protobuf.MysqlxExpr.Object.ObjectField.getDefaultInstance());
}
/**
* repeated .Mysqlx.Expr.Object.ObjectField fld = 1;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.Object.ObjectField.Builder addFldBuilder(int index) {
return getFldFieldBuilder().addBuilder(index, com.mysql.cj.x.protobuf.MysqlxExpr.Object.ObjectField.getDefaultInstance());
}
/**
* repeated .Mysqlx.Expr.Object.ObjectField fld = 1;
*/
public java.util.List getFldBuilderList() {
return getFldFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3 getFldFieldBuilder() {
if (this.fldBuilder_ == null) {
this.fldBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<>(
this.fld_, ((this.bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean());
this.fld_ = null;
}
return this.fldBuilder_;
}
@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:Mysqlx.Expr.Object)
}
// @@protoc_insertion_point(class_scope:Mysqlx.Expr.Object)
private static final com.mysql.cj.x.protobuf.MysqlxExpr.Object DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.mysql.cj.x.protobuf.MysqlxExpr.Object();
}
public static com.mysql.cj.x.protobuf.MysqlxExpr.Object getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated
public static final com.google.protobuf.Parser