Package dev.cel.checker
Class DescriptorTypeProvider.FieldDef
- java.lang.Object
-
- dev.cel.checker.DescriptorTypeProvider.FieldDef
-
- Enclosing class:
- DescriptorTypeProvider
protected abstract static class DescriptorTypeProvider.FieldDef extends java.lang.ObjectValue object for a proto-based field definition.Only one of the
type()ormapEntryType()may be set.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedFieldDef()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)inthashCode()booleanisMap()The field is a map if it has a non-nullmapEntryType().abstract @Nullable DescriptorTypeProvider.MapEntryDefmapEntryType()The fieldMapEntryDef.abstract java.lang.Stringname()The field name.abstract booleanrepeated()The field is repeated if it is a list or map type.java.lang.StringtoString()abstract @Nullable DescriptorTypeProvider.TypeDeftype()The fieldTypeDef.
-
-
-
Method Detail
-
name
public abstract java.lang.String name()
The field name.
-
type
public abstract @Nullable DescriptorTypeProvider.TypeDef type()
The fieldTypeDef. Null ifisMap()is true.
-
mapEntryType
public abstract @Nullable DescriptorTypeProvider.MapEntryDef mapEntryType()
The fieldMapEntryDef. Null ifisMap()is false.
-
repeated
public abstract boolean repeated()
The field is repeated if it is a list or map type.
-
isMap
public boolean isMap()
The field is a map if it has a non-nullmapEntryType().
-
equals
public final boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public final java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-