Package com.validate

Class MapRules.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<MapRules.Builder>
com.validate.MapRules.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, MapRulesOrBuilder, Cloneable
Enclosing class:
MapRules

public static final class MapRules.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<MapRules.Builder> implements MapRulesOrBuilder
 MapRules describe the constraints applied to `map` values
 
Protobuf type validate.MapRules
  • Method Summary

    Modifier and Type
    Method
    Description
    addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
     
     
     
     
    clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
     
    IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not empty
    Keys specifies the constraints to be applied to each key in the field.
    MaxPairs specifies that this field must have the specified number of KVs at a maximum
    MinPairs specifies that this field must have the specified number of KVs at a minimum
    NoSparse specifies values in this field cannot be unset.
    clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
     
    Values specifies the constraints to be applied to the value of each key in the field.
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    boolean
    IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not empty
    Keys specifies the constraints to be applied to each key in the field.
    Keys specifies the constraints to be applied to each key in the field.
    Keys specifies the constraints to be applied to each key in the field.
    long
    MaxPairs specifies that this field must have the specified number of KVs at a maximum
    long
    MinPairs specifies that this field must have the specified number of KVs at a minimum
    boolean
    NoSparse specifies values in this field cannot be unset.
    Values specifies the constraints to be applied to the value of each key in the field.
    Values specifies the constraints to be applied to the value of each key in the field.
    Values specifies the constraints to be applied to the value of each key in the field.
    boolean
    IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not empty
    boolean
    Keys specifies the constraints to be applied to each key in the field.
    boolean
    MaxPairs specifies that this field must have the specified number of KVs at a maximum
    boolean
    MinPairs specifies that this field must have the specified number of KVs at a minimum
    boolean
    NoSparse specifies values in this field cannot be unset.
    boolean
    Values specifies the constraints to be applied to the value of each key in the field.
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
     
    final boolean
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
     
    Keys specifies the constraints to be applied to each key in the field.
    mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
     
    Values specifies the constraints to be applied to the value of each key in the field.
    setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
     
    setIgnoreEmpty(boolean value)
    IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not empty
    Keys specifies the constraints to be applied to each key in the field.
    setKeys(FieldRules.Builder builderForValue)
    Keys specifies the constraints to be applied to each key in the field.
    setMaxPairs(long value)
    MaxPairs specifies that this field must have the specified number of KVs at a maximum
    setMinPairs(long value)
    MinPairs specifies that this field must have the specified number of KVs at a minimum
    setNoSparse(boolean value)
    NoSparse specifies values in this field cannot be unset.
    setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
     
    setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
     
    Values specifies the constraints to be applied to the value of each key in the field.
    setValues(FieldRules.Builder builderForValue)
    Values specifies the constraints to be applied to the value of each key in the field.

    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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<MapRules.Builder>
    • clear

      public MapRules.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<MapRules.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<MapRules.Builder>
    • getDefaultInstanceForType

      public MapRules getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public MapRules build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public MapRules buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public MapRules.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<MapRules.Builder>
    • setField

      public MapRules.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<MapRules.Builder>
    • clearField

      public MapRules.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<MapRules.Builder>
    • clearOneof

      public MapRules.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<MapRules.Builder>
    • setRepeatedField

      public MapRules.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<MapRules.Builder>
    • addRepeatedField

      public MapRules.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<MapRules.Builder>
    • mergeFrom

      public MapRules.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<MapRules.Builder>
    • mergeFrom

      public MapRules.Builder mergeFrom(MapRules other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<MapRules.Builder>
    • mergeFrom

      public MapRules.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<MapRules.Builder>
      Throws:
      IOException
    • hasMinPairs

      public boolean hasMinPairs()
       MinPairs specifies that this field must have the specified number of
       KVs at a minimum
       
      optional uint64 min_pairs = 1 [json_name = "minPairs"];
      Specified by:
      hasMinPairs in interface MapRulesOrBuilder
      Returns:
      Whether the minPairs field is set.
    • getMinPairs

      public long getMinPairs()
       MinPairs specifies that this field must have the specified number of
       KVs at a minimum
       
      optional uint64 min_pairs = 1 [json_name = "minPairs"];
      Specified by:
      getMinPairs in interface MapRulesOrBuilder
      Returns:
      The minPairs.
    • setMinPairs

      public MapRules.Builder setMinPairs(long value)
       MinPairs specifies that this field must have the specified number of
       KVs at a minimum
       
      optional uint64 min_pairs = 1 [json_name = "minPairs"];
      Parameters:
      value - The minPairs to set.
      Returns:
      This builder for chaining.
    • clearMinPairs

      public MapRules.Builder clearMinPairs()
       MinPairs specifies that this field must have the specified number of
       KVs at a minimum
       
      optional uint64 min_pairs = 1 [json_name = "minPairs"];
      Returns:
      This builder for chaining.
    • hasMaxPairs

      public boolean hasMaxPairs()
       MaxPairs specifies that this field must have the specified number of
       KVs at a maximum
       
      optional uint64 max_pairs = 2 [json_name = "maxPairs"];
      Specified by:
      hasMaxPairs in interface MapRulesOrBuilder
      Returns:
      Whether the maxPairs field is set.
    • getMaxPairs

      public long getMaxPairs()
       MaxPairs specifies that this field must have the specified number of
       KVs at a maximum
       
      optional uint64 max_pairs = 2 [json_name = "maxPairs"];
      Specified by:
      getMaxPairs in interface MapRulesOrBuilder
      Returns:
      The maxPairs.
    • setMaxPairs

      public MapRules.Builder setMaxPairs(long value)
       MaxPairs specifies that this field must have the specified number of
       KVs at a maximum
       
      optional uint64 max_pairs = 2 [json_name = "maxPairs"];
      Parameters:
      value - The maxPairs to set.
      Returns:
      This builder for chaining.
    • clearMaxPairs

      public MapRules.Builder clearMaxPairs()
       MaxPairs specifies that this field must have the specified number of
       KVs at a maximum
       
      optional uint64 max_pairs = 2 [json_name = "maxPairs"];
      Returns:
      This builder for chaining.
    • hasNoSparse

      public boolean hasNoSparse()
       NoSparse specifies values in this field cannot be unset. This only
       applies to map's with message value types.
       
      optional bool no_sparse = 3 [json_name = "noSparse"];
      Specified by:
      hasNoSparse in interface MapRulesOrBuilder
      Returns:
      Whether the noSparse field is set.
    • getNoSparse

      public boolean getNoSparse()
       NoSparse specifies values in this field cannot be unset. This only
       applies to map's with message value types.
       
      optional bool no_sparse = 3 [json_name = "noSparse"];
      Specified by:
      getNoSparse in interface MapRulesOrBuilder
      Returns:
      The noSparse.
    • setNoSparse

      public MapRules.Builder setNoSparse(boolean value)
       NoSparse specifies values in this field cannot be unset. This only
       applies to map's with message value types.
       
      optional bool no_sparse = 3 [json_name = "noSparse"];
      Parameters:
      value - The noSparse to set.
      Returns:
      This builder for chaining.
    • clearNoSparse

      public MapRules.Builder clearNoSparse()
       NoSparse specifies values in this field cannot be unset. This only
       applies to map's with message value types.
       
      optional bool no_sparse = 3 [json_name = "noSparse"];
      Returns:
      This builder for chaining.
    • hasKeys

      public boolean hasKeys()
       Keys specifies the constraints to be applied to each key in the field.
       
      optional .validate.FieldRules keys = 4 [json_name = "keys"];
      Specified by:
      hasKeys in interface MapRulesOrBuilder
      Returns:
      Whether the keys field is set.
    • getKeys

      public FieldRules getKeys()
       Keys specifies the constraints to be applied to each key in the field.
       
      optional .validate.FieldRules keys = 4 [json_name = "keys"];
      Specified by:
      getKeys in interface MapRulesOrBuilder
      Returns:
      The keys.
    • setKeys

      public MapRules.Builder setKeys(FieldRules value)
       Keys specifies the constraints to be applied to each key in the field.
       
      optional .validate.FieldRules keys = 4 [json_name = "keys"];
    • setKeys

      public MapRules.Builder setKeys(FieldRules.Builder builderForValue)
       Keys specifies the constraints to be applied to each key in the field.
       
      optional .validate.FieldRules keys = 4 [json_name = "keys"];
    • mergeKeys

      public MapRules.Builder mergeKeys(FieldRules value)
       Keys specifies the constraints to be applied to each key in the field.
       
      optional .validate.FieldRules keys = 4 [json_name = "keys"];
    • clearKeys

      public MapRules.Builder clearKeys()
       Keys specifies the constraints to be applied to each key in the field.
       
      optional .validate.FieldRules keys = 4 [json_name = "keys"];
    • getKeysBuilder

      public FieldRules.Builder getKeysBuilder()
       Keys specifies the constraints to be applied to each key in the field.
       
      optional .validate.FieldRules keys = 4 [json_name = "keys"];
    • getKeysOrBuilder

      public FieldRulesOrBuilder getKeysOrBuilder()
       Keys specifies the constraints to be applied to each key in the field.
       
      optional .validate.FieldRules keys = 4 [json_name = "keys"];
      Specified by:
      getKeysOrBuilder in interface MapRulesOrBuilder
    • hasValues

      public boolean hasValues()
       Values specifies the constraints to be applied to the value of each key
       in the field. Message values will still have their validations evaluated
       unless skip is specified here.
       
      optional .validate.FieldRules values = 5 [json_name = "values"];
      Specified by:
      hasValues in interface MapRulesOrBuilder
      Returns:
      Whether the values field is set.
    • getValues

      public FieldRules getValues()
       Values specifies the constraints to be applied to the value of each key
       in the field. Message values will still have their validations evaluated
       unless skip is specified here.
       
      optional .validate.FieldRules values = 5 [json_name = "values"];
      Specified by:
      getValues in interface MapRulesOrBuilder
      Returns:
      The values.
    • setValues

      public MapRules.Builder setValues(FieldRules value)
       Values specifies the constraints to be applied to the value of each key
       in the field. Message values will still have their validations evaluated
       unless skip is specified here.
       
      optional .validate.FieldRules values = 5 [json_name = "values"];
    • setValues

      public MapRules.Builder setValues(FieldRules.Builder builderForValue)
       Values specifies the constraints to be applied to the value of each key
       in the field. Message values will still have their validations evaluated
       unless skip is specified here.
       
      optional .validate.FieldRules values = 5 [json_name = "values"];
    • mergeValues

      public MapRules.Builder mergeValues(FieldRules value)
       Values specifies the constraints to be applied to the value of each key
       in the field. Message values will still have their validations evaluated
       unless skip is specified here.
       
      optional .validate.FieldRules values = 5 [json_name = "values"];
    • clearValues

      public MapRules.Builder clearValues()
       Values specifies the constraints to be applied to the value of each key
       in the field. Message values will still have their validations evaluated
       unless skip is specified here.
       
      optional .validate.FieldRules values = 5 [json_name = "values"];
    • getValuesBuilder

      public FieldRules.Builder getValuesBuilder()
       Values specifies the constraints to be applied to the value of each key
       in the field. Message values will still have their validations evaluated
       unless skip is specified here.
       
      optional .validate.FieldRules values = 5 [json_name = "values"];
    • getValuesOrBuilder

      public FieldRulesOrBuilder getValuesOrBuilder()
       Values specifies the constraints to be applied to the value of each key
       in the field. Message values will still have their validations evaluated
       unless skip is specified here.
       
      optional .validate.FieldRules values = 5 [json_name = "values"];
      Specified by:
      getValuesOrBuilder in interface MapRulesOrBuilder
    • hasIgnoreEmpty

      public boolean hasIgnoreEmpty()
       IgnoreEmpty specifies that the validation rules of this field should be
       evaluated only if the field is not empty
       
      optional bool ignore_empty = 6 [json_name = "ignoreEmpty"];
      Specified by:
      hasIgnoreEmpty in interface MapRulesOrBuilder
      Returns:
      Whether the ignoreEmpty field is set.
    • getIgnoreEmpty

      public boolean getIgnoreEmpty()
       IgnoreEmpty specifies that the validation rules of this field should be
       evaluated only if the field is not empty
       
      optional bool ignore_empty = 6 [json_name = "ignoreEmpty"];
      Specified by:
      getIgnoreEmpty in interface MapRulesOrBuilder
      Returns:
      The ignoreEmpty.
    • setIgnoreEmpty

      public MapRules.Builder setIgnoreEmpty(boolean value)
       IgnoreEmpty specifies that the validation rules of this field should be
       evaluated only if the field is not empty
       
      optional bool ignore_empty = 6 [json_name = "ignoreEmpty"];
      Parameters:
      value - The ignoreEmpty to set.
      Returns:
      This builder for chaining.
    • clearIgnoreEmpty

      public MapRules.Builder clearIgnoreEmpty()
       IgnoreEmpty specifies that the validation rules of this field should be
       evaluated only if the field is not empty
       
      optional bool ignore_empty = 6 [json_name = "ignoreEmpty"];
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final MapRules.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<MapRules.Builder>
    • mergeUnknownFields

      public final MapRules.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<MapRules.Builder>