// Copyright 2023-2025 Buf Technologies, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.6
// 	protoc        (unknown)
// source: buf/validate/conformance/cases/bool.proto

//go:build !protoopaque

package cases

import (
	_ "buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go/buf/validate"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	reflect "reflect"
	unsafe "unsafe"
)

const (
	// Verify that this generated code is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
	// Verify that runtime/protoimpl is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)

type BoolNone struct {
	state         protoimpl.MessageState `protogen:"hybrid.v1"`
	Val           bool                   `protobuf:"varint,1,opt,name=val,proto3" json:"val,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *BoolNone) Reset() {
	*x = BoolNone{}
	mi := &file_buf_validate_conformance_cases_bool_proto_msgTypes[0]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *BoolNone) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*BoolNone) ProtoMessage() {}

func (x *BoolNone) ProtoReflect() protoreflect.Message {
	mi := &file_buf_validate_conformance_cases_bool_proto_msgTypes[0]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

func (x *BoolNone) GetVal() bool {
	if x != nil {
		return x.Val
	}
	return false
}

func (x *BoolNone) SetVal(v bool) {
	x.Val = v
}

type BoolNone_builder struct {
	_ [0]func() // Prevents comparability and use of unkeyed literals for the builder.

	Val bool
}

func (b0 BoolNone_builder) Build() *BoolNone {
	m0 := &BoolNone{}
	b, x := &b0, m0
	_, _ = b, x
	x.Val = b.Val
	return m0
}

type BoolConstTrue struct {
	state         protoimpl.MessageState `protogen:"hybrid.v1"`
	Val           bool                   `protobuf:"varint,1,opt,name=val,proto3" json:"val,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *BoolConstTrue) Reset() {
	*x = BoolConstTrue{}
	mi := &file_buf_validate_conformance_cases_bool_proto_msgTypes[1]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *BoolConstTrue) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*BoolConstTrue) ProtoMessage() {}

func (x *BoolConstTrue) ProtoReflect() protoreflect.Message {
	mi := &file_buf_validate_conformance_cases_bool_proto_msgTypes[1]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

func (x *BoolConstTrue) GetVal() bool {
	if x != nil {
		return x.Val
	}
	return false
}

func (x *BoolConstTrue) SetVal(v bool) {
	x.Val = v
}

type BoolConstTrue_builder struct {
	_ [0]func() // Prevents comparability and use of unkeyed literals for the builder.

	Val bool
}

func (b0 BoolConstTrue_builder) Build() *BoolConstTrue {
	m0 := &BoolConstTrue{}
	b, x := &b0, m0
	_, _ = b, x
	x.Val = b.Val
	return m0
}

type BoolConstFalse struct {
	state         protoimpl.MessageState `protogen:"hybrid.v1"`
	Val           bool                   `protobuf:"varint,1,opt,name=val,proto3" json:"val,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *BoolConstFalse) Reset() {
	*x = BoolConstFalse{}
	mi := &file_buf_validate_conformance_cases_bool_proto_msgTypes[2]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *BoolConstFalse) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*BoolConstFalse) ProtoMessage() {}

func (x *BoolConstFalse) ProtoReflect() protoreflect.Message {
	mi := &file_buf_validate_conformance_cases_bool_proto_msgTypes[2]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

func (x *BoolConstFalse) GetVal() bool {
	if x != nil {
		return x.Val
	}
	return false
}

func (x *BoolConstFalse) SetVal(v bool) {
	x.Val = v
}

type BoolConstFalse_builder struct {
	_ [0]func() // Prevents comparability and use of unkeyed literals for the builder.

	Val bool
}

func (b0 BoolConstFalse_builder) Build() *BoolConstFalse {
	m0 := &BoolConstFalse{}
	b, x := &b0, m0
	_, _ = b, x
	x.Val = b.Val
	return m0
}

type BoolExample struct {
	state         protoimpl.MessageState `protogen:"hybrid.v1"`
	Val           bool                   `protobuf:"varint,1,opt,name=val,proto3" json:"val,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *BoolExample) Reset() {
	*x = BoolExample{}
	mi := &file_buf_validate_conformance_cases_bool_proto_msgTypes[3]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *BoolExample) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*BoolExample) ProtoMessage() {}

