113 lines
3.7 KiB
Go
113 lines
3.7 KiB
Go
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
|
// source: error.proto
|
|
|
|
package dinetrpc
|
|
|
|
import proto "github.com/gogo/protobuf/proto"
|
|
import fmt "fmt"
|
|
import math "math"
|
|
import _ "github.com/gogo/protobuf/gogoproto"
|
|
|
|
// 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.GoGoProtoPackageIsVersion2 // please upgrade the proto package
|
|
|
|
type Errno int32
|
|
|
|
const (
|
|
Errno_Ok Errno = 0
|
|
Errno_OpNotSupp Errno = 6
|
|
)
|
|
|
|
var Errno_name = map[int32]string{
|
|
0: "Ok",
|
|
6: "OpNotSupp",
|
|
}
|
|
var Errno_value = map[string]int32{
|
|
"Ok": 0,
|
|
"OpNotSupp": 6,
|
|
}
|
|
|
|
func (x Errno) String() string {
|
|
return proto.EnumName(Errno_name, int32(x))
|
|
}
|
|
func (Errno) EnumDescriptor() ([]byte, []int) {
|
|
return fileDescriptor_error_5c537a693f35afb2, []int{0}
|
|
}
|
|
|
|
type Error struct {
|
|
Code Errno `protobuf:"varint,1,opt,name=code,proto3,enum=dinetrpc.Errno" json:"code"`
|
|
Descr string `protobuf:"bytes,2,opt,name=descr,proto3" json:"descr"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *Error) Reset() { *m = Error{} }
|
|
func (m *Error) String() string { return proto.CompactTextString(m) }
|
|
func (*Error) ProtoMessage() {}
|
|
func (*Error) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_error_5c537a693f35afb2, []int{0}
|
|
}
|
|
func (m *Error) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Error.Unmarshal(m, b)
|
|
}
|
|
func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Error.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *Error) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Error.Merge(dst, src)
|
|
}
|
|
func (m *Error) XXX_Size() int {
|
|
return xxx_messageInfo_Error.Size(m)
|
|
}
|
|
func (m *Error) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Error.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Error proto.InternalMessageInfo
|
|
|
|
func (m *Error) GetCode() Errno {
|
|
if m != nil {
|
|
return m.Code
|
|
}
|
|
return Errno_Ok
|
|
}
|
|
|
|
func (m *Error) GetDescr() string {
|
|
if m != nil {
|
|
return m.Descr
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*Error)(nil), "dinetrpc.Error")
|
|
proto.RegisterEnum("dinetrpc.Errno", Errno_name, Errno_value)
|
|
}
|
|
|
|
func init() { proto.RegisterFile("error.proto", fileDescriptor_error_5c537a693f35afb2) }
|
|
|
|
var fileDescriptor_error_5c537a693f35afb2 = []byte{
|
|
// 178 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x4e, 0x2d, 0x2a, 0xca,
|
|
0x2f, 0xd2, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x48, 0xc9, 0xcc, 0x4b, 0x2d, 0x29, 0x2a,
|
|
0x48, 0x96, 0xd2, 0x4d, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x4f, 0xcf,
|
|
0x4f, 0xcf, 0xd7, 0x07, 0x2b, 0x48, 0x2a, 0x4d, 0x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