pb

package
v0.0.0-...-735feb9 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthTpcc = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTpcc   = fmt.Errorf("proto: integer overflow")
)

Functions

This section is empty.

Types

type Customer

type Customer struct {
	// A customer has one primary key, one parent (foreign) key for the district
	// it belongs to and one grandparent (foreign) key for the warehouse the
	// district it is in belongs to
	Id          string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	DistrictId  string `protobuf:"bytes,2,opt,name=district_id,json=districtId,proto3" json:"district_id,omitempty"`
	WarehouseId string `protobuf:"bytes,3,opt,name=warehouse_id,json=warehouseId,proto3" json:"warehouse_id,omitempty"`
	// The following are informational fields for a customer as defined by the
	// TPC-C standards
	First    string `protobuf:"bytes,10,opt,name=first,proto3" json:"first,omitempty"`
	Middle   string `protobuf:"bytes,11,opt,name=middle,proto3" json:"middle,omitempty"`
	Last     string `protobuf:"bytes,12,opt,name=last,proto3" json:"last,omitempty"`
	Street_1 string `protobuf:"bytes,13,opt,name=street_1,json=street1,proto3" json:"street_1,omitempty"`
	Street_2 string `protobuf:"bytes,14,opt,name=street_2,json=street2,proto3" json:"street_2,omitempty"`
	City     string `protobuf:"bytes,15,opt,name=city,proto3" json:"city,omitempty"`
	State    string `protobuf:"bytes,16,opt,name=state,proto3" json:"state,omitempty"`
	Zip      string `protobuf:"bytes,17,opt,name=zip,proto3" json:"zip,omitempty"`
	// The following are income records as specified in the TPC-C standard
	Since             int32   `protobuf:"varint,20,opt,name=since,proto3" json:"since,omitempty"`
	Credit            string  `protobuf:"bytes,21,opt,name=credit,proto3" json:"credit,omitempty"`
	CreditLimit       float64 `protobuf:"fixed64,22,opt,name=credit_limit,json=creditLimit,proto3" json:"credit_limit,omitempty"`
	Discount          float64 `protobuf:"fixed64,23,opt,name=discount,proto3" json:"discount,omitempty"`
	Balance           float64 `protobuf:"fixed64,24,opt,name=balance,proto3" json:"balance,omitempty"`
	YearToDatePayment float64 `protobuf:"fixed64,25,opt,name=year_to_date_payment,json=yearToDatePayment,proto3" json:"year_to_date_payment,omitempty"`
	PaymentCount      int32   `protobuf:"varint,26,opt,name=payment_count,json=paymentCount,proto3" json:"payment_count,omitempty"`
	DeliveryCount     int32   `protobuf:"varint,27,opt,name=delivery_count,json=deliveryCount,proto3" json:"delivery_count,omitempty"`
	// The following is an data field for entering miscellany
	Data                 []byte   `protobuf:"bytes,30,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Customer) Descriptor

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

func (*Customer) GetBalance

func (m *Customer) GetBalance() float64

func (*Customer) GetCity

func (m *Customer) GetCity() string

func (*Customer) GetCredit

func (m *Customer) GetCredit() string

func (*Customer) GetCreditLimit

func (m *Customer) GetCreditLimit() float64

func (*Customer) GetData

func (m *Customer) GetData() []byte

func (*Customer) GetDeliveryCount

func (m *Customer) GetDeliveryCount() int32

func (*Customer) GetDiscount

func (m *Customer) GetDiscount() float64

func (*Customer) GetDistrictId

func (m *Customer) GetDistrictId() string

func (*Customer) GetFirst

func (m *Customer) GetFirst() string

func (*Customer) GetId

func (m *Customer) GetId() string

func (*Customer) GetLast

func (m *Customer) GetLast() string

func (*Customer) GetMiddle

func (m *Customer) GetMiddle() string

func (*Customer) GetPaymentCount

func (m *Customer) GetPaymentCount() int32

func (*Customer) GetSince

func (m *Customer) GetSince() int32

func (*Customer) GetState

func (m *Customer) GetState() string

func (*Customer) GetStreet_1

func (m *Customer) GetStreet_1() string

func (*Customer) GetStreet_2

func (m *Customer) GetStreet_2() string

func (*Customer) GetWarehouseId

func (m *Customer) GetWarehouseId() string

func (*Customer) GetYearToDatePayment

func (m *Customer) GetYearToDatePayment() float64

func (*Customer) GetZip

func (m *Customer) GetZip() string

func (*Customer) Marshal

func (m *Customer) Marshal() (dAtA []byte, err error)

func (*Customer) MarshalTo

func (m *Customer) MarshalTo(dAtA []byte) (int, error)

func (*Customer) ProtoMessage

func (*Customer) ProtoMessage()

func (*Customer) Reset

func (m *Customer) Reset()

func (*Customer) Size

func (m *Customer) Size() (n int)

func (*Customer) String

func (m *Customer) String() string

func (*Customer) Unmarshal

func (m *Customer) Unmarshal(dAtA []byte) error

func (*Customer) XXX_DiscardUnknown

func (m *Customer) XXX_DiscardUnknown()

func (*Customer) XXX_Marshal

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

func (*Customer) XXX_Merge

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

func (*Customer) XXX_Size

func (m *Customer) XXX_Size() int

func (*Customer) XXX_Unmarshal

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

type District

type District struct {
	// A district has one primary key and one parent (foreign) key for the
	// warehouse it belongs to
	Id          string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	WarehouseId string `protobuf:"bytes,2,opt,name=warehouse_id,json=warehouseId,proto3" json:"warehouse_id,omitempty"`
	// The following are informational fields for a district as defined by the
	// TPC-C standards
	Name     string `protobuf:"bytes,10,opt,name=name,proto3" json:"name,omitempty"`
	Street_1 string `protobuf:"bytes,11,opt,name=street_1,json=street1,proto3" json:"street_1,omitempty"`
	Street_2 string `protobuf:"bytes,12,opt,name=street_2,json=street2,proto3" json:"street_2,omitempty"`
	City     string `protobuf:"bytes,13,opt,name=city,proto3" json:"city,omitempty"`
	State    string `protobuf:"bytes,14,opt,name=state,proto3" json:"state,omitempty"`
	Zip      string `protobuf:"bytes,15,opt,name=zip,proto3" json:"zip,omitempty"`
	// The following are income records as specified in the TPC-C standard
	Tax                  float64  `protobuf:"fixed64,20,opt,name=tax,proto3" json:"tax,omitempty"`
	YearToDate           float64  `protobuf:"fixed64,21,opt,name=year_to_date,json=yearToDate,proto3" json:"year_to_date,omitempty"`
	NextOrderId          int32    `protobuf:"varint,22,opt,name=next_order_id,json=nextOrderId,proto3" json:"next_order_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*District) Descriptor

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

func (*District) GetCity

func (m *District) GetCity() string

func (*District) GetId

func (m *District) GetId() string

func (*District) GetName

func (m *District) GetName() string

func (*District) GetNextOrderId

func (m *District) GetNextOrderId() int32

func (*District) GetState

func (m *District) GetState() string

func (*District) GetStreet_1

func (m *District) GetStreet_1() string

func (*District) GetStreet_2

func (m *District) GetStreet_2() string

func (*District) GetTax

func (m *District) GetTax() float64

func (*District) GetWarehouseId

func (m *District) GetWarehouseId() string

func (*District) GetYearToDate

func (m *District) GetYearToDate() float64

func (*District) GetZip

func (m *District) GetZip() string

func (*District) Marshal

func (m *District) Marshal() (dAtA []byte, err error)

func (*District) MarshalTo

func (m *District) MarshalTo(dAtA []byte) (int, error)

func (*District) ProtoMessage

func (*District) ProtoMessage()

func (*District) Reset

func (m *District) Reset()

func (*District) Size

func (m *District) Size() (n int)

func (*District) String

func (m *District) String() string

func (*District) Unmarshal

func (m *District) Unmarshal(dAtA []byte) error

func (*District) XXX_DiscardUnknown

func (m *District) XXX_DiscardUnknown()

func (*District) XXX_Marshal

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

func (*District) XXX_Merge

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

func (*District) XXX_Size

func (m *District) XXX_Size() int

func (*District) XXX_Unmarshal

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

type History

type History struct {
	// A history object contains keys for the customer that originated the
	// item, which district and warehouse it was in, and which district and
	// warehouse the customer belonged to
	CustomerId          string `protobuf:"bytes,1,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"`
	DistrictId          string `protobuf:"bytes,2,opt,name=district_id,json=districtId,proto3" json:"district_id,omitempty"`
	WarehouseId         string `protobuf:"bytes,3,opt,name=warehouse_id,json=warehouseId,proto3" json:"warehouse_id,omitempty"`
	CustomerDistrictId  string `protobuf:"bytes,4,opt,name=customer_district_id,json=customerDistrictId,proto3" json:"customer_district_id,omitempty"`
	CustomerWarehouseId string `protobuf:"bytes,5,opt,name=customer_warehouse_id,json=customerWarehouseId,proto3" json:"customer_warehouse_id,omitempty"`
	// The following are informational fields for a history as defined by the
	// TPC-C standards
	Date   float64 `protobuf:"fixed64,10,opt,name=date,proto3" json:"date,omitempty"`
	Amount float64 `protobuf:"fixed64,11,opt,name=amount,proto3" json:"amount,omitempty"`
	// The following is an data field for entering miscellany
	Data                 []byte   `protobuf:"bytes,20,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*History) Descriptor

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

func (*History) GetAmount

func (m *History) GetAmount() float64

func (*History) GetCustomerDistrictId

func (m *History) GetCustomerDistrictId() string

func (*History) GetCustomerId

func (m *History) GetCustomerId() string

func (*History) GetCustomerWarehouseId

func (m *History) GetCustomerWarehouseId() string

func (*History) GetData

func (m *History) GetData() []byte

func (*History) GetDate

func (m *History) GetDate() float64

func (*History) GetDistrictId

func (m *History) GetDistrictId() string

func (*History) GetWarehouseId

func (m *History) GetWarehouseId() string

func (*History) Marshal

func (m *History) Marshal() (dAtA []byte, err error)

func (*History) MarshalTo

func (m *History) MarshalTo(dAtA []byte) (int, error)

func (*History) ProtoMessage

func (*History) ProtoMessage()

func (*History) Reset

func (m *History) Reset()

func (*History) Size

func (m *History) Size() (n int)

func (*History) String

func (m *History) String() string

func (*History) Unmarshal

func (m *History) Unmarshal(dAtA []byte) error

func (*History) XXX_DiscardUnknown

func (m *History) XXX_DiscardUnknown()

func (*History) XXX_Marshal

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

func (*History) XXX_Merge

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

func (*History) XXX_Size

func (m *History) XXX_Size() int

func (*History) XXX_Unmarshal

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

type Item

type Item struct {
	// An item has only one primary key
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The following are informational fields for an item as defined by the
	// TPC-C standards
	Name  string  `protobuf:"bytes,10,opt,name=name,proto3" json:"name,omitempty"`
	Price float64 `protobuf:"fixed64,11,opt,name=price,proto3" json:"price,omitempty"`
	// The following is an data field for entering miscellany
	Data                 []byte   `protobuf:"bytes,20,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Item) Descriptor

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

func (*Item) GetData

func (m *Item) GetData() []byte

func (*Item) GetId

func (m *Item) GetId() string

func (*Item) GetName

func (m *Item) GetName() string

func (*Item) GetPrice

func (m *Item) GetPrice() float64

func (*Item) Marshal

func (m *Item) Marshal() (dAtA []byte, err error)

func (*Item) MarshalTo

func (m *Item) MarshalTo(dAtA []byte) (int, error)

func (*Item) ProtoMessage

func (*Item) ProtoMessage()

func (*Item) Reset

func (m *Item) Reset()

func (*Item) Size

func (m *Item) Size() (n int)

func (*Item) String

func (m *Item) String() string

func (*Item) Unmarshal

func (m *Item) Unmarshal(dAtA []byte) error

func (*Item) XXX_DiscardUnknown

func (m *Item) XXX_DiscardUnknown()

func (*Item) XXX_Marshal

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

func (*Item) XXX_Merge

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

func (*Item) XXX_Size

func (m *Item) XXX_Size() int

func (*Item) XXX_Unmarshal

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

type NewOrder

type NewOrder struct {
	// A new order has one primary key, one parent (foreign) key for the district
	// it originated in, and one grandparent (foreign) key for the warehouse
	// the district it originated in belongs to
	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	DistrictId           string   `protobuf:"bytes,2,opt,name=district_id,json=districtId,proto3" json:"district_id,omitempty"`
	WarehouseId          string   `protobuf:"bytes,3,opt,name=warehouse_id,json=warehouseId,proto3" json:"warehouse_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*NewOrder) Descriptor

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

func (*NewOrder) GetDistrictId

func (m *NewOrder) GetDistrictId() string

func (*NewOrder) GetId

func (m *NewOrder) GetId() string

func (*NewOrder) GetWarehouseId

func (m *NewOrder) GetWarehouseId() string

func (*NewOrder) Marshal

func (m *NewOrder) Marshal() (dAtA []byte, err error)

func (*NewOrder) MarshalTo

func (m *NewOrder) MarshalTo(dAtA []byte) (int, error)

func (*NewOrder) ProtoMessage

func (*NewOrder) ProtoMessage()

func (*NewOrder) Reset

func (m *NewOrder) Reset()

func (*NewOrder) Size

func (m *NewOrder) Size() (n int)

func (*NewOrder) String

func (m *NewOrder) String() string

func (*NewOrder) Unmarshal

func (m *NewOrder) Unmarshal(dAtA []byte) error

func (*NewOrder) XXX_DiscardUnknown

func (m *NewOrder) XXX_DiscardUnknown()

func (*NewOrder) XXX_Marshal

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

func (*NewOrder) XXX_Merge

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

func (*NewOrder) XXX_Size

func (m *NewOrder) XXX_Size() int

func (*NewOrder) XXX_Unmarshal

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

type Order

type Order struct {
	// An order has one primary key, one parent (foreign) key for the customer
	// that originated the order, one grandparent (foreign) key for the district
	// that customer is in, and one grandparent (foreign) key for the district's
	// warehouse
	Id          string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	DistrictId  string `protobuf:"bytes,2,opt,name=district_id,json=districtId,proto3" json:"district_id,omitempty"`
	WarehouseId string `protobuf:"bytes,3,opt,name=warehouse_id,json=warehouseId,proto3" json:"warehouse_id,omitempty"`
	CustomerId  string `protobuf:"bytes,4,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"`
	// The following are informational fields for an order as defined by the
	// TPC-C standards
	EntryDate      float64 `protobuf:"fixed64,10,opt,name=entry_date,json=entryDate,proto3" json:"entry_date,omitempty"`
	CarrierId      int32   `protobuf:"varint,11,opt,name=carrier_id,json=carrierId,proto3" json:"carrier_id,omitempty"`
	OrderLineCount int32   `protobuf:"varint,12,opt,name=order_line_count,json=orderLineCount,proto3" json:"order_line_count,omitempty"`
	AllItemsLocal  bool    `protobuf:"varint,13,opt,name=all_items_local,json=allItemsLocal,proto3" json:"all_items_local,omitempty"`
	// Embedding OrderLines into Order (by reference). Kind of hackish. (Alex)
	OrderLinePtr         []uint64 `protobuf:"varint,14,rep,packed,name=order_line_ptr,json=orderLinePtr,proto3" json:"order_line_ptr,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Order) Descriptor

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

func (*Order) GetAllItemsLocal

func (m *Order) GetAllItemsLocal() bool

func (*Order) GetCarrierId

func (m *Order) GetCarrierId() int32

func (*Order) GetCustomerId

func (m *Order) GetCustomerId() string

func (*Order) GetDistrictId

func (m *Order) GetDistrictId() string

func (*Order) GetEntryDate

func (m *Order) GetEntryDate() float64

func (*Order) GetId

func (m *Order) GetId() string

func (*Order) GetOrderLineCount

func (m *Order) GetOrderLineCount() int32

func (*Order) GetOrderLinePtr

func (m *Order) GetOrderLinePtr() []uint64

func (*Order) GetWarehouseId

func (m *Order) GetWarehouseId() string

func (*Order) Marshal

func (m *Order) Marshal() (dAtA []byte, err error)

func (*Order) MarshalTo

func (m *Order) MarshalTo(dAtA []byte) (int, error)

func (*Order) ProtoMessage

func (*Order) ProtoMessage()

func (*Order) Reset

func (m *Order) Reset()

func (*Order) Size

func (m *Order) Size() (n int)

func (*Order) String

func (m *Order) String() string

func (*Order) Unmarshal

func (m *Order) Unmarshal(dAtA []byte) error

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 OrderLine

type OrderLine struct {
	// An order line has a foreign key for the order it belongs to, the district
	// the order line occurs in, the warehouse that district belongs to,
	// which item is being ordered and which supply warehouse it is being
	// taken from
	OrderId           string `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
	DistrictId        string `protobuf:"bytes,2,opt,name=district_id,json=districtId,proto3" json:"district_id,omitempty"`
	WarehouseId       string `protobuf:"bytes,3,opt,name=warehouse_id,json=warehouseId,proto3" json:"warehouse_id,omitempty"`
	ItemId            string `protobuf:"bytes,4,opt,name=item_id,json=itemId,proto3" json:"item_id,omitempty"`
	SupplyWarehouseId string `protobuf:"bytes,5,opt,name=supply_warehouse_id,json=supplyWarehouseId,proto3" json:"supply_warehouse_id,omitempty"`
	// The following are informational fields for an orderline as defined by the
	// TPC-C standards
	Number               int32    `protobuf:"varint,10,opt,name=number,proto3" json:"number,omitempty"`
	DeliveryDate         float64  `protobuf:"fixed64,11,opt,name=delivery_date,json=deliveryDate,proto3" json:"delivery_date,omitempty"`
	Quantity             int32    `protobuf:"varint,12,opt,name=quantity,proto3" json:"quantity,omitempty"`
	Amount               float64  `protobuf:"fixed64,13,opt,name=amount,proto3" json:"amount,omitempty"`
	DistrictInformation  []byte   `protobuf:"bytes,14,opt,name=district_information,json=districtInformation,proto3" json:"district_information,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*OrderLine) Descriptor

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

func (*OrderLine) GetAmount

func (m *OrderLine) GetAmount() float64

func (*OrderLine) GetDeliveryDate

func (m *OrderLine) GetDeliveryDate() float64

func (*OrderLine) GetDistrictId

func (m *OrderLine) GetDistrictId() string

func (*OrderLine) GetDistrictInformation

func (m *OrderLine) GetDistrictInformation() []byte

func (*OrderLine) GetItemId

func (m *OrderLine) GetItemId() string

func (*OrderLine) GetNumber

func (m *OrderLine) GetNumber() int32

func (*OrderLine) GetOrderId

func (m *OrderLine) GetOrderId() string

func (*OrderLine) GetQuantity

func (m *OrderLine) GetQuantity() int32

func (*OrderLine) GetSupplyWarehouseId

func (m *OrderLine) GetSupplyWarehouseId() string

func (*OrderLine) GetWarehouseId

func (m *OrderLine) GetWarehouseId() string

func (*OrderLine) Marshal

func (m *OrderLine) Marshal() (dAtA []byte, err error)

func (*OrderLine) MarshalTo

func (m *OrderLine) MarshalTo(dAtA []byte) (int, error)

func (*OrderLine) ProtoMessage

func (*OrderLine) ProtoMessage()

func (*OrderLine) Reset

func (m *OrderLine) Reset()

func (*OrderLine) Size

func (m *OrderLine) Size() (n int)

func (*OrderLine) String

func (m *OrderLine) String() string

func (*OrderLine) Unmarshal

func (m *OrderLine) Unmarshal(dAtA []byte) error

func (*OrderLine) XXX_DiscardUnknown

func (m *OrderLine) XXX_DiscardUnknown()

func (*OrderLine) XXX_Marshal

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

func (*OrderLine) XXX_Merge

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

func (*OrderLine) XXX_Size

func (m *OrderLine) XXX_Size() int

func (*OrderLine) XXX_Unmarshal

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

type Stock

type Stock struct {
	// A stock has one primary key (the item it represents) and one
	// foreign key (the warehouse it is in)
	Id          string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	ItemId      string `protobuf:"bytes,2,opt,name=item_id,json=itemId,proto3" json:"item_id,omitempty"`
	WarehouseId string `protobuf:"bytes,3,opt,name=warehouse_id,json=warehouseId,proto3" json:"warehouse_id,omitempty"`
	// The following are informational fields for a stock as defined by the
	// TPC-C standards
	Quantity    int32    `protobuf:"varint,10,opt,name=quantity,proto3" json:"quantity,omitempty"`
	Districts   [][]byte `protobuf:"bytes,11,rep,name=districts,proto3" json:"districts,omitempty"`
	YearToDate  int32    `protobuf:"varint,12,opt,name=year_to_date,json=yearToDate,proto3" json:"year_to_date,omitempty"`
	OrderCount  int32    `protobuf:"varint,13,opt,name=order_count,json=orderCount,proto3" json:"order_count,omitempty"`
	RemoteCount int32    `protobuf:"varint,14,opt,name=remote_count,json=remoteCount,proto3" json:"remote_count,omitempty"`
	// The following is an data field for entering miscellany
	Data                 []byte   `protobuf:"bytes,20,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Stock) Descriptor

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

func (*Stock) GetData

func (m *Stock) GetData() []byte

func (*Stock) GetDistricts

func (m *Stock) GetDistricts() [][]byte

func (*Stock) GetId

func (m *Stock) GetId() string

func (*Stock) GetItemId

func (m *Stock) GetItemId() string

func (*Stock) GetOrderCount

func (m *Stock) GetOrderCount() int32

func (*Stock) GetQuantity

func (m *Stock) GetQuantity() int32

func (*Stock) GetRemoteCount

func (m *Stock) GetRemoteCount() int32

func (*Stock) GetWarehouseId

func (m *Stock) GetWarehouseId() string

func (*Stock) GetYearToDate

func (m *Stock) GetYearToDate() int32

func (*Stock) Marshal

func (m *Stock) Marshal() (dAtA []byte, err error)

func (*Stock) MarshalTo

func (m *Stock) MarshalTo(dAtA []byte) (int, error)

func (*Stock) ProtoMessage

func (*Stock) ProtoMessage()

func (*Stock) Reset

func (m *Stock) Reset()

func (*Stock) Size

func (m *Stock) Size() (n int)

func (*Stock) String

func (m *Stock) String() string

func (*Stock) Unmarshal

func (m *Stock) Unmarshal(dAtA []byte) error

func (*Stock) XXX_DiscardUnknown

func (m *Stock) XXX_DiscardUnknown()

func (*Stock) XXX_Marshal

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

func (*Stock) XXX_Merge

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

func (*Stock) XXX_Size

func (m *Stock) XXX_Size() int

func (*Stock) XXX_Unmarshal

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

type Warehouse

type Warehouse struct {
	// A warehouse has only one primary key
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The following are informational fields as defined in TPC-C standard
	Name     string `protobuf:"bytes,11,opt,name=name,proto3" json:"name,omitempty"`
	Street_1 string `protobuf:"bytes,12,opt,name=street_1,json=street1,proto3" json:"street_1,omitempty"`
	Street_2 string `protobuf:"bytes,13,opt,name=street_2,json=street2,proto3" json:"street_2,omitempty"`
	City     string `protobuf:"bytes,14,opt,name=city,proto3" json:"city,omitempty"`
	State    string `protobuf:"bytes,15,opt,name=state,proto3" json:"state,omitempty"`
	Zip      string `protobuf:"bytes,16,opt,name=zip,proto3" json:"zip,omitempty"`
	// The following are income records as specified in TPC-C standard
	Tax                  float64  `protobuf:"fixed64,20,opt,name=tax,proto3" json:"tax,omitempty"`
	YearToDate           float64  `protobuf:"fixed64,21,opt,name=year_to_date,json=yearToDate,proto3" json:"year_to_date,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Warehouse) Descriptor

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

func (*Warehouse) GetCity

func (m *Warehouse) GetCity() string

func (*Warehouse) GetId

func (m *Warehouse) GetId() string

func (*Warehouse) GetName

func (m *Warehouse) GetName() string

func (*Warehouse) GetState

func (m *Warehouse) GetState() string

func (*Warehouse) GetStreet_1

func (m *Warehouse) GetStreet_1() string

func (*Warehouse) GetStreet_2

func (m *Warehouse) GetStreet_2() string

func (*Warehouse) GetTax

func (m *Warehouse) GetTax() float64

func (*Warehouse) GetYearToDate

func (m *Warehouse) GetYearToDate() float64

func (*Warehouse) GetZip

func (m *Warehouse) GetZip() string

func (*Warehouse) Marshal

func (m *Warehouse) Marshal() (dAtA []byte, err error)

func (*Warehouse) MarshalTo

func (m *Warehouse) MarshalTo(dAtA []byte) (int, error)

func (*Warehouse) ProtoMessage

func (*Warehouse) ProtoMessage()

func (*Warehouse) Reset

func (m *Warehouse) Reset()

func (*Warehouse) Size

func (m *Warehouse) Size() (n int)

func (*Warehouse) String

func (m *Warehouse) String() string

func (*Warehouse) Unmarshal

func (m *Warehouse) Unmarshal(dAtA []byte) error

func (*Warehouse) XXX_DiscardUnknown

func (m *Warehouse) XXX_DiscardUnknown()

func (*Warehouse) XXX_Marshal

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

func (*Warehouse) XXX_Merge

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

func (*Warehouse) XXX_Size

func (m *Warehouse) XXX_Size() int

func (*Warehouse) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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