func (x *BoolExample) ProtoReflect() protoreflect.Message {
	mi := &file_buf_validate_conformance_cases_bool_proto_msgTypes[3]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

func (x *BoolExample) GetVal() bool {
	if x != nil {
		return x.Val
	}
	return false
}

func (x *BoolExample) SetVal(v bool) {
	x.Val = v
}

type BoolExample_builder struct {
	_ [0]func() // Prevents comparability and use of unkeyed literals for the builder.

	Val bool
}

func (b0 BoolExample_builder) Build() *BoolExample {
	m0 := &BoolExample{}
	b, x := &b0, m0
	_, _ = b, x
	x.Val = b.Val
	return m0
}

var File_buf_validate_conformance_cases_bool_proto protoreflect.FileDescriptor

const file_buf_validate_conformance_cases_bool_proto_rawDesc = "" +
	"\n" +
	")buf/validate/conformance/cases/bool.proto\x12\x1ebuf.validate.conformance.cases\x1a\x1bbuf/validate/validate.proto\"\x1c\n" +
	"\bBoolNone\x12\x10\n" +
	"\x03val\x18\x01 \x01(\bR\x03val\"*\n" +
	"\rBoolConstTrue\x12\x19\n" +
	"\x03val\x18\x01 \x01(\bB\a\xbaH\x04j\x02\b\x01R\x03val\"+\n" +
	"\x0eBoolConstFalse\x12\x19\n" +
	"\x03val\x18\x01 \x01(\bB\a\xbaH\x04j\x02\b\x00R\x03val\"(\n" +
	"\vBoolExample\x12\x19\n" +
	"\x03val\x18\x01 \x01(\bB\a\xbaH\x04j\x02\x10\x01R\x03valB\x93\x02\n" +
	"\"com.buf.validate.conformance.casesB\tBoolProtoP\x01ZFbuf.build/go/protovalidate/internal/gen/buf/validate/conformance/cases\xa2\x02\x04BVCC\xaa\x02\x1eBuf.Validate.Conformance.Cases\xca\x02\x1eBuf\\Validate\\Conformance\\Cases\xe2\x02*Buf\\Validate\\Conformance\\Cases\\GPBMetadata\xea\x02!Buf::Validate::Conformance::Casesb\x06proto3"

var file_buf_validate_conformance_cases_bool_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_buf_validate_conformance_cases_bool_proto_goTypes = []any{
	(*BoolNone)(nil),       // 0: buf.validate.conformance.cases.BoolNone
	(*BoolConstTrue)(nil),  // 1: buf.validate.conformance.cases.BoolConstTrue
	(*BoolConstFalse)(nil), // 2: buf.validate.conformance.cases.BoolConstFalse
	(*BoolExample)(nil),    // 3: buf.validate.conformance.cases.BoolExample
}
var file_buf_validate_conformance_cases_bool_proto_depIdxs = []int32{
	0, // [0:0] is the sub-list for method output_type
	0, // [0:0] is the sub-list for method input_type
	0, // [0:0] is the sub-list for extension type_name
	0, // [0:0] is the sub-list for extension extendee
	0, // [0:0] is the sub-list for field type_name
}

func init() { file_buf_validate_conformance_cases_bool_proto_init() }
func file_buf_validate_conformance_cases_bool_proto_init() {
	if File_buf_validate_conformance_cases_bool_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_buf_validate_conformance_cases_bool_proto_rawDesc), len(file_buf_validate_conformance_cases_bool_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   4,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_buf_validate_conformance_cases_bool_proto_goTypes,
		DependencyIndexes: file_buf_validate_conformance_cases_bool_proto_depIdxs,
		MessageInfos:      file_buf_validate_conformance_cases_bool_proto_msgTypes,
	}.Build()
	File_buf_validate_conformance_cases_bool_proto = out.File
	file_buf_validate_conformance_cases_bool_proto_goTypes = nil
	file_buf_validate_conformance_cases_bool_proto_depIdxs = nil
}
