Package com.github.xds.type.v3
Class CelExpression
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessage
-
- com.github.xds.type.v3.CelExpression
-
- All Implemented Interfaces:
CelExpressionOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.io.Serializable
public final class CelExpression extends com.google.protobuf.GeneratedMessage implements CelExpressionOrBuilder
Either parsed or checked representation of the `Common Expression Language <https://github.com/google/cel-spec>`_ (CEL) program.
Protobuf typexds.type.v3.CelExpression
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CelExpression.Builder
Either parsed or checked representation of the `Common Expression Language <https://github.com/google/cel-spec>`_ (CEL) program.static class
CelExpression.ExprSpecifierCase
-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T extends java.lang.Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description private int
bitField0_
static int
CEL_EXPR_CHECKED_FIELD_NUMBER
static int
CEL_EXPR_PARSED_FIELD_NUMBER
private CheckedExpr
celExprChecked_
private ParsedExpr
celExprParsed_
static int
CHECKED_EXPR_FIELD_NUMBER
private static CelExpression
DEFAULT_INSTANCE
private java.lang.Object
exprSpecifier_
private int
exprSpecifierCase_
private byte
memoizedIsInitialized
static int
PARSED_EXPR_FIELD_NUMBER
private static com.google.protobuf.Parser<CelExpression>
PARSER
private static long
serialVersionUID
-
Constructor Summary
Constructors Modifier Constructor Description private
CelExpression()
private
CelExpression(com.google.protobuf.GeneratedMessage.Builder<?> builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
CheckedExpr
getCelExprChecked()
Parsed expression in abstract syntax tree (AST) form that has been successfully type checked.CheckedExprOrBuilder
getCelExprCheckedOrBuilder()
Parsed expression in abstract syntax tree (AST) form that has been successfully type checked.ParsedExpr
getCelExprParsed()
Parsed expression in abstract syntax tree (AST) form.ParsedExprOrBuilder
getCelExprParsedOrBuilder()
Parsed expression in abstract syntax tree (AST) form.CheckedExpr
getCheckedExpr()
Deprecated.xds.type.v3.CelExpression.checked_expr is deprecated.CheckedExprOrBuilder
getCheckedExprOrBuilder()
Deprecated.static CelExpression
getDefaultInstance()
CelExpression
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
CelExpression.ExprSpecifierCase
getExprSpecifierCase()
ParsedExpr
getParsedExpr()
Deprecated.xds.type.v3.CelExpression.parsed_expr is deprecated.ParsedExprOrBuilder
getParsedExprOrBuilder()
Deprecated.com.google.protobuf.Parser<CelExpression>
getParserForType()
int
getSerializedSize()
boolean
hasCelExprChecked()
Parsed expression in abstract syntax tree (AST) form that has been successfully type checked.boolean
hasCelExprParsed()
Parsed expression in abstract syntax tree (AST) form.boolean
hasCheckedExpr()
Deprecated.xds.type.v3.CelExpression.checked_expr is deprecated.int
hashCode()
boolean
hasParsedExpr()
Deprecated.xds.type.v3.CelExpression.parsed_expr is deprecated.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static CelExpression.Builder
newBuilder()
static CelExpression.Builder
newBuilder(CelExpression prototype)
CelExpression.Builder
newBuilderForType()
protected CelExpression.Builder
newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
static CelExpression
parseDelimitedFrom(java.io.InputStream input)
static CelExpression
parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static CelExpression
parseFrom(byte[] data)
static CelExpression
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static CelExpression
parseFrom(com.google.protobuf.ByteString data)
static CelExpression
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static CelExpression
parseFrom(com.google.protobuf.CodedInputStream input)
static CelExpression
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static CelExpression
parseFrom(java.io.InputStream input)
static CelExpression
parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static CelExpression
parseFrom(java.nio.ByteBuffer data)
static CelExpression
parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<CelExpression>
parser()
CelExpression.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
bitField0_
private int bitField0_
-
exprSpecifierCase_
private int exprSpecifierCase_
-
exprSpecifier_
private java.lang.Object exprSpecifier_
-
PARSED_EXPR_FIELD_NUMBER
public static final int PARSED_EXPR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CHECKED_EXPR_FIELD_NUMBER
public static final int CHECKED_EXPR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CEL_EXPR_PARSED_FIELD_NUMBER
public static final int CEL_EXPR_PARSED_FIELD_NUMBER
- See Also:
- Constant Field Values
-
celExprParsed_
private ParsedExpr celExprParsed_
-
CEL_EXPR_CHECKED_FIELD_NUMBER
public static final int CEL_EXPR_CHECKED_FIELD_NUMBER
- See Also:
- Constant Field Values
-
celExprChecked_
private CheckedExpr celExprChecked_
-
memoizedIsInitialized
private byte memoizedIsInitialized
-
DEFAULT_INSTANCE
private static final CelExpression DEFAULT_INSTANCE
-
PARSER
private static final com.google.protobuf.Parser<CelExpression> PARSER
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage
-
getExprSpecifierCase
public CelExpression.ExprSpecifierCase getExprSpecifierCase()
- Specified by:
getExprSpecifierCase
in interfaceCelExpressionOrBuilder
-
hasParsedExpr
@Deprecated public boolean hasParsedExpr()
Deprecated.xds.type.v3.CelExpression.parsed_expr is deprecated. See xds/type/v3/cel.proto;l=31Parsed expression in abstract syntax tree (AST) form. Deprecated -- use ``cel_expr_parsed`` field instead. If ``cel_expr_parsed`` or ``cel_expr_checked`` is set, this field is not used.
.google.api.expr.v1alpha1.ParsedExpr parsed_expr = 1 [deprecated = true];
- Specified by:
hasParsedExpr
in interfaceCelExpressionOrBuilder
- Returns:
- Whether the parsedExpr field is set.
-
getParsedExpr
@Deprecated public ParsedExpr getParsedExpr()
Deprecated.xds.type.v3.CelExpression.parsed_expr is deprecated. See xds/type/v3/cel.proto;l=31Parsed expression in abstract syntax tree (AST) form. Deprecated -- use ``cel_expr_parsed`` field instead. If ``cel_expr_parsed`` or ``cel_expr_checked`` is set, this field is not used.
.google.api.expr.v1alpha1.ParsedExpr parsed_expr = 1 [deprecated = true];
- Specified by:
getParsedExpr
in interfaceCelExpressionOrBuilder
- Returns:
- The parsedExpr.
-
getParsedExprOrBuilder
@Deprecated public ParsedExprOrBuilder getParsedExprOrBuilder()
Deprecated.Parsed expression in abstract syntax tree (AST) form. Deprecated -- use ``cel_expr_parsed`` field instead. If ``cel_expr_parsed`` or ``cel_expr_checked`` is set, this field is not used.
.google.api.expr.v1alpha1.ParsedExpr parsed_expr = 1 [deprecated = true];
- Specified by:
getParsedExprOrBuilder
in interfaceCelExpressionOrBuilder
-
hasCheckedExpr
@Deprecated public boolean hasCheckedExpr()
Deprecated.xds.type.v3.CelExpression.checked_expr is deprecated. See xds/type/v3/cel.proto;l=37Parsed expression in abstract syntax tree (AST) form that has been successfully type checked. Deprecated -- use ``cel_expr_checked`` field instead. If ``cel_expr_parsed`` or ``cel_expr_checked`` is set, this field is not used.
.google.api.expr.v1alpha1.CheckedExpr checked_expr = 2 [deprecated = true];
- Specified by:
hasCheckedExpr
in interfaceCelExpressionOrBuilder
- Returns:
- Whether the checkedExpr field is set.
-
getCheckedExpr
@Deprecated public CheckedExpr getCheckedExpr()
Deprecated.xds.type.v3.CelExpression.checked_expr is deprecated. See xds/type/v3/cel.proto;l=37Parsed expression in abstract syntax tree (AST) form that has been successfully type checked. Deprecated -- use ``cel_expr_checked`` field instead. If ``cel_expr_parsed`` or ``cel_expr_checked`` is set, this field is not used.
.google.api.expr.v1alpha1.CheckedExpr checked_expr = 2 [deprecated = true];
- Specified by:
getCheckedExpr
in interfaceCelExpressionOrBuilder
- Returns:
- The checkedExpr.
-
getCheckedExprOrBuilder
@Deprecated public CheckedExprOrBuilder getCheckedExprOrBuilder()
Deprecated.Parsed expression in abstract syntax tree (AST) form that has been successfully type checked. Deprecated -- use ``cel_expr_checked`` field instead. If ``cel_expr_parsed`` or ``cel_expr_checked`` is set, this field is not used.
.google.api.expr.v1alpha1.CheckedExpr checked_expr = 2 [deprecated = true];
- Specified by:
getCheckedExprOrBuilder
in interfaceCelExpressionOrBuilder
-
hasCelExprParsed
public boolean hasCelExprParsed()
Parsed expression in abstract syntax tree (AST) form. If ``cel_expr_checked`` is set, this field is not used.
.cel.expr.ParsedExpr cel_expr_parsed = 3;
- Specified by:
hasCelExprParsed
in interfaceCelExpressionOrBuilder
- Returns:
- Whether the celExprParsed field is set.
-
getCelExprParsed
public ParsedExpr getCelExprParsed()
Parsed expression in abstract syntax tree (AST) form. If ``cel_expr_checked`` is set, this field is not used.
.cel.expr.ParsedExpr cel_expr_parsed = 3;
- Specified by:
getCelExprParsed
in interfaceCelExpressionOrBuilder
- Returns:
- The celExprParsed.
-
getCelExprParsedOrBuilder
public ParsedExprOrBuilder getCelExprParsedOrBuilder()
Parsed expression in abstract syntax tree (AST) form. If ``cel_expr_checked`` is set, this field is not used.
.cel.expr.ParsedExpr cel_expr_parsed = 3;
- Specified by:
getCelExprParsedOrBuilder
in interfaceCelExpressionOrBuilder
-
hasCelExprChecked
public boolean hasCelExprChecked()
Parsed expression in abstract syntax tree (AST) form that has been successfully type checked. If set, takes precedence over ``cel_expr_parsed``.
.cel.expr.CheckedExpr cel_expr_checked = 4;
- Specified by:
hasCelExprChecked
in interfaceCelExpressionOrBuilder
- Returns:
- Whether the celExprChecked field is set.
-
getCelExprChecked
public CheckedExpr getCelExprChecked()
Parsed expression in abstract syntax tree (AST) form that has been successfully type checked. If set, takes precedence over ``cel_expr_parsed``.
.cel.expr.CheckedExpr cel_expr_checked = 4;
- Specified by:
getCelExprChecked
in interfaceCelExpressionOrBuilder
- Returns:
- The celExprChecked.
-
getCelExprCheckedOrBuilder
public CheckedExprOrBuilder getCelExprCheckedOrBuilder()
Parsed expression in abstract syntax tree (AST) form that has been successfully type checked. If set, takes precedence over ``cel_expr_parsed``.
.cel.expr.CheckedExpr cel_expr_checked = 4;
- Specified by:
getCelExprCheckedOrBuilder
in interfaceCelExpressionOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessage
- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessage
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static CelExpression parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CelExpression parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CelExpression parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CelExpression parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CelExpression parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CelExpression parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CelExpression parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static CelExpression parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static CelExpression parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static CelExpression parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static CelExpression parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static CelExpression parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public CelExpression.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static CelExpression.Builder newBuilder()
-
newBuilder
public static CelExpression.Builder newBuilder(CelExpression prototype)
-
toBuilder
public CelExpression.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected CelExpression.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
- Overrides:
newBuilderForType
in classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
public static CelExpression getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<CelExpression> parser()
-
getParserForType
public com.google.protobuf.Parser<CelExpression> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
public CelExpression getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-