Documentation ¶
Index ¶
- Variables
- type Address
- func (*Address) Descriptor() ([]byte, []int)deprecated
- func (x *Address) GetCity() string
- func (x *Address) GetCountry() string
- func (x *Address) GetState() string
- func (x *Address) GetStreetAddress() string
- func (x *Address) GetZipCode() int32
- func (*Address) ProtoMessage()
- func (x *Address) ProtoReflect() protoreflect.Message
- func (x *Address) Reset()
- func (x *Address) String() string
- type Cart
- type CartItem
- type CreditCardInfo
- func (*CreditCardInfo) Descriptor() ([]byte, []int)deprecated
- func (x *CreditCardInfo) GetCreditCardCvv() int32
- func (x *CreditCardInfo) GetCreditCardExpirationMonth() int32
- func (x *CreditCardInfo) GetCreditCardExpirationYear() int32
- func (x *CreditCardInfo) GetCreditCardNumber() string
- func (*CreditCardInfo) ProtoMessage()
- func (x *CreditCardInfo) ProtoReflect() protoreflect.Message
- func (x *CreditCardInfo) Reset()
- func (x *CreditCardInfo) String() string
- type Empty
- type Money
- type OrderItem
- type OrderResult
- func (*OrderResult) Descriptor() ([]byte, []int)deprecated
- func (x *OrderResult) GetItems() []*OrderItem
- func (x *OrderResult) GetOrderId() string
- func (x *OrderResult) GetShippingAddress() *Address
- func (x *OrderResult) GetShippingCost() *Money
- func (x *OrderResult) GetShippingTrackingId() string
- func (*OrderResult) ProtoMessage()
- func (x *OrderResult) ProtoReflect() protoreflect.Message
- func (x *OrderResult) Reset()
- func (x *OrderResult) String() string
- type Product
- func (*Product) Descriptor() ([]byte, []int)deprecated
- func (x *Product) GetCategories() []string
- func (x *Product) GetDescription() string
- func (x *Product) GetId() string
- func (x *Product) GetName() string
- func (x *Product) GetPicture() string
- func (x *Product) GetPriceUsd() *Money
- func (*Product) ProtoMessage()
- func (x *Product) ProtoReflect() protoreflect.Message
- func (x *Product) Reset()
- func (x *Product) String() string
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Address struct { StreetAddress string `protobuf:"bytes,1,opt,name=street_address,json=streetAddress,proto3" json:"street_address,omitempty"` City string `protobuf:"bytes,2,opt,name=city,proto3" json:"city,omitempty"` State string `protobuf:"bytes,3,opt,name=state,proto3" json:"state,omitempty"` Country string `protobuf:"bytes,4,opt,name=country,proto3" json:"country,omitempty"` ZipCode int32 `protobuf:"varint,5,opt,name=zip_code,json=zipCode,proto3" json:"zip_code,omitempty"` // contains filtered or unexported fields }
func (*Address) Descriptor
deprecated
func (*Address) GetCountry ¶
func (*Address) GetStreetAddress ¶
func (*Address) GetZipCode ¶
func (*Address) ProtoMessage ¶
func (*Address) ProtoMessage()
func (*Address) ProtoReflect ¶
func (x *Address) ProtoReflect() protoreflect.Message
type Cart ¶
type Cart struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Items []*CartItem `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"` // contains filtered or unexported fields }
func (*Cart) Descriptor
deprecated
func (*Cart) ProtoMessage ¶
func (*Cart) ProtoMessage()
func (*Cart) ProtoReflect ¶
func (x *Cart) ProtoReflect() protoreflect.Message
type CartItem ¶
type CartItem struct { ProductId string `protobuf:"bytes,1,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"` Quantity int32 `protobuf:"varint,2,opt,name=quantity,proto3" json:"quantity,omitempty"` // contains filtered or unexported fields }
func (*CartItem) Descriptor
deprecated
func (*CartItem) GetProductId ¶
func (*CartItem) GetQuantity ¶
func (*CartItem) ProtoMessage ¶
func (*CartItem) ProtoMessage()
func (*CartItem) ProtoReflect ¶
func (x *CartItem) ProtoReflect() protoreflect.Message
type CreditCardInfo ¶
type CreditCardInfo struct { CreditCardNumber string `protobuf:"bytes,1,opt,name=credit_card_number,json=creditCardNumber,proto3" json:"credit_card_number,omitempty"` CreditCardCvv int32 `protobuf:"varint,2,opt,name=credit_card_cvv,json=creditCardCvv,proto3" json:"credit_card_cvv,omitempty"` CreditCardExpirationYear int32 `` /* 138-byte string literal not displayed */ CreditCardExpirationMonth int32 `` /* 141-byte string literal not displayed */ // contains filtered or unexported fields }
func (*CreditCardInfo) Descriptor
deprecated
func (*CreditCardInfo) Descriptor() ([]byte, []int)
Deprecated: Use CreditCardInfo.ProtoReflect.Descriptor instead.
func (*CreditCardInfo) GetCreditCardCvv ¶
func (x *CreditCardInfo) GetCreditCardCvv() int32
func (*CreditCardInfo) GetCreditCardExpirationMonth ¶
func (x *CreditCardInfo) GetCreditCardExpirationMonth() int32
func (*CreditCardInfo) GetCreditCardExpirationYear ¶
func (x *CreditCardInfo) GetCreditCardExpirationYear() int32
func (*CreditCardInfo) GetCreditCardNumber ¶
func (x *CreditCardInfo) GetCreditCardNumber() string
func (*CreditCardInfo) ProtoMessage ¶
func (*CreditCardInfo) ProtoMessage()
func (*CreditCardInfo) ProtoReflect ¶
func (x *CreditCardInfo) ProtoReflect() protoreflect.Message
func (*CreditCardInfo) Reset ¶
func (x *CreditCardInfo) Reset()
func (*CreditCardInfo) String ¶
func (x *CreditCardInfo) String() string
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type Money ¶
type Money struct { // The 3-letter currency code defined in ISO 4217. CurrencyCode string `protobuf:"bytes,1,opt,name=currency_code,json=currencyCode,proto3" json:"currency_code,omitempty"` // The whole units of the amount. // For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. Units int64 `protobuf:"varint,2,opt,name=units,proto3" json:"units,omitempty"` // Number of nano (10^-9) units of the amount. // The value must be between -999,999,999 and +999,999,999 inclusive. // If `units` is positive, `nanos` must be positive or zero. // If `units` is zero, `nanos` can be positive, zero, or negative. // If `units` is negative, `nanos` must be negative or zero. // For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. Nanos int32 `protobuf:"varint,3,opt,name=nanos,proto3" json:"nanos,omitempty"` // contains filtered or unexported fields }
func (*Money) Descriptor
deprecated
func (*Money) GetCurrencyCode ¶
func (*Money) ProtoMessage ¶
func (*Money) ProtoMessage()
func (*Money) ProtoReflect ¶
func (x *Money) ProtoReflect() protoreflect.Message
type OrderItem ¶
type OrderItem struct { Item *CartItem `protobuf:"bytes,1,opt,name=item,proto3" json:"item,omitempty"` Cost *Money `protobuf:"bytes,2,opt,name=cost,proto3" json:"cost,omitempty"` // contains filtered or unexported fields }
func (*OrderItem) Descriptor
deprecated
func (*OrderItem) ProtoMessage ¶
func (*OrderItem) ProtoMessage()
func (*OrderItem) ProtoReflect ¶
func (x *OrderItem) ProtoReflect() protoreflect.Message
type OrderResult ¶
type OrderResult struct { OrderId string `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` ShippingTrackingId string `protobuf:"bytes,2,opt,name=shipping_tracking_id,json=shippingTrackingId,proto3" json:"shipping_tracking_id,omitempty"` ShippingCost *Money `protobuf:"bytes,3,opt,name=shipping_cost,json=shippingCost,proto3" json:"shipping_cost,omitempty"` ShippingAddress *Address `protobuf:"bytes,4,opt,name=shipping_address,json=shippingAddress,proto3" json:"shipping_address,omitempty"` Items []*OrderItem `protobuf:"bytes,5,rep,name=items,proto3" json:"items,omitempty"` // contains filtered or unexported fields }
func (*OrderResult) Descriptor
deprecated
func (*OrderResult) Descriptor() ([]byte, []int)
Deprecated: Use OrderResult.ProtoReflect.Descriptor instead.
func (*OrderResult) GetItems ¶
func (x *OrderResult) GetItems() []*OrderItem
func (*OrderResult) GetOrderId ¶
func (x *OrderResult) GetOrderId() string
func (*OrderResult) GetShippingAddress ¶
func (x *OrderResult) GetShippingAddress() *Address
func (*OrderResult) GetShippingCost ¶
func (x *OrderResult) GetShippingCost() *Money
func (*OrderResult) GetShippingTrackingId ¶
func (x *OrderResult) GetShippingTrackingId() string
func (*OrderResult) ProtoMessage ¶
func (*OrderResult) ProtoMessage()
func (*OrderResult) ProtoReflect ¶
func (x *OrderResult) ProtoReflect() protoreflect.Message
func (*OrderResult) Reset ¶
func (x *OrderResult) Reset()
func (*OrderResult) String ¶
func (x *OrderResult) String() string
type Product ¶
type Product struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` Picture string `protobuf:"bytes,4,opt,name=picture,proto3" json:"picture,omitempty"` PriceUsd *Money `protobuf:"bytes,5,opt,name=price_usd,json=priceUsd,proto3" json:"price_usd,omitempty"` Categories []string `protobuf:"bytes,6,rep,name=categories,proto3" json:"categories,omitempty"` // contains filtered or unexported fields }
func (*Product) Descriptor
deprecated
func (*Product) GetCategories ¶
func (*Product) GetDescription ¶
func (*Product) GetPicture ¶
func (*Product) GetPriceUsd ¶
func (*Product) ProtoMessage ¶
func (*Product) ProtoMessage()
func (*Product) ProtoReflect ¶
func (x *Product) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.