Package dev.cel.expr

Class Type.Builder

    • Method Detail

      • getDefaultInstanceForType

        public Type getDefaultInstanceForType()
        Description copied from interface: MessageLiteOrBuilder
        Get an instance of the type with no fields set. Because no fields are set, all getters for singular fields will return default values and repeated fields will appear empty. This may or may not be a singleton. This differs from the getDefaultInstance() method of generated message classes in that this method is an abstract method of the MessageLite interface whereas getDefaultInstance() is a static method of a specific class. They return the same thing.
        Specified by:
        getDefaultInstanceForType in interface MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface MessageOrBuilder
      • mergeFrom

        public Type.Builder mergeFrom​(Message other)
        Description copied from interface: Message.Builder
        Merge other into the message being built. other must have the exact same type as this (i.e. getDescriptorForType() == other.getDescriptorForType()).

        Merging occurs as follows. For each field:
        * For singular primitive fields, if the field is set in other, then other's value overwrites the value in this message.
        * For singular message fields, if the field is set in other, it is merged into the corresponding sub-message of this message using the same merging rules.
        * For repeated fields, the elements in other are concatenated with the elements in this message.
        * For oneof groups, if the other message has one of the fields set, the group of this message is cleared and replaced by the field of the other message, so that the oneof constraint is preserved.

        This is equivalent to the Message::MergeFrom method in C++.

        Specified by:
        mergeFrom in interface Message.Builder
        Overrides:
        mergeFrom in class AbstractMessage.Builder<Type.Builder>
      • hasDyn

        public boolean hasDyn()
         Dynamic type.
         
        .google.protobuf.Empty dyn = 1;
        Specified by:
        hasDyn in interface TypeOrBuilder
        Returns:
        Whether the dyn field is set.
      • getDyn

        public Empty getDyn()
         Dynamic type.
         
        .google.protobuf.Empty dyn = 1;
        Specified by:
        getDyn in interface TypeOrBuilder
        Returns:
        The dyn.
      • setDyn

        public Type.Builder setDyn​(Empty value)
         Dynamic type.
         
        .google.protobuf.Empty dyn = 1;
      • mergeDyn

        public Type.Builder mergeDyn​(Empty value)
         Dynamic type.
         
        .google.protobuf.Empty dyn = 1;
      • clearDyn

        public Type.Builder clearDyn()
         Dynamic type.
         
        .google.protobuf.Empty dyn = 1;
      • getDynBuilder

        public Empty.Builder getDynBuilder()
         Dynamic type.
         
        .google.protobuf.Empty dyn = 1;
      • hasNull

        public boolean hasNull()
         Null value.
         
        .google.protobuf.NullValue null = 2;
        Specified by:
        hasNull in interface TypeOrBuilder
        Returns:
        Whether the null field is set.
      • getNullValue

        public int getNullValue()
         Null value.
         
        .google.protobuf.NullValue null = 2;
        Specified by:
        getNullValue in interface TypeOrBuilder
        Returns:
        The enum numeric value on the wire for null.
      • setNullValue

        public Type.Builder setNullValue​(int value)
         Null value.
         
        .google.protobuf.NullValue null = 2;
        Parameters:
        value - The enum numeric value on the wire for null to set.
        Returns:
        This builder for chaining.
      • getNull

        public NullValue getNull()
         Null value.
         
        .google.protobuf.NullValue null = 2;
        Specified by:
        getNull in interface TypeOrBuilder
        Returns:
        The null.
      • setNull

        public Type.Builder setNull​(NullValue value)
         Null value.
         
        .google.protobuf.NullValue null = 2;
        Parameters:
        value - The null to set.
        Returns:
        This builder for chaining.
      • clearNull

        public Type.Builder clearNull()
         Null value.
         
        .google.protobuf.NullValue null = 2;
        Returns:
        This builder for chaining.
      • hasPrimitive

        public boolean hasPrimitive()
         Primitive types: `true`, `1u`, `-2.0`, `'string'`, `b'bytes'`.
         
        .cel.expr.Type.PrimitiveType primitive = 3;
        Specified by:
        hasPrimitive in interface TypeOrBuilder
        Returns:
        Whether the primitive field is set.
      • getPrimitiveValue

        public int getPrimitiveValue()
         Primitive types: `true`, `1u`, `-2.0`, `'string'`, `b'bytes'`.
         
        .cel.expr.Type.PrimitiveType primitive = 3;
        Specified by:
        getPrimitiveValue in interface TypeOrBuilder
        Returns:
        The enum numeric value on the wire for primitive.
      • setPrimitiveValue

        public Type.Builder setPrimitiveValue​(int value)
         Primitive types: `true`, `1u`, `-2.0`, `'string'`, `b'bytes'`.
         
        .cel.expr.Type.PrimitiveType primitive = 3;
        Parameters:
        value - The enum numeric value on the wire for primitive to set.
        Returns:
        This builder for chaining.
      • getPrimitive

        public Type.PrimitiveType getPrimitive()
         Primitive types: `true`, `1u`, `-2.0`, `'string'`, `b'bytes'`.
         
        .cel.expr.Type.PrimitiveType primitive = 3;
        Specified by:
        getPrimitive in interface TypeOrBuilder
        Returns:
        The primitive.
      • setPrimitive

        public Type.Builder setPrimitive​(Type.PrimitiveType value)
         Primitive types: `true`, `1u`, `-2.0`, `'string'`, `b'bytes'`.
         
        .cel.expr.Type.PrimitiveType primitive = 3;
        Parameters:
        value - The primitive to set.
        Returns:
        This builder for chaining.
      • clearPrimitive

        public Type.Builder clearPrimitive()
         Primitive types: `true`, `1u`, `-2.0`, `'string'`, `b'bytes'`.
         
        .cel.expr.Type.PrimitiveType primitive = 3;
        Returns:
        This builder for chaining.
      • hasWrapper

        public boolean hasWrapper()
         Wrapper of a primitive type, e.g. `google.protobuf.Int64Value`.
         
        .cel.expr.Type.PrimitiveType wrapper = 4;
        Specified by:
        hasWrapper in interface TypeOrBuilder
        Returns:
        Whether the wrapper field is set.
      • getWrapperValue

        public int getWrapperValue()
         Wrapper of a primitive type, e.g. `google.protobuf.Int64Value`.
         
        .cel.expr.Type.PrimitiveType wrapper = 4;
        Specified by:
        getWrapperValue in interface TypeOrBuilder
        Returns:
        The enum numeric value on the wire for wrapper.
      • setWrapperValue

        public Type.Builder setWrapperValue​(int value)
         Wrapper of a primitive type, e.g. `google.protobuf.Int64Value`.
         
        .cel.expr.Type.PrimitiveType wrapper = 4;
        Parameters:
        value - The enum numeric value on the wire for wrapper to set.
        Returns:
        This builder for chaining.
      • getWrapper

        public Type.PrimitiveType getWrapper()
         Wrapper of a primitive type, e.g. `google.protobuf.Int64Value`.
         
        .cel.expr.Type.PrimitiveType wrapper = 4;
        Specified by:
        getWrapper in interface TypeOrBuilder
        Returns:
        The wrapper.
      • setWrapper

        public Type.Builder setWrapper​(Type.PrimitiveType value)
         Wrapper of a primitive type, e.g. `google.protobuf.Int64Value`.
         
        .cel.expr.Type.PrimitiveType wrapper = 4;
        Parameters:
        value - The wrapper to set.
        Returns:
        This builder for chaining.
      • clearWrapper

        public Type.Builder clearWrapper()
         Wrapper of a primitive type, e.g. `google.protobuf.Int64Value`.
         
        .cel.expr.Type.PrimitiveType wrapper = 4;
        Returns:
        This builder for chaining.
      • hasWellKnown

        public boolean hasWellKnown()
         Well-known protobuf type such as `google.protobuf.Timestamp`.
         
        .cel.expr.Type.WellKnownType well_known = 5;
        Specified by:
        hasWellKnown in interface TypeOrBuilder
        Returns:
        Whether the wellKnown field is set.
      • getWellKnownValue

        public int getWellKnownValue()
         Well-known protobuf type such as `google.protobuf.Timestamp`.
         
        .cel.expr.Type.WellKnownType well_known = 5;
        Specified by:
        getWellKnownValue in interface TypeOrBuilder
        Returns:
        The enum numeric value on the wire for wellKnown.
      • setWellKnownValue

        public Type.Builder setWellKnownValue​(int value)
         Well-known protobuf type such as `google.protobuf.Timestamp`.
         
        .cel.expr.Type.WellKnownType well_known = 5;
        Parameters:
        value - The enum numeric value on the wire for wellKnown to set.
        Returns:
        This builder for chaining.
      • getWellKnown

        public Type.WellKnownType getWellKnown()
         Well-known protobuf type such as `google.protobuf.Timestamp`.
         
        .cel.expr.Type.WellKnownType well_known = 5;
        Specified by:
        getWellKnown in interface TypeOrBuilder
        Returns:
        The wellKnown.
      • setWellKnown

        public Type.Builder setWellKnown​(Type.WellKnownType value)
         Well-known protobuf type such as `google.protobuf.Timestamp`.
         
        .cel.expr.Type.WellKnownType well_known = 5;
        Parameters:
        value - The wellKnown to set.
        Returns:
        This builder for chaining.
      • clearWellKnown

        public Type.Builder clearWellKnown()
         Well-known protobuf type such as `google.protobuf.Timestamp`.
         
        .cel.expr.Type.WellKnownType well_known = 5;
        Returns:
        This builder for chaining.
      • hasListType

        public boolean hasListType()
         Parameterized list with elements of `list_type`, e.g. `list<timestamp>`.
         
        .cel.expr.Type.ListType list_type = 6;
        Specified by:
        hasListType in interface TypeOrBuilder
        Returns:
        Whether the listType field is set.
      • getListType

        public Type.ListType getListType()
         Parameterized list with elements of `list_type`, e.g. `list<timestamp>`.
         
        .cel.expr.Type.ListType list_type = 6;
        Specified by:
        getListType in interface TypeOrBuilder
        Returns:
        The listType.
      • setListType

        public Type.Builder setListType​(Type.ListType value)
         Parameterized list with elements of `list_type`, e.g. `list<timestamp>`.
         
        .cel.expr.Type.ListType list_type = 6;
      • setListType

        public Type.Builder setListType​(Type.ListType.Builder builderForValue)
         Parameterized list with elements of `list_type`, e.g. `list<timestamp>`.
         
        .cel.expr.Type.ListType list_type = 6;
      • mergeListType

        public Type.Builder mergeListType​(Type.ListType value)
         Parameterized list with elements of `list_type`, e.g. `list<timestamp>`.
         
        .cel.expr.Type.ListType list_type = 6;
      • clearListType

        public Type.Builder clearListType()
         Parameterized list with elements of `list_type`, e.g. `list<timestamp>`.
         
        .cel.expr.Type.ListType list_type = 6;
      • getListTypeBuilder

        public Type.ListType.Builder getListTypeBuilder()
         Parameterized list with elements of `list_type`, e.g. `list<timestamp>`.
         
        .cel.expr.Type.ListType list_type = 6;
      • hasMapType

        public boolean hasMapType()
         Parameterized map with typed keys and values.
         
        .cel.expr.Type.MapType map_type = 7;
        Specified by:
        hasMapType in interface TypeOrBuilder
        Returns:
        Whether the mapType field is set.
      • getMapType

        public Type.MapType getMapType()
         Parameterized map with typed keys and values.
         
        .cel.expr.Type.MapType map_type = 7;
        Specified by:
        getMapType in interface TypeOrBuilder
        Returns:
        The mapType.
      • setMapType

        public Type.Builder setMapType​(Type.MapType value)
         Parameterized map with typed keys and values.
         
        .cel.expr.Type.MapType map_type = 7;
      • setMapType

        public Type.Builder setMapType​(Type.MapType.Builder builderForValue)
         Parameterized map with typed keys and values.
         
        .cel.expr.Type.MapType map_type = 7;
      • mergeMapType

        public Type.Builder mergeMapType​(Type.MapType value)
         Parameterized map with typed keys and values.
         
        .cel.expr.Type.MapType map_type = 7;
      • clearMapType

        public Type.Builder clearMapType()
         Parameterized map with typed keys and values.
         
        .cel.expr.Type.MapType map_type = 7;
      • getMapTypeBuilder

        public Type.MapType.Builder getMapTypeBuilder()
         Parameterized map with typed keys and values.
         
        .cel.expr.Type.MapType map_type = 7;
      • hasFunction

        public boolean hasFunction()
         Function type.
         
        .cel.expr.Type.FunctionType function = 8;
        Specified by:
        hasFunction in interface TypeOrBuilder
        Returns:
        Whether the function field is set.
      • clearFunction

        public Type.Builder clearFunction()
         Function type.
         
        .cel.expr.Type.FunctionType function = 8;
      • getFunctionBuilder

        public Type.FunctionType.Builder getFunctionBuilder()
         Function type.
         
        .cel.expr.Type.FunctionType function = 8;
      • hasMessageType

        public boolean hasMessageType()
         Protocol buffer message type.
         The `message_type` string specifies the qualified message type name. For
         example, `google.type.PhoneNumber`.
         
        string message_type = 9;
        Specified by:
        hasMessageType in interface TypeOrBuilder
        Returns:
        Whether the messageType field is set.
      • getMessageType

        public java.lang.String getMessageType()
         Protocol buffer message type.
         The `message_type` string specifies the qualified message type name. For
         example, `google.type.PhoneNumber`.
         
        string message_type = 9;
        Specified by:
        getMessageType in interface TypeOrBuilder
        Returns:
        The messageType.
      • getMessageTypeBytes

        public ByteString getMessageTypeBytes()
         Protocol buffer message type.
         The `message_type` string specifies the qualified message type name. For
         example, `google.type.PhoneNumber`.
         
        string message_type = 9;
        Specified by:
        getMessageTypeBytes in interface TypeOrBuilder
        Returns:
        The bytes for messageType.
      • setMessageType

        public Type.Builder setMessageType​(java.lang.String value)
         Protocol buffer message type.
         The `message_type` string specifies the qualified message type name. For
         example, `google.type.PhoneNumber`.
         
        string message_type = 9;
        Parameters:
        value - The messageType to set.
        Returns:
        This builder for chaining.
      • clearMessageType

        public Type.Builder clearMessageType()
         Protocol buffer message type.
         The `message_type` string specifies the qualified message type name. For
         example, `google.type.PhoneNumber`.
         
        string message_type = 9;
        Returns:
        This builder for chaining.
      • setMessageTypeBytes

        public Type.Builder setMessageTypeBytes​(ByteString value)
         Protocol buffer message type.
         The `message_type` string specifies the qualified message type name. For
         example, `google.type.PhoneNumber`.
         
        string message_type = 9;
        Parameters:
        value - The bytes for messageType to set.
        Returns:
        This builder for chaining.
      • hasTypeParam

        public boolean hasTypeParam()
         Type param type.
         The `type_param` string specifies the type parameter name, e.g. `list<E>`
         would be a `list_type` whose element type was a `type_param` type
         named `E`.
         
        string type_param = 10;
        Specified by:
        hasTypeParam in interface TypeOrBuilder
        Returns:
        Whether the typeParam field is set.
      • getTypeParam

        public java.lang.String getTypeParam()
         Type param type.
         The `type_param` string specifies the type parameter name, e.g. `list<E>`
         would be a `list_type` whose element type was a `type_param` type
         named `E`.
         
        string type_param = 10;
        Specified by:
        getTypeParam in interface TypeOrBuilder
        Returns:
        The typeParam.
      • getTypeParamBytes

        public ByteString getTypeParamBytes()
         Type param type.
         The `type_param` string specifies the type parameter name, e.g. `list<E>`
         would be a `list_type` whose element type was a `type_param` type
         named `E`.
         
        string type_param = 10;
        Specified by:
        getTypeParamBytes in interface TypeOrBuilder
        Returns:
        The bytes for typeParam.
      • setTypeParam

        public Type.Builder setTypeParam​(java.lang.String value)
         Type param type.
         The `type_param` string specifies the type parameter name, e.g. `list<E>`
         would be a `list_type` whose element type was a `type_param` type
         named `E`.
         
        string type_param = 10;
        Parameters:
        value - The typeParam to set.
        Returns:
        This builder for chaining.
      • clearTypeParam

        public Type.Builder clearTypeParam()
         Type param type.
         The `type_param` string specifies the type parameter name, e.g. `list<E>`
         would be a `list_type` whose element type was a `type_param` type
         named `E`.
         
        string type_param = 10;
        Returns:
        This builder for chaining.
      • setTypeParamBytes

        public Type.Builder setTypeParamBytes​(ByteString value)
         Type param type.
         The `type_param` string specifies the type parameter name, e.g. `list<E>`
         would be a `list_type` whose element type was a `type_param` type
         named `E`.
         
        string type_param = 10;
        Parameters:
        value - The bytes for typeParam to set.
        Returns:
        This builder for chaining.
      • hasType

        public boolean hasType()
         Type type.
         The `type` value specifies the target type. e.g. int is type with a
         target type of `Primitive.INT64`.
         
        .cel.expr.Type type = 11;
        Specified by:
        hasType in interface TypeOrBuilder
        Returns:
        Whether the type field is set.
      • getType

        public Type getType()
         Type type.
         The `type` value specifies the target type. e.g. int is type with a
         target type of `Primitive.INT64`.
         
        .cel.expr.Type type = 11;
        Specified by:
        getType in interface TypeOrBuilder
        Returns:
        The type.
      • setType

        public Type.Builder setType​(Type value)
         Type type.
         The `type` value specifies the target type. e.g. int is type with a
         target type of `Primitive.INT64`.
         
        .cel.expr.Type type = 11;
      • setType

        public Type.Builder setType​(Type.Builder builderForValue)
         Type type.
         The `type` value specifies the target type. e.g. int is type with a
         target type of `Primitive.INT64`.
         
        .cel.expr.Type type = 11;
      • mergeType

        public Type.Builder mergeType​(Type value)
         Type type.
         The `type` value specifies the target type. e.g. int is type with a
         target type of `Primitive.INT64`.
         
        .cel.expr.Type type = 11;
      • clearType

        public Type.Builder clearType()
         Type type.
         The `type` value specifies the target type. e.g. int is type with a
         target type of `Primitive.INT64`.
         
        .cel.expr.Type type = 11;
      • getTypeBuilder

        public Type.Builder getTypeBuilder()
         Type type.
         The `type` value specifies the target type. e.g. int is type with a
         target type of `Primitive.INT64`.
         
        .cel.expr.Type type = 11;
      • getTypeOrBuilder

        public TypeOrBuilder getTypeOrBuilder()
         Type type.
         The `type` value specifies the target type. e.g. int is type with a
         target type of `Primitive.INT64`.
         
        .cel.expr.Type type = 11;
        Specified by:
        getTypeOrBuilder in interface TypeOrBuilder
      • hasError

        public boolean hasError()
         Error type.
         During type-checking if an expression is an error, its type is propagated
         as the `ERROR` type. This permits the type-checker to discover other
         errors present in the expression.
         
        .google.protobuf.Empty error = 12;
        Specified by:
        hasError in interface TypeOrBuilder
        Returns:
        Whether the error field is set.
      • getError

        public Empty getError()
         Error type.
         During type-checking if an expression is an error, its type is propagated
         as the `ERROR` type. This permits the type-checker to discover other
         errors present in the expression.
         
        .google.protobuf.Empty error = 12;
        Specified by:
        getError in interface TypeOrBuilder
        Returns:
        The error.
      • setError

        public Type.Builder setError​(Empty value)
         Error type.
         During type-checking if an expression is an error, its type is propagated
         as the `ERROR` type. This permits the type-checker to discover other
         errors present in the expression.
         
        .google.protobuf.Empty error = 12;
      • setError

        public Type.Builder setError​(Empty.Builder builderForValue)
         Error type.
         During type-checking if an expression is an error, its type is propagated
         as the `ERROR` type. This permits the type-checker to discover other
         errors present in the expression.
         
        .google.protobuf.Empty error = 12;
      • mergeError

        public Type.Builder mergeError​(Empty value)
         Error type.
         During type-checking if an expression is an error, its type is propagated
         as the `ERROR` type. This permits the type-checker to discover other
         errors present in the expression.
         
        .google.protobuf.Empty error = 12;
      • clearError

        public Type.Builder clearError()
         Error type.
         During type-checking if an expression is an error, its type is propagated
         as the `ERROR` type. This permits the type-checker to discover other
         errors present in the expression.
         
        .google.protobuf.Empty error = 12;
      • getErrorBuilder

        public Empty.Builder getErrorBuilder()
         Error type.
         During type-checking if an expression is an error, its type is propagated
         as the `ERROR` type. This permits the type-checker to discover other
         errors present in the expression.
         
        .google.protobuf.Empty error = 12;
      • getErrorOrBuilder

        public EmptyOrBuilder getErrorOrBuilder()
         Error type.
         During type-checking if an expression is an error, its type is propagated
         as the `ERROR` type. This permits the type-checker to discover other
         errors present in the expression.
         
        .google.protobuf.Empty error = 12;
        Specified by:
        getErrorOrBuilder in interface TypeOrBuilder
      • hasAbstractType

        public boolean hasAbstractType()
         Abstract, application defined type.
         An abstract type has no accessible field names, and it can only be
         inspected via helper / member functions.
         
        .cel.expr.Type.AbstractType abstract_type = 14;
        Specified by:
        hasAbstractType in interface TypeOrBuilder
        Returns:
        Whether the abstractType field is set.
      • getAbstractType

        public Type.AbstractType getAbstractType()
         Abstract, application defined type.
         An abstract type has no accessible field names, and it can only be
         inspected via helper / member functions.
         
        .cel.expr.Type.AbstractType abstract_type = 14;
        Specified by:
        getAbstractType in interface TypeOrBuilder
        Returns:
        The abstractType.
      • setAbstractType

        public Type.Builder setAbstractType​(Type.AbstractType value)
         Abstract, application defined type.
         An abstract type has no accessible field names, and it can only be
         inspected via helper / member functions.
         
        .cel.expr.Type.AbstractType abstract_type = 14;
      • setAbstractType

        public Type.Builder setAbstractType​(Type.AbstractType.Builder builderForValue)
         Abstract, application defined type.
         An abstract type has no accessible field names, and it can only be
         inspected via helper / member functions.
         
        .cel.expr.Type.AbstractType abstract_type = 14;
      • mergeAbstractType

        public Type.Builder mergeAbstractType​(Type.AbstractType value)
         Abstract, application defined type.
         An abstract type has no accessible field names, and it can only be
         inspected via helper / member functions.
         
        .cel.expr.Type.AbstractType abstract_type = 14;
      • clearAbstractType

        public Type.Builder clearAbstractType()
         Abstract, application defined type.
         An abstract type has no accessible field names, and it can only be
         inspected via helper / member functions.
         
        .cel.expr.Type.AbstractType abstract_type = 14;
      • getAbstractTypeBuilder

        public Type.AbstractType.Builder getAbstractTypeBuilder()
         Abstract, application defined type.
         An abstract type has no accessible field names, and it can only be
         inspected via helper / member functions.
         
        .cel.expr.Type.AbstractType abstract_type = 14;
      • getAbstractTypeOrBuilder

        public Type.AbstractTypeOrBuilder getAbstractTypeOrBuilder()
         Abstract, application defined type.
         An abstract type has no accessible field names, and it can only be
         inspected via helper / member functions.
         
        .cel.expr.Type.AbstractType abstract_type = 14;
        Specified by:
        getAbstractTypeOrBuilder in interface TypeOrBuilder