build.buf.validate.BoolRulesOrBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of protovalidate Show documentation
Show all versions of protovalidate Show documentation
Protocol Buffer Validation
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();
}