// Copyright 2023-2024 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/protoyaml/test/v1/validate.proto

package testv1

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"
	anypb "google.golang.org/protobuf/types/known/anypb"
	reflect "reflect"
	sync "sync"
	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 ValidateTest struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Cases         []*ValidateTestCase    `protobuf:"bytes,1,rep,name=cases,proto3" json:"cases,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ValidateTest) ProtoMessage() {}

func (x *ValidateTest) ProtoReflect() protoreflect.Message {
	mi := &file_buf_protoyaml_test_v1_validate_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)
}

// Deprecated: Use ValidateTest.ProtoReflect.Descriptor instead.
func (*ValidateTest) Descriptor() ([]byte, []int) {
	return file_buf_protoyaml_test_v1_validate_proto_rawDescGZIP(), []int{0}
}

func (x *ValidateTest) GetCases() []*ValidateTestCase {
	if x != nil {
		return x.Cases
	}
	return nil
}

type ValidateTestCase struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Dynamic       *anypb.Any             `protobuf:"bytes,1,opt,name=dynamic,proto3" json:"dynamic,omitempty"`
	FloatGtLt     float32                `protobuf:"fixed32,2,opt,name=float_gt_lt,json=floatGtLt,proto3" json:"float_gt_lt,omitempty"`
	StringMap     map[string]string      `protobuf:"bytes,3,rep,name=string_map,json=stringMap,proto3" json:"string_map,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ValidateTestCase) ProtoMessage() {}

func (x *ValidateTestCase) ProtoReflect() protoreflect.Message {
	mi := &file_buf_protoyaml_test_v1_validate_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)
}

// Deprecated: Use ValidateTestCase.ProtoReflect.Descriptor instead.
func (*ValidateTestCase) Descriptor() ([]byte, []int) {
	return file_buf_protoyaml_test_v1_validate_proto_rawDescGZIP(), []int{1}
}

func (x *ValidateTestCase) GetDynamic() *anypb.Any {
	if x != nil {
		return x.Dynamic
	}
	return nil
}

func (x *ValidateTestCase) GetFloatGtLt() float32 {
	if x != nil {
		return x.FloatGtLt
	}
	return 0
}

func (x *ValidateTestCase) GetStringMap() map[string]string {
	if x != nil {
		return x.StringMap
	}
	return nil
}

var File_buf_protoyaml_test_v1_validate_proto protoreflect.FileDescriptor

const file_buf_protoyaml_test_v1_validate_proto_rawDesc = "" +
	"\n" +
	"$buf/protoyaml/test/v1/validate.proto\x12\x15buf.protoyaml.test.v1\x1a\x1bbuf/validate/validate.proto\x1a\x19google/protobuf/any.proto\"M\n" +
	"\fValidateTest\x12=\n" +
	"\x05cases\x18\x01 \x03(\v2'.buf.protoyaml.test.v1.ValidateTestCaseR\x05cases\"\xac\x02\n" +
	"\x10ValidateTestCase\x12.\n" +
	"\adynamic\x18\x01 \x01(\v2\x14.google.protobuf.AnyR\adynamic\x12/\n" +
	"\vfloat_gt_lt\x18\x02 \x01(\x02B\x0f\xbaH\f\n" +
	"\n" +
	"\x15\x00\x00 A%\x00\x00\x00\x00R\tfloatGtLt\x12y\n" +
	"\n" +
	"string_map\x18\x03 \x03(\v26.buf.protoyaml.test.v1.ValidateTestCase.StringMapEntryB\"\xbaH\x1f\x9a\x01\x1c\"\fr\n" +
	"2\b^[a-z]+$*\fr\n" +
	"2\b^[A-Z]+$R\tstringMap\x1a<\n" +
	"\x0eStringMapEntry\x12\x10\n" +
	"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
	"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01B\xe9\x01\n" +
	"\x19com.buf.protoyaml.test.v1B\rValidateProtoP\x01ZFbuf.build/go/protoyaml/internal/gen/proto/buf/protoyaml/test/v1;testv1\xa2\x02\x03BPT\xaa\x02\x15Buf.Protoyaml.Test.V1\xca\x02\x15Buf\\Protoyaml\\Test\\V1\xe2\x02!Buf\\Protoyaml\\Test\\V1\\GPBMetadata\xea\x02\x18Buf::Protoyaml::Test::V1b\x06proto3"

var (
	file_buf_protoyaml_test_v1_validate_proto_rawDescOnce sync.Once
	file_buf_protoyaml_test_v1_validate_proto_rawDescData []byte
)

func file_buf_protoyaml_test_v1_validate_proto_rawDescGZIP() []byte {
	file_buf_protoyaml_test_v1_validate_proto_rawDescOnce.Do(func() {
		file_buf_protoyaml_test_v1_validate_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_buf_protoyaml_test_v1_validate_proto_rawDesc), len(file_buf_protoyaml_test_v1_validate_proto_rawDesc)))
	})
	return file_buf_protoyaml_test_v1_validate_proto_rawDescData
}

var file_buf_protoyaml_test_v1_validate_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_buf_protoyaml_test_v1_validate_proto_goTypes = []any{
	(*ValidateTest)(nil),     // 0: buf.protoyaml.test.v1.ValidateTest
	(*ValidateTestCase)(nil), // 1: buf.protoyaml.test.v1.ValidateTestCase
	nil,                      // 2: buf.protoyaml.test.v1.ValidateTestCase.StringMapEntry
	(*anypb.Any)(nil),        // 3: google.protobuf.Any
}
var file_buf_protoyaml_test_v1_validate_proto_depIdxs = []int32{
	1, // 0: buf.protoyaml.test.v1.ValidateTest.cases:type_name -> buf.protoyaml.test.v1.ValidateTestCase
	3, // 1: buf.protoyaml.test.v1.ValidateTestCase.dynamic:type_name -> google.protobuf.Any
	2, // 2: buf.protoyaml.test.v1.ValidateTestCase.string_map:type_name -> buf.protoyaml.test.v1.ValidateTestCase.StringMapEntry
	3, // [3:3] is the sub-list for method output_type
	3, // [3:3] is the sub-list for method input_type
	3, // [3:3] is the sub-list for extension type_name
	3, // [3:3] is the sub-list for extension extendee
	0, // [0:3] is the sub-list for field type_name
}

func init() { file_buf_protoyaml_test_v1_validate_proto_init() }
func file_buf_protoyaml_test_v1_validate_proto_init() {
	if File_buf_protoyaml_test_v1_validate_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_buf_protoyaml_test_v1_validate_proto_rawDesc), len(file_buf_protoyaml_test_v1_validate_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   3,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_buf_protoyaml_test_v1_validate_proto_goTypes,
		DependencyIndexes: file_buf_protoyaml_test_v1_validate_proto_depIdxs,
		MessageInfos:      file_buf_protoyaml_test_v1_validate_proto_msgTypes,
	}.Build()
	File_buf_protoyaml_test_v1_validate_proto = out.File
	file_buf_protoyaml_test_v1_validate_proto_goTypes = nil
	file_buf_protoyaml_test_v1_validate_proto_depIdxs = nil
}
