1// Copyright 2021 The Go Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style 3// license that can be found in the LICENSE file. 4 5// Code generated by protoc-gen-go. DO NOT EDIT. 6// source: internal/testprotos/enums/enums.proto 7 8package enums 9 10import ( 11 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 12 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 13 reflect "reflect" 14 sync "sync" 15) 16 17type Enum int32 18 19const ( 20 Enum_DEFAULT Enum = 1337 21 Enum_ZERO Enum = 0 22 Enum_ONE Enum = 1 23 Enum_ELEVENT Enum = 11 24 Enum_SEVENTEEN Enum = 17 25 Enum_THIRTYSEVEN Enum = 37 26 Enum_SIXTYSEVEN Enum = 67 27 Enum_NEGATIVE Enum = -1 28) 29 30// Enum value maps for Enum. 31var ( 32 Enum_name = map[int32]string{ 33 1337: "DEFAULT", 34 0: "ZERO", 35 1: "ONE", 36 11: "ELEVENT", 37 17: "SEVENTEEN", 38 37: "THIRTYSEVEN", 39 67: "SIXTYSEVEN", 40 -1: "NEGATIVE", 41 } 42 Enum_value = map[string]int32{ 43 "DEFAULT": 1337, 44 "ZERO": 0, 45 "ONE": 1, 46 "ELEVENT": 11, 47 "SEVENTEEN": 17, 48 "THIRTYSEVEN": 37, 49 "SIXTYSEVEN": 67, 50 "NEGATIVE": -1, 51 } 52) 53 54func (x Enum) Enum() *Enum { 55 p := new(Enum) 56 *p = x 57 return p 58} 59 60func (x Enum) String() string { 61 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 62} 63 64func (Enum) Descriptor() protoreflect.EnumDescriptor { 65 return file_internal_testprotos_enums_enums_proto_enumTypes[0].Descriptor() 66} 67 68func (Enum) Type() protoreflect.EnumType { 69 return &file_internal_testprotos_enums_enums_proto_enumTypes[0] 70} 71 72func (x Enum) Number() protoreflect.EnumNumber { 73 return protoreflect.EnumNumber(x) 74} 75 76// Deprecated: Do not use. 77func (x *Enum) UnmarshalJSON(b []byte) error { 78 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) 79 if err != nil { 80 return err 81 } 82 *x = Enum(num) 83 return nil 84} 85 86// Deprecated: Use Enum.Descriptor instead. 87func (Enum) EnumDescriptor() ([]byte, []int) { 88 return file_internal_testprotos_enums_enums_proto_rawDescGZIP(), []int{0} 89} 90 91var File_internal_testprotos_enums_enums_proto protoreflect.FileDescriptor 92 93var file_internal_testprotos_enums_enums_proto_rawDesc = []byte{ 94 0x0a, 0x25, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70, 95 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x65, 0x6e, 0x75, 0x6d, 0x73, 0x2f, 0x65, 0x6e, 0x75, 0x6d, 96 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x13, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 97 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x65, 0x6e, 0x75, 0x6d, 0x73, 0x2a, 0x7b, 0x0a, 0x04, 98 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x0c, 0x0a, 0x07, 0x44, 0x45, 0x46, 0x41, 0x55, 0x4c, 0x54, 0x10, 99 0xb9, 0x0a, 0x12, 0x08, 0x0a, 0x04, 0x5a, 0x45, 0x52, 0x4f, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 100 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x45, 0x4c, 0x45, 0x56, 0x45, 0x4e, 0x54, 101 0x10, 0x0b, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x45, 0x45, 0x4e, 0x10, 102 0x11, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x48, 0x49, 0x52, 0x54, 0x59, 0x53, 0x45, 0x56, 0x45, 0x4e, 103 0x10, 0x25, 0x12, 0x0e, 0x0a, 0x0a, 0x53, 0x49, 0x58, 0x54, 0x59, 0x53, 0x45, 0x56, 0x45, 0x4e, 104 0x10, 0x43, 0x12, 0x15, 0x0a, 0x08, 0x4e, 0x45, 0x47, 0x41, 0x54, 0x49, 0x56, 0x45, 0x10, 0xff, 105 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0x42, 0x36, 0x5a, 0x34, 0x67, 0x6f, 0x6f, 106 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 107 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 108 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x65, 0x6e, 0x75, 0x6d, 109 0x73, 110} 111 112var ( 113 file_internal_testprotos_enums_enums_proto_rawDescOnce sync.Once 114 file_internal_testprotos_enums_enums_proto_rawDescData = file_internal_testprotos_enums_enums_proto_rawDesc 115) 116 117func file_internal_testprotos_enums_enums_proto_rawDescGZIP() []byte { 118 file_internal_testprotos_enums_enums_proto_rawDescOnce.Do(func() { 119 file_internal_testprotos_enums_enums_proto_rawDescData = protoimpl.X.CompressGZIP(file_internal_testprotos_enums_enums_proto_rawDescData) 120 }) 121 return file_internal_testprotos_enums_enums_proto_rawDescData 122} 123 124var file_internal_testprotos_enums_enums_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 125var file_internal_testprotos_enums_enums_proto_goTypes = []interface{}{ 126 (Enum)(0), // 0: goproto.proto.enums.Enum 127} 128var file_internal_testprotos_enums_enums_proto_depIdxs = []int32{ 129 0, // [0:0] is the sub-list for method output_type 130 0, // [0:0] is the sub-list for method input_type 131 0, // [0:0] is the sub-list for extension type_name 132 0, // [0:0] is the sub-list for extension extendee 133 0, // [0:0] is the sub-list for field type_name 134} 135 136func init() { file_internal_testprotos_enums_enums_proto_init() } 137func file_internal_testprotos_enums_enums_proto_init() { 138 if File_internal_testprotos_enums_enums_proto != nil { 139 return 140 } 141 type x struct{} 142 out := protoimpl.TypeBuilder{ 143 File: protoimpl.DescBuilder{ 144 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 145 RawDescriptor: file_internal_testprotos_enums_enums_proto_rawDesc, 146 NumEnums: 1, 147 NumMessages: 0, 148 NumExtensions: 0, 149 NumServices: 0, 150 }, 151 GoTypes: file_internal_testprotos_enums_enums_proto_goTypes, 152 DependencyIndexes: file_internal_testprotos_enums_enums_proto_depIdxs, 153 EnumInfos: file_internal_testprotos_enums_enums_proto_enumTypes, 154 }.Build() 155 File_internal_testprotos_enums_enums_proto = out.File 156 file_internal_testprotos_enums_enums_proto_rawDesc = nil 157 file_internal_testprotos_enums_enums_proto_goTypes = nil 158 file_internal_testprotos_enums_enums_proto_depIdxs = nil 159} 160