1
2
3
4 package pathenum
5
6 import (
7 fmt "fmt"
8 proto "github.com/golang/protobuf/proto"
9 math "math"
10 )
11
12
13 var _ = proto.Marshal
14 var _ = fmt.Errorf
15 var _ = math.Inf
16
17
18
19
20
21 const _ = proto.ProtoPackageIsVersion3
22
23 type PathEnum int32
24
25 const (
26 PathEnum_ABC PathEnum = 0
27 PathEnum_DEF PathEnum = 1
28 )
29
30 var PathEnum_name = map[int32]string{
31 0: "ABC",
32 1: "DEF",
33 }
34
35 var PathEnum_value = map[string]int32{
36 "ABC": 0,
37 "DEF": 1,
38 }
39
40 func (x PathEnum) String() string {
41 return proto.EnumName(PathEnum_name, int32(x))
42 }
43
44 func (PathEnum) EnumDescriptor() ([]byte, []int) {
45 return fileDescriptor_83f42520181de088, []int{0}
46 }
47
48 type MessagePathEnum_NestedPathEnum int32
49
50 const (
51 MessagePathEnum_GHI MessagePathEnum_NestedPathEnum = 0
52 MessagePathEnum_JKL MessagePathEnum_NestedPathEnum = 1
53 )
54
55 var MessagePathEnum_NestedPathEnum_name = map[int32]string{
56 0: "GHI",
57 1: "JKL",
58 }
59
60 var MessagePathEnum_NestedPathEnum_value = map[string]int32{
61 "GHI": 0,
62 "JKL": 1,
63 }
64
65 func (x MessagePathEnum_NestedPathEnum) String() string {
66 return proto.EnumName(MessagePathEnum_NestedPathEnum_name, int32(x))
67 }
68
69 func (MessagePathEnum_NestedPathEnum) EnumDescriptor() ([]byte, []int) {
70 return fileDescriptor_83f42520181de088, []int{0, 0}
71 }
72
73 type MessagePathEnum struct {
74 XXX_NoUnkeyedLiteral struct{} `json:"-"`
75 XXX_unrecognized []byte `json:"-"`
76 XXX_sizecache int32 `json:"-"`
77 }
78
79 func (m *MessagePathEnum) Reset() { *m = MessagePathEnum{} }
80 func (m *MessagePathEnum) String() string { return proto.CompactTextString(m) }
81 func (*MessagePathEnum) ProtoMessage() {}
82 func (*MessagePathEnum) Descriptor() ([]byte, []int) {
83 return fileDescriptor_83f42520181de088, []int{0}
84 }
85
86 func (m *MessagePathEnum) XXX_Unmarshal(b []byte) error {
87 return xxx_messageInfo_MessagePathEnum.Unmarshal(m, b)
88 }
89 func (m *MessagePathEnum) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
90 return xxx_messageInfo_MessagePathEnum.Marshal(b, m, deterministic)
91 }
92 func (m *MessagePathEnum) XXX_Merge(src proto.Message) {
93 xxx_messageInfo_MessagePathEnum.Merge(m, src)
94 }
95 func (m *MessagePathEnum) XXX_Size() int {
96 return xxx_messageInfo_MessagePathEnum.Size(m)
97 }
98 func (m *MessagePathEnum) XXX_DiscardUnknown() {
99 xxx_messageInfo_MessagePathEnum.DiscardUnknown(m)
100 }
101
102 var xxx_messageInfo_MessagePathEnum proto.InternalMessageInfo
103
104 type MessageWithPathEnum struct {
105 Value PathEnum `protobuf:"varint,1,opt,name=value,proto3,enum=grpc.gateway.examples.internal.pathenum.PathEnum" json:"value,omitempty"`
106 XXX_NoUnkeyedLiteral struct{} `json:"-"`
107 XXX_unrecognized []byte `json:"-"`
108 XXX_sizecache int32 `json:"-"`
109 }
110
111 func (m *MessageWithPathEnum) Reset() { *m = MessageWithPathEnum{} }
112 func (m *MessageWithPathEnum) String() string { return proto.CompactTextString(m) }
113 func (*MessageWithPathEnum) ProtoMessage() {}
114 func (*MessageWithPathEnum) Descriptor() ([]byte, []int) {
115 return fileDescriptor_83f42520181de088, []int{1}
116 }
117
118 func (m *MessageWithPathEnum) XXX_Unmarshal(b []byte) error {
119 return xxx_messageInfo_MessageWithPathEnum.Unmarshal(m, b)
120 }
121 func (m *MessageWithPathEnum) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
122 return xxx_messageInfo_MessageWithPathEnum.Marshal(b, m, deterministic)
123 }
124 func (m *MessageWithPathEnum) XXX_Merge(src proto.Message) {
125 xxx_messageInfo_MessageWithPathEnum.Merge(m, src)
126 }
127 func (m *MessageWithPathEnum) XXX_Size() int {
128 return xxx_messageInfo_MessageWithPathEnum.Size(m)
129 }
130 func (m *MessageWithPathEnum) XXX_DiscardUnknown() {
131 xxx_messageInfo_MessageWithPathEnum.DiscardUnknown(m)
132 }
133
134 var xxx_messageInfo_MessageWithPathEnum proto.InternalMessageInfo
135
136 func (m *MessageWithPathEnum) GetValue() PathEnum {
137 if m != nil {
138 return m.Value
139 }
140 return PathEnum_ABC
141 }
142
143 type MessageWithNestedPathEnum struct {
144 Value MessagePathEnum_NestedPathEnum `protobuf:"varint,1,opt,name=value,proto3,enum=grpc.gateway.examples.internal.pathenum.MessagePathEnum_NestedPathEnum" json:"value,omitempty"`
145 XXX_NoUnkeyedLiteral struct{} `json:"-"`
146 XXX_unrecognized []byte `json:"-"`
147 XXX_sizecache int32 `json:"-"`
148 }
149
150 func (m *MessageWithNestedPathEnum) Reset() { *m = MessageWithNestedPathEnum{} }
151 func (m *MessageWithNestedPathEnum) String() string { return proto.CompactTextString(m) }
152 func (*MessageWithNestedPathEnum) ProtoMessage() {}
153 func (*MessageWithNestedPathEnum) Descriptor() ([]byte, []int) {
154 return fileDescriptor_83f42520181de088, []int{2}
155 }
156
157 func (m *MessageWithNestedPathEnum) XXX_Unmarshal(b []byte) error {
158 return xxx_messageInfo_MessageWithNestedPathEnum.Unmarshal(m, b)
159 }
160 func (m *MessageWithNestedPathEnum) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
161 return xxx_messageInfo_MessageWithNestedPathEnum.Marshal(b, m, deterministic)
162 }
163 func (m *MessageWithNestedPathEnum) XXX_Merge(src proto.Message) {
164 xxx_messageInfo_MessageWithNestedPathEnum.Merge(m, src)
165 }
166 func (m *MessageWithNestedPathEnum) XXX_Size() int {
167 return xxx_messageInfo_MessageWithNestedPathEnum.Size(m)
168 }
169 func (m *MessageWithNestedPathEnum) XXX_DiscardUnknown() {
170 xxx_messageInfo_MessageWithNestedPathEnum.DiscardUnknown(m)
171 }
172
173 var xxx_messageInfo_MessageWithNestedPathEnum proto.InternalMessageInfo
174
175 func (m *MessageWithNestedPathEnum) GetValue() MessagePathEnum_NestedPathEnum {
176 if m != nil {
177 return m.Value
178 }
179 return MessagePathEnum_GHI
180 }
181
182 func init() {
183 proto.RegisterEnum("grpc.gateway.examples.internal.pathenum.PathEnum", PathEnum_name, PathEnum_value)
184 proto.RegisterEnum("grpc.gateway.examples.internal.pathenum.MessagePathEnum_NestedPathEnum", MessagePathEnum_NestedPathEnum_name, MessagePathEnum_NestedPathEnum_value)
185 proto.RegisterType((*MessagePathEnum)(nil), "grpc.gateway.examples.internal.pathenum.MessagePathEnum")
186 proto.RegisterType((*MessageWithPathEnum)(nil), "grpc.gateway.examples.internal.pathenum.MessageWithPathEnum")
187 proto.RegisterType((*MessageWithNestedPathEnum)(nil), "grpc.gateway.examples.internal.pathenum.MessageWithNestedPathEnum")
188 }
189
190 func init() {
191 proto.RegisterFile("examples/internal/proto/pathenum/path_enum.proto", fileDescriptor_83f42520181de088)
192 }
193
194 var fileDescriptor_83f42520181de088 = []byte{
195
196 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x32, 0x48, 0xad, 0x48, 0xcc,
197 0x2d, 0xc8, 0x49, 0x2d, 0xd6, 0xcf, 0xcc, 0x2b, 0x49, 0x2d, 0xca, 0x4b, 0xcc, 0xd1, 0x2f, 0x28,
198 0xca, 0x2f, 0xc9, 0xd7, 0x2f, 0x48, 0x2c, 0xc9, 0x48, 0xcd, 0x2b, 0xcd, 0x05, 0x33, 0xe2, 0x41,
199 0x2c, 0x3d, 0xb0, 0x84, 0x90, 0x7a, 0x7a, 0x51, 0x41, 0xb2, 0x5e, 0x7a, 0x62, 0x49, 0x6a, 0x79,
200 0x62, 0xa5, 0x1e, 0x4c, 0xbb, 0x1e, 0x4c, 0xbb, 0x1e, 0x4c, 0xa3, 0x92, 0x29, 0x17, 0xbf, 0x6f,
201 0x6a, 0x71, 0x71, 0x62, 0x7a, 0x6a, 0x40, 0x62, 0x49, 0x86, 0x2b, 0x48, 0x48, 0x89, 0x8b, 0xcf,
202 0x2f, 0xb5, 0xb8, 0x24, 0x35, 0x05, 0x26, 0x22, 0xc4, 0xce, 0xc5, 0xec, 0xee, 0xe1, 0x29, 0xc0,
203 0x00, 0x62, 0x78, 0x79, 0xfb, 0x08, 0x30, 0x2a, 0xc5, 0x71, 0x09, 0x43, 0xb5, 0x85, 0x67, 0x96,
204 0x64, 0xc0, 0x15, 0xba, 0x73, 0xb1, 0x96, 0x25, 0xe6, 0x94, 0xa6, 0x4a, 0x30, 0x2a, 0x30, 0x6a,
205 0xf0, 0x19, 0x19, 0xea, 0x11, 0xe9, 0x0c, 0x3d, 0x98, 0x09, 0x41, 0x10, 0xfd, 0x4a, 0x55, 0x5c,
206 0x92, 0x48, 0xe6, 0xa3, 0x39, 0x27, 0x16, 0xd5, 0x16, 0x77, 0xa2, 0x6d, 0x41, 0xf3, 0xa9, 0x1e,
207 0xaa, 0xb9, 0x50, 0xbb, 0xb5, 0x64, 0xb8, 0x38, 0x90, 0x7d, 0xee, 0xe8, 0xe4, 0x0c, 0xf1, 0xb9,
208 0x8b, 0xab, 0x9b, 0x00, 0xa3, 0x93, 0x67, 0x94, 0x7b, 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e,
209 0x72, 0x7e, 0xae, 0x3e, 0xc8, 0x66, 0xdd, 0xd4, 0xe4, 0xfc, 0xe2, 0xca, 0xe2, 0x92, 0x54, 0x28,
210 0x17, 0xea, 0x10, 0x7d, 0x42, 0x91, 0x96, 0xc4, 0x06, 0xe6, 0x1b, 0x03, 0x02, 0x00, 0x00, 0xff,
211 0xff, 0xce, 0x83, 0xf1, 0x07, 0xdf, 0x01, 0x00, 0x00,
212 }
213
View as plain text