forked from grpc-ecosystem/grpc-gateway
-
Notifications
You must be signed in to change notification settings - Fork 0
/
path_enum.pb.go
120 lines (102 loc) · 4.41 KB
/
path_enum.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: examples/proto/pathenum/path_enum.proto
package pathenum // import "github.com/grpc-ecosystem/grpc-gateway/examples/proto/pathenum"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
type PathEnum int32
const (
PathEnum_ABC PathEnum = 0
PathEnum_DEF PathEnum = 1
)
var PathEnum_name = map[int32]string{
0: "ABC",
1: "DEF",
}
var PathEnum_value = map[string]int32{
"ABC": 0,
"DEF": 1,
}
func (x PathEnum) String() string {
return proto.EnumName(PathEnum_name, int32(x))
}
func (PathEnum) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_path_enum_f14abf5268452f40, []int{0}
}
type MessagePathEnum_NestedPathEnum int32
const (
MessagePathEnum_GHI MessagePathEnum_NestedPathEnum = 0
MessagePathEnum_JKL MessagePathEnum_NestedPathEnum = 1
)
var MessagePathEnum_NestedPathEnum_name = map[int32]string{
0: "GHI",
1: "JKL",
}
var MessagePathEnum_NestedPathEnum_value = map[string]int32{
"GHI": 0,
"JKL": 1,
}
func (x MessagePathEnum_NestedPathEnum) String() string {
return proto.EnumName(MessagePathEnum_NestedPathEnum_name, int32(x))
}
func (MessagePathEnum_NestedPathEnum) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_path_enum_f14abf5268452f40, []int{0, 0}
}
type MessagePathEnum struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MessagePathEnum) Reset() { *m = MessagePathEnum{} }
func (m *MessagePathEnum) String() string { return proto.CompactTextString(m) }
func (*MessagePathEnum) ProtoMessage() {}
func (*MessagePathEnum) Descriptor() ([]byte, []int) {
return fileDescriptor_path_enum_f14abf5268452f40, []int{0}
}
func (m *MessagePathEnum) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MessagePathEnum.Unmarshal(m, b)
}
func (m *MessagePathEnum) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MessagePathEnum.Marshal(b, m, deterministic)
}
func (dst *MessagePathEnum) XXX_Merge(src proto.Message) {
xxx_messageInfo_MessagePathEnum.Merge(dst, src)
}
func (m *MessagePathEnum) XXX_Size() int {
return xxx_messageInfo_MessagePathEnum.Size(m)
}
func (m *MessagePathEnum) XXX_DiscardUnknown() {
xxx_messageInfo_MessagePathEnum.DiscardUnknown(m)
}
var xxx_messageInfo_MessagePathEnum proto.InternalMessageInfo
func init() {
proto.RegisterType((*MessagePathEnum)(nil), "grpc.gateway.examples.pathenum.MessagePathEnum")
proto.RegisterEnum("grpc.gateway.examples.pathenum.PathEnum", PathEnum_name, PathEnum_value)
proto.RegisterEnum("grpc.gateway.examples.pathenum.MessagePathEnum_NestedPathEnum", MessagePathEnum_NestedPathEnum_name, MessagePathEnum_NestedPathEnum_value)
}
func init() {
proto.RegisterFile("examples/proto/pathenum/path_enum.proto", fileDescriptor_path_enum_f14abf5268452f40)
}
var fileDescriptor_path_enum_f14abf5268452f40 = []byte{
// 175 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4f, 0xad, 0x48, 0xcc,
0x2d, 0xc8, 0x49, 0x2d, 0xd6, 0x2f, 0x28, 0xca, 0x2f, 0xc9, 0xd7, 0x2f, 0x48, 0x2c, 0xc9, 0x48,
0xcd, 0x2b, 0xcd, 0x05, 0x33, 0xe2, 0x41, 0x2c, 0x3d, 0xb0, 0x84, 0x90, 0x5c, 0x7a, 0x51, 0x41,
0xb2, 0x5e, 0x7a, 0x62, 0x49, 0x6a, 0x79, 0x62, 0xa5, 0x1e, 0x4c, 0x97, 0x1e, 0x4c, 0xbd, 0x92,
0x29, 0x17, 0xbf, 0x6f, 0x6a, 0x71, 0x71, 0x62, 0x7a, 0x6a, 0x40, 0x62, 0x49, 0x86, 0x2b, 0x48,
0x48, 0x89, 0x8b, 0xcf, 0x2f, 0xb5, 0xb8, 0x24, 0x35, 0x05, 0x26, 0x22, 0xc4, 0xce, 0xc5, 0xec,
0xee, 0xe1, 0x29, 0xc0, 0x00, 0x62, 0x78, 0x79, 0xfb, 0x08, 0x30, 0x6a, 0xc9, 0x70, 0x71, 0x20,
0xcb, 0x3a, 0x3a, 0x39, 0x43, 0x64, 0x5d, 0x5c, 0xdd, 0x04, 0x18, 0x9d, 0x1c, 0xa2, 0xec, 0xd2,
0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0x41, 0x2e, 0xd0, 0x4d, 0x4d, 0xce,
0x2f, 0xae, 0x2c, 0x2e, 0x49, 0x85, 0x72, 0xa1, 0x0e, 0xd2, 0xc7, 0xe1, 0x8d, 0x24, 0x36, 0x30,
0xdf, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0xbb, 0x9a, 0x10, 0xfc, 0xe8, 0x00, 0x00, 0x00,
}