// 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/library.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 IsHostname struct {
	state          protoimpl.MessageState `protogen:"opaque.v1"`
	xxx_hidden_Val string                 `protobuf:"bytes,1,opt,name=val,proto3"`
	unknownFields  protoimpl.UnknownFields
	sizeCache      protoimpl.SizeCache
}

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

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

func (*IsHostname) ProtoMessage() {}

func (x *IsHostname) ProtoReflect() protoreflect.Message {
	mi := &file_buf_validate_conformance_cases_library_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 *IsHostname) GetVal() string {
	if x != nil {
		return x.xxx_hidden_Val
	}
	return ""
}

func (x *IsHostname) SetVal(v string) {
	x.xxx_hidden_Val = v
}

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

	Val string
}

func (b0 IsHostname_builder) Build() *IsHostname {
	m0 := &IsHostname{}
	b, x := &b0, m0
	_, _ = b, x
	x.xxx_hidden_Val = b.Val
	return m0
}

type IsHostAndPort struct {
	state                   protoimpl.MessageState `protogen:"opaque.v1"`
	xxx_hidden_Val          string                 `protobuf:"bytes,1,opt,name=val,proto3"`
	xxx_hidden_PortRequired bool                   `protobuf:"varint,2,opt,name=port_required,json=portRequired,proto3"`
	unknownFields           protoimpl.UnknownFields
	sizeCache               protoimpl.SizeCache
}

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

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

func (*IsHostAndPort) ProtoMessage() {}

func (x *IsHostAndPort) ProtoReflect() protoreflect.Message {
	mi := &file_buf_validate_conformance_cases_library_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 *IsHostAndPort) GetVal() string {
	if x != nil {
		return x.xxx_hidden_Val
	}
	return ""
}

func (x *IsHostAndPort) GetPortRequired() bool {
	if x != nil {
		return x.xxx_hidden_PortRequired
	}
	return false
}

func (x *IsHostAndPort) SetVal(v string) {
	x.xxx_hidden_Val = v
}

func (x *IsHostAndPort) SetPortRequired(v bool) {
	x.xxx_hidden_PortRequired = v
}

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

	Val          string
	PortRequired bool
}

func (b0 IsHostAndPort_builder) Build() *IsHostAndPort {
	m0 := &IsHostAndPort{}
	b, x := &b0, m0
	_, _ = b, x
	x.xxx_hidden_Val = b.Val
	x.xxx_hidden_PortRequired = b.PortRequired
	return m0
}

type IsIpPrefix struct {
	state                  protoimpl.MessageState `protogen:"opaque.v1"`
	xxx_hidden_Val         string                 `protobuf:"bytes,1,opt,name=val,proto3"`
	xxx_hidden_Version     int32                  `protobuf:"varint,2,opt,name=version,proto3,oneof"`
	xxx_hidden_Strict      bool                   `protobuf:"varint,3,opt,name=strict,proto3,oneof"`
	XXX_raceDetectHookData protoimpl.RaceDetectHookData
	XXX_presence           [1]uint32
	unknownFields          protoimpl.UnknownFields
	sizeCache              protoimpl.SizeCache
}

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

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

func (*IsIpPrefix) ProtoMessage() {}

func (x *IsIpPrefix) ProtoReflect() protoreflect.Message {
	mi := &file_buf_validate_conformance_cases_library_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 *IsIpPrefix) GetVal() string {
	if x != nil {
		return x.xxx_hidden_Val
	}
	return ""
}

func (x *IsIpPrefix) GetVersion() int32 {
	if x != nil {
		return x.xxx_hidden_Version
	}
	return 0
}

func (x *IsIpPrefix) GetStrict() bool {
	if x != nil {
		return x.xxx_hidden_Strict
	}
	return false
}

func (x *IsIpPrefix) SetVal(v string) {
	x.xxx_hidden_Val = v
}

