schema

package
v0.6.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 25, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package schema is a generated protocol buffer package.

It is generated from these files:

schema.proto

It has these top-level messages:

CommercialPaper
CommercialPaperId
ExternalId
CommercialPaperList
IssueCommercialPaper
BuyCommercialPaper
RedeemCommercialPaper

Index

Constants

This section is empty.

Variables

View Source
var CommercialPaper_State_name = map[int32]string{
	0: "ISSUED",
	1: "TRADING",
	2: "REDEEMED",
}
View Source
var CommercialPaper_State_value = map[string]int32{
	"ISSUED":   0,
	"TRADING":  1,
	"REDEEMED": 2,
}

Functions

This section is empty.

Types

type BuyCommercialPaper

type BuyCommercialPaper struct {
	Issuer               string               `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"`
	PaperNumber          string               `protobuf:"bytes,2,opt,name=paper_number,json=paperNumber,proto3" json:"paper_number,omitempty"`
	CurrentOwner         string               `protobuf:"bytes,3,opt,name=current_owner,json=currentOwner,proto3" json:"current_owner,omitempty"`
	NewOwner             string               `protobuf:"bytes,4,opt,name=new_owner,json=newOwner,proto3" json:"new_owner,omitempty"`
	Price                int32                `protobuf:"varint,5,opt,name=price,proto3" json:"price,omitempty"`
	PurchaseDate         *timestamp.Timestamp `protobuf:"bytes,6,opt,name=purchase_date,json=purchaseDate,proto3" json:"purchase_date,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

BuyCommercialPaper event

func (*BuyCommercialPaper) Descriptor

func (*BuyCommercialPaper) Descriptor() ([]byte, []int)

func (*BuyCommercialPaper) GetCurrentOwner

func (m *BuyCommercialPaper) GetCurrentOwner() string

func (*BuyCommercialPaper) GetIssuer

func (m *BuyCommercialPaper) GetIssuer() string

func (*BuyCommercialPaper) GetNewOwner

func (m *BuyCommercialPaper) GetNewOwner() string

func (*BuyCommercialPaper) GetPaperNumber

func (m *BuyCommercialPaper) GetPaperNumber() string

func (*BuyCommercialPaper) GetPrice

func (m *BuyCommercialPaper) GetPrice() int32

func (*BuyCommercialPaper) GetPurchaseDate

func (m *BuyCommercialPaper) GetPurchaseDate() *timestamp.Timestamp

func (*BuyCommercialPaper) ProtoMessage

func (*BuyCommercialPaper) ProtoMessage()

func (*BuyCommercialPaper) Reset

func (m *BuyCommercialPaper) Reset()

func (*BuyCommercialPaper) String

func (m *BuyCommercialPaper) String() string

func (*BuyCommercialPaper) Validate

func (this *BuyCommercialPaper) Validate() error

func (*BuyCommercialPaper) XXX_DiscardUnknown

func (m *BuyCommercialPaper) XXX_DiscardUnknown()

func (*BuyCommercialPaper) XXX_Marshal

func (m *BuyCommercialPaper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BuyCommercialPaper) XXX_Merge

func (m *BuyCommercialPaper) XXX_Merge(src proto.Message)

func (*BuyCommercialPaper) XXX_Size

func (m *BuyCommercialPaper) XXX_Size() int

func (*BuyCommercialPaper) XXX_Unmarshal

func (m *BuyCommercialPaper) XXX_Unmarshal(b []byte) error

type CommercialPaper

type CommercialPaper struct {
	// Issuer and Paper number comprises composite primary key of Commercial paper entry
	Issuer       string                `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"`
	PaperNumber  string                `protobuf:"bytes,2,opt,name=paper_number,json=paperNumber,proto3" json:"paper_number,omitempty"`
	Owner        string                `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"`
	IssueDate    *timestamp.Timestamp  `protobuf:"bytes,4,opt,name=issue_date,json=issueDate,proto3" json:"issue_date,omitempty"`
	MaturityDate *timestamp.Timestamp  `protobuf:"bytes,5,opt,name=maturity_date,json=maturityDate,proto3" json:"maturity_date,omitempty"`
	FaceValue    int32                 `protobuf:"varint,6,opt,name=face_value,json=faceValue,proto3" json:"face_value,omitempty"`
	State        CommercialPaper_State `protobuf:"varint,7,opt,name=state,proto3,enum=schema.CommercialPaper_State" json:"state,omitempty"`
	// Additional unique field for entry
	ExternalId           string   `protobuf:"bytes,8,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Commercial Paper state entry

func (*CommercialPaper) Descriptor

func (*CommercialPaper) Descriptor() ([]byte, []int)

func (*CommercialPaper) GetExternalId

func (m *CommercialPaper) GetExternalId() string

func (*CommercialPaper) GetFaceValue

func (m *CommercialPaper) GetFaceValue() int32

func (*CommercialPaper) GetIssueDate

func (m *CommercialPaper) GetIssueDate() *timestamp.Timestamp

func (*CommercialPaper) GetIssuer

func (m *CommercialPaper) GetIssuer() string

func (*CommercialPaper) GetMaturityDate

func (m *CommercialPaper) GetMaturityDate() *timestamp.Timestamp

func (*CommercialPaper) GetOwner

func (m *CommercialPaper) GetOwner() string

func (*CommercialPaper) GetPaperNumber

func (m *CommercialPaper) GetPaperNumber() string

func (*CommercialPaper) GetState

func (m *CommercialPaper) GetState() CommercialPaper_State

func (*CommercialPaper) ProtoMessage

func (*CommercialPaper) ProtoMessage()

func (*CommercialPaper) Reset

func (m *CommercialPaper) Reset()

func (*CommercialPaper) String

func (m *CommercialPaper) String() string

func (*CommercialPaper) Validate

func (this *CommercialPaper) Validate() error

func (*CommercialPaper) XXX_DiscardUnknown

func (m *CommercialPaper) XXX_DiscardUnknown()

func (*CommercialPaper) XXX_Marshal

func (m *CommercialPaper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CommercialPaper) XXX_Merge

func (m *CommercialPaper) XXX_Merge(src proto.Message)

func (*CommercialPaper) XXX_Size

func (m *CommercialPaper) XXX_Size() int

func (*CommercialPaper) XXX_Unmarshal

func (m *CommercialPaper) XXX_Unmarshal(b []byte) error

type CommercialPaperId

type CommercialPaperId struct {
	Issuer               string   `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"`
	PaperNumber          string   `protobuf:"bytes,2,opt,name=paper_number,json=paperNumber,proto3" json:"paper_number,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

CommercialPaperId identifier part

func (*CommercialPaperId) Descriptor

func (*CommercialPaperId) Descriptor() ([]byte, []int)

func (*CommercialPaperId) GetIssuer

func (m *CommercialPaperId) GetIssuer() string

func (*CommercialPaperId) GetPaperNumber

func (m *CommercialPaperId) GetPaperNumber() string

func (*CommercialPaperId) ProtoMessage

func (*CommercialPaperId) ProtoMessage()

func (*CommercialPaperId) Reset

func (m *CommercialPaperId) Reset()

func (*CommercialPaperId) String

func (m *CommercialPaperId) String() string

func (*CommercialPaperId) Validate

func (this *CommercialPaperId) Validate() error

func (*CommercialPaperId) XXX_DiscardUnknown

func (m *CommercialPaperId) XXX_DiscardUnknown()

func (*CommercialPaperId) XXX_Marshal

func (m *CommercialPaperId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CommercialPaperId) XXX_Merge

func (m *CommercialPaperId) XXX_Merge(src proto.Message)

func (*CommercialPaperId) XXX_Size

func (m *CommercialPaperId) XXX_Size() int

func (*CommercialPaperId) XXX_Unmarshal

func (m *CommercialPaperId) XXX_Unmarshal(b []byte) error

type CommercialPaperList

type CommercialPaperList struct {
	Items                []*CommercialPaper `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

Container for returning multiple entities

func (*CommercialPaperList) Descriptor

func (*CommercialPaperList) Descriptor() ([]byte, []int)

func (*CommercialPaperList) GetItems

func (m *CommercialPaperList) GetItems() []*CommercialPaper

func (*CommercialPaperList) ProtoMessage

func (*CommercialPaperList) ProtoMessage()

func (*CommercialPaperList) Reset

func (m *CommercialPaperList) Reset()

func (*CommercialPaperList) String

func (m *CommercialPaperList) String() string

func (*CommercialPaperList) Validate

func (this *CommercialPaperList) Validate() error

func (*CommercialPaperList) XXX_DiscardUnknown

func (m *CommercialPaperList) XXX_DiscardUnknown()

func (*CommercialPaperList) XXX_Marshal

func (m *CommercialPaperList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CommercialPaperList) XXX_Merge

func (m *CommercialPaperList) XXX_Merge(src proto.Message)

func (*CommercialPaperList) XXX_Size

func (m *CommercialPaperList) XXX_Size() int

func (*CommercialPaperList) XXX_Unmarshal

func (m *CommercialPaperList) XXX_Unmarshal(b []byte) error

type CommercialPaper_State

type CommercialPaper_State int32
const (
	CommercialPaper_ISSUED   CommercialPaper_State = 0
	CommercialPaper_TRADING  CommercialPaper_State = 1
	CommercialPaper_REDEEMED CommercialPaper_State = 2
)

func (CommercialPaper_State) EnumDescriptor

func (CommercialPaper_State) EnumDescriptor() ([]byte, []int)

func (CommercialPaper_State) String

func (x CommercialPaper_State) String() string

type ExternalId

type ExternalId struct {
	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

ExternalId

func (*ExternalId) Descriptor

func (*ExternalId) Descriptor() ([]byte, []int)

func (*ExternalId) GetId

func (m *ExternalId) GetId() string

func (*ExternalId) ProtoMessage

func (*ExternalId) ProtoMessage()

func (*ExternalId) Reset

func (m *ExternalId) Reset()

func (*ExternalId) String

func (m *ExternalId) String() string

func (*ExternalId) Validate

func (this *ExternalId) Validate() error

func (*ExternalId) XXX_DiscardUnknown

func (m *ExternalId) XXX_DiscardUnknown()

func (*ExternalId) XXX_Marshal

func (m *ExternalId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ExternalId) XXX_Merge

func (m *ExternalId) XXX_Merge(src proto.Message)

func (*ExternalId) XXX_Size

func (m *ExternalId) XXX_Size() int

func (*ExternalId) XXX_Unmarshal

func (m *ExternalId) XXX_Unmarshal(b []byte) error

type IssueCommercialPaper

type IssueCommercialPaper struct {
	Issuer       string               `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"`
	PaperNumber  string               `protobuf:"bytes,2,opt,name=paper_number,json=paperNumber,proto3" json:"paper_number,omitempty"`
	IssueDate    *timestamp.Timestamp `protobuf:"bytes,3,opt,name=issue_date,json=issueDate,proto3" json:"issue_date,omitempty"`
	MaturityDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=maturity_date,json=maturityDate,proto3" json:"maturity_date,omitempty"`
	FaceValue    int32                `protobuf:"varint,5,opt,name=face_value,json=faceValue,proto3" json:"face_value,omitempty"`
	// external_id  - once more uniq id of state entry
	ExternalId           string   `protobuf:"bytes,6,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

IssueCommercialPaper event

func (*IssueCommercialPaper) Descriptor

func (*IssueCommercialPaper) Descriptor() ([]byte, []int)

func (*IssueCommercialPaper) GetExternalId

func (m *IssueCommercialPaper) GetExternalId() string

func (*IssueCommercialPaper) GetFaceValue

func (m *IssueCommercialPaper) GetFaceValue() int32

func (*IssueCommercialPaper) GetIssueDate

func (m *IssueCommercialPaper) GetIssueDate() *timestamp.Timestamp

func (*IssueCommercialPaper) GetIssuer

func (m *IssueCommercialPaper) GetIssuer() string

func (*IssueCommercialPaper) GetMaturityDate

func (m *IssueCommercialPaper) GetMaturityDate() *timestamp.Timestamp

func (*IssueCommercialPaper) GetPaperNumber

func (m *IssueCommercialPaper) GetPaperNumber() string

func (*IssueCommercialPaper) ProtoMessage

func (*IssueCommercialPaper) ProtoMessage()

func (*IssueCommercialPaper) Reset

func (m *IssueCommercialPaper) Reset()

func (*IssueCommercialPaper) String

func (m *IssueCommercialPaper) String() string

func (*IssueCommercialPaper) Validate

func (this *IssueCommercialPaper) Validate() error

func (*IssueCommercialPaper) XXX_DiscardUnknown

func (m *IssueCommercialPaper) XXX_DiscardUnknown()

func (*IssueCommercialPaper) XXX_Marshal

func (m *IssueCommercialPaper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IssueCommercialPaper) XXX_Merge

func (m *IssueCommercialPaper) XXX_Merge(src proto.Message)

func (*IssueCommercialPaper) XXX_Size

func (m *IssueCommercialPaper) XXX_Size() int

func (*IssueCommercialPaper) XXX_Unmarshal

func (m *IssueCommercialPaper) XXX_Unmarshal(b []byte) error

type RedeemCommercialPaper

type RedeemCommercialPaper struct {
	Issuer               string               `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"`
	PaperNumber          string               `protobuf:"bytes,2,opt,name=paper_number,json=paperNumber,proto3" json:"paper_number,omitempty"`
	RedeemingOwner       string               `protobuf:"bytes,3,opt,name=redeeming_owner,json=redeemingOwner,proto3" json:"redeeming_owner,omitempty"`
	RedeemDate           *timestamp.Timestamp `protobuf:"bytes,4,opt,name=redeem_date,json=redeemDate,proto3" json:"redeem_date,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

RedeemCommercialPaper event

func (*RedeemCommercialPaper) Descriptor

func (*RedeemCommercialPaper) Descriptor() ([]byte, []int)

func (*RedeemCommercialPaper) GetIssuer

func (m *RedeemCommercialPaper) GetIssuer() string

func (*RedeemCommercialPaper) GetPaperNumber

func (m *RedeemCommercialPaper) GetPaperNumber() string

func (*RedeemCommercialPaper) GetRedeemDate

func (m *RedeemCommercialPaper) GetRedeemDate() *timestamp.Timestamp

func (*RedeemCommercialPaper) GetRedeemingOwner

func (m *RedeemCommercialPaper) GetRedeemingOwner() string

func (*RedeemCommercialPaper) ProtoMessage

func (*RedeemCommercialPaper) ProtoMessage()

func (*RedeemCommercialPaper) Reset

func (m *RedeemCommercialPaper) Reset()

func (*RedeemCommercialPaper) String

func (m *RedeemCommercialPaper) String() string

func (*RedeemCommercialPaper) Validate

func (this *RedeemCommercialPaper) Validate() error

func (*RedeemCommercialPaper) XXX_DiscardUnknown

func (m *RedeemCommercialPaper) XXX_DiscardUnknown()

func (*RedeemCommercialPaper) XXX_Marshal

func (m *RedeemCommercialPaper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RedeemCommercialPaper) XXX_Merge

func (m *RedeemCommercialPaper) XXX_Merge(src proto.Message)

func (*RedeemCommercialPaper) XXX_Size

func (m *RedeemCommercialPaper) XXX_Size() int

func (*RedeemCommercialPaper) XXX_Unmarshal

func (m *RedeemCommercialPaper) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL