// 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/const.proto

package testv1

import (
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	descriptorpb "google.golang.org/protobuf/types/descriptorpb"
	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 ConstValues struct {
	state         protoimpl.MessageState    `protogen:"open.v1"`
	Name          string                    `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`       // file name, relative to root of source tree
	Package       string                    `protobuf:"bytes,2,opt,name=package,proto3" json:"package,omitempty"` // e.g. "foo", "foo.bar", etc.
	Dependency    []string                  `protobuf:"bytes,3,rep,name=dependency,proto3" json:"dependency,omitempty"`
	Options       *descriptorpb.FileOptions `protobuf:"bytes,8,opt,name=options,proto3" json:"options,omitempty"`
	Values        map[string]*anypb.Any     `protobuf:"bytes,4,rep,name=values,proto3" json:"values,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ConstValues) ProtoMessage() {}

func (x *ConstValues) ProtoReflect() protoreflect.Message {
	mi := &file_buf_protoyaml_test_v1_const_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 ConstValues.ProtoReflect.Descriptor instead.
func (*ConstValues) Descriptor() ([]byte, []int) {
	return file_buf_protoyaml_test_v1_const_proto_rawDescGZIP(), []int{0}
}

func (x *ConstValues) GetName() string {
	if x != nil {
		return x.Name
	}
	return ""
}

func (x *ConstValues) GetPackage() string {
	if x != nil {
		return x.Package
	}
	return ""
}

func (x *ConstValues) GetDependency() []string {
	if x != nil {
		return x.Dependency
	}
	return nil
}

func (x *ConstValues) GetOptions() *descriptorpb.FileOptions {
	if x != nil {
		return x.Options
	}
	return nil
}

func (x *ConstValues) GetValues() map[string]*anypb.Any {
	if x != nil {
		return x.Values
	}
	return nil
}

var File_buf_protoyaml_test_v1_const_proto protoreflect.FileDescriptor

const file_buf_protoyaml_test_v1_const_proto_rawDesc = "" +
	"\n" +
	"!buf/protoyaml/test/v1/const.proto\x12\x15buf.protoyaml.test.v1\x1a\x19google/protobuf/any.proto\x1a google/protobuf/descriptor.proto\"\xac\x02\n" +
	"\vConstValues\x12\x12\n" +
	"\x04name\x18\x01 \x01(\tR\x04name\x12\x18\n" +
	"\apackage\x18\x02 \x01(\tR\apackage\x12\x1e\n" +
	"\n" +
	"dependency\x18\x03 \x03(\tR\n" +
	"dependency\x126\n" +
	"\aoptions\x18\b \x01(\v2\x1c.google.protobuf.FileOptionsR\aoptions\x12F\n" +
	"\x06values\x18\x04 \x03(\v2..buf.protoyaml.test.v1.ConstValues.ValuesEntryR\x06values\x1aO\n" +
	"\vValuesEntry\x12\x10\n" +
	"\x03key\x18\x01 \x01(\tR\x03key\x12*\n" +
	"\x05value\x18\x02 \x01(\v2\x14.google.protobuf.AnyR\x05value:\x028\x01B\xe6\x01\n" +
	"\x19com.buf.protoyaml.test.v1B\n" +
	"ConstProtoP\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_const_proto_rawDescOnce sync.Once
	file_buf_protoyaml_test_v1_const_proto_rawDescData []byte
)

func file_buf_protoyaml_test_v1_const_proto_rawDescGZIP() []byte {
	file_buf_protoyaml_test_v1_const_proto_rawDescOnce.Do(func() {
		file_buf_protoyaml_test_v1_const_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_buf_protoyaml_test_v1_const_proto_rawDesc), len(file_buf_protoyaml_test_v1_const_proto_rawDesc)))
	})
	return file_buf_protoyaml_test_v1_const_proto_rawDescData
}

var file_buf_protoyaml_test_v1_const_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_buf_protoyaml_test_v1_const_proto_goTypes = []any{
	(*ConstValues)(nil),              // 0: buf.protoyaml.test.v1.ConstValues
	nil,                              // 1: buf.protoyaml.test.v1.ConstValues.ValuesEntry
	(*descriptorpb.FileOptions)(nil), // 2: google.protobuf.FileOptions
	(*anypb.Any)(nil),                // 3: google.protobuf.Any
}
var file_buf_protoyaml_test_v1_const_proto_depIdxs = []int32{
	2, // 0: buf.protoyaml.test.v1.ConstValues.options:type_name -> google.protobuf.FileOptions
	1, // 1: buf.protoyaml.test.v1.ConstValues.values:type_name -> buf.protoyaml.test.v1.ConstValues.ValuesEntry
	3, // 2: buf.protoyaml.test.v1.ConstValues.ValuesEntry.value:type_name -> google.protobuf.Any
	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_const_proto_init() }
func file_buf_protoyaml_test_v1_const_proto_init() {
	if File_buf_protoyaml_test_v1_const_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_const_proto_rawDesc), len(file_buf_protoyaml_test_v1_const_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_buf_protoyaml_test_v1_const_proto_goTypes,
		DependencyIndexes: file_buf_protoyaml_test_v1_const_proto_depIdxs,
		MessageInfos:      file_buf_protoyaml_test_v1_const_proto_msgTypes,
	}.Build()
	File_buf_protoyaml_test_v1_const_proto = out.File
	file_buf_protoyaml_test_v1_const_proto_goTypes = nil
	file_buf_protoyaml_test_v1_const_proto_depIdxs = nil
}