func (x *IsIpPrefix) SetVersion(v int32) {
	x.xxx_hidden_Version = v
	protoimpl.X.SetPresent(&(x.XXX_presence[0]), 1, 3)
}

func (x *IsIpPrefix) SetStrict(v bool) {
	x.xxx_hidden_Strict = v
	protoimpl.X.SetPresent(&(x.XXX_presence[0]), 2, 3)
}

func (x *IsIpPrefix) HasVersion() bool {
	if x == nil {
		return false
	}
	return protoimpl.X.Present(&(x.XXX_presence[0]), 1)
}

func (x *IsIpPrefix) HasStrict() bool {
	if x == nil {
		return false
	}
	return protoimpl.X.Present(&(x.XXX_presence[0]), 2)
}

func (x *IsIpPrefix) ClearVersion() {
	protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 1)
	x.xxx_hidden_Version = 0
}

func (x *IsIpPrefix) ClearStrict() {
	protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 2)
	x.xxx_hidden_Strict = false
}

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

	Val     string
	Version *int32
	Strict  *bool
}

func (b0 IsIpPrefix_builder) Build() *IsIpPrefix {
	m0 := &IsIpPrefix{}
	b, x := &b0, m0
	_, _ = b, x
	x.xxx_hidden_Val = b.Val
	if b.Version != nil {
		protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 1, 3)
		x.xxx_hidden_Version = *b.Version
	}
	if b.Strict != nil {
		protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 2, 3)
		x.xxx_hidden_Strict = *b.Strict
	}
	return m0
}

type IsIp struct {
	state                  protoimpl.MessageState `protogen:"opaque.v1"`
	xxx_hidden_Val         string                 `protobuf:"bytes,1,opt,name=val,proto3"`
	xxx_hidden_Version     int32                  `protobuf:"varint,2,opt,name=version,proto3,oneof"`
	XXX_raceDetectHookData protoimpl.RaceDetectHookData
	XXX_presence           [1]uint32
	unknownFields          protoimpl.UnknownFields
	sizeCache              protoimpl.SizeCache
}

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

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

func (*IsIp) ProtoMessage() {}

func (x *IsIp) ProtoReflect() protoreflect.Message {
	mi := &file_buf_validate_conformance_cases_library_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 *IsIp) GetVal() string {
	if x != nil {
		return x.xxx_hidden_Val
	}
	return ""
}

func (x *IsIp) GetVersion() int32 {
	if x != nil {
		return x.xxx_hidden_Version
	}
	return 0
}

func (x *IsIp) SetVal(v string) {
	x.xxx_hidden_Val = v
}

func (x *IsIp) SetVersion(v int32) {
	x.xxx_hidden_Version = v
	protoimpl.X.SetPresent(&(x.XXX_presence[0]), 1, 2)
}

func (x *IsIp) HasVersion() bool {
	if x == nil {
		return false
	}
	return protoimpl.X.Present(&(x.XXX_presence[0]), 1)
}

func (x *IsIp) ClearVersion() {
	protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 1)
	x.xxx_hidden_Version = 0
}

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

	Val     string
	Version *int32
}

func (b0 IsIp_builder) Build() *IsIp {
	m0 := &IsIp{}
	b, x := &b0, m0
	_, _ = b, x
	x.xxx_hidden_Val = b.Val
	if b.Version != nil {
		protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 1, 2)
		x.xxx_hidden_Version = *b.Version
	}
	return m0
}

type IsEmail struct {
	state          protoimpl.MessageState `protogen:"opaque.v1"`
	xxx_hidden_Val string                 `protobuf:"bytes,1,opt,name=val,proto3"`
	unknownFields  protoimpl.UnknownFields
	sizeCache      protoimpl.SizeCache
}

func (x *IsEmail) Reset() {
	*x = IsEmail{}
	mi := &file_buf_validate_conformance_cases_library_proto_msgTypes[4]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*IsEmail) ProtoMessage() {}

