Class Expr

java.lang.Object
com.google.protobuf.AbstractMessageLite<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite<Expr,Expr.Builder>
com.google.api.expr.v1beta1.Expr
All Implemented Interfaces:
ExprOrBuilder, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder

public final class Expr extends com.google.protobuf.GeneratedMessageLite<Expr,Expr.Builder> implements ExprOrBuilder
 An abstract representation of a common expression.

 Expressions are abstractly represented as a collection of identifiers,
 select statements, function calls, literals, and comprehensions. All
 operators with the exception of the '.' operator are modelled as function
 calls. This makes it easy to represent new operators into the existing AST.

 All references within expressions must resolve to a [Decl][google.api.expr.v1beta1.Decl] provided at
 type-check for an expression to be valid. A reference may either be a bare
 identifier `name` or a qualified identifier `google.api.name`. References
 may either refer to a value or a function declaration.

 For example, the expression `google.api.name.startsWith('expr')` references
 the declaration `google.api.name` within a [Expr.Select][google.api.expr.v1beta1.Expr.Select] expression, and
 the function declaration `startsWith`.
 
Protobuf type google.api.expr.v1beta1.Expr
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    An abstract representation of a common expression.
    static final class 
    A call expression, including calls to predefined functions and operators.
    static interface 
     
    static final class 
    A comprehension expression applied to a list or map.
    static interface 
     
    static final class 
    A list creation expression.
    static interface 
     
    static final class 
    A map or message creation expression.
    static interface 
     
    static enum 
     
    static final class 
    An identifier expression.
    static interface 
     
    static final class 
    A field selection expression.
    static interface 
     

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite

    com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite,Type extends Object>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessageLite

    unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    protected final Object
    dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
     
    A call expression, including calls to predefined functions and operators.
    A comprehension expression.
    static Expr
     
     
    int
    Required.
    An identifier expression.
    A list creation expression.
    A literal expression.
    A field selection expression, e.g.
    A map or object creation expression.
    boolean
    A call expression, including calls to predefined functions and operators.
    boolean
    A comprehension expression.
    boolean
    An identifier expression.
    boolean
    A list creation expression.
    boolean
    A literal expression.
    boolean
    A field selection expression, e.g.
    boolean
    A map or object creation expression.
     
    newBuilder(Expr prototype)
     
    static Expr
     
    static Expr
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Expr
    parseFrom(byte[] data)
     
    static Expr
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Expr
    parseFrom(com.google.protobuf.ByteString data)
     
    static Expr
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Expr
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    static Expr
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Expr
     
    static Expr
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Expr
     
    static Expr
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<Expr>
     

    Methods inherited from class com.google.protobuf.GeneratedMessageLite

    createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeTo

    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

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    getDefaultInstanceForType, isInitialized
  • Field Details

    • ID_FIELD_NUMBER

      public static final int ID_FIELD_NUMBER
      See Also:
    • LITERAL_EXPR_FIELD_NUMBER

      public static final int LITERAL_EXPR_FIELD_NUMBER
      See Also:
    • IDENT_EXPR_FIELD_NUMBER

      public static final int IDENT_EXPR_FIELD_NUMBER
      See Also:
    • SELECT_EXPR_FIELD_NUMBER

      public static final int SELECT_EXPR_FIELD_NUMBER
      See Also:
    • CALL_EXPR_FIELD_NUMBER

      public static final int CALL_EXPR_FIELD_NUMBER
      See Also:
    • LIST_EXPR_FIELD_NUMBER

      public static final int LIST_EXPR_FIELD_NUMBER
      See Also:
    • STRUCT_EXPR_FIELD_NUMBER

      public static final int STRUCT_EXPR_FIELD_NUMBER
      See Also:
    • COMPREHENSION_EXPR_FIELD_NUMBER

      public static final int COMPREHENSION_EXPR_FIELD_NUMBER
      See Also:
  • Method Details

    • getExprKindCase

      public Expr.ExprKindCase getExprKindCase()
      Specified by:
      getExprKindCase in interface ExprOrBuilder
    • getId

      public int getId()
       Required. An id assigned to this node by the parser which is unique in a
       given expression tree. This is used to associate type information and other
       attributes to a node in the parse tree.
       
      int32 id = 2 [json_name = "id"];
      Specified by:
      getId in interface ExprOrBuilder
      Returns:
      The id.
    • hasLiteralExpr

      public boolean hasLiteralExpr()
       A literal expression.
       
      .google.api.expr.v1beta1.Literal literal_expr = 3 [json_name = "literalExpr"];
      Specified by:
      hasLiteralExpr in interface ExprOrBuilder
      Returns:
      Whether the literalExpr field is set.
    • getLiteralExpr

      public Literal getLiteralExpr()
       A literal expression.
       
      .google.api.expr.v1beta1.Literal literal_expr = 3 [json_name = "literalExpr"];
      Specified by:
      getLiteralExpr in interface ExprOrBuilder
      Returns:
      The literalExpr.
    • hasIdentExpr

      public boolean hasIdentExpr()
       An identifier expression.
       
      .google.api.expr.v1beta1.Expr.Ident ident_expr = 4 [json_name = "identExpr"];
      Specified by:
      hasIdentExpr in interface ExprOrBuilder
      Returns:
      Whether the identExpr field is set.
    • getIdentExpr

      public Expr.Ident getIdentExpr()
       An identifier expression.
       
      .google.api.expr.v1beta1.Expr.Ident ident_expr = 4 [json_name = "identExpr"];
      Specified by:
      getIdentExpr in interface ExprOrBuilder
      Returns:
      The identExpr.
    • hasSelectExpr

      public boolean hasSelectExpr()
       A field selection expression, e.g. `request.auth`.
       
      .google.api.expr.v1beta1.Expr.Select select_expr = 5 [json_name = "selectExpr"];
      Specified by:
      hasSelectExpr in interface ExprOrBuilder
      Returns:
      Whether the selectExpr field is set.
    • getSelectExpr

      public Expr.Select getSelectExpr()
       A field selection expression, e.g. `request.auth`.
       
      .google.api.expr.v1beta1.Expr.Select select_expr = 5 [json_name = "selectExpr"];
      Specified by:
      getSelectExpr in interface ExprOrBuilder
      Returns:
      The selectExpr.
    • hasCallExpr

      public boolean hasCallExpr()
       A call expression, including calls to predefined functions and operators.
       
      .google.api.expr.v1beta1.Expr.Call call_expr = 6 [json_name = "callExpr"];
      Specified by:
      hasCallExpr in interface ExprOrBuilder
      Returns:
      Whether the callExpr field is set.
    • getCallExpr

      public Expr.Call getCallExpr()
       A call expression, including calls to predefined functions and operators.
       
      .google.api.expr.v1beta1.Expr.Call call_expr = 6 [json_name = "callExpr"];
      Specified by:
      getCallExpr in interface ExprOrBuilder
      Returns:
      The callExpr.
    • hasListExpr

      public boolean hasListExpr()
       A list creation expression.
       
      .google.api.expr.v1beta1.Expr.CreateList list_expr = 7 [json_name = "listExpr"];
      Specified by:
      hasListExpr in interface ExprOrBuilder
      Returns:
      Whether the listExpr field is set.
    • getListExpr

      public Expr.CreateList getListExpr()
       A list creation expression.
       
      .google.api.expr.v1beta1.Expr.CreateList list_expr = 7 [json_name = "listExpr"];
      Specified by:
      getListExpr in interface ExprOrBuilder
      Returns:
      The listExpr.
    • hasStructExpr

      public boolean hasStructExpr()
       A map or object creation expression.
       
      .google.api.expr.v1beta1.Expr.CreateStruct struct_expr = 8 [json_name = "structExpr"];
      Specified by:
      hasStructExpr in interface ExprOrBuilder
      Returns:
      Whether the structExpr field is set.
    • getStructExpr

      public Expr.CreateStruct getStructExpr()
       A map or object creation expression.
       
      .google.api.expr.v1beta1.Expr.CreateStruct struct_expr = 8 [json_name = "structExpr"];
      Specified by:
      getStructExpr in interface ExprOrBuilder
      Returns:
      The structExpr.
    • hasComprehensionExpr

      public boolean hasComprehensionExpr()
       A comprehension expression.
       
      .google.api.expr.v1beta1.Expr.Comprehension comprehension_expr = 9 [json_name = "comprehensionExpr"];
      Specified by:
      hasComprehensionExpr in interface ExprOrBuilder
      Returns:
      Whether the comprehensionExpr field is set.
    • getComprehensionExpr

      public Expr.Comprehension getComprehensionExpr()
       A comprehension expression.
       
      .google.api.expr.v1beta1.Expr.Comprehension comprehension_expr = 9 [json_name = "comprehensionExpr"];
      Specified by:
      getComprehensionExpr in interface ExprOrBuilder
      Returns:
      The comprehensionExpr.
    • parseFrom

      public static Expr parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Expr parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Expr parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static 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 Expr parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Expr parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Expr parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Expr parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Expr parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Expr parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Expr parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Expr parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilder

      public static Expr.Builder newBuilder()
    • newBuilder

      public static Expr.Builder newBuilder(Expr prototype)
    • dynamicMethod

      protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
      Specified by:
      dynamicMethod in class com.google.protobuf.GeneratedMessageLite<Expr,Expr.Builder>
    • getDefaultInstance

      public static Expr getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Expr> parser()