Package dev.cel.expr
Interface TypeOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Type,Type.Builder
public interface TypeOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Type.AbstractTypegetAbstractType()Abstract, application defined type.Type.AbstractTypeOrBuildergetAbstractTypeOrBuilder()Abstract, application defined type.com.google.protobuf.EmptygetDyn()Dynamic type.com.google.protobuf.EmptyOrBuildergetDynOrBuilder()Dynamic type.com.google.protobuf.EmptygetError()Error type.com.google.protobuf.EmptyOrBuildergetErrorOrBuilder()Error type.Type.FunctionTypegetFunction()Function type.Type.FunctionTypeOrBuildergetFunctionOrBuilder()Function type.Type.ListTypegetListType()Parameterized list with elements of `list_type`, e.g.Type.ListTypeOrBuildergetListTypeOrBuilder()Parameterized list with elements of `list_type`, e.g.Type.MapTypegetMapType()Parameterized map with typed keys and values.Type.MapTypeOrBuildergetMapTypeOrBuilder()Parameterized map with typed keys and values.java.lang.StringgetMessageType()Protocol buffer message type.com.google.protobuf.ByteStringgetMessageTypeBytes()Protocol buffer message type.com.google.protobuf.NullValuegetNull()Null value.intgetNullValue()Null value.Type.PrimitiveTypegetPrimitive()Primitive types: `true`, `1u`, `-2.0`, `'string'`, `b'bytes'`.intgetPrimitiveValue()Primitive types: `true`, `1u`, `-2.0`, `'string'`, `b'bytes'`.TypegetType()Type type.Type.TypeKindCasegetTypeKindCase()TypeOrBuildergetTypeOrBuilder()Type type.java.lang.StringgetTypeParam()Type param type.com.google.protobuf.ByteStringgetTypeParamBytes()Type param type.Type.WellKnownTypegetWellKnown()Well-known protobuf type such as `google.protobuf.Timestamp`.intgetWellKnownValue()Well-known protobuf type such as `google.protobuf.Timestamp`.Type.PrimitiveTypegetWrapper()Wrapper of a primitive type, e.g.intgetWrapperValue()Wrapper of a primitive type, e.g.booleanhasAbstractType()Abstract, application defined type.booleanhasDyn()Dynamic type.booleanhasError()Error type.booleanhasFunction()Function type.booleanhasListType()Parameterized list with elements of `list_type`, e.g.booleanhasMapType()Parameterized map with typed keys and values.booleanhasMessageType()Protocol buffer message type.booleanhasNull()Null value.booleanhasPrimitive()Primitive types: `true`, `1u`, `-2.0`, `'string'`, `b'bytes'`.booleanhasType()Type type.booleanhasTypeParam()Type param type.booleanhasWellKnown()Well-known protobuf type such as `google.protobuf.Timestamp`.booleanhasWrapper()Wrapper of a primitive type, e.g.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasDyn
boolean hasDyn()
Dynamic type.
.google.protobuf.Empty dyn = 1;- Returns:
- Whether the dyn field is set.
-
getDyn
com.google.protobuf.Empty getDyn()
Dynamic type.
.google.protobuf.Empty dyn = 1;- Returns:
- The dyn.
-
getDynOrBuilder
com.google.protobuf.EmptyOrBuilder getDynOrBuilder()
Dynamic type.
.google.protobuf.Empty dyn = 1;
-
hasNull
boolean hasNull()
Null value.
.google.protobuf.NullValue null = 2;- Returns:
- Whether the null field is set.
-
getNullValue
int getNullValue()
Null value.
.google.protobuf.NullValue null = 2;- Returns:
- The enum numeric value on the wire for null.
-
getNull
com.google.protobuf.NullValue getNull()
Null value.
.google.protobuf.NullValue null = 2;- Returns:
- The null.
-
hasPrimitive
boolean hasPrimitive()
Primitive types: `true`, `1u`, `-2.0`, `'string'`, `b'bytes'`.
.cel.expr.Type.PrimitiveType primitive = 3;- Returns:
- Whether the primitive field is set.
-
getPrimitiveValue
int getPrimitiveValue()
Primitive types: `true`, `1u`, `-2.0`, `'string'`, `b'bytes'`.
.cel.expr.Type.PrimitiveType primitive = 3;- Returns:
- The enum numeric value on the wire for primitive.
-
getPrimitive
Type.PrimitiveType getPrimitive()
Primitive types: `true`, `1u`, `-2.0`, `'string'`, `b'bytes'`.
.cel.expr.Type.PrimitiveType primitive = 3;- Returns:
- The primitive.
-
hasWrapper
boolean hasWrapper()
Wrapper of a primitive type, e.g. `google.protobuf.Int64Value`.
.cel.expr.Type.PrimitiveType wrapper = 4;- Returns:
- Whether the wrapper field is set.
-
getWrapperValue
int getWrapperValue()
Wrapper of a primitive type, e.g. `google.protobuf.Int64Value`.
.cel.expr.Type.PrimitiveType wrapper = 4;- Returns:
- The enum numeric value on the wire for wrapper.
-
getWrapper
Type.PrimitiveType getWrapper()
Wrapper of a primitive type, e.g. `google.protobuf.Int64Value`.
.cel.expr.Type.PrimitiveType wrapper = 4;- Returns:
- The wrapper.
-
hasWellKnown
boolean hasWellKnown()
Well-known protobuf type such as `google.protobuf.Timestamp`.
.cel.expr.Type.WellKnownType well_known = 5;- Returns:
- Whether the wellKnown field is set.
-
getWellKnownValue
int getWellKnownValue()
Well-known protobuf type such as `google.protobuf.Timestamp`.
.cel.expr.Type.WellKnownType well_known = 5;- Returns:
- The enum numeric value on the wire for wellKnown.
-
getWellKnown
Type.WellKnownType getWellKnown()
Well-known protobuf type such as `google.protobuf.Timestamp`.
.cel.expr.Type.WellKnownType well_known = 5;- Returns:
- The wellKnown.
-
hasListType
boolean hasListType()
Parameterized list with elements of `list_type`, e.g. `list<timestamp>`.
.cel.expr.Type.ListType list_type = 6;- Returns:
- Whether the listType field is set.
-
getListType
Type.ListType getListType()
Parameterized list with elements of `list_type`, e.g. `list<timestamp>`.
.cel.expr.Type.ListType list_type = 6;- Returns:
- The listType.
-
getListTypeOrBuilder
Type.ListTypeOrBuilder getListTypeOrBuilder()
Parameterized list with elements of `list_type`, e.g. `list<timestamp>`.
.cel.expr.Type.ListType list_type = 6;
-
hasMapType
boolean hasMapType()
Parameterized map with typed keys and values.
.cel.expr.Type.MapType map_type = 7;- Returns:
- Whether the mapType field is set.
-
getMapType
Type.MapType getMapType()
Parameterized map with typed keys and values.
.cel.expr.Type.MapType map_type = 7;- Returns:
- The mapType.
-
getMapTypeOrBuilder
Type.MapTypeOrBuilder getMapTypeOrBuilder()
Parameterized map with typed keys and values.
.cel.expr.Type.MapType map_type = 7;
-
hasFunction
boolean hasFunction()
Function type.
.cel.expr.Type.FunctionType function = 8;- Returns:
- Whether the function field is set.
-
getFunction
Type.FunctionType getFunction()
Function type.
.cel.expr.Type.FunctionType function = 8;- Returns:
- The function.
-
getFunctionOrBuilder
Type.FunctionTypeOrBuilder getFunctionOrBuilder()
Function type.
.cel.expr.Type.FunctionType function = 8;
-
hasMessageType
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;- Returns:
- Whether the messageType field is set.
-
getMessageType
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;- Returns:
- The messageType.
-
getMessageTypeBytes
com.google.protobuf.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;- Returns:
- The bytes for messageType.
-
hasTypeParam
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;- Returns:
- Whether the typeParam field is set.
-
getTypeParam
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;- Returns:
- The typeParam.
-
getTypeParamBytes
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;- Returns:
- The bytes for typeParam.
-
hasType
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;- Returns:
- Whether the type field is set.
-
getType
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;- Returns:
- The type.
-
getTypeOrBuilder
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;
-
hasError
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;- Returns:
- Whether the error field is set.
-
getError
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;- Returns:
- The error.
-
getErrorOrBuilder
com.google.protobuf.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;
-
hasAbstractType
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;- Returns:
- Whether the abstractType field is set.
-
getAbstractType
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;- Returns:
- The abstractType.
-
getAbstractTypeOrBuilder
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;
-
getTypeKindCase
Type.TypeKindCase getTypeKindCase()
-
-