This repository has been archived by the owner on Mar 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 283
/
message.pb.go
144 lines (126 loc) · 5.47 KB
/
message.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
// Code generated by protoc-gen-go.
// source: message.proto
// DO NOT EDIT!
/*
Package message is a generated protocol buffer package.
It is generated from these files:
message.proto
It has these top-level messages:
Message
Envelope
*/
package pb
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import google_protobuf "github.com/golang/protobuf/ptypes/any"
// 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.
const _ = proto.ProtoPackageIsVersion1
type Message_MessageType int32
const (
Message_PING Message_MessageType = 0
Message_MESSAGE Message_MessageType = 1
Message_FOLLOW Message_MessageType = 2
Message_UNFOLLOW Message_MessageType = 3
Message_ORDER Message_MessageType = 4
Message_ORDER_ACK Message_MessageType = 5
Message_ORDER_CONFIRMATION Message_MessageType = 6
Message_RATING Message_MessageType = 7
Message_DISPUTE_OPEN Message_MessageType = 8
Message_DISPUTE_CLOSE Message_MessageType = 9
Message_REFUND Message_MessageType = 10
Message_OFFLINE_ACK Message_MessageType = 11
)
var Message_MessageType_name = map[int32]string{
0: "PING",
1: "MESSAGE",
2: "FOLLOW",
3: "UNFOLLOW",
4: "ORDER",
5: "ORDER_ACK",
6: "ORDER_CONFIRMATION",
7: "RATING",
8: "DISPUTE_OPEN",
9: "DISPUTE_CLOSE",
10: "REFUND",
11: "OFFLINE_ACK",
}
var Message_MessageType_value = map[string]int32{
"PING": 0,
"MESSAGE": 1,
"FOLLOW": 2,
"UNFOLLOW": 3,
"ORDER": 4,
"ORDER_ACK": 5,
"ORDER_CONFIRMATION": 6,
"RATING": 7,
"DISPUTE_OPEN": 8,
"DISPUTE_CLOSE": 9,
"REFUND": 10,
"OFFLINE_ACK": 11,
}
func (x Message_MessageType) String() string {
return proto.EnumName(Message_MessageType_name, int32(x))
}
func (Message_MessageType) EnumDescriptor() ([]byte, []int) { return fileDescriptor2, []int{0, 0} }
type Message struct {
MessageType Message_MessageType `protobuf:"varint,1,opt,name=messageType,enum=Message_MessageType" json:"messageType,omitempty"`
Payload *google_protobuf.Any `protobuf:"bytes,2,opt,name=payload" json:"payload,omitempty"`
}
func (m *Message) Reset() { *m = Message{} }
func (m *Message) String() string { return proto.CompactTextString(m) }
func (*Message) ProtoMessage() {}
func (*Message) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0} }
func (m *Message) GetPayload() *google_protobuf.Any {
if m != nil {
return m.Payload
}
return nil
}
type Envelope struct {
Message *Message `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"`
PeerID string `protobuf:"bytes,2,opt,name=peerID" json:"peerID,omitempty"`
}
func (m *Envelope) Reset() { *m = Envelope{} }
func (m *Envelope) String() string { return proto.CompactTextString(m) }
func (*Envelope) ProtoMessage() {}
func (*Envelope) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{1} }
func (m *Envelope) GetMessage() *Message {
if m != nil {
return m.Message
}
return nil
}
func init() {
proto.RegisterType((*Message)(nil), "Message")
proto.RegisterType((*Envelope)(nil), "Envelope")
proto.RegisterEnum("Message_MessageType", Message_MessageType_name, Message_MessageType_value)
}
var fileDescriptor2 = []byte{
// 311 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0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