All Downloads are FREE. Search and download functionalities are using the official Maven repository.

build.buf.validate.MapRulesOrBuilder Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: buf/validate/validate.proto
// Protobuf Java Version: 4.28.1

package build.buf.validate;

public interface MapRulesOrBuilder extends
    // @@protoc_insertion_point(interface_extends:buf.validate.MapRules)
    com.google.protobuf.MessageOrBuilder {

  /**
   * 
   * Specifies the minimum number of key-value pairs allowed. If the field has
   * fewer key-value pairs than specified, an error message is generated.
   *
   * ```proto
   * message MyMap {
   * // The field `value` must have at least 2 key-value pairs.
   * map<string, string> value = 1 [(buf.validate.field).map.min_pairs = 2];
   * }
   * ```
   * 
* * optional uint64 min_pairs = 1 [json_name = "minPairs", (.buf.validate.priv.field) = { ... } * @return Whether the minPairs field is set. */ boolean hasMinPairs(); /** *
   * Specifies the minimum number of key-value pairs allowed. If the field has
   * fewer key-value pairs than specified, an error message is generated.
   *
   * ```proto
   * message MyMap {
   * // The field `value` must have at least 2 key-value pairs.
   * map<string, string> value = 1 [(buf.validate.field).map.min_pairs = 2];
   * }
   * ```
   * 
* * optional uint64 min_pairs = 1 [json_name = "minPairs", (.buf.validate.priv.field) = { ... } * @return The minPairs. */ long getMinPairs(); /** *
   * Specifies the maximum number of key-value pairs allowed. If the field has
   * more key-value pairs than specified, an error message is generated.
   *
   * ```proto
   * message MyMap {
   * // The field `value` must have at most 3 key-value pairs.
   * map<string, string> value = 1 [(buf.validate.field).map.max_pairs = 3];
   * }
   * ```
   * 
* * optional uint64 max_pairs = 2 [json_name = "maxPairs", (.buf.validate.priv.field) = { ... } * @return Whether the maxPairs field is set. */ boolean hasMaxPairs(); /** *
   * Specifies the maximum number of key-value pairs allowed. If the field has
   * more key-value pairs than specified, an error message is generated.
   *
   * ```proto
   * message MyMap {
   * // The field `value` must have at most 3 key-value pairs.
   * map<string, string> value = 1 [(buf.validate.field).map.max_pairs = 3];
   * }
   * ```
   * 
* * optional uint64 max_pairs = 2 [json_name = "maxPairs", (.buf.validate.priv.field) = { ... } * @return The maxPairs. */ long getMaxPairs(); /** *
   * Specifies the constraints to be applied to each key in the field.
   *
   * ```proto
   * message MyMap {
   * // The keys in the field `value` must follow the specified constraints.
   * map<string, string> value = 1 [(buf.validate.field).map.keys = {
   * string: {
   * min_len: 3
   * max_len: 10
   * }
   * }];
   * }
   * ```
   * 
* * optional .buf.validate.FieldConstraints keys = 4 [json_name = "keys"]; * @return Whether the keys field is set. */ boolean hasKeys(); /** *
   * Specifies the constraints to be applied to each key in the field.
   *
   * ```proto
   * message MyMap {
   * // The keys in the field `value` must follow the specified constraints.
   * map<string, string> value = 1 [(buf.validate.field).map.keys = {
   * string: {
   * min_len: 3
   * max_len: 10
   * }
   * }];
   * }
   * ```
   * 
* * optional .buf.validate.FieldConstraints keys = 4 [json_name = "keys"]; * @return The keys. */ build.buf.validate.FieldConstraints getKeys(); /** *
   * Specifies the constraints to be applied to each key in the field.
   *
   * ```proto
   * message MyMap {
   * // The keys in the field `value` must follow the specified constraints.
   * map<string, string> value = 1 [(buf.validate.field).map.keys = {
   * string: {
   * min_len: 3
   * max_len: 10
   * }
   * }];
   * }
   * ```
   * 
* * optional .buf.validate.FieldConstraints keys = 4 [json_name = "keys"]; */ build.buf.validate.FieldConstraintsOrBuilder getKeysOrBuilder(); /** *
   * 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.
   *
   * ```proto
   * message MyMap {
   * // The values in the field `value` must follow the specified constraints.
   * map<string, string> value = 1 [(buf.validate.field).map.values = {
   * string: {
   * min_len: 5
   * max_len: 20
   * }
   * }];
   * }
   * ```
   * 
* * optional .buf.validate.FieldConstraints values = 5 [json_name = "values"]; * @return Whether the values field is set. */ boolean hasValues(); /** *
   * 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.
   *
   * ```proto
   * message MyMap {
   * // The values in the field `value` must follow the specified constraints.
   * map<string, string> value = 1 [(buf.validate.field).map.values = {
   * string: {
   * min_len: 5
   * max_len: 20
   * }
   * }];
   * }
   * ```
   * 
* * optional .buf.validate.FieldConstraints values = 5 [json_name = "values"]; * @return The values. */ build.buf.validate.FieldConstraints getValues(); /** *
   * 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.
   *
   * ```proto
   * message MyMap {
   * // The values in the field `value` must follow the specified constraints.
   * map<string, string> value = 1 [(buf.validate.field).map.values = {
   * string: {
   * min_len: 5
   * max_len: 20
   * }
   * }];
   * }
   * ```
   * 
* * optional .buf.validate.FieldConstraints values = 5 [json_name = "values"]; */ build.buf.validate.FieldConstraintsOrBuilder getValuesOrBuilder(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy