Package com.mysql.cj.x.protobuf
Class MysqlxExpr.Expr
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.mysql.cj.x.protobuf.MysqlxExpr.Expr
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,MysqlxExpr.ExprOrBuilder,java.io.Serializable
- Enclosing class:
- MysqlxExpr
public static final class MysqlxExpr.Expr extends com.google.protobuf.GeneratedMessageV3 implements MysqlxExpr.ExprOrBuilder
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 Mysqlx.Expr.Expr- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMysqlxExpr.Expr.BuilderExpressions the "root" of the expression tree ..static classMysqlxExpr.Expr.TypeProtobuf enumMysqlx.Expr.Expr.TypeNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter -
Field Summary
Fields Modifier and Type Field Description static intARRAY_FIELD_NUMBERstatic intFUNCTION_CALL_FIELD_NUMBERstatic intIDENTIFIER_FIELD_NUMBERstatic intLITERAL_FIELD_NUMBERstatic intOBJECT_FIELD_NUMBERstatic intOPERATOR_FIELD_NUMBERstatic com.google.protobuf.Parser<MysqlxExpr.Expr>PARSERDeprecated.static intPOSITION_FIELD_NUMBERstatic intTYPE_FIELD_NUMBERstatic intVARIABLE_FIELD_NUMBER -
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object obj)MysqlxExpr.ArraygetArray()optional .Mysqlx.Expr.Array array = 9;MysqlxExpr.ArrayOrBuildergetArrayOrBuilder()optional .Mysqlx.Expr.Array array = 9;static MysqlxExpr.ExprgetDefaultInstance()MysqlxExpr.ExprgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()MysqlxExpr.FunctionCallgetFunctionCall()optional .Mysqlx.Expr.FunctionCall function_call = 5;MysqlxExpr.FunctionCallOrBuildergetFunctionCallOrBuilder()optional .Mysqlx.Expr.FunctionCall function_call = 5;MysqlxExpr.ColumnIdentifiergetIdentifier()optional .Mysqlx.Expr.ColumnIdentifier identifier = 2;MysqlxExpr.ColumnIdentifierOrBuildergetIdentifierOrBuilder()optional .Mysqlx.Expr.ColumnIdentifier identifier = 2;MysqlxDatatypes.ScalargetLiteral()optional .Mysqlx.Datatypes.Scalar literal = 4;MysqlxDatatypes.ScalarOrBuildergetLiteralOrBuilder()optional .Mysqlx.Datatypes.Scalar literal = 4;MysqlxExpr.ObjectgetObject()optional .Mysqlx.Expr.Object object = 8;MysqlxExpr.ObjectOrBuildergetObjectOrBuilder()optional .Mysqlx.Expr.Object object = 8;MysqlxExpr.OperatorgetOperator()optional .Mysqlx.Expr.Operator operator = 6;MysqlxExpr.OperatorOrBuildergetOperatorOrBuilder()optional .Mysqlx.Expr.Operator operator = 6;com.google.protobuf.Parser<MysqlxExpr.Expr>getParserForType()intgetPosition()optional uint32 position = 7;intgetSerializedSize()MysqlxExpr.Expr.TypegetType()required .Mysqlx.Expr.Expr.Type type = 1;com.google.protobuf.UnknownFieldSetgetUnknownFields()java.lang.StringgetVariable()optional string variable = 3;com.google.protobuf.ByteStringgetVariableBytes()optional string variable = 3;booleanhasArray()optional .Mysqlx.Expr.Array array = 9;booleanhasFunctionCall()optional .Mysqlx.Expr.FunctionCall function_call = 5;inthashCode()booleanhasIdentifier()optional .Mysqlx.Expr.ColumnIdentifier identifier = 2;booleanhasLiteral()optional .Mysqlx.Datatypes.Scalar literal = 4;booleanhasObject()optional .Mysqlx.Expr.Object object = 8;booleanhasOperator()optional .Mysqlx.Expr.Operator operator = 6;booleanhasPosition()optional uint32 position = 7;booleanhasType()required .Mysqlx.Expr.Expr.Type type = 1;booleanhasVariable()optional string variable = 3;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static MysqlxExpr.Expr.BuildernewBuilder()static MysqlxExpr.Expr.BuildernewBuilder(MysqlxExpr.Expr prototype)MysqlxExpr.Expr.BuildernewBuilderForType()protected MysqlxExpr.Expr.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected java.lang.ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static MysqlxExpr.ExprparseDelimitedFrom(java.io.InputStream input)static MysqlxExpr.ExprparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static MysqlxExpr.ExprparseFrom(byte[] data)static MysqlxExpr.ExprparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static MysqlxExpr.ExprparseFrom(com.google.protobuf.ByteString data)static MysqlxExpr.ExprparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static MysqlxExpr.ExprparseFrom(com.google.protobuf.CodedInputStream input)static MysqlxExpr.ExprparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static MysqlxExpr.ExprparseFrom(java.io.InputStream input)static MysqlxExpr.ExprparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static MysqlxExpr.ExprparseFrom(java.nio.ByteBuffer data)static MysqlxExpr.ExprparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<MysqlxExpr.Expr>parser()MysqlxExpr.Expr.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER- See Also:
- Constant Field Values
-
IDENTIFIER_FIELD_NUMBER
public static final int IDENTIFIER_FIELD_NUMBER- See Also:
- Constant Field Values
-
VARIABLE_FIELD_NUMBER
public static final int VARIABLE_FIELD_NUMBER- See Also:
- Constant Field Values
-
LITERAL_FIELD_NUMBER
public static final int LITERAL_FIELD_NUMBER- See Also:
- Constant Field Values
-
FUNCTION_CALL_FIELD_NUMBER
public static final int FUNCTION_CALL_FIELD_NUMBER- See Also:
- Constant Field Values
-
OPERATOR_FIELD_NUMBER
public static final int OPERATOR_FIELD_NUMBER- See Also:
- Constant Field Values
-
POSITION_FIELD_NUMBER
public static final int POSITION_FIELD_NUMBER- See Also:
- Constant Field Values
-
OBJECT_FIELD_NUMBER
public static final int OBJECT_FIELD_NUMBER- See Also:
- Constant Field Values
-
ARRAY_FIELD_NUMBER
public static final int ARRAY_FIELD_NUMBER- See Also:
- Constant Field Values
-
PARSER
Deprecated.
-
-
Method Details
-
newInstance
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
hasType
public boolean hasType()required .Mysqlx.Expr.Expr.Type type = 1;- Specified by:
hasTypein interfaceMysqlxExpr.ExprOrBuilder- Returns:
- Whether the type field is set.
-
getType
required .Mysqlx.Expr.Expr.Type type = 1;- Specified by:
getTypein interfaceMysqlxExpr.ExprOrBuilder- Returns:
- The type.
-
hasIdentifier
public boolean hasIdentifier()optional .Mysqlx.Expr.ColumnIdentifier identifier = 2;- Specified by:
hasIdentifierin interfaceMysqlxExpr.ExprOrBuilder- Returns:
- Whether the identifier field is set.
-
getIdentifier
optional .Mysqlx.Expr.ColumnIdentifier identifier = 2;- Specified by:
getIdentifierin interfaceMysqlxExpr.ExprOrBuilder- Returns:
- The identifier.
-
getIdentifierOrBuilder
optional .Mysqlx.Expr.ColumnIdentifier identifier = 2;- Specified by:
getIdentifierOrBuilderin interfaceMysqlxExpr.ExprOrBuilder
-
hasVariable
public boolean hasVariable()optional string variable = 3;- Specified by:
hasVariablein interfaceMysqlxExpr.ExprOrBuilder- Returns:
- Whether the variable field is set.
-
getVariable
public java.lang.String getVariable()optional string variable = 3;- Specified by:
getVariablein interfaceMysqlxExpr.ExprOrBuilder- Returns:
- The variable.
-
getVariableBytes
public com.google.protobuf.ByteString getVariableBytes()optional string variable = 3;- Specified by:
getVariableBytesin interfaceMysqlxExpr.ExprOrBuilder- Returns:
- The bytes for variable.
-
hasLiteral
public boolean hasLiteral()optional .Mysqlx.Datatypes.Scalar literal = 4;- Specified by:
hasLiteralin interfaceMysqlxExpr.ExprOrBuilder- Returns:
- Whether the literal field is set.
-
getLiteral
optional .Mysqlx.Datatypes.Scalar literal = 4;- Specified by:
getLiteralin interfaceMysqlxExpr.ExprOrBuilder- Returns:
- The literal.
-
getLiteralOrBuilder
optional .Mysqlx.Datatypes.Scalar literal = 4;- Specified by:
getLiteralOrBuilderin interfaceMysqlxExpr.ExprOrBuilder
-
hasFunctionCall
public boolean hasFunctionCall()optional .Mysqlx.Expr.FunctionCall function_call = 5;- Specified by:
hasFunctionCallin interfaceMysqlxExpr.ExprOrBuilder- Returns:
- Whether the functionCall field is set.
-
getFunctionCall
optional .Mysqlx.Expr.FunctionCall function_call = 5;- Specified by:
getFunctionCallin interfaceMysqlxExpr.ExprOrBuilder- Returns:
- The functionCall.
-
getFunctionCallOrBuilder
optional .Mysqlx.Expr.FunctionCall function_call = 5;- Specified by:
getFunctionCallOrBuilderin interfaceMysqlxExpr.ExprOrBuilder
-
hasOperator
public boolean hasOperator()optional .Mysqlx.Expr.Operator operator = 6;- Specified by:
hasOperatorin interfaceMysqlxExpr.ExprOrBuilder- Returns:
- Whether the operator field is set.
-
getOperator
optional .Mysqlx.Expr.Operator operator = 6;- Specified by:
getOperatorin interfaceMysqlxExpr.ExprOrBuilder- Returns:
- The operator.
-
getOperatorOrBuilder
optional .Mysqlx.Expr.Operator operator = 6;- Specified by:
getOperatorOrBuilderin interfaceMysqlxExpr.ExprOrBuilder
-
hasPosition
public boolean hasPosition()optional uint32 position = 7;- Specified by:
hasPositionin interfaceMysqlxExpr.ExprOrBuilder- Returns:
- Whether the position field is set.
-
getPosition
public int getPosition()optional uint32 position = 7;- Specified by:
getPositionin interfaceMysqlxExpr.ExprOrBuilder- Returns:
- The position.
-
hasObject
public boolean hasObject()optional .Mysqlx.Expr.Object object = 8;- Specified by:
hasObjectin interfaceMysqlxExpr.ExprOrBuilder- Returns:
- Whether the object field is set.
-
getObject
optional .Mysqlx.Expr.Object object = 8;- Specified by:
getObjectin interfaceMysqlxExpr.ExprOrBuilder- Returns:
- The object.
-
getObjectOrBuilder
optional .Mysqlx.Expr.Object object = 8;- Specified by:
getObjectOrBuilderin interfaceMysqlxExpr.ExprOrBuilder
-
hasArray
public boolean hasArray()optional .Mysqlx.Expr.Array array = 9;- Specified by:
hasArrayin interfaceMysqlxExpr.ExprOrBuilder- Returns:
- Whether the array field is set.
-
getArray
optional .Mysqlx.Expr.Array array = 9;- Specified by:
getArrayin interfaceMysqlxExpr.ExprOrBuilder- Returns:
- The array.
-
getArrayOrBuilder
optional .Mysqlx.Expr.Array array = 9;- Specified by:
getArrayOrBuilderin interfaceMysqlxExpr.ExprOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(java.lang.Object obj)- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static MysqlxExpr.Expr parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MysqlxExpr.Expr parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MysqlxExpr.Expr parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MysqlxExpr.Expr parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MysqlxExpr.Expr parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MysqlxExpr.Expr parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
java.io.IOException
-
parseFrom
public static MysqlxExpr.Expr parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException- Throws:
java.io.IOException
-
parseDelimitedFrom
public static MysqlxExpr.Expr parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException- Throws:
java.io.IOException
-
parseDelimitedFrom
public static MysqlxExpr.Expr parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException- Throws:
java.io.IOException
-
parseFrom
public static MysqlxExpr.Expr parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException- Throws:
java.io.IOException
-
parseFrom
public static MysqlxExpr.Expr parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException- Throws:
java.io.IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected MysqlxExpr.Expr.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-