/
testing.pb.go
125 lines (109 loc) · 4.32 KB
/
testing.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
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: pkg/jsonpb/testing/testing.proto
package testing
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import timestamp "github.com/golang/protobuf/ptypes/timestamp"
// 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 Status int32
const (
Status_STATUS_NONE Status = 0
Status_STATUS_INIT Status = 1
Status_STATUS_OK Status = 2
Status_STATUS_OFFLINE Status = 3
Status_STATUS_ERROR Status = 4
)
var Status_name = map[int32]string{
0: "STATUS_NONE",
1: "STATUS_INIT",
2: "STATUS_OK",
3: "STATUS_OFFLINE",
4: "STATUS_ERROR",
}
var Status_value = map[string]int32{
"STATUS_NONE": 0,
"STATUS_INIT": 1,
"STATUS_OK": 2,
"STATUS_OFFLINE": 3,
"STATUS_ERROR": 4,
}
func (x Status) String() string {
return proto.EnumName(Status_name, int32(x))
}
func (Status) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_testing_d5eec0697b035013, []int{0}
}
type Foo struct {
Timestamp *timestamp.Timestamp `protobuf:"bytes,1,opt,name=timestamp" json:"timestamp,omitempty"`
Status Status `protobuf:"varint,2,opt,name=status,enum=testing.Status" json:"status,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Foo) Reset() { *m = Foo{} }
func (m *Foo) String() string { return proto.CompactTextString(m) }
func (*Foo) ProtoMessage() {}
func (*Foo) Descriptor() ([]byte, []int) {
return fileDescriptor_testing_d5eec0697b035013, []int{0}
}
func (m *Foo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Foo.Unmarshal(m, b)
}
func (m *Foo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Foo.Marshal(b, m, deterministic)
}
func (dst *Foo) XXX_Merge(src proto.Message) {
xxx_messageInfo_Foo.Merge(dst, src)
}
func (m *Foo) XXX_Size() int {
return xxx_messageInfo_Foo.Size(m)
}
func (m *Foo) XXX_DiscardUnknown() {
xxx_messageInfo_Foo.DiscardUnknown(m)
}
var xxx_messageInfo_Foo proto.InternalMessageInfo
func (m *Foo) GetTimestamp() *timestamp.Timestamp {
if m != nil {
return m.Timestamp
}
return nil
}
func (m *Foo) GetStatus() Status {
if m != nil {
return m.Status
}
return Status_STATUS_NONE
}
func init() {
proto.RegisterType((*Foo)(nil), "testing.Foo")
proto.RegisterEnum("testing.Status", Status_name, Status_value)
}
func init() {
proto.RegisterFile("pkg/jsonpb/testing/testing.proto", fileDescriptor_testing_d5eec0697b035013)
}
var fileDescriptor_testing_d5eec0697b035013 = []byte{
// 215 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x28, 0xc8, 0x4e, 0xd7,
0xcf, 0x2a, 0xce, 0xcf, 0x2b, 0x48, 0xd2, 0x2f, 0x49, 0x2d, 0x2e, 0xc9, 0xcc, 0x4b, 0x87, 0xd1,
0x7a, 0x05, 0x45, 0xf9, 0x25, 0xf9, 0x42, 0xec, 0x50, 0xae, 0x94, 0x7c, 0x7a, 0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