func (x *IsEmail) ProtoReflect() protoreflect.Message {
	mi := &file_buf_validate_conformance_cases_library_proto_msgTypes[4]
	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 *IsEmail) GetVal() string {
	if x != nil {
		return x.xxx_hidden_Val
	}
	return ""
}

func (x *IsEmail) SetVal(v string) {
	x.xxx_hidden_Val = v
}

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

	Val string
}

func (b0 IsEmail_builder) Build() *IsEmail {
	m0 := &IsEmail{}
	b, x := &b0, m0
	_, _ = b, x
	x.xxx_hidden_Val = b.Val
	return m0
}

type IsUri struct {
	state          protoimpl.MessageState `protogen:"opaque.v1"`
	xxx_hidden_Val string                 `protobuf:"bytes,1,opt,name=val,proto3"`
	unknownFields  protoimpl.UnknownFields
	sizeCache      protoimpl.SizeCache
}

func (x *IsUri) Reset() {
	*x = IsUri{}
	mi := &file_buf_validate_conformance_cases_library_proto_msgTypes[5]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*IsUri) ProtoMessage() {}

func (x *IsUri) ProtoReflect() protoreflect.Message {
	mi := &file_buf_validate_conformance_cases_library_proto_msgTypes[5]
	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 *IsUri) GetVal() string {
	if x != nil {
		return x.xxx_hidden_Val
	}
	return ""
}

func (x *IsUri) SetVal(v string) {
	x.xxx_hidden_Val = v
}

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

	Val string
}

func (b0 IsUri_builder) Build() *IsUri {
	m0 := &IsUri{}
	b, x := &b0, m0
	_, _ = b, x
	x.xxx_hidden_Val = b.Val
	return m0
}

type IsUriRef struct {
	state          protoimpl.MessageState `protogen:"opaque.v1"`
	xxx_hidden_Val string                 `protobuf:"bytes,1,opt,name=val,proto3"`
	unknownFields  protoimpl.UnknownFields
	sizeCache      protoimpl.SizeCache
}

func (x *IsUriRef) Reset() {
	*x = IsUriRef{}
	mi := &file_buf_validate_conformance_cases_library_proto_msgTypes[6]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*IsUriRef) ProtoMessage() {}

func (x *IsUriRef) ProtoReflect() protoreflect.Message {
	mi := &file_buf_validate_conformance_cases_library_proto_msgTypes[6]
	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 *IsUriRef) GetVal() string {
	if x != nil {
		return x.xxx_hidden_Val
	}
	return ""
}

func (x *IsUriRef) SetVal(v string) {
	x.xxx_hidden_Val = v
}

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

	Val string
}

func (b0 IsUriRef_builder) Build() *IsUriRef {
	m0 := &IsUriRef{}
	b, x := &b0, m0
	_, _ = b, x
	x.xxx_hidden_Val = b.Val
	return m0
}

var File_buf_validate_conformance_cases_library_proto protoreflect.FileDescriptor

const file_buf_validate_conformance_cases_library_proto_rawDesc = "" +
	"\n" +
	",buf/validate/conformance/cases/library.proto\x12\x1ebuf.validate.conformance.cases\x1a\x1bbuf/validate/validate.proto\"Q\n" +
	"\n" +
	"IsHostname\x12\x10\n" +
	"\x03val\x18\x01 \x01(\tR\x03val:1\xbaH.\x1a,\n" +
	"\x13library.is_hostname\x1a\x15this.val.isHostname()\"\x93\x01\n" +
	"\rIsHostAndPort\x12\x10\n" +
	"\x03val\x18\x01 \x01(\tR\x03val\x12#\n" +
	"\rport_required\x18\x02 \x01(\bR\fportRequired:K\xbaHH\x1aF\n" +
	"\x18library.is_host_and_port\x1a*this.val.isHostAndPort(this.port_required)\"\xf0\x02\n" +
	"\n" +
	"IsIpPrefix\x12\x10\n" +
	"\x03val\x18\x01 \x01(\tR\x03val\x12\x1d\n" +
	"\aversion\x18\x02 \x01(\x05H\x00R\aversion\x88\x01\x01\x12\x1b\n" +
	"\x06strict\x18\x03 \x01(\bH\x01R\x06strict\x88\x01\x01:\xfc\x01\xbaH\xf8\x01\x1a\xf5\x01\n" +
	"\x14library.is_ip_prefix\x1a\xdc\x01has(this.version) && has(this.strict) ? this.val.isIpPrefix(this.version, this.strict) : has(this.version) ? this.val.isIpPrefix(this.version) : has(this.strict) ? this.val.isIpPrefix(this.strict) : this.val.isIpPrefix()B\n" +
	"\n" +
	"\b_versionB\t\n" +
	"\a_strict\"\x9c\x01\n" +
	"\x04IsIp\x12\x10\n" +
	"\x03val\x18\x01 \x01(\tR\x03val\x12\x1d\n" +
	"\aversion\x18\x02 \x01(\x05H\x00R\aversion\x88\x01\x01:W\xbaHT\x1aR\n" +
	"\rlibrary.is_ip\x1aAhas(this.version) ? this.val.isIp(this.version) : this.val.isIp()B\n" +
	"\n" +
	"\b_version\"H\n" +
	"\aIsEmail\x12\x10\n" +
	"\x03val\x18\x01 \x01(\tR\x03val:+\xbaH(\x1a&\n" +
	"\x10library.is_email\x1a\x12this.val.isEmail()\"B\n" +
	"\x05IsUri\x12\x10\n" +
	"\x03val\x18\x01 \x01(\tR\x03val:'\xbaH$\x1a\"\n" +
	"\x0elibrary.is_uri\x1a\x10this.val.isUri()\"L\n" +
	"\bIsUriRef\x12\x10\n" +
	"\x03val\x18\x01 \x01(\tR\x03val:.\xbaH+\x1a)\n" +
	"\x12library.is_uri_ref\x1a\x13this.val.isUriRef()B\x96\x02\n" +
	"\"com.buf.validate.conformance.casesB\fLibraryProtoP\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_library_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
var file_buf_validate_conformance_cases_library_proto_goTypes = []any{
	(*IsHostname)(nil),    // 0: buf.validate.conformance.cases.IsHostname
	(*IsHostAndPort)(nil), // 1: buf.validate.conformance.cases.IsHostAndPort
	(*IsIpPrefix)(nil),    // 2: buf.validate.conformance.cases.IsIpPrefix
	(*IsIp)(nil),          // 3: buf.validate.conformance.cases.IsIp
	(*IsEmail)(nil),       // 4: buf.validate.conformance.cases.IsEmail
	(*IsUri)(nil),         // 5: buf.validate.conformance.cases.IsUri
	(*IsUriRef)(nil),      // 6: buf.validate.conformance.cases.IsUriRef
}
var file_buf_validate_conformance_cases_library_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_library_proto_init() }
func file_buf_validate_conformance_cases_library_proto_init() {
	if File_buf_validate_conformance_cases_library_proto != nil {
		return
	}
	file_buf_validate_conformance_cases_library_proto_msgTypes[2].OneofWrappers = []any{}
	file_buf_validate_conformance_cases_library_proto_msgTypes[3].OneofWrappers = []any{}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_buf_validate_conformance_cases_library_proto_rawDesc), len(file_buf_validate_conformance_cases_library_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   7,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_buf_validate_conformance_cases_library_proto_goTypes,
		DependencyIndexes: file_buf_validate_conformance_cases_library_proto_depIdxs,
		MessageInfos:      file_buf_validate_conformance_cases_library_proto_msgTypes,
	}.Build()
	File_buf_validate_conformance_cases_library_proto = out.File
	file_buf_validate_conformance_cases_library_proto_goTypes = nil
	file_buf_validate_conformance_cases_library_proto_depIdxs = nil
}
