common

package
v0.0.0-...-7fb827e Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Comment

type Comment struct {
	// Unique name for comment.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Timestamp comment was recorded.
	CreatedOn int64 `protobuf:"varint,2,opt,name=created_on,json=createdOn,proto3" json:"created_on,omitempty"`
	// Topic the comment is aimed at
	Topic string `protobuf:"bytes,3,opt,name=topic,proto3" json:"topic,omitempty"`
	// The name of the author of the comment.
	Author string `protobuf:"bytes,4,opt,name=author,proto3" json:"author,omitempty"`
	// The comment body.
	Text                 string   `protobuf:"bytes,5,opt,name=text,proto3" json:"text,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Comment) Descriptor

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

func (*Comment) GetAuthor

func (m *Comment) GetAuthor() string

func (*Comment) GetCreatedOn

func (m *Comment) GetCreatedOn() int64

func (*Comment) GetName

func (m *Comment) GetName() string

func (*Comment) GetText

func (m *Comment) GetText() string

func (*Comment) GetTopic

func (m *Comment) GetTopic() string

func (*Comment) ProtoMessage

func (*Comment) ProtoMessage()

func (*Comment) Reset

func (m *Comment) Reset()

func (*Comment) String

func (m *Comment) String() string

func (*Comment) XXX_DiscardUnknown

func (m *Comment) XXX_DiscardUnknown()

func (*Comment) XXX_Marshal

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

func (*Comment) XXX_Merge

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

func (*Comment) XXX_Size

func (m *Comment) XXX_Size() int

func (*Comment) XXX_Unmarshal

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

type Order

type Order struct {
	// Unique name for order.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Timestamp order was recorded.
	CreatedOn int64 `protobuf:"varint,2,opt,name=created_on,json=createdOn,proto3" json:"created_on,omitempty"`
	// Customer ID.
	Client string `protobuf:"bytes,5,opt,name=client,proto3" json:"client,omitempty"`
	// Order total
	Total *money.Money `protobuf:"bytes,6,opt,name=total,proto3" json:"total,omitempty"`
	// The ordered items
	OrderLines           []*Order_OrderLine `protobuf:"bytes,7,rep,name=order_lines,json=orderLines,proto3" json:"order_lines,omitempty"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

func (*Order) Descriptor

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

func (*Order) GetClient

func (m *Order) GetClient() string

func (*Order) GetCreatedOn

func (m *Order) GetCreatedOn() int64

func (*Order) GetName

func (m *Order) GetName() string

func (*Order) GetOrderLines

func (m *Order) GetOrderLines() []*Order_OrderLine

func (*Order) GetTotal

func (m *Order) GetTotal() *money.Money

func (*Order) ProtoMessage

func (*Order) ProtoMessage()

func (*Order) Reset

func (m *Order) Reset()

func (*Order) String

func (m *Order) String() string

func (*Order) XXX_DiscardUnknown

func (m *Order) XXX_DiscardUnknown()

func (*Order) XXX_Marshal

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

func (*Order) XXX_Merge

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

func (*Order) XXX_Size

func (m *Order) XXX_Size() int

func (*Order) XXX_Unmarshal

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

type Order_OrderLine

type Order_OrderLine struct {
	// Unique name for order.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Product ID.
	Sku string `protobuf:"bytes,2,opt,name=sku,proto3" json:"sku,omitempty"`
	// Number of items ordered.
	Quantity int32 `protobuf:"varint,3,opt,name=quantity,proto3" json:"quantity,omitempty"`
	// Order line total.
	Total                *money.Money `protobuf:"bytes,4,opt,name=total,proto3" json:"total,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*Order_OrderLine) Descriptor

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

func (*Order_OrderLine) GetName

func (m *Order_OrderLine) GetName() string

func (*Order_OrderLine) GetQuantity

func (m *Order_OrderLine) GetQuantity() int32

func (*Order_OrderLine) GetSku

func (m *Order_OrderLine) GetSku() string

func (*Order_OrderLine) GetTotal

func (m *Order_OrderLine) GetTotal() *money.Money

func (*Order_OrderLine) ProtoMessage

func (*Order_OrderLine) ProtoMessage()

func (*Order_OrderLine) Reset

func (m *Order_OrderLine) Reset()

func (*Order_OrderLine) String

func (m *Order_OrderLine) String() string

func (*Order_OrderLine) XXX_DiscardUnknown

func (m *Order_OrderLine) XXX_DiscardUnknown()

func (*Order_OrderLine) XXX_Marshal

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

func (*Order_OrderLine) XXX_Merge

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

func (*Order_OrderLine) XXX_Size

func (m *Order_OrderLine) XXX_Size() int

func (*Order_OrderLine) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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