mirror of
https://github.com/rclone/rclone.git
synced 2024-12-03 13:55:34 +01:00
484 lines
17 KiB
Go
484 lines
17 KiB
Go
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
|
// source: heldamount.proto
|
|
|
|
package pb
|
|
|
|
import (
|
|
context "context"
|
|
fmt "fmt"
|
|
math "math"
|
|
time "time"
|
|
|
|
proto "github.com/gogo/protobuf/proto"
|
|
|
|
drpc "storj.io/drpc"
|
|
)
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = fmt.Errorf
|
|
var _ = math.Inf
|
|
var _ = time.Kitchen
|
|
|
|
// 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 GetHeldAmountRequest struct {
|
|
Period time.Time `protobuf:"bytes,1,opt,name=period,proto3,stdtime" json:"period"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *GetHeldAmountRequest) Reset() { *m = GetHeldAmountRequest{} }
|
|
func (m *GetHeldAmountRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*GetHeldAmountRequest) ProtoMessage() {}
|
|
func (*GetHeldAmountRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_5c5d9f6e3ee97993, []int{0}
|
|
}
|
|
func (m *GetHeldAmountRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_GetHeldAmountRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *GetHeldAmountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_GetHeldAmountRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *GetHeldAmountRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_GetHeldAmountRequest.Merge(m, src)
|
|
}
|
|
func (m *GetHeldAmountRequest) XXX_Size() int {
|
|
return xxx_messageInfo_GetHeldAmountRequest.Size(m)
|
|
}
|
|
func (m *GetHeldAmountRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_GetHeldAmountRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_GetHeldAmountRequest proto.InternalMessageInfo
|
|
|
|
func (m *GetHeldAmountRequest) GetPeriod() time.Time {
|
|
if m != nil {
|
|
return m.Period
|
|
}
|
|
return time.Time{}
|
|
}
|
|
|
|
type GetHeldAmountResponse struct {
|
|
Period time.Time `protobuf:"bytes,1,opt,name=period,proto3,stdtime" json:"period"`
|
|
NodeId NodeID `protobuf:"bytes,2,opt,name=node_id,json=nodeId,proto3,customtype=NodeID" json:"node_id"`
|
|
CreatedAt time.Time `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3,stdtime" json:"created_at"`
|
|
Codes string `protobuf:"bytes,4,opt,name=codes,proto3" json:"codes,omitempty"`
|
|
UsageAtRest float32 `protobuf:"fixed32,5,opt,name=usage_at_rest,json=usageAtRest,proto3" json:"usage_at_rest,omitempty"`
|
|
UsageGet int64 `protobuf:"varint,6,opt,name=usage_get,json=usageGet,proto3" json:"usage_get,omitempty"`
|
|
UsagePut int64 `protobuf:"varint,7,opt,name=usage_put,json=usagePut,proto3" json:"usage_put,omitempty"`
|
|
UsageGetRepair int64 `protobuf:"varint,8,opt,name=usage_get_repair,json=usageGetRepair,proto3" json:"usage_get_repair,omitempty"`
|
|
UsagePutRepair int64 `protobuf:"varint,9,opt,name=usage_put_repair,json=usagePutRepair,proto3" json:"usage_put_repair,omitempty"`
|
|
UsageGetAudit int64 `protobuf:"varint,10,opt,name=usage_get_audit,json=usageGetAudit,proto3" json:"usage_get_audit,omitempty"`
|
|
CompAtRest int64 `protobuf:"varint,11,opt,name=comp_at_rest,json=compAtRest,proto3" json:"comp_at_rest,omitempty"`
|
|
CompGet int64 `protobuf:"varint,12,opt,name=comp_get,json=compGet,proto3" json:"comp_get,omitempty"`
|
|
CompPut int64 `protobuf:"varint,13,opt,name=comp_put,json=compPut,proto3" json:"comp_put,omitempty"`
|
|
CompGetRepair int64 `protobuf:"varint,14,opt,name=comp_get_repair,json=compGetRepair,proto3" json:"comp_get_repair,omitempty"`
|
|
CompPutRepair int64 `protobuf:"varint,15,opt,name=comp_put_repair,json=compPutRepair,proto3" json:"comp_put_repair,omitempty"`
|
|
CompGetAudit int64 `protobuf:"varint,16,opt,name=comp_get_audit,json=compGetAudit,proto3" json:"comp_get_audit,omitempty"`
|
|
SurgePercent int64 `protobuf:"varint,17,opt,name=surge_percent,json=surgePercent,proto3" json:"surge_percent,omitempty"`
|
|
Held int64 `protobuf:"varint,18,opt,name=held,proto3" json:"held,omitempty"`
|
|
Owed int64 `protobuf:"varint,19,opt,name=owed,proto3" json:"owed,omitempty"`
|
|
Disposed int64 `protobuf:"varint,20,opt,name=disposed,proto3" json:"disposed,omitempty"`
|
|
Paid int64 `protobuf:"varint,21,opt,name=paid,proto3" json:"paid,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *GetHeldAmountResponse) Reset() { *m = GetHeldAmountResponse{} }
|
|
func (m *GetHeldAmountResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*GetHeldAmountResponse) ProtoMessage() {}
|
|
func (*GetHeldAmountResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_5c5d9f6e3ee97993, []int{1}
|
|
}
|
|
func (m *GetHeldAmountResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_GetHeldAmountResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *GetHeldAmountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_GetHeldAmountResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *GetHeldAmountResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_GetHeldAmountResponse.Merge(m, src)
|
|
}
|
|
func (m *GetHeldAmountResponse) XXX_Size() int {
|
|
return xxx_messageInfo_GetHeldAmountResponse.Size(m)
|
|
}
|
|
func (m *GetHeldAmountResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_GetHeldAmountResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_GetHeldAmountResponse proto.InternalMessageInfo
|
|
|
|
func (m *GetHeldAmountResponse) GetPeriod() time.Time {
|
|
if m != nil {
|
|
return m.Period
|
|
}
|
|
return time.Time{}
|
|
}
|
|
|
|
func (m *GetHeldAmountResponse) GetCreatedAt() time.Time {
|
|
if m != nil {
|
|
return m.CreatedAt
|
|
}
|
|
return time.Time{}
|
|
}
|
|
|
|
func (m *GetHeldAmountResponse) GetCodes() string {
|
|
if m != nil {
|
|
return m.Codes
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *GetHeldAmountResponse) GetUsageAtRest() float32 {
|
|
if m != nil {
|
|
return m.UsageAtRest
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *GetHeldAmountResponse) GetUsageGet() int64 {
|
|
if m != nil {
|
|
return m.UsageGet
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *GetHeldAmountResponse) GetUsagePut() int64 {
|
|
if m != nil {
|
|
return m.UsagePut
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *GetHeldAmountResponse) GetUsageGetRepair() int64 {
|
|
if m != nil {
|
|
return m.UsageGetRepair
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *GetHeldAmountResponse) GetUsagePutRepair() int64 {
|
|
if m != nil {
|
|
return m.UsagePutRepair
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *GetHeldAmountResponse) GetUsageGetAudit() int64 {
|
|
if m != nil {
|
|
return m.UsageGetAudit
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *GetHeldAmountResponse) GetCompAtRest() int64 {
|
|
if m != nil {
|
|
return m.CompAtRest
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *GetHeldAmountResponse) GetCompGet() int64 {
|
|
if m != nil {
|
|
return m.CompGet
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *GetHeldAmountResponse) GetCompPut() int64 {
|
|
if m != nil {
|
|
return m.CompPut
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *GetHeldAmountResponse) GetCompGetRepair() int64 {
|
|
if m != nil {
|
|
return m.CompGetRepair
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *GetHeldAmountResponse) GetCompPutRepair() int64 {
|
|
if m != nil {
|
|
return m.CompPutRepair
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *GetHeldAmountResponse) GetCompGetAudit() int64 {
|
|
if m != nil {
|
|
return m.CompGetAudit
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *GetHeldAmountResponse) GetSurgePercent() int64 {
|
|
if m != nil {
|
|
return m.SurgePercent
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *GetHeldAmountResponse) GetHeld() int64 {
|
|
if m != nil {
|
|
return m.Held
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *GetHeldAmountResponse) GetOwed() int64 {
|
|
if m != nil {
|
|
return m.Owed
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *GetHeldAmountResponse) GetDisposed() int64 {
|
|
if m != nil {
|
|
return m.Disposed
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *GetHeldAmountResponse) GetPaid() int64 {
|
|
if m != nil {
|
|
return m.Paid
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetAllPaystubsRequest struct {
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *GetAllPaystubsRequest) Reset() { *m = GetAllPaystubsRequest{} }
|
|
func (m *GetAllPaystubsRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*GetAllPaystubsRequest) ProtoMessage() {}
|
|
func (*GetAllPaystubsRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_5c5d9f6e3ee97993, []int{2}
|
|
}
|
|
func (m *GetAllPaystubsRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_GetAllPaystubsRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *GetAllPaystubsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_GetAllPaystubsRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *GetAllPaystubsRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_GetAllPaystubsRequest.Merge(m, src)
|
|
}
|
|
func (m *GetAllPaystubsRequest) XXX_Size() int {
|
|
return xxx_messageInfo_GetAllPaystubsRequest.Size(m)
|
|
}
|
|
func (m *GetAllPaystubsRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_GetAllPaystubsRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_GetAllPaystubsRequest proto.InternalMessageInfo
|
|
|
|
type GetAllPaystubsResponse struct {
|
|
Paystub []*GetHeldAmountResponse `protobuf:"bytes,1,rep,name=paystub,proto3" json:"paystub,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *GetAllPaystubsResponse) Reset() { *m = GetAllPaystubsResponse{} }
|
|
func (m *GetAllPaystubsResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*GetAllPaystubsResponse) ProtoMessage() {}
|
|
func (*GetAllPaystubsResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_5c5d9f6e3ee97993, []int{3}
|
|
}
|
|
func (m *GetAllPaystubsResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_GetAllPaystubsResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *GetAllPaystubsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_GetAllPaystubsResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *GetAllPaystubsResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_GetAllPaystubsResponse.Merge(m, src)
|
|
}
|
|
func (m *GetAllPaystubsResponse) XXX_Size() int {
|
|
return xxx_messageInfo_GetAllPaystubsResponse.Size(m)
|
|
}
|
|
func (m *GetAllPaystubsResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_GetAllPaystubsResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_GetAllPaystubsResponse proto.InternalMessageInfo
|
|
|
|
func (m *GetAllPaystubsResponse) GetPaystub() []*GetHeldAmountResponse {
|
|
if m != nil {
|
|
return m.Paystub
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*GetHeldAmountRequest)(nil), "heldamount.GetHeldAmountRequest")
|
|
proto.RegisterType((*GetHeldAmountResponse)(nil), "heldamount.GetHeldAmountResponse")
|
|
proto.RegisterType((*GetAllPaystubsRequest)(nil), "heldamount.GetAllPaystubsRequest")
|
|
proto.RegisterType((*GetAllPaystubsResponse)(nil), "heldamount.GetAllPaystubsResponse")
|
|
}
|
|
|
|
func init() { proto.RegisterFile("heldamount.proto", fileDescriptor_5c5d9f6e3ee97993) }
|
|
|
|
var fileDescriptor_5c5d9f6e3ee97993 = []byte{
|
|
// 583 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x93, 0xcb, 0x6e, 0x13, 0x3f,
|
|
0x14, 0xc6, 0xff, 0xd3, 0x4b, 0x2e, 0x27, 0x97, 0xf6, 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 0xe3, 0xe3, 0x05, 0xcf, 0x73,
|
|
0xbe, 0x1a, 0x8b, 0xf9, 0xbc, 0x66, 0x97, 0xf4, 0xe1, 0x8f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xd5,
|
|
0xec, 0x68, 0xae, 0xeb, 0x04, 0x00, 0x00,
|
|
}
|
|
|
|
// --- DRPC BEGIN ---
|
|
|
|
type DRPCHeldAmountClient interface {
|
|
DRPCConn() drpc.Conn
|
|
|
|
GetPayStub(ctx context.Context, in *GetHeldAmountRequest) (*GetHeldAmountResponse, error)
|
|
GetAllPaystubs(ctx context.Context, in *GetAllPaystubsRequest) (*GetAllPaystubsResponse, error)
|
|
}
|
|
|
|
type drpcHeldAmountClient struct {
|
|
cc drpc.Conn
|
|
}
|
|
|
|
func NewDRPCHeldAmountClient(cc drpc.Conn) DRPCHeldAmountClient {
|
|
return &drpcHeldAmountClient{cc}
|
|
}
|
|
|
|
func (c *drpcHeldAmountClient) DRPCConn() drpc.Conn { return c.cc }
|
|
|
|
func (c *drpcHeldAmountClient) GetPayStub(ctx context.Context, in *GetHeldAmountRequest) (*GetHeldAmountResponse, error) {
|
|
out := new(GetHeldAmountResponse)
|
|
err := c.cc.Invoke(ctx, "/heldamount.HeldAmount/GetPayStub", in, out)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *drpcHeldAmountClient) GetAllPaystubs(ctx context.Context, in *GetAllPaystubsRequest) (*GetAllPaystubsResponse, error) {
|
|
out := new(GetAllPaystubsResponse)
|
|
err := c.cc.Invoke(ctx, "/heldamount.HeldAmount/GetAllPaystubs", in, out)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
type DRPCHeldAmountServer interface {
|
|
GetPayStub(context.Context, *GetHeldAmountRequest) (*GetHeldAmountResponse, error)
|
|
GetAllPaystubs(context.Context, *GetAllPaystubsRequest) (*GetAllPaystubsResponse, error)
|
|
}
|
|
|
|
type DRPCHeldAmountDescription struct{}
|
|
|
|
func (DRPCHeldAmountDescription) NumMethods() int { return 2 }
|
|
|
|
func (DRPCHeldAmountDescription) Method(n int) (string, drpc.Receiver, interface{}, bool) {
|
|
switch n {
|
|
case 0:
|
|
return "/heldamount.HeldAmount/GetPayStub",
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
|
return srv.(DRPCHeldAmountServer).
|
|
GetPayStub(
|
|
ctx,
|
|
in1.(*GetHeldAmountRequest),
|
|
)
|
|
}, DRPCHeldAmountServer.GetPayStub, true
|
|
case 1:
|
|
return "/heldamount.HeldAmount/GetAllPaystubs",
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
|
return srv.(DRPCHeldAmountServer).
|
|
GetAllPaystubs(
|
|
ctx,
|
|
in1.(*GetAllPaystubsRequest),
|
|
)
|
|
}, DRPCHeldAmountServer.GetAllPaystubs, true
|
|
default:
|
|
return "", nil, nil, false
|
|
}
|
|
}
|
|
|
|
func DRPCRegisterHeldAmount(mux drpc.Mux, impl DRPCHeldAmountServer) error {
|
|
return mux.Register(impl, DRPCHeldAmountDescription{})
|
|
}
|
|
|
|
type DRPCHeldAmount_GetPayStubStream interface {
|
|
drpc.Stream
|
|
SendAndClose(*GetHeldAmountResponse) error
|
|
}
|
|
|
|
type drpcHeldAmountGetPayStubStream struct {
|
|
drpc.Stream
|
|
}
|
|
|
|
func (x *drpcHeldAmountGetPayStubStream) SendAndClose(m *GetHeldAmountResponse) error {
|
|
if err := x.MsgSend(m); err != nil {
|
|
return err
|
|
}
|
|
return x.CloseSend()
|
|
}
|
|
|
|
type DRPCHeldAmount_GetAllPaystubsStream interface {
|
|
drpc.Stream
|
|
SendAndClose(*GetAllPaystubsResponse) error
|
|
}
|
|
|
|
type drpcHeldAmountGetAllPaystubsStream struct {
|
|
drpc.Stream
|
|
}
|
|
|
|
func (x *drpcHeldAmountGetAllPaystubsStream) SendAndClose(m *GetAllPaystubsResponse) error {
|
|
if err := x.MsgSend(m); err != nil {
|
|
return err
|
|
}
|
|
return x.CloseSend()
|
|
}
|
|
|
|
// --- DRPC END ---
|