// Code generated by protoc-gen-go. DO NOT EDIT. // source: base.proto package gapi import ( fmt "fmt" proto "github.com/golang/protobuf/proto" math "math" ) // 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.ProtoPackageIsVersion3 // please upgrade the proto package type ResultCode int32 const ( ResultCode_SUCCEED ResultCode = 0 ResultCode_PARAMETER_ERROR ResultCode = 1 ResultCode_OTHER_ERROR ResultCode = 2 ResultCode_APP_ERROR ResultCode = 3 ResultCode_APP_EXCEPTION ResultCode = 4 ) var ResultCode_name = map[int32]string{ 0: "SUCCEED", 1: "PARAMETER_ERROR", 2: "OTHER_ERROR", 3: "APP_ERROR", 4: "APP_EXCEPTION", } var ResultCode_value = map[string]int32{ "SUCCEED": 0, "PARAMETER_ERROR": 1, "OTHER_ERROR": 2, "APP_ERROR": 3, "APP_EXCEPTION": 4, } func (x ResultCode) String() string { return proto.EnumName(ResultCode_name, int32(x)) } func (ResultCode) EnumDescriptor() ([]byte, []int) { return fileDescriptor_db1b6b0986796150, []int{0} } type Result struct { Code ResultCode `protobuf:"varint,1,opt,name=code,proto3,enum=com.ywt.gapi.ResultCode" json:"code,omitempty"` Info string `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"` Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *Result) Reset() { *m = Result{} } func (m *Result) String() string { return proto.CompactTextString(m) } func (*Result) ProtoMessage() {} func (*Result) Descriptor() ([]byte, []int) { return fileDescriptor_db1b6b0986796150, []int{0} } func (m *Result) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Result.Unmarshal(m, b) } func (m *Result) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Result.Marshal(b, m, deterministic) } func (m *Result) XXX_Merge(src proto.Message) { xxx_messageInfo_Result.Merge(m, src) } func (m *Result) XXX_Size() int { return xxx_messageInfo_Result.Size(m) } func (m *Result) XXX_DiscardUnknown() { xxx_messageInfo_Result.DiscardUnknown(m) } var xxx_messageInfo_Result proto.InternalMessageInfo func (m *Result) GetCode() ResultCode { if m != nil { return m.Code } return ResultCode_SUCCEED } func (m *Result) GetInfo() string { if m != nil { return m.Info } return "" } func (m *Result) GetValue() string { if m != nil { return m.Value } return "" } type ResultInt struct { Code ResultCode `protobuf:"varint,1,opt,name=code,proto3,enum=com.ywt.gapi.ResultCode" json:"code,omitempty"` Info string `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"` Value int32 `protobuf:"varint,3,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ResultInt) Reset() { *m = ResultInt{} } func (m *ResultInt) String() string { return proto.CompactTextString(m) } func (*ResultInt) ProtoMessage() {} func (*ResultInt) Descriptor() ([]byte, []int) { return fileDescriptor_db1b6b0986796150, []int{1} } func (m *ResultInt) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ResultInt.Unmarshal(m, b) } func (m *ResultInt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ResultInt.Marshal(b, m, deterministic) } func (m *ResultInt) XXX_Merge(src proto.Message) { xxx_messageInfo_ResultInt.Merge(m, src) } func (m *ResultInt) XXX_Size() int { return xxx_messageInfo_ResultInt.Size(m) } func (m *ResultInt) XXX_DiscardUnknown() { xxx_messageInfo_ResultInt.DiscardUnknown(m) } var xxx_messageInfo_ResultInt proto.InternalMessageInfo func (m *ResultInt) GetCode() ResultCode { if m != nil { return m.Code } return ResultCode_SUCCEED } func (m *ResultInt) GetInfo() string { if m != nil { return m.Info } return "" } func (m *ResultInt) GetValue() int32 { if m != nil { return m.Value } return 0 } type ResultInt64 struct { Code ResultCode `protobuf:"varint,1,opt,name=code,proto3,enum=com.ywt.gapi.ResultCode" json:"code,omitempty"` Info string `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"` Value int64 `protobuf:"varint,3,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ResultInt64) Reset() { *m = ResultInt64{} } func (m *ResultInt64) String() string { return proto.CompactTextString(m) } func (*ResultInt64) ProtoMessage() {} func (*ResultInt64) Descriptor() ([]byte, []int) { return fileDescriptor_db1b6b0986796150, []int{2} } func (m *ResultInt64) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ResultInt64.Unmarshal(m, b) } func (m *ResultInt64) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ResultInt64.Marshal(b, m, deterministic) } func (m *ResultInt64) XXX_Merge(src proto.Message) { xxx_messageInfo_ResultInt64.Merge(m, src) } func (m *ResultInt64) XXX_Size() int { return xxx_messageInfo_ResultInt64.Size(m) } func (m *ResultInt64) XXX_DiscardUnknown() { xxx_messageInfo_ResultInt64.DiscardUnknown(m) } var xxx_messageInfo_ResultInt64 proto.InternalMessageInfo func (m *ResultInt64) GetCode() ResultCode { if m != nil { return m.Code } return ResultCode_SUCCEED } func (m *ResultInt64) GetInfo() string { if m != nil { return m.Info } return "" } func (m *ResultInt64) GetValue() int64 { if m != nil { return m.Value } return 0 } type ResultDouble struct { Code ResultCode `protobuf:"varint,1,opt,name=code,proto3,enum=com.ywt.gapi.ResultCode" json:"code,omitempty"` Info string `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"` Value float64 `protobuf:"fixed64,3,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ResultDouble) Reset() { *m = ResultDouble{} } func (m *ResultDouble) String() string { return proto.CompactTextString(m) } func (*ResultDouble) ProtoMessage() {} func (*ResultDouble) Descriptor() ([]byte, []int) { return fileDescriptor_db1b6b0986796150, []int{3} } func (m *ResultDouble) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ResultDouble.Unmarshal(m, b) } func (m *ResultDouble) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ResultDouble.Marshal(b, m, deterministic) } func (m *ResultDouble) XXX_Merge(src proto.Message) { xxx_messageInfo_ResultDouble.Merge(m, src) } func (m *ResultDouble) XXX_Size() int { return xxx_messageInfo_ResultDouble.Size(m) } func (m *ResultDouble) XXX_DiscardUnknown() { xxx_messageInfo_ResultDouble.DiscardUnknown(m) } var xxx_messageInfo_ResultDouble proto.InternalMessageInfo func (m *ResultDouble) GetCode() ResultCode { if m != nil { return m.Code } return ResultCode_SUCCEED } func (m *ResultDouble) GetInfo() string { if m != nil { return m.Info } return "" } func (m *ResultDouble) GetValue() float64 { if m != nil { return m.Value } return 0 } func init() { proto.RegisterEnum("com.ywt.gapi.ResultCode", ResultCode_name, ResultCode_value) proto.RegisterType((*Result)(nil), "com.ywt.gapi.Result") proto.RegisterType((*ResultInt)(nil), "com.ywt.gapi.ResultInt") proto.RegisterType((*ResultInt64)(nil), "com.ywt.gapi.ResultInt64") proto.RegisterType((*ResultDouble)(nil), "com.ywt.gapi.ResultDouble") } func init() { proto.RegisterFile("base.proto", fileDescriptor_db1b6b0986796150) } var fileDescriptor_db1b6b0986796150 = []byte{ // 260 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x92, 0x41, 0x4b, 0xc3, 0x40, 0x14, 0x84, 0xdd, 0x26, 0xa9, 0xe4, 0xa5, 0xb5, 0xf1, 0xe9, 0x21, 0x78, 0x2a, 0x3d, 0x15, 0x91, 0x15, 0x54, 0xbc, 0xc7, 0x74, 0xc1, 0x1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