// Copyright 2024 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Code generated by protoc-gen-go. DO NOT EDIT. // source: cmd/protoc-gen-go/testdata/enumprefix/enumprefix.proto package enumprefix import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" _ "google.golang.org/protobuf/types/gofeaturespb" reflect "reflect" unsafe "unsafe" ) type Strip int32 const ( Strip_ZERO Strip = 0 Strip_ONE Strip = 1 ) // Enum value maps for Strip. var ( Strip_name = map[int32]string{ 0: "STRIP_ZERO", 1: "STRIP_ONE", } Strip_value = map[string]int32{ "STRIP_ZERO": 0, "STRIP_ONE": 1, } ) func (x Strip) Enum() *Strip { p := new(Strip) *p = x return p } func (x Strip) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (Strip) Descriptor() protoreflect.EnumDescriptor { return file_cmd_protoc_gen_go_testdata_enumprefix_enumprefix_proto_enumTypes[0].Descriptor() } func (Strip) Type() protoreflect.EnumType { return &file_cmd_protoc_gen_go_testdata_enumprefix_enumprefix_proto_enumTypes[0] } func (x Strip) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } type Both int32 const ( Both_ZERO Both = 0 Both_ONE Both = 1 ) // Old (prefixed) names for Both enum values. const ( Both_BOTH_ZERO Both = Both_ZERO Both_BOTH_ONE Both = Both_ONE ) // Enum value maps for Both. var ( Both_name = map[int32]string{ 0: "BOTH_ZERO", 1: "BOTH_ONE", } Both_value = map[string]int32{ "BOTH_ZERO": 0, "BOTH_ONE": 1, } ) func (x Both) Enum() *Both { p := new(Both) *p = x return p } func (x Both) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (Both) Descriptor() protoreflect.EnumDescriptor { return file_cmd_protoc_gen_go_testdata_enumprefix_enumprefix_proto_enumTypes[1].Descriptor() } func (Both) Type() protoreflect.EnumType { return &file_cmd_protoc_gen_go_testdata_enumprefix_enumprefix_proto_enumTypes[1] } func (x Both) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } type BothNoPrefix int32 const ( BothNoPrefix_ZERO BothNoPrefix = 0 BothNoPrefix_ONE BothNoPrefix = 1 ) // Enum value maps for BothNoPrefix. var ( BothNoPrefix_name = map[int32]string{ 0: "ZERO", 1: "ONE", } BothNoPrefix_value = map[string]int32{ "ZERO": 0, "ONE": 1, } ) func (x BothNoPrefix) Enum() *BothNoPrefix { p := new(BothNoPrefix) *p = x return p } func (x BothNoPrefix) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (BothNoPrefix) Descriptor() protoreflect.EnumDescriptor { return file_cmd_protoc_gen_go_testdata_enumprefix_enumprefix_proto_enumTypes[2].Descriptor() } func (BothNoPrefix) Type() protoreflect.EnumType { return &file_cmd_protoc_gen_go_testdata_enumprefix_enumprefix_proto_enumTypes[2] } func (x BothNoPrefix) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } type BothButOne int32 const ( BothButOne_ZERO BothButOne = 0 BothButOne_BOTH_BUT_ONE_ONE BothButOne = 1 ) // Old (prefixed) names for BothButOne enum values. const ( BothButOne_BOTH_BUT_ONE_ZERO BothButOne = BothButOne_ZERO ) // Enum value maps for BothButOne. var ( BothButOne_name = map[int32]string{ 0: "BOTH_BUT_ONE_ZERO", 1: "BOTH_BUT_ONE_ONE", } BothButOne_value = map[string]int32{ "BOTH_BUT_ONE_ZERO": 0, "BOTH_BUT_ONE_ONE": 1, } ) func (x BothButOne) Enum() *BothButOne { p := new(BothButOne) *p = x return p } func (x BothButOne) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (BothButOne) Descriptor() protoreflect.EnumDescriptor { return file_cmd_protoc_gen_go_testdata_enumprefix_enumprefix_proto_enumTypes[3].Descriptor() } func (BothButOne) Type() protoreflect.EnumType { return &file_cmd_protoc_gen_go_testdata_enumprefix_enumprefix_proto_enumTypes[3] } func (x BothButOne) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } var File_cmd_protoc_gen_go_testdata_enumprefix_enumprefix_proto protoreflect.FileDescriptor const file_cmd_protoc_gen_go_testdata_enumprefix_enumprefix_proto_rawDesc = "" + "\n" + "6cmd/protoc-gen-go/testdata/enumprefix/enumprefix.proto\x12\x19goproto.protoc.enumprefix\x1a!google/protobuf/go_features.proto*&\n" + "\x05Strip\x12\x0e\n" + "\n" + "STRIP_ZERO\x10\x00\x12\r\n" + "\tSTRIP_ONE\x10\x01*,\n" + "\x04Both\x12\r\n" + "\tBOTH_ZERO\x10\x00\x12\f\n" + "\bBOTH_ONE\x10\x01\x1a\a:\x05\xd2>\x02\x18\x02**\n" + "\fBothNoPrefix\x12\b\n" + "\x04ZERO\x10\x00\x12\a\n" + "\x03ONE\x10\x01\x1a\a:\x05\xd2>\x02\x18\x02*K\n" + "\n" + "BothButOne\x12\x15\n" + "\x11BOTH_BUT_ONE_ZERO\x10\x00\x12\x1d\n" + "\x10BOTH_BUT_ONE_ONE\x10\x01\x1a\a\x12\x05\xd2>\x02\x18\x01\x1a\a:\x05\xd2>\x02\x18\x02BJZ@google.golang.org/protobuf/cmd/protoc-gen-go/testdata/enumprefix\x92\x03\x05\xd2>\x02\x18\x03b\beditionsp\xe9\a" var file_cmd_protoc_gen_go_testdata_enumprefix_enumprefix_proto_enumTypes = make([]protoimpl.EnumInfo, 4) var file_cmd_protoc_gen_go_testdata_enumprefix_enumprefix_proto_goTypes = []any{ (Strip)(0), // 0: goproto.protoc.enumprefix.Strip (Both)(0), // 1: goproto.protoc.enumprefix.Both (BothNoPrefix)(0), // 2: goproto.protoc.enumprefix.BothNoPrefix (BothButOne)(0), // 3: goproto.protoc.enumprefix.BothButOne } var file_cmd_protoc_gen_go_testdata_enumprefix_enumprefix_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_cmd_protoc_gen_go_testdata_enumprefix_enumprefix_proto_init() } func file_cmd_protoc_gen_go_testdata_enumprefix_enumprefix_proto_init() { if File_cmd_protoc_gen_go_testdata_enumprefix_enumprefix_proto != nil { return } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_enumprefix_enumprefix_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_enumprefix_enumprefix_proto_rawDesc)), NumEnums: 4, NumMessages: 0, NumExtensions: 0, NumServices: 0, }, GoTypes: file_cmd_protoc_gen_go_testdata_enumprefix_enumprefix_proto_goTypes, DependencyIndexes: file_cmd_protoc_gen_go_testdata_enumprefix_enumprefix_proto_depIdxs, EnumInfos: file_cmd_protoc_gen_go_testdata_enumprefix_enumprefix_proto_enumTypes, }.Build() File_cmd_protoc_gen_go_testdata_enumprefix_enumprefix_proto = out.File file_cmd_protoc_gen_go_testdata_enumprefix_enumprefix_proto_goTypes = nil file_cmd_protoc_gen_go_testdata_enumprefix_enumprefix_proto_depIdxs = nil }