| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
package codes |
| 13 |
|
| 14 |
import proto "github.com/gogo/protobuf/proto" |
| 15 |
import fmt "fmt" |
| 16 |
import math "math" |
| 17 |
import _ "github.com/gogo/protobuf/gogoproto" |
| 18 |
|
| 19 |
|
| 20 |
var _ = proto.Marshal |
| 21 |
var _ = fmt.Errorf |
| 22 |
var _ = math.Inf |
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
const _ = proto.GoGoProtoPackageIsVersion2 |
| 29 |
|
| 30 |
type Code int32 |
| 31 |
|
| 32 |
const ( |
| 33 |
|
| 34 |
OK Code = 0 |
| 35 |
|
| 36 |
Unknown Code = 1 |
| 37 |
|
| 38 |
|
| 39 |
Unimplemented Code = 2 |
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
Internal Code = 3 |
| 44 |
) |
| 45 |
|
| 46 |
var Code_name = map[int32]string{ |
| 47 |
0: "OK", |
| 48 |
1: "UNKNOWN", |
| 49 |
2: "UNIMPLEMETED", |
| 50 |
3: "INTERNAL", |
| 51 |
} |
| 52 |
var Code_value = map[string]int32{ |
| 53 |
"OK": 0, |
| 54 |
"UNKNOWN": 1, |
| 55 |
"UNIMPLEMETED": 2, |
| 56 |
"INTERNAL": 3, |
| 57 |
} |
| 58 |
|
| 59 |
func (x Code) String() string { |
| 60 |
return proto.EnumName(Code_name, int32(x)) |
| 61 |
} |
| 62 |
func (Code) EnumDescriptor() ([]byte, []int) { return fileDescriptorCodes, []int{0} } |
| 63 |
|
| 64 |
func init() { |
| 65 |
proto.RegisterEnum("codes.Code", Code_name, Code_value) |
| 66 |
} |
| 67 |
|
| 68 |
func init() { proto.RegisterFile("codes/codes.proto", fileDescriptorCodes) } |
| 69 |
|
| 70 |
var fileDescriptorCodes = []byte{ |
| 71 |
|
| 72 |
0x1f, 0x8b, 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c, 0x91, |
| 83 |
0x62, 0xe9, 0x58, 0x2c, 0xc7, 0xe0, 0x24, 0x70, 0xe2, 0x91, 0x1c, 0xe3, 0x85, 0x47, 0x72, 0x8c, |
| 84 |
0x0f, 0x1e, 0xc9, 0x31, 0x4e, 0x78, 0x2c, 0xc7, 0x90, 0xc4, 0x06, 0x76, 0x91, 0x31, 0x20, 0x00, |
| 85 |
0x00, 0xff, 0xff, 0xd4, 0x54, 0x67, 0x0c, 0xdc, 0x00, 0x00, 0x00, |
| 86 |
} |