// Copyright 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.9
// 	protoc        (unknown)
// source: test/editions.proto

// buf:lint:ignore PACKAGE_VERSION_SUFFIX
// buf:lint:ignore PACKAGE_DIRECTORY_MATCH

package test

import (
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	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 Proto2Strings struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	S1    *string                `protobuf:"bytes,1,opt,name=s1" json:"s1,omitempty"`
	S2    []string               `protobuf:"bytes,2,rep,name=s2" json:"s2,omitempty"`
	S3    map[string]string      `protobuf:"bytes,3,rep,name=s3" json:"s3,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
	// Types that are valid to be assigned to O:
	//
	//	*Proto2Strings_S4
	//	*Proto2Strings_Z
	O             isProto2Strings_O `protobuf_oneof:"o"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Proto2Strings) ProtoMessage() {}

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

func (x *Proto2Strings) GetS1() string {
	if x != nil && x.S1 != nil {
		return *x.S1
	}
	return ""
}

func (x *Proto2Strings) GetS2() []string {
	if x != nil {
		return x.S2
	}
	return nil
}

func (x *Proto2Strings) GetS3() map[string]string {
	if x != nil {
		return x.S3
	}
	return nil
}

func (x *Proto2Strings) GetO() isProto2Strings_O {
	if x != nil {
		return x.O
	}
	return nil
}

func (x *Proto2Strings) GetS4() string {
	if x != nil {
		if x, ok := x.O.(*Proto2Strings_S4); ok {
			return x.S4
		}
	}
	return ""
}

func (x *Proto2Strings) GetZ() int32 {
	if x != nil {
		if x, ok := x.O.(*Proto2Strings_Z); ok {
			return x.Z
		}
	}
	return 0
}

type isProto2Strings_O interface {
	isProto2Strings_O()
}

type Proto2Strings_S4 struct {
	S4 string `protobuf:"bytes,4,opt,name=s4,oneof"`
}

type Proto2Strings_Z struct {
	Z int32 `protobuf:"varint,5,opt,name=z,oneof"`
}

func (*Proto2Strings_S4) isProto2Strings_O() {}

func (*Proto2Strings_Z) isProto2Strings_O() {}

var File_test_editions_proto protoreflect.FileDescriptor

const file_test_editions_proto_rawDesc = "" +
	"\n" +
	"\x13test/editions.proto\x12\fhyperpb.test\"\xec\x01\n" +
	"\rProto2Strings\x12\x15\n" +
	"\x02s1\x18\x01 \x01(\tB\x05\xaa\x01\x02 \x03R\x02s1\x12\x15\n" +
	"\x02s2\x18\x02 \x03(\tB\x05\xaa\x01\x02 \x03R\x02s2\x12:\n" +
	"\x02s3\x18\x03 \x03(\v2#.hyperpb.test.Proto2Strings.S3EntryB\x05\xaa\x01\x02 \x03R\x02s3\x12\x17\n" +
	"\x02s4\x18\x04 \x01(\tB\x05\xaa\x01\x02 \x03H\x00R\x02s4\x12\x0e\n" +
	"\x01z\x18\x05 \x01(\x05H\x00R\x01z\x1aC\n" +
	"\aS3Entry\x12\x17\n" +
	"\x03key\x18\x01 \x01(\tB\x05\xaa\x01\x02 \x03R\x03key\x12\x1b\n" +
	"\x05value\x18\x02 \x01(\tB\x05\xaa\x01\x02 \x03R\x05value:\x028\x01B\x03\n" +
	"\x01oB\x9a\x01\n" +
	"\x10com.hyperpb.testB\rEditionsProtoP\x01Z&buf.build/go/hyperpb/internal/gen/test\xa2\x02\x03HTX\xaa\x02\fHyperpb.Test\xca\x02\fHyperpb\\Test\xe2\x02\x18Hyperpb\\Test\\GPBMetadata\xea\x02\rHyperpb::Testb\beditionsp\xe8\a"

var (
	file_test_editions_proto_rawDescOnce sync.Once
	file_test_editions_proto_rawDescData []byte
)

func file_test_editions_proto_rawDescGZIP() []byte {
	file_test_editions_proto_rawDescOnce.Do(func() {
		file_test_editions_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_test_editions_proto_rawDesc), len(file_test_editions_proto_rawDesc)))
	})
	return file_test_editions_proto_rawDescData
}

var file_test_editions_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_test_editions_proto_goTypes = []any{
	(*Proto2Strings)(nil), // 0: hyperpb.test.Proto2Strings
	nil,                   // 1: hyperpb.test.Proto2Strings.S3Entry
}
var file_test_editions_proto_depIdxs = []int32{
	1, // 0: hyperpb.test.Proto2Strings.s3:type_name -> hyperpb.test.Proto2Strings.S3Entry
	1, // [1:1] is the sub-list for method output_type
	1, // [1:1] is the sub-list for method input_type
	1, // [1:1] is the sub-list for extension type_name
	1, // [1:1] is the sub-list for extension extendee
	0, // [0:1] is the sub-list for field type_name
}

func init() { file_test_editions_proto_init() }
func file_test_editions_proto_init() {
	if File_test_editions_proto != nil {
		return
	}
	file_test_editions_proto_msgTypes[0].OneofWrappers = []any{
		(*Proto2Strings_S4)(nil),
		(*Proto2Strings_Z)(nil),
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_test_editions_proto_rawDesc), len(file_test_editions_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_test_editions_proto_goTypes,
		DependencyIndexes: file_test_editions_proto_depIdxs,
		MessageInfos:      file_test_editions_proto_msgTypes,
	}.Build()
	File_test_editions_proto = out.File
	file_test_editions_proto_goTypes = nil
	file_test_editions_proto_depIdxs = nil
}
