forked from twitchtv/twirp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
clientcompat.pb.go
159 lines (133 loc) · 6 KB
/
clientcompat.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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
// Code generated by protoc-gen-go.
// source: clientcompat.proto
// DO NOT EDIT!
/*
Package clientcompat is a generated protocol buffer package.
It is generated from these files:
clientcompat.proto
It has these top-level messages:
Empty
Req
Resp
ClientCompatMessage
*/
package clientcompat
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 ClientCompatMessage_CompatServiceMethod int32
const (
ClientCompatMessage_NOOP ClientCompatMessage_CompatServiceMethod = 0
ClientCompatMessage_METHOD ClientCompatMessage_CompatServiceMethod = 1
)
var ClientCompatMessage_CompatServiceMethod_name = map[int32]string{
0: "NOOP",
1: "METHOD",
}
var ClientCompatMessage_CompatServiceMethod_value = map[string]int32{
"NOOP": 0,
"METHOD": 1,
}
func (x ClientCompatMessage_CompatServiceMethod) String() string {
return proto.EnumName(ClientCompatMessage_CompatServiceMethod_name, int32(x))
}
func (ClientCompatMessage_CompatServiceMethod) EnumDescriptor() ([]byte, []int) {
return fileDescriptor0, []int{3, 0}
}
type Empty struct {
}
func (m *Empty) Reset() { *m = Empty{} }
func (m *Empty) String() string { return proto.CompactTextString(m) }
func (*Empty) ProtoMessage() {}
func (*Empty) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
type Req struct {
V string `protobuf:"bytes,1,opt,name=v" json:"v,omitempty"`
}
func (m *Req) Reset() { *m = Req{} }
func (m *Req) String() string { return proto.CompactTextString(m) }
func (*Req) ProtoMessage() {}
func (*Req) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *Req) GetV() string {
if m != nil {
return m.V
}
return ""
}
type Resp struct {
V int32 `protobuf:"varint,1,opt,name=v" json:"v,omitempty"`
}
func (m *Resp) Reset() { *m = Resp{} }
func (m *Resp) String() string { return proto.CompactTextString(m) }
func (*Resp) ProtoMessage() {}
func (*Resp) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
func (m *Resp) GetV() int32 {
if m != nil {
return m.V
}
return 0
}
type ClientCompatMessage struct {
ServiceAddress string `protobuf:"bytes,1,opt,name=service_address,json=serviceAddress" json:"service_address,omitempty"`
Method ClientCompatMessage_CompatServiceMethod `protobuf:"varint,2,opt,name=method,enum=twirp.clientcompat.ClientCompatMessage_CompatServiceMethod" json:"method,omitempty"`
Request []byte `protobuf:"bytes,3,opt,name=request,proto3" json:"request,omitempty"`
}
func (m *ClientCompatMessage) Reset() { *m = ClientCompatMessage{} }
func (m *ClientCompatMessage) String() string { return proto.CompactTextString(m) }
func (*ClientCompatMessage) ProtoMessage() {}
func (*ClientCompatMessage) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
func (m *ClientCompatMessage) GetServiceAddress() string {
if m != nil {
return m.ServiceAddress
}
return ""
}
func (m *ClientCompatMessage) GetMethod() ClientCompatMessage_CompatServiceMethod {
if m != nil {
return m.Method
}
return ClientCompatMessage_NOOP
}
func (m *ClientCompatMessage) GetRequest() []byte {
if m != nil {
return m.Request
}
return nil
}
func init() {
proto.RegisterType((*Empty)(nil), "twirp.clientcompat.Empty")
proto.RegisterType((*Req)(nil), "twirp.clientcompat.Req")
proto.RegisterType((*Resp)(nil), "twirp.clientcompat.Resp")
proto.RegisterType((*ClientCompatMessage)(nil), "twirp.clientcompat.ClientCompatMessage")
proto.RegisterEnum("twirp.clientcompat.ClientCompatMessage_CompatServiceMethod", ClientCompatMessage_CompatServiceMethod_name, ClientCompatMessage_CompatServiceMethod_value)
}
func init() { proto.RegisterFile("clientcompat.proto", fileDescriptor0) }
var fileDescriptor0 = []byte{
// 276 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x91, 0xc1, 0x4e, 0x83, 0x40,
0x10, 0x86, 0x5d, 0xdb, 0x52, 0x9d, 0x20, 0x36, 0x83, 0x89, 0xd8, 0x13, 0xe1, 0x22, 0x89, 0x09,
0x87, 0x7a, 0xec, 0xc9, 0xd6, 0x26, 0x5e, 0x28, 0x66, 0xeb, 0xc9, 0x8b, 0x41, 0x98, 0x28, 0x89,
0xb8, 0x0b, 0xbb, 0x62, 0x7c, 0x0b, 0x9f, 0xcf, 0xa7, 0x31, 0x02, 0xc6, 0x1a, 0xd7, 0xe3, 0x7c,
0xff, 0xcc, 0xb7, 0x93, 0x1d, 0xc0, 0xec, 0xa9, 0xa0, 0x67, 0x9d, 0x89, 0x52, 0xa6, 0x3a, 0x92,
0xb5, 0xd0, 0x02, 0x51, 0xbf, 0x16, 0xb5, 0x8c, 0xb6, 0x93, 0x60, 0x0c, 0xa3, 0x55, 0x29, 0xf5,
0x5b, 0xe0, 0xc2, 0x80, 0x53, 0x85, 0x36, 0xb0, 0xc6, 0x63, 0x3e, 0x0b, 0xf7, 0x39, 0x6b, 0x82,
0x23, 0x18, 0x72, 0x52, 0xf2, 0x87, 0x8e, 0xbe, 0xe8, 0x07, 0x03, 0x77, 0xd9, 0x4a, 0x96, 0xad,
0x24, 0x26, 0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