// 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: tests/example/v1/compile.proto

//go:build !protoopaque

package examplev1

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 MismatchRules struct {
	state               protoimpl.MessageState `protogen:"hybrid.v1"`
	NoRule              bool                   `protobuf:"varint,1,opt,name=no_rule,json=noRule,proto3" json:"no_rule,omitempty"`
	StringFieldBoolRule string                 `protobuf:"bytes,2,opt,name=string_field_bool_rule,json=stringFieldBoolRule,proto3" json:"string_field_bool_rule,omitempty"`
	unknownFields       protoimpl.UnknownFields
	sizeCache           protoimpl.SizeCache
}

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

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

func (*MismatchRules) ProtoMessage() {}

func (x *MismatchRules) ProtoReflect() protoreflect.Message {
	mi := &file_tests_example_v1_compile_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 *MismatchRules) GetNoRule() bool {
	if x != nil {
		return x.NoRule
	}
	return false
}

func (x *MismatchRules) GetStringFieldBoolRule() string {
	if x != nil {
		return x.StringFieldBoolRule
	}
	return ""
}

func (x *MismatchRules) SetNoRule(v bool) {
	x.NoRule = v
}

func (x *MismatchRules) SetStringFieldBoolRule(v string) {
	x.StringFieldBoolRule = v
}

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

	NoRule              bool
	StringFieldBoolRule string
}

func (b0 MismatchRules_builder) Build() *MismatchRules {
	m0 := &MismatchRules{}
	b, x := &b0, m0
	_, _ = b, x
	x.NoRule = b.NoRule
	x.StringFieldBoolRule = b.StringFieldBoolRule
	return m0
}

type MixedValidInvalidRules struct {
	state               protoimpl.MessageState `protogen:"hybrid.v1"`
	StringFieldBoolRule string                 `protobuf:"bytes,1,opt,name=string_field_bool_rule,json=stringFieldBoolRule,proto3" json:"string_field_bool_rule,omitempty"`
	ValidStringRule     string                 `protobuf:"bytes,2,opt,name=valid_string_rule,json=validStringRule,proto3" json:"valid_string_rule,omitempty"`
	unknownFields       protoimpl.UnknownFields
	sizeCache           protoimpl.SizeCache
}

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

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

func (*MixedValidInvalidRules) ProtoMessage() {}

func (x *MixedValidInvalidRules) ProtoReflect() protoreflect.Message {
	mi := &file_tests_example_v1_compile_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 *MixedValidInvalidRules) GetStringFieldBoolRule() string {
	if x != nil {
		return x.StringFieldBoolRule
	}
	return ""
}

func (x *MixedValidInvalidRules) GetValidStringRule() string {
	if x != nil {
		return x.ValidStringRule
	}
	return ""
}

func (x *MixedValidInvalidRules) SetStringFieldBoolRule(v string) {
	x.StringFieldBoolRule = v
}

func (x *MixedValidInvalidRules) SetValidStringRule(v string) {
	x.ValidStringRule = v
}

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

	StringFieldBoolRule string
	ValidStringRule     string
}

func (b0 MixedValidInvalidRules_builder) Build() *MixedValidInvalidRules {
	m0 := &MixedValidInvalidRules{}
	b, x := &b0, m0
	_, _ = b, x
	x.StringFieldBoolRule = b.StringFieldBoolRule
	x.ValidStringRule = b.ValidStringRule
	return m0
}

var File_tests_example_v1_compile_proto protoreflect.FileDescriptor

const file_tests_example_v1_compile_proto_rawDesc = "" +
	"\n" +
	"\x1etests/example/v1/compile.proto\x12\x10tests.example.v1\x1a\x1bbuf/validate/validate.proto\"f\n" +
	"\rMismatchRules\x12\x17\n" +
	"\ano_rule\x18\x01 \x01(\bR\x06noRule\x12<\n" +
	"\x16string_field_bool_rule\x18\x02 \x01(\tB\a\xbaH\x04j\x02\b\x01R\x13stringFieldBoolRule\"\x8e\x01\n" +
	"\x16MixedValidInvalidRules\x12<\n" +
	"\x16string_field_bool_rule\x18\x01 \x01(\tB\a\xbaH\x04j\x02\b\x01R\x13stringFieldBoolRule\x126\n" +
	"\x11valid_string_rule\x18\x02 \x01(\tB\n" +
	"\xbaH\ar\x05\n" +
	"\x03fooR\x0fvalidStringRuleB\xca\x01\n" +
	"\x14com.tests.example.v1B\fCompileProtoP\x01ZBbuf.build/go/protovalidate/internal/gen/tests/example/v1;examplev1\xa2\x02\x03TEX\xaa\x02\x10Tests.Example.V1\xca\x02\x10Tests\\Example\\V1\xe2\x02\x1cTests\\Example\\V1\\GPBMetadata\xea\x02\x12Tests::Example::V1b\x06proto3"

var file_tests_example_v1_compile_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_tests_example_v1_compile_proto_goTypes = []any{
	(*MismatchRules)(nil),          // 0: tests.example.v1.MismatchRules
	(*MixedValidInvalidRules)(nil), // 1: tests.example.v1.MixedValidInvalidRules
}
var file_tests_example_v1_compile_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_tests_example_v1_compile_proto_init() }
func file_tests_example_v1_compile_proto_init() {
	if File_tests_example_v1_compile_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_tests_example_v1_compile_proto_rawDesc), len(file_tests_example_v1_compile_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_tests_example_v1_compile_proto_goTypes,
		DependencyIndexes: file_tests_example_v1_compile_proto_depIdxs,
		MessageInfos:      file_tests_example_v1_compile_proto_msgTypes,
	}.Build()
	File_tests_example_v1_compile_proto = out.File
	file_tests_example_v1_compile_proto_goTypes = nil
	file_tests_example_v1_compile_proto_depIdxs = nil
}
