Package dev.cel.expr
Class Type.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Type.Builder>
-
- dev.cel.expr.Type.Builder
-
- All Implemented Interfaces:
Message.Builder,MessageLite.Builder,MessageLiteOrBuilder,MessageOrBuilder,TypeOrBuilder,java.lang.Cloneable
- Enclosing class:
- Type
public static final class Type.Builder extends GeneratedMessageV3.Builder<Type.Builder> implements TypeOrBuilder
Represents a CEL type.
Protobuf typecel.expr.Type
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Type.BuilderaddRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)LikesetRepeatedField, but appends the value as a new element.Typebuild()Constructs the message based on the state of the Builder.TypebuildPartial()LikeMessageLite.Builder.build(), but does not throw an exception if the message is missing required fields.Type.Builderclear()Called by the initialization and clear code paths to allow subclasses to reset any of their builtin fields back to the initial values.Type.BuilderclearAbstractType()Abstract, application defined type.Type.BuilderclearDyn()Dynamic type.Type.BuilderclearError()Error type.Type.BuilderclearField(Descriptors.FieldDescriptor field)Clears the field.Type.BuilderclearFunction()Function type.Type.BuilderclearListType()Parameterized list with elements of `list_type`, e.g.Type.BuilderclearMapType()Parameterized map with typed keys and values.Type.BuilderclearMessageType()Protocol buffer message type.Type.BuilderclearNull()Null value.Type.BuilderclearOneof(Descriptors.OneofDescriptor oneof)TODO(jieluo): Clear it when all subclasses have implemented this method.Type.BuilderclearPrimitive()Primitive types: `true`, `1u`, `-2.0`, `'string'`, `b'bytes'`.Type.BuilderclearType()Type type.Type.BuilderclearTypeKind()Type.BuilderclearTypeParam()Type param type.Type.BuilderclearWellKnown()Well-known protobuf type such as `google.protobuf.Timestamp`.Type.BuilderclearWrapper()Wrapper of a primitive type, e.g.Type.Builderclone()Clones the Builder.Type.AbstractTypegetAbstractType()Abstract, application defined type.Type.AbstractType.BuildergetAbstractTypeBuilder()Abstract, application defined type.Type.AbstractTypeOrBuildergetAbstractTypeOrBuilder()Abstract, application defined type.TypegetDefaultInstanceForType()Get an instance of the type with no fields set.static Descriptors.DescriptorgetDescriptor()Descriptors.DescriptorgetDescriptorForType()Get the message's type's descriptor.EmptygetDyn()Dynamic type.Empty.BuildergetDynBuilder()Dynamic type.EmptyOrBuildergetDynOrBuilder()Dynamic type.EmptygetError()Error type.Empty.BuildergetErrorBuilder()Error type.EmptyOrBuildergetErrorOrBuilder()Error type.Type.FunctionTypegetFunction()Function type.Type.FunctionType.BuildergetFunctionBuilder()Function type.Type.FunctionTypeOrBuildergetFunctionOrBuilder()Function type.Type.ListTypegetListType()Parameterized list with elements of `list_type`, e.g.Type.ListType.BuildergetListTypeBuilder()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.MapType.BuildergetMapTypeBuilder()Parameterized map with typed keys and values.Type.MapTypeOrBuildergetMapTypeOrBuilder()Parameterized map with typed keys and values.java.lang.StringgetMessageType()Protocol buffer message type.ByteStringgetMessageTypeBytes()Protocol buffer message type.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.BuildergetTypeBuilder()Type type.Type.TypeKindCasegetTypeKindCase()TypeOrBuildergetTypeOrBuilder()Type type.java.lang.StringgetTypeParam()Type param type.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.protected GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()Get the FieldAccessorTable for this type.booleanisInitialized()Returns true if all required fields in the message and all embedded messages are set, false otherwise.Type.BuildermergeAbstractType(Type.AbstractType value)Abstract, application defined type.Type.BuildermergeDyn(Empty value)Dynamic type.Type.BuildermergeError(Empty value)Error type.Type.BuildermergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)LikeMessageLite.Builder.mergeFrom(CodedInputStream), but also parses extensions.Type.BuildermergeFrom(Message other)Mergeotherinto the message being built.Type.BuildermergeFrom(Type other)Type.BuildermergeFunction(Type.FunctionType value)Function type.Type.BuildermergeListType(Type.ListType value)Parameterized list with elements of `list_type`, e.g.Type.BuildermergeMapType(Type.MapType value)Parameterized map with typed keys and values.Type.BuildermergeType(Type value)Type type.Type.BuildermergeUnknownFields(UnknownFieldSet unknownFields)Merge some unknown fields into theUnknownFieldSetfor this message.Type.BuildersetAbstractType(Type.AbstractType value)Abstract, application defined type.Type.BuildersetAbstractType(Type.AbstractType.Builder builderForValue)Abstract, application defined type.Type.BuildersetDyn(Empty value)Dynamic type.Type.BuildersetDyn(Empty.Builder builderForValue)Dynamic type.Type.BuildersetError(Empty value)Error type.Type.BuildersetError(Empty.Builder builderForValue)Error type.Type.BuildersetField(Descriptors.FieldDescriptor field, java.lang.Object value)Sets a field to the given value.Type.BuildersetFunction(Type.FunctionType value)Function type.Type.BuildersetFunction(Type.FunctionType.Builder builderForValue)Function type.Type.BuildersetListType(Type.ListType value)Parameterized list with elements of `list_type`, e.g.Type.BuildersetListType(Type.ListType.Builder builderForValue)Parameterized list with elements of `list_type`, e.g.Type.BuildersetMapType(Type.MapType value)Parameterized map with typed keys and values.Type.BuildersetMapType(Type.MapType.Builder builderForValue)Parameterized map with typed keys and values.Type.BuildersetMessageType(java.lang.String value)Protocol buffer message type.Type.BuildersetMessageTypeBytes(ByteString value)Protocol buffer message type.Type.BuildersetNull(NullValue value)Null value.Type.BuildersetNullValue(int value)Null value.Type.BuildersetPrimitive(Type.PrimitiveType value)Primitive types: `true`, `1u`, `-2.0`, `'string'`, `b'bytes'`.Type.BuildersetPrimitiveValue(int value)Primitive types: `true`, `1u`, `-2.0`, `'string'`, `b'bytes'`.Type.BuildersetRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)Sets an element of a repeated field to the given value.Type.BuildersetType(Type value)Type type.Type.BuildersetType(Type.Builder builderForValue)Type type.Type.BuildersetTypeParam(java.lang.String value)Type param type.Type.BuildersetTypeParamBytes(ByteString value)Type param type.Type.BuildersetUnknownFields(UnknownFieldSet unknownFields)Set theUnknownFieldSetfor this message.Type.BuildersetWellKnown(Type.WellKnownType value)Well-known protobuf type such as `google.protobuf.Timestamp`.Type.BuildersetWellKnownValue(int value)Well-known protobuf type such as `google.protobuf.Timestamp`.Type.BuildersetWrapper(Type.PrimitiveType value)Wrapper of a primitive type, e.g.Type.BuildersetWrapperValue(int value)Wrapper of a primitive type, e.g.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
-
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getDescriptor
public static final Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Description copied from class:GeneratedMessageV3.BuilderGet the FieldAccessorTable for this type. We can't have the message class pass this in to the constructor because of bootstrapping trouble with DescriptorProtos.- Specified by:
internalGetFieldAccessorTablein classGeneratedMessageV3.Builder<Type.Builder>
-
clear
public Type.Builder clear()
Description copied from class:GeneratedMessageV3.BuilderCalled by the initialization and clear code paths to allow subclasses to reset any of their builtin fields back to the initial values.- Specified by:
clearin interfaceMessage.Builder- Specified by:
clearin interfaceMessageLite.Builder- Overrides:
clearin classGeneratedMessageV3.Builder<Type.Builder>
-
getDescriptorForType
public Descriptors.Descriptor getDescriptorForType()
Description copied from interface:Message.BuilderGet the message's type's descriptor. SeeMessageOrBuilder.getDescriptorForType().- Specified by:
getDescriptorForTypein interfaceMessage.Builder- Specified by:
getDescriptorForTypein interfaceMessageOrBuilder- Overrides:
getDescriptorForTypein classGeneratedMessageV3.Builder<Type.Builder>
-
getDefaultInstanceForType
public Type getDefaultInstanceForType()
Description copied from interface:MessageLiteOrBuilderGet 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 thegetDefaultInstance()method of generated message classes in that this method is an abstract method of theMessageLiteinterface whereasgetDefaultInstance()is a static method of a specific class. They return the same thing.- Specified by:
getDefaultInstanceForTypein interfaceMessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceMessageOrBuilder
-
build
public Type build()
Description copied from interface:MessageLite.BuilderConstructs the message based on the state of the Builder. Subsequent changes to the Builder will not affect the returned message.- Specified by:
buildin interfaceMessage.Builder- Specified by:
buildin interfaceMessageLite.Builder
-
buildPartial
public Type buildPartial()
Description copied from interface:MessageLite.BuilderLikeMessageLite.Builder.build(), but does not throw an exception if the message is missing required fields. Instead, a partial message is returned. Subsequent changes to the Builder will not affect the returned message.- Specified by:
buildPartialin interfaceMessage.Builder- Specified by:
buildPartialin interfaceMessageLite.Builder
-
clone
public Type.Builder clone()
Description copied from interface:MessageLite.BuilderClones the Builder.- Specified by:
clonein interfaceMessage.Builder- Specified by:
clonein interfaceMessageLite.Builder- Overrides:
clonein classGeneratedMessageV3.Builder<Type.Builder>- See Also:
Object.clone()
-
setField
public Type.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
Description copied from interface:Message.BuilderSets a field to the given value. The value must be of the correct type for this field, that is, the same type thatMessageOrBuilder.getField(Descriptors.FieldDescriptor)returns.- Specified by:
setFieldin interfaceMessage.Builder- Overrides:
setFieldin classGeneratedMessageV3.Builder<Type.Builder>
-
clearField
public Type.Builder clearField(Descriptors.FieldDescriptor field)
Description copied from interface:Message.BuilderClears the field. This is exactly equivalent to calling the generated "clear" accessor method corresponding to the field.- Specified by:
clearFieldin interfaceMessage.Builder- Overrides:
clearFieldin classGeneratedMessageV3.Builder<Type.Builder>
-
clearOneof
public Type.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Description copied from class:AbstractMessage.BuilderTODO(jieluo): Clear it when all subclasses have implemented this method.- Specified by:
clearOneofin interfaceMessage.Builder- Overrides:
clearOneofin classGeneratedMessageV3.Builder<Type.Builder>
-
setRepeatedField
public Type.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
Description copied from interface:Message.BuilderSets an element of a repeated field to the given value. The value must be of the correct type for this field; that is, the same type thatMessageOrBuilder.getRepeatedField(Descriptors.FieldDescriptor,int)returns.- Specified by:
setRepeatedFieldin interfaceMessage.Builder- Overrides:
setRepeatedFieldin classGeneratedMessageV3.Builder<Type.Builder>
-
addRepeatedField
public Type.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
Description copied from interface:Message.BuilderLikesetRepeatedField, but appends the value as a new element.- Specified by:
addRepeatedFieldin interfaceMessage.Builder- Overrides:
addRepeatedFieldin classGeneratedMessageV3.Builder<Type.Builder>
-
mergeFrom
public Type.Builder mergeFrom(Message other)
Description copied from interface:Message.BuilderMergeotherinto the message being built.othermust have the exact same type asthis(i.e.getDescriptorForType() == other.getDescriptorForType()).Merging occurs as follows. For each field:
* For singular primitive fields, if the field is set inother, thenother's value overwrites the value in this message.
* For singular message fields, if the field is set inother, it is merged into the corresponding sub-message of this message using the same merging rules.
* For repeated fields, the elements inotherare 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::MergeFrommethod in C++.- Specified by:
mergeFromin interfaceMessage.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<Type.Builder>
-
mergeFrom
public Type.Builder mergeFrom(Type other)
-
isInitialized
public final boolean isInitialized()
Description copied from interface:MessageLiteOrBuilderReturns true if all required fields in the message and all embedded messages are set, false otherwise.- Specified by:
isInitializedin interfaceMessageLiteOrBuilder- Overrides:
isInitializedin classGeneratedMessageV3.Builder<Type.Builder>
-
mergeFrom
public Type.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
Description copied from interface:MessageLite.BuilderLikeMessageLite.Builder.mergeFrom(CodedInputStream), but also parses extensions. The extensions that you want to be able to parse must be registered inextensionRegistry. Extensions not in the registry will be treated as unknown fields.- Specified by:
mergeFromin interfaceMessage.Builder- Specified by:
mergeFromin interfaceMessageLite.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<Type.Builder>- Throws:
InvalidProtocolBufferException- the bytes read are not syntactically correct according to the protobuf wire format specification. The data is corrupt, incomplete, or was never a protobuf in the first place.java.io.IOException- an I/O error reading from the stream
-
getTypeKindCase
public Type.TypeKindCase getTypeKindCase()
- Specified by:
getTypeKindCasein interfaceTypeOrBuilder
-
clearTypeKind
public Type.Builder clearTypeKind()
-
hasDyn
public boolean hasDyn()
Dynamic type.
.google.protobuf.Empty dyn = 1;- Specified by:
hasDynin interfaceTypeOrBuilder- Returns:
- Whether the dyn field is set.
-
getDyn
public Empty getDyn()
Dynamic type.
.google.protobuf.Empty dyn = 1;- Specified by:
getDynin interfaceTypeOrBuilder- Returns:
- The dyn.
-
setDyn
public Type.Builder setDyn(Empty value)
Dynamic type.
.google.protobuf.Empty dyn = 1;
-
setDyn
public Type.Builder setDyn(Empty.Builder builderForValue)
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;
-
getDynOrBuilder
public EmptyOrBuilder getDynOrBuilder()
Dynamic type.
.google.protobuf.Empty dyn = 1;- Specified by:
getDynOrBuilderin interfaceTypeOrBuilder
-
hasNull
public boolean hasNull()
Null value.
.google.protobuf.NullValue null = 2;- Specified by:
hasNullin interfaceTypeOrBuilder- Returns:
- Whether the null field is set.
-
getNullValue
public int getNullValue()
Null value.
.google.protobuf.NullValue null = 2;- Specified by:
getNullValuein interfaceTypeOrBuilder- 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:
getNullin interfaceTypeOrBuilder- 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:
hasPrimitivein interfaceTypeOrBuilder- 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:
getPrimitiveValuein interfaceTypeOrBuilder- 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:
getPrimitivein interfaceTypeOrBuilder- 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:
hasWrapperin interfaceTypeOrBuilder- 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:
getWrapperValuein interfaceTypeOrBuilder- 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:
getWrapperin interfaceTypeOrBuilder- 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:
hasWellKnownin interfaceTypeOrBuilder- 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:
getWellKnownValuein interfaceTypeOrBuilder- 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:
getWellKnownin interfaceTypeOrBuilder- 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:
hasListTypein interfaceTypeOrBuilder- 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:
getListTypein interfaceTypeOrBuilder- 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;
-
getListTypeOrBuilder
public Type.ListTypeOrBuilder getListTypeOrBuilder()
Parameterized list with elements of `list_type`, e.g. `list<timestamp>`.
.cel.expr.Type.ListType list_type = 6;- Specified by:
getListTypeOrBuilderin interfaceTypeOrBuilder
-
hasMapType
public boolean hasMapType()
Parameterized map with typed keys and values.
.cel.expr.Type.MapType map_type = 7;- Specified by:
hasMapTypein interfaceTypeOrBuilder- 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:
getMapTypein interfaceTypeOrBuilder- 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;
-
getMapTypeOrBuilder
public Type.MapTypeOrBuilder getMapTypeOrBuilder()
Parameterized map with typed keys and values.
.cel.expr.Type.MapType map_type = 7;- Specified by:
getMapTypeOrBuilderin interfaceTypeOrBuilder
-
hasFunction
public boolean hasFunction()
Function type.
.cel.expr.Type.FunctionType function = 8;- Specified by:
hasFunctionin interfaceTypeOrBuilder- Returns:
- Whether the function field is set.
-
getFunction
public Type.FunctionType getFunction()
Function type.
.cel.expr.Type.FunctionType function = 8;- Specified by:
getFunctionin interfaceTypeOrBuilder- Returns:
- The function.
-
setFunction
public Type.Builder setFunction(Type.FunctionType value)
Function type.
.cel.expr.Type.FunctionType function = 8;
-
setFunction
public Type.Builder setFunction(Type.FunctionType.Builder builderForValue)
Function type.
.cel.expr.Type.FunctionType function = 8;
-
mergeFunction
public Type.Builder mergeFunction(Type.FunctionType value)
Function type.
.cel.expr.Type.FunctionType function = 8;
-
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;
-
getFunctionOrBuilder
public Type.FunctionTypeOrBuilder getFunctionOrBuilder()
Function type.
.cel.expr.Type.FunctionType function = 8;- Specified by:
getFunctionOrBuilderin interfaceTypeOrBuilder
-
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:
hasMessageTypein interfaceTypeOrBuilder- 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:
getMessageTypein interfaceTypeOrBuilder- 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:
getMessageTypeBytesin interfaceTypeOrBuilder- 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:
hasTypeParamin interfaceTypeOrBuilder- 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:
getTypeParamin interfaceTypeOrBuilder- 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:
getTypeParamBytesin interfaceTypeOrBuilder- 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:
hasTypein interfaceTypeOrBuilder- 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:
getTypein interfaceTypeOrBuilder- 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:
getTypeOrBuilderin interfaceTypeOrBuilder
-
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:
hasErrorin interfaceTypeOrBuilder- 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:
getErrorin interfaceTypeOrBuilder- 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:
getErrorOrBuilderin interfaceTypeOrBuilder
-
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:
hasAbstractTypein interfaceTypeOrBuilder- 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:
getAbstractTypein interfaceTypeOrBuilder- 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:
getAbstractTypeOrBuilderin interfaceTypeOrBuilder
-
setUnknownFields
public final Type.Builder setUnknownFields(UnknownFieldSet unknownFields)
Description copied from interface:Message.BuilderSet theUnknownFieldSetfor this message.- Specified by:
setUnknownFieldsin interfaceMessage.Builder- Overrides:
setUnknownFieldsin classGeneratedMessageV3.Builder<Type.Builder>
-
mergeUnknownFields
public final Type.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Description copied from interface:Message.BuilderMerge some unknown fields into theUnknownFieldSetfor this message.- Specified by:
mergeUnknownFieldsin interfaceMessage.Builder- Overrides:
mergeUnknownFieldsin classGeneratedMessageV3.Builder<Type.Builder>
-
-