// Copyright 2020-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: bufbuild/people/v1/predefined_string_rules.proto

package peoplev1

import (
	validate "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)
)

var file_bufbuild_people_v1_predefined_string_rules_proto_extTypes = []protoimpl.ExtensionInfo{
	{
		ExtendedType:  (*validate.StringRules)(nil),
		ExtensionType: (*bool)(nil),
		Field:         80048952,
		Name:          "bufbuild.people.v1.required_medium",
		Tag:           "varint,80048952,opt,name=required_medium",
		Filename:      "bufbuild/people/v1/predefined_string_rules.proto",
	},
	{
		ExtendedType:  (*validate.StringRules)(nil),
		ExtensionType: (*bool)(nil),
		Field:         80048953,
		Name:          "bufbuild.people.v1.optional_medium",
		Tag:           "varint,80048953,opt,name=optional_medium",
		Filename:      "bufbuild/people/v1/predefined_string_rules.proto",
	},
	{
		ExtendedType:  (*validate.StringRules)(nil),
		ExtensionType: (*int32)(nil),
		Field:         80048954,
		Name:          "bufbuild.people.v1.required_with_max",
		Tag:           "varint,80048954,opt,name=required_with_max",
		Filename:      "bufbuild/people/v1/predefined_string_rules.proto",
	},
}

// Extension fields to validate.StringRules.
var (
	// optional bool required_medium = 80048952;
	E_RequiredMedium = &file_bufbuild_people_v1_predefined_string_rules_proto_extTypes[0]
	// optional bool optional_medium = 80048953;
	E_OptionalMedium = &file_bufbuild_people_v1_predefined_string_rules_proto_extTypes[1]
	// optional int32 required_with_max = 80048954;
	E_RequiredWithMax = &file_bufbuild_people_v1_predefined_string_rules_proto_extTypes[2]
)

var File_bufbuild_people_v1_predefined_string_rules_proto protoreflect.FileDescriptor

const file_bufbuild_people_v1_predefined_string_rules_proto_rawDesc = "" +
	"\n" +
	"0bufbuild/people/v1/predefined_string_rules.proto\x12\x12bufbuild.people.v1\x1a\x1bbuf/validate/validate.proto:\xbf\x01\n" +
	"\x0frequired_medium\x12\x19.buf.validate.StringRules\x18\xb8\xe6\x95& \x01(\bBx\xc2Hu\n" +
	"s\n" +
	"\x16string.required.medium\x123this is required and must be 50 or fewer characters\x1a$this.size() > 0 && this.size() <= 50R\x0erequiredMedium:\x9c\x01\n" +
	"\x0foptional_medium\x12\x19.buf.validate.StringRules\x18\xb9\xe6\x95& \x01(\bBU\xc2HR\n" +
	"P\n" +
	"\x16string.optional.medium\x12#this must be 50 or fewer characters\x1a\x11this.size() <= 50R\x0eoptionalMedium:\xa8\x02\n" +
	"\x11required_with_max\x12\x19.buf.validate.StringRules\x18\xba\xe6\x95& \x01(\x05B\xdd\x01\xc2H\xd9\x01\n" +
	"\xd6\x01\n" +
	"\x13string.required.max\x1a\xbe\x01(rules.min_len > 0 && rules.max_len > 0) || (this.size() > 0 && this.size() <= rule)? '': 'this is required and must be ' + string(rule) + ' or fewer characters but ' + string(rules.max_len)R\x0frequiredWithMaxB\x86\x02\n" +
	"\x16com.bufbuild.people.v1B\x1aPredefinedStringRulesProtoP\x01Zfgithub.com/bufbuild/buf-examples/protovalidate/rules-predefined/finish/gen/bufbuild/people/v1;peoplev1\xa2\x02\x03BPX\xaa\x02\x12Bufbuild.People.V1\xca\x02\x12Bufbuild\\People\\V1\xe2\x02\x1eBufbuild\\People\\V1\\GPBMetadata\xea\x02\x14Bufbuild::People::V1"

var file_bufbuild_people_v1_predefined_string_rules_proto_goTypes = []any{
	(*validate.StringRules)(nil), // 0: buf.validate.StringRules
}
var file_bufbuild_people_v1_predefined_string_rules_proto_depIdxs = []int32{
	0, // 0: bufbuild.people.v1.required_medium:extendee -> buf.validate.StringRules
	0, // 1: bufbuild.people.v1.optional_medium:extendee -> buf.validate.StringRules
	0, // 2: bufbuild.people.v1.required_with_max:extendee -> buf.validate.StringRules
	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
	0, // [0:3] is the sub-list for extension extendee
	0, // [0:0] is the sub-list for field type_name
}

func init() { file_bufbuild_people_v1_predefined_string_rules_proto_init() }
func file_bufbuild_people_v1_predefined_string_rules_proto_init() {
	if File_bufbuild_people_v1_predefined_string_rules_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_bufbuild_people_v1_predefined_string_rules_proto_rawDesc), len(file_bufbuild_people_v1_predefined_string_rules_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   0,
			NumExtensions: 3,
			NumServices:   0,
		},
		GoTypes:           file_bufbuild_people_v1_predefined_string_rules_proto_goTypes,
		DependencyIndexes: file_bufbuild_people_v1_predefined_string_rules_proto_depIdxs,
		ExtensionInfos:    file_bufbuild_people_v1_predefined_string_rules_proto_extTypes,
	}.Build()
	File_bufbuild_people_v1_predefined_string_rules_proto = out.File
	file_bufbuild_people_v1_predefined_string_rules_proto_goTypes = nil
	file_bufbuild_people_v1_predefined_string_rules_proto_depIdxs = nil
}
