Interface Validate.EnumRulesOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
Validate.EnumRules, Validate.EnumRules.Builder
Enclosing class:
Validate

public static interface Validate.EnumRulesOrBuilder
extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type Method Description
    int getConst()
    Const specifies that this field must be exactly the specified value
    boolean getDefinedOnly()
    DefinedOnly specifies that this field must be only one of the defined values for this enum, failing on any undefined value.
    int getIn​(int index)
    In specifies that this field must be equal to one of the specified values
    int getInCount()
    In specifies that this field must be equal to one of the specified values
    List<Integer> getInList()
    In specifies that this field must be equal to one of the specified values
    int getNotIn​(int index)
    NotIn specifies that this field cannot be equal to one of the specified values
    int getNotInCount()
    NotIn specifies that this field cannot be equal to one of the specified values
    List<Integer> getNotInList()
    NotIn specifies that this field cannot be equal to one of the specified values
    boolean hasConst()
    Const specifies that this field must be exactly the specified value
    boolean hasDefinedOnly()
    DefinedOnly specifies that this field must be only one of the defined values for this enum, failing on any undefined value.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • hasConst

      boolean hasConst()
       Const specifies that this field must be exactly the specified value
       
      optional int32 const = 1;
    • getConst

      int getConst()
       Const specifies that this field must be exactly the specified value
       
      optional int32 const = 1;
    • hasDefinedOnly

      boolean hasDefinedOnly()
       DefinedOnly specifies that this field must be only one of the defined
       values for this enum, failing on any undefined value.
       
      optional bool defined_only = 2;
    • getDefinedOnly

      boolean getDefinedOnly()
       DefinedOnly specifies that this field must be only one of the defined
       values for this enum, failing on any undefined value.
       
      optional bool defined_only = 2;
    • getInList

      List<Integer> getInList()
       In specifies that this field must be equal to one of the specified
       values
       
      repeated int32 in = 3;
    • getInCount

      int getInCount()
       In specifies that this field must be equal to one of the specified
       values
       
      repeated int32 in = 3;
    • getIn

      int getIn​(int index)
       In specifies that this field must be equal to one of the specified
       values
       
      repeated int32 in = 3;
    • getNotInList

      List<Integer> getNotInList()
       NotIn specifies that this field cannot be equal to one of the specified
       values
       
      repeated int32 not_in = 4;
    • getNotInCount

      int getNotInCount()
       NotIn specifies that this field cannot be equal to one of the specified
       values
       
      repeated int32 not_in = 4;
    • getNotIn

      int getNotIn​(int index)
       NotIn specifies that this field cannot be equal to one of the specified
       values
       
      repeated int32 not_in = 4;