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

build.buf.validate.BoolRulesOrBuilder 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 BoolRulesOrBuilder extends
    // @@protoc_insertion_point(interface_extends:buf.validate.BoolRules)
    com.google.protobuf.MessageOrBuilder {

  /**
   * 
   * `const` requires the field value to exactly match the specified boolean value.
   * If the field value doesn't match, an error message is generated.
   *
   * ```proto
   * message MyBool {
   * // value must equal true
   * bool value = 1 [(buf.validate.field).bool.const = true];
   * }
   * ```
   * 
* * optional bool const = 1 [json_name = "const", (.buf.validate.priv.field) = { ... } * @return Whether the const field is set. */ boolean hasConst(); /** *
   * `const` requires the field value to exactly match the specified boolean value.
   * If the field value doesn't match, an error message is generated.
   *
   * ```proto
   * message MyBool {
   * // value must equal true
   * bool value = 1 [(buf.validate.field).bool.const = true];
   * }
   * ```
   * 
* * optional bool const = 1 [json_name = "const", (.buf.validate.priv.field) = { ... } * @return The const. */ boolean getConst(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy