Class Type.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Type,Type.Builder>
com.google.api.expr.v1alpha1.Type.Builder
All Implemented Interfaces:
TypeOrBuilder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Cloneable
Enclosing class:
Type

public static final class Type.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<Type,Type.Builder> implements TypeOrBuilder
 Represents a CEL type.
 
Protobuf type google.api.expr.v1alpha1.Type
  • Method Details

    • getTypeKindCase

      public Type.TypeKindCase getTypeKindCase()
      Specified by:
      getTypeKindCase in interface TypeOrBuilder
    • clearTypeKind

      public Type.Builder clearTypeKind()
    • hasDyn

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

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

      public Type.Builder setDyn(com.google.protobuf.Empty value)
       Dynamic type.
       
      .google.protobuf.Empty dyn = 1 [json_name = "dyn"];
    • setDyn

      public Type.Builder setDyn(com.google.protobuf.Empty.Builder builderForValue)
       Dynamic type.
       
      .google.protobuf.Empty dyn = 1 [json_name = "dyn"];
    • mergeDyn

      public Type.Builder mergeDyn(com.google.protobuf.Empty value)
       Dynamic type.
       
      .google.protobuf.Empty dyn = 1 [json_name = "dyn"];
    • clearDyn

      public Type.Builder clearDyn()
       Dynamic type.
       
      .google.protobuf.Empty dyn = 1 [json_name = "dyn"];
    • hasNull

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

      public int getNullValue()
       Null value.
       
      .google.protobuf.NullValue null = 2 [json_name = "null"];
      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 [json_name = "null"];
      Parameters:
      value - The enum numeric value on the wire for null to set.
      Returns:
      This builder for chaining.
    • getNull

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

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

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

      public boolean hasPrimitive()
       Primitive types: `true`, `1u`, `-2.0`, `'string'`, `b'bytes'`.
       
      .google.api.expr.v1alpha1.Type.PrimitiveType primitive = 3 [json_name = "primitive"];
      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'`.
       
      .google.api.expr.v1alpha1.Type.PrimitiveType primitive = 3 [json_name = "primitive"];
      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'`.
       
      .google.api.expr.v1alpha1.Type.PrimitiveType primitive = 3 [json_name = "primitive"];
      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'`.
       
      .google.api.expr.v1alpha1.Type.PrimitiveType primitive = 3 [json_name = "primitive"];
      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'`.
       
      .google.api.expr.v1alpha1.Type.PrimitiveType primitive = 3 [json_name = "primitive"];
      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'`.
       
      .google.api.expr.v1alpha1.Type.PrimitiveType primitive = 3 [json_name = "primitive"];
      Returns:
      This builder for chaining.
    • hasWrapper

      public boolean hasWrapper()
       Wrapper of a primitive type, e.g. `google.protobuf.Int64Value`.
       
      .google.api.expr.v1alpha1.Type.PrimitiveType wrapper = 4 [json_name = "wrapper"];
      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`.
       
      .google.api.expr.v1alpha1.Type.PrimitiveType wrapper = 4 [json_name = "wrapper"];
      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`.
       
      .google.api.expr.v1alpha1.Type.PrimitiveType wrapper = 4 [json_name = "wrapper"];
      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`.
       
      .google.api.expr.v1alpha1.Type.PrimitiveType wrapper = 4 [json_name = "wrapper"];
      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`.
       
      .google.api.expr.v1alpha1.Type.PrimitiveType wrapper = 4 [json_name = "wrapper"];
      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`.
       
      .google.api.expr.v1alpha1.Type.PrimitiveType wrapper = 4 [json_name = "wrapper"];
      Returns:
      This builder for chaining.
    • hasWellKnown

      public boolean hasWellKnown()
       Well-known protobuf type such as `google.protobuf.Timestamp`.
       
      .google.api.expr.v1alpha1.Type.WellKnownType well_known = 5 [json_name = "wellKnown"];
      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`.
       
      .google.api.expr.v1alpha1.Type.WellKnownType well_known = 5 [json_name = "wellKnown"];
      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`.
       
      .google.api.expr.v1alpha1.Type.WellKnownType well_known = 5 [json_name = "wellKnown"];
      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`.
       
      .google.api.expr.v1alpha1.Type.WellKnownType well_known = 5 [json_name = "wellKnown"];
      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`.
       
      .google.api.expr.v1alpha1.Type.WellKnownType well_known = 5 [json_name = "wellKnown"];
      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`.
       
      .google.api.expr.v1alpha1.Type.WellKnownType well_known = 5 [json_name = "wellKnown"];
      Returns:
      This builder for chaining.
    • hasListType

      public boolean hasListType()
       Parameterized list with elements of `list_type`, e.g. `list<timestamp>`.
       
      .google.api.expr.v1alpha1.Type.ListType list_type = 6 [json_name = "listType"];
      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>`.
       
      .google.api.expr.v1alpha1.Type.ListType list_type = 6 [json_name = "listType"];
      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>`.
       
      .google.api.expr.v1alpha1.Type.ListType list_type = 6 [json_name = "listType"];
    • setListType

      public Type.Builder setListType(Type.ListType.Builder builderForValue)
       Parameterized list with elements of `list_type`, e.g. `list<timestamp>`.
       
      .google.api.expr.v1alpha1.Type.ListType list_type = 6 [json_name = "listType"];
    • mergeListType

      public Type.Builder mergeListType(Type.ListType value)
       Parameterized list with elements of `list_type`, e.g. `list<timestamp>`.
       
      .google.api.expr.v1alpha1.Type.ListType list_type = 6 [json_name = "listType"];
    • clearListType

      public Type.Builder clearListType()
       Parameterized list with elements of `list_type`, e.g. `list<timestamp>`.
       
      .google.api.expr.v1alpha1.Type.ListType list_type = 6 [json_name = "listType"];
    • hasMapType

      public boolean hasMapType()
       Parameterized map with typed keys and values.
       
      .google.api.expr.v1alpha1.Type.MapType map_type = 7 [json_name = "mapType"];
      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.
       
      .google.api.expr.v1alpha1.Type.MapType map_type = 7 [json_name = "mapType"];
      Specified by:
      getMapType in interface TypeOrBuilder
      Returns:
      The mapType.
    • setMapType

      public Type.Builder setMapType(Type.MapType value)
       Parameterized map with typed keys and values.
       
      .google.api.expr.v1alpha1.Type.MapType map_type = 7 [json_name = "mapType"];
    • setMapType

      public Type.Builder setMapType(Type.MapType.Builder builderForValue)
       Parameterized map with typed keys and values.
       
      .google.api.expr.v1alpha1.Type.MapType map_type = 7 [json_name = "mapType"];
    • mergeMapType

      public Type.Builder mergeMapType(Type.MapType value)
       Parameterized map with typed keys and values.
       
      .google.api.expr.v1alpha1.Type.MapType map_type = 7 [json_name = "mapType"];
    • clearMapType

      public Type.Builder clearMapType()
       Parameterized map with typed keys and values.
       
      .google.api.expr.v1alpha1.Type.MapType map_type = 7 [json_name = "mapType"];
    • hasFunction

      public boolean hasFunction()
       Function type.
       
      .google.api.expr.v1alpha1.Type.FunctionType function = 8 [json_name = "function"];
      Specified by:
      hasFunction in interface TypeOrBuilder
      Returns:
      Whether the function field is set.
    • getFunction

      public Type.FunctionType getFunction()
       Function type.
       
      .google.api.expr.v1alpha1.Type.FunctionType function = 8 [json_name = "function"];
      Specified by:
      getFunction in interface TypeOrBuilder
      Returns:
      The function.
    • setFunction

      public Type.Builder setFunction(Type.FunctionType value)
       Function type.
       
      .google.api.expr.v1alpha1.Type.FunctionType function = 8 [json_name = "function"];
    • setFunction

      public Type.Builder setFunction(Type.FunctionType.Builder builderForValue)
       Function type.
       
      .google.api.expr.v1alpha1.Type.FunctionType function = 8 [json_name = "function"];
    • mergeFunction

      public Type.Builder mergeFunction(Type.FunctionType value)
       Function type.
       
      .google.api.expr.v1alpha1.Type.FunctionType function = 8 [json_name = "function"];
    • clearFunction

      public Type.Builder clearFunction()
       Function type.
       
      .google.api.expr.v1alpha1.Type.FunctionType function = 8 [json_name = "function"];
    • hasMessageType

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

      public String getMessageType()
       Protocol buffer message type.
      
       The `message_type` string specifies the qualified message type name. For
       example, `google.plus.Profile`.
       
      string message_type = 9 [json_name = "messageType"];
      Specified by:
      getMessageType in interface TypeOrBuilder
      Returns:
      The messageType.
    • getMessageTypeBytes

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

      public Type.Builder setMessageType(String value)
       Protocol buffer message type.
      
       The `message_type` string specifies the qualified message type name. For
       example, `google.plus.Profile`.
       
      string message_type = 9 [json_name = "messageType"];
      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.plus.Profile`.
       
      string message_type = 9 [json_name = "messageType"];
      Returns:
      This builder for chaining.
    • setMessageTypeBytes

      public Type.Builder setMessageTypeBytes(com.google.protobuf.ByteString value)
       Protocol buffer message type.
      
       The `message_type` string specifies the qualified message type name. For
       example, `google.plus.Profile`.
       
      string message_type = 9 [json_name = "messageType"];
      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 [json_name = "typeParam"];
      Specified by:
      hasTypeParam in interface TypeOrBuilder
      Returns:
      Whether the typeParam field is set.
    • getTypeParam

      public 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 [json_name = "typeParam"];
      Specified by:
      getTypeParam in interface TypeOrBuilder
      Returns:
      The typeParam.
    • getTypeParamBytes

      public com.google.protobuf.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 [json_name = "typeParam"];
      Specified by:
      getTypeParamBytes in interface TypeOrBuilder
      Returns:
      The bytes for typeParam.
    • setTypeParam

      public Type.Builder setTypeParam(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 [json_name = "typeParam"];
      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 [json_name = "typeParam"];
      Returns:
      This builder for chaining.
    • setTypeParamBytes

      public Type.Builder setTypeParamBytes(com.google.protobuf.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 [json_name = "typeParam"];
      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.INT`.
       
      .google.api.expr.v1alpha1.Type type = 11 [json_name = "type"];
      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.INT`.
       
      .google.api.expr.v1alpha1.Type type = 11 [json_name = "type"];
      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.INT`.
       
      .google.api.expr.v1alpha1.Type type = 11 [json_name = "type"];
    • 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.INT`.
       
      .google.api.expr.v1alpha1.Type type = 11 [json_name = "type"];
    • 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.INT`.
       
      .google.api.expr.v1alpha1.Type type = 11 [json_name = "type"];
    • 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.INT`.
       
      .google.api.expr.v1alpha1.Type type = 11 [json_name = "type"];
    • 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 [json_name = "error"];
      Specified by:
      hasError in interface TypeOrBuilder
      Returns:
      Whether the error field is set.
    • getError

      public com.google.protobuf.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 [json_name = "error"];
      Specified by:
      getError in interface TypeOrBuilder
      Returns:
      The error.
    • setError

      public Type.Builder setError(com.google.protobuf.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 [json_name = "error"];
    • setError

      public Type.Builder setError(com.google.protobuf.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 [json_name = "error"];
    • mergeError

      public Type.Builder mergeError(com.google.protobuf.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 [json_name = "error"];
    • 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 [json_name = "error"];
    • hasAbstractType

      public boolean hasAbstractType()
       Abstract, application defined type.
       
      .google.api.expr.v1alpha1.Type.AbstractType abstract_type = 14 [json_name = "abstractType"];
      Specified by:
      hasAbstractType in interface TypeOrBuilder
      Returns:
      Whether the abstractType field is set.
    • getAbstractType

      public Type.AbstractType getAbstractType()
       Abstract, application defined type.
       
      .google.api.expr.v1alpha1.Type.AbstractType abstract_type = 14 [json_name = "abstractType"];
      Specified by:
      getAbstractType in interface TypeOrBuilder
      Returns:
      The abstractType.
    • setAbstractType

      public Type.Builder setAbstractType(Type.AbstractType value)
       Abstract, application defined type.
       
      .google.api.expr.v1alpha1.Type.AbstractType abstract_type = 14 [json_name = "abstractType"];
    • setAbstractType

      public Type.Builder setAbstractType(Type.AbstractType.Builder builderForValue)
       Abstract, application defined type.
       
      .google.api.expr.v1alpha1.Type.AbstractType abstract_type = 14 [json_name = "abstractType"];
    • mergeAbstractType

      public Type.Builder mergeAbstractType(Type.AbstractType value)
       Abstract, application defined type.
       
      .google.api.expr.v1alpha1.Type.AbstractType abstract_type = 14 [json_name = "abstractType"];
    • clearAbstractType

      public Type.Builder clearAbstractType()
       Abstract, application defined type.
       
      .google.api.expr.v1alpha1.Type.AbstractType abstract_type = 14 [json_name = "abstractType"];