Documentation ¶
Overview ¶
Package schema is a generated protocol buffer package.
It is generated from these files:
payload.proto state.proto
It has these top-level messages:
IssueCommercialPaper BuyCommercialPaper RedeemCommercialPaper CommercialPaper CommercialPaperId CommercialPaperList
Index ¶
- Variables
- type BuyCommercialPaper
- func (*BuyCommercialPaper) Descriptor() ([]byte, []int)
- func (m *BuyCommercialPaper) GetCurrentOwner() string
- func (m *BuyCommercialPaper) GetIssuer() string
- func (m *BuyCommercialPaper) GetNewOwner() string
- func (m *BuyCommercialPaper) GetPaperNumber() string
- func (m *BuyCommercialPaper) GetPrice() int32
- func (m *BuyCommercialPaper) GetPurchaseDate() *google_protobuf.Timestamp
- func (*BuyCommercialPaper) ProtoMessage()
- func (m *BuyCommercialPaper) Reset()
- func (m *BuyCommercialPaper) String() string
- func (this *BuyCommercialPaper) Validate() error
- type CommercialPaper
- func (*CommercialPaper) Descriptor() ([]byte, []int)
- func (m *CommercialPaper) GetExternalId() string
- func (m *CommercialPaper) GetFaceValue() int32
- func (m *CommercialPaper) GetIssueDate() *google_protobuf.Timestamp
- func (m *CommercialPaper) GetIssuer() string
- func (m *CommercialPaper) GetMaturityDate() *google_protobuf.Timestamp
- func (m *CommercialPaper) GetOwner() string
- func (m *CommercialPaper) GetPaperNumber() string
- func (m *CommercialPaper) GetState() CommercialPaper_State
- func (*CommercialPaper) ProtoMessage()
- func (m *CommercialPaper) Reset()
- func (m *CommercialPaper) String() string
- func (this *CommercialPaper) Validate() error
- type CommercialPaperId
- func (*CommercialPaperId) Descriptor() ([]byte, []int)
- func (m *CommercialPaperId) GetIssuer() string
- func (m *CommercialPaperId) GetPaperNumber() string
- func (*CommercialPaperId) ProtoMessage()
- func (m *CommercialPaperId) Reset()
- func (m *CommercialPaperId) String() string
- func (this *CommercialPaperId) Validate() error
- type CommercialPaperList
- type CommercialPaper_State
- type IssueCommercialPaper
- func (*IssueCommercialPaper) Descriptor() ([]byte, []int)
- func (m *IssueCommercialPaper) GetExternalId() string
- func (m *IssueCommercialPaper) GetFaceValue() int32
- func (m *IssueCommercialPaper) GetIssueDate() *google_protobuf.Timestamp
- func (m *IssueCommercialPaper) GetIssuer() string
- func (m *IssueCommercialPaper) GetMaturityDate() *google_protobuf.Timestamp
- func (m *IssueCommercialPaper) GetPaperNumber() string
- func (*IssueCommercialPaper) ProtoMessage()
- func (m *IssueCommercialPaper) Reset()
- func (m *IssueCommercialPaper) String() string
- func (this *IssueCommercialPaper) Validate() error
- type RedeemCommercialPaper
- func (*RedeemCommercialPaper) Descriptor() ([]byte, []int)
- func (m *RedeemCommercialPaper) GetIssuer() string
- func (m *RedeemCommercialPaper) GetPaperNumber() string
- func (m *RedeemCommercialPaper) GetRedeemDate() *google_protobuf.Timestamp
- func (m *RedeemCommercialPaper) GetRedeemingOwner() string
- func (*RedeemCommercialPaper) ProtoMessage()
- func (m *RedeemCommercialPaper) Reset()
- func (m *RedeemCommercialPaper) String() string
- func (this *RedeemCommercialPaper) Validate() error
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" json:"issuer,omitempty"` PaperNumber string `protobuf:"bytes,2,opt,name=paper_number,json=paperNumber" json:"paper_number,omitempty"` CurrentOwner string `protobuf:"bytes,3,opt,name=current_owner,json=currentOwner" json:"current_owner,omitempty"` NewOwner string `protobuf:"bytes,4,opt,name=new_owner,json=newOwner" json:"new_owner,omitempty"` Price int32 `protobuf:"varint,5,opt,name=price" json:"price,omitempty"` PurchaseDate *google_protobuf.Timestamp `protobuf:"bytes,6,opt,name=purchase_date,json=purchaseDate" json:"purchase_date,omitempty"` }
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() *google_protobuf.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
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" json:"issuer,omitempty"` PaperNumber string `protobuf:"bytes,2,opt,name=paper_number,json=paperNumber" json:"paper_number,omitempty"` Owner string `protobuf:"bytes,3,opt,name=owner" json:"owner,omitempty"` IssueDate *google_protobuf.Timestamp `protobuf:"bytes,4,opt,name=issue_date,json=issueDate" json:"issue_date,omitempty"` MaturityDate *google_protobuf.Timestamp `protobuf:"bytes,5,opt,name=maturity_date,json=maturityDate" json:"maturity_date,omitempty"` FaceValue int32 `protobuf:"varint,6,opt,name=face_value,json=faceValue" json:"face_value,omitempty"` State CommercialPaper_State `protobuf:"varint,7,opt,name=state,enum=cckit.examples.cpaper_extended.schema.CommercialPaper_State" json:"state,omitempty"` // Additional unique field for entry ExternalId string `protobuf:"bytes,8,opt,name=external_id,json=externalId" json:"external_id,omitempty"` }
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() *google_protobuf.Timestamp
func (*CommercialPaper) GetIssuer ¶
func (m *CommercialPaper) GetIssuer() string
func (*CommercialPaper) GetMaturityDate ¶
func (m *CommercialPaper) GetMaturityDate() *google_protobuf.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
type CommercialPaperId ¶
type CommercialPaperId struct { Issuer string `protobuf:"bytes,1,opt,name=issuer" json:"issuer,omitempty"` PaperNumber string `protobuf:"bytes,2,opt,name=paper_number,json=paperNumber" json:"paper_number,omitempty"` }
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
type CommercialPaperList ¶
type CommercialPaperList struct {
Items []*CommercialPaper `protobuf:"bytes,1,rep,name=items" json:"items,omitempty"`
}
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
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 IssueCommercialPaper ¶
type IssueCommercialPaper struct { Issuer string `protobuf:"bytes,1,opt,name=issuer" json:"issuer,omitempty"` PaperNumber string `protobuf:"bytes,2,opt,name=paper_number,json=paperNumber" json:"paper_number,omitempty"` IssueDate *google_protobuf.Timestamp `protobuf:"bytes,3,opt,name=issue_date,json=issueDate" json:"issue_date,omitempty"` MaturityDate *google_protobuf.Timestamp `protobuf:"bytes,4,opt,name=maturity_date,json=maturityDate" json:"maturity_date,omitempty"` FaceValue int32 `protobuf:"varint,5,opt,name=face_value,json=faceValue" json:"face_value,omitempty"` // external_id - once more uniq id of state entry ExternalId string `protobuf:"bytes,6,opt,name=external_id,json=externalId" json:"external_id,omitempty"` }
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() *google_protobuf.Timestamp
func (*IssueCommercialPaper) GetIssuer ¶
func (m *IssueCommercialPaper) GetIssuer() string
func (*IssueCommercialPaper) GetMaturityDate ¶
func (m *IssueCommercialPaper) GetMaturityDate() *google_protobuf.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
type RedeemCommercialPaper ¶
type RedeemCommercialPaper struct { Issuer string `protobuf:"bytes,1,opt,name=issuer" json:"issuer,omitempty"` PaperNumber string `protobuf:"bytes,2,opt,name=paper_number,json=paperNumber" json:"paper_number,omitempty"` RedeemingOwner string `protobuf:"bytes,3,opt,name=redeeming_owner,json=redeemingOwner" json:"redeeming_owner,omitempty"` RedeemDate *google_protobuf.Timestamp `protobuf:"bytes,4,opt,name=redeem_date,json=redeemDate" json:"redeem_date,omitempty"` }
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() *google_protobuf.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
Click to show internal directories.
Click to hide internal directories.