-
Notifications
You must be signed in to change notification settings - Fork 0
/
status.pb.go
134 lines (122 loc) · 6.02 KB
/
status.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
// Code generated by protoc-gen-go.
// source: status.proto
// DO NOT EDIT!
package msg
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
type Status_Code int32
const (
Status_UNKNOWN Status_Code = 0
Status_OK Status_Code = 200
Status_CREATED Status_Code = 201
Status_ACCEPTED Status_Code = 202
Status_BAD_REQUEST Status_Code = 400
Status_UNAUTHORIZED Status_Code = 401
Status_FORBIDDEN Status_Code = 403
Status_NOT_FOUND Status_Code = 404
Status_REQUEST_TIMEOUT Status_Code = 408
Status_CONFLICT Status_Code = 409
Status_PRECONDITION_FAILED Status_Code = 412
Status_REQUESTED_RANGE_NOT_SATISFIABLE Status_Code = 416
Status_INTERNAL_SERVER_ERROR Status_Code = 500
Status_NOT_IMPLEMENTED Status_Code = 501
Status_BAD_GATEWAY Status_Code = 502
Status_SERVICE_UNAVAILABLE Status_Code = 503
Status_GATEWAY_TIMEOUT Status_Code = 504
)
var Status_Code_name = map[int32]string{
0: "UNKNOWN",
200: "OK",
201: "CREATED",
202: "ACCEPTED",
400: "BAD_REQUEST",
401: "UNAUTHORIZED",
403: "FORBIDDEN",
404: "NOT_FOUND",
408: "REQUEST_TIMEOUT",
409: "CONFLICT",
412: "PRECONDITION_FAILED",
416: "REQUESTED_RANGE_NOT_SATISFIABLE",
500: "INTERNAL_SERVER_ERROR",
501: "NOT_IMPLEMENTED",
502: "BAD_GATEWAY",
503: "SERVICE_UNAVAILABLE",
504: "GATEWAY_TIMEOUT",
}
var Status_Code_value = map[string]int32{
"UNKNOWN": 0,
"OK": 200,
"CREATED": 201,
"ACCEPTED": 202,
"BAD_REQUEST": 400,
"UNAUTHORIZED": 401,
"FORBIDDEN": 403,
"NOT_FOUND": 404,
"REQUEST_TIMEOUT": 408,
"CONFLICT": 409,
"PRECONDITION_FAILED": 412,
"REQUESTED_RANGE_NOT_SATISFIABLE": 416,
"INTERNAL_SERVER_ERROR": 500,
"NOT_IMPLEMENTED": 501,
"BAD_GATEWAY": 502,
"SERVICE_UNAVAILABLE": 503,
"GATEWAY_TIMEOUT": 504,
}
func (x Status_Code) String() string {
return proto.EnumName(Status_Code_name, int32(x))
}
func (Status_Code) EnumDescriptor() ([]byte, []int) { return fileDescriptor3, []int{0, 0} }
type Status struct {
Code Status_Code `protobuf:"varint,1,opt,name=code,enum=msg.Status_Code" json:"code,omitempty"`
Message string `protobuf:"bytes,2,opt,name=message" json:"message,omitempty"`
FetchStatus *Status `protobuf:"bytes,3,opt,name=fetch_status,json=fetchStatus" json:"fetch_status,omitempty"`
Location string `protobuf:"bytes,4,opt,name=location" json:"location,omitempty"`
}
func (m *Status) Reset() { *m = Status{} }
func (m *Status) String() string { return proto.CompactTextString(m) }
func (*Status) ProtoMessage() {}
func (*Status) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0} }
func (m *Status) GetFetchStatus() *Status {
if m != nil {
return m.FetchStatus
}
return nil
}
func init() {
proto.RegisterType((*Status)(nil), "msg.Status")
proto.RegisterEnum("msg.Status_Code", Status_Code_name, Status_Code_value)
}
var fileDescriptor3 = []byte{
// 406 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x4c, 0x51, 0xbd, 0xae, 0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