Documentation ¶
Index ¶
- Variables
- type DeleteRequest
- type DeleteResponse
- type GetRequest
- type GetResponse
- type Inventory
- type ListRequest
- func (*ListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListRequest) GetLastKey() string
- func (x *ListRequest) GetLimit() int32
- func (x *ListRequest) GetSort() ListRequest_Sort
- func (*ListRequest) ProtoMessage()
- func (x *ListRequest) ProtoReflect() protoreflect.Message
- func (x *ListRequest) Reset()
- func (x *ListRequest) String() string
- type ListRequest_Sort
- func (ListRequest_Sort) Descriptor() protoreflect.EnumDescriptor
- func (x ListRequest_Sort) Enum() *ListRequest_Sort
- func (ListRequest_Sort) EnumDescriptor() ([]byte, []int)deprecated
- func (x ListRequest_Sort) Number() protoreflect.EnumNumber
- func (x ListRequest_Sort) String() string
- func (ListRequest_Sort) Type() protoreflect.EnumType
- type ListResponse
- func (*ListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListResponse) GetLastKey() string
- func (x *ListResponse) GetSkus() []*Sku
- func (x *ListResponse) GetTotal() int32
- func (*ListResponse) ProtoMessage()
- func (x *ListResponse) ProtoReflect() protoreflect.Message
- func (x *ListResponse) Reset()
- func (x *ListResponse) String() string
- type NewRequest
- func (*NewRequest) Descriptor() ([]byte, []int)deprecated
- func (x *NewRequest) GetActive() bool
- func (x *NewRequest) GetAttributes() map[string]string
- func (x *NewRequest) GetCurrency() v1.Currency
- func (x *NewRequest) GetImage() string
- func (x *NewRequest) GetInventory() *Inventory
- func (x *NewRequest) GetMetadata() map[string]string
- func (x *NewRequest) GetName() string
- func (x *NewRequest) GetPackageDimensions() *PackageDimensions
- func (x *NewRequest) GetParent() string
- func (x *NewRequest) GetPrice() uint64
- func (*NewRequest) ProtoMessage()
- func (x *NewRequest) ProtoReflect() protoreflect.Message
- func (x *NewRequest) Reset()
- func (x *NewRequest) String() string
- type NewResponse
- type PackageDimensions
- func (*PackageDimensions) Descriptor() ([]byte, []int)deprecated
- func (x *PackageDimensions) GetHeight() float64
- func (x *PackageDimensions) GetLength() float64
- func (x *PackageDimensions) GetWeight() float64
- func (x *PackageDimensions) GetWidth() float64
- func (*PackageDimensions) ProtoMessage()
- func (x *PackageDimensions) ProtoReflect() protoreflect.Message
- func (x *PackageDimensions) Reset()
- func (x *PackageDimensions) String() string
- type Sku
- func (*Sku) Descriptor() ([]byte, []int)deprecated
- func (x *Sku) GetActive() bool
- func (x *Sku) GetAttributes() map[string]string
- func (x *Sku) GetCreated() int64
- func (x *Sku) GetCurrency() v1.Currency
- func (x *Sku) GetId() string
- func (x *Sku) GetImage() string
- func (x *Sku) GetInventory() *Inventory
- func (x *Sku) GetMetadata() map[string]string
- func (x *Sku) GetName() string
- func (x *Sku) GetPackageDimensions() *PackageDimensions
- func (x *Sku) GetParent() string
- func (x *Sku) GetPrice() uint64
- func (x *Sku) GetUpdated() int64
- func (*Sku) ProtoMessage()
- func (x *Sku) ProtoReflect() protoreflect.Message
- func (x *Sku) Reset()
- func (x *Sku) String() string
- type UpdateRequest
- func (*UpdateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRequest) GetActive() bool
- func (x *UpdateRequest) GetAttributes() map[string]string
- func (x *UpdateRequest) GetCurrency() v1.Currency
- func (x *UpdateRequest) GetId() string
- func (x *UpdateRequest) GetImage() string
- func (x *UpdateRequest) GetInventory() *Inventory
- func (x *UpdateRequest) GetMetadata() map[string]string
- func (x *UpdateRequest) GetName() string
- func (x *UpdateRequest) GetPackageDimensions() *PackageDimensions
- func (x *UpdateRequest) GetParent() string
- func (x *UpdateRequest) GetPrice() uint64
- func (*UpdateRequest) ProtoMessage()
- func (x *UpdateRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateRequest) Reset()
- func (x *UpdateRequest) String() string
- type UpdateResponse
Constants ¶
This section is empty.
Variables ¶
var ( ListRequest_Sort_name = map[int32]string{ 0: "SORT_UNSPECIFIED", 1: "SORT_NATURAL", 2: "SORT_CREATED_DESC", 3: "SORT_CREATED_ASC", 4: "SORT_UPDATED_DESC", 5: "SORT_UPDATED_ASC", } ListRequest_Sort_value = map[string]int32{ "SORT_UNSPECIFIED": 0, "SORT_NATURAL": 1, "SORT_CREATED_DESC": 2, "SORT_CREATED_ASC": 3, "SORT_UPDATED_DESC": 4, "SORT_UPDATED_ASC": 5, } )
Enum value maps for ListRequest_Sort.
var File_sku_v1_sku_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type DeleteRequest ¶
type DeleteRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteRequest) Descriptor
deprecated
func (*DeleteRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.
func (*DeleteRequest) GetId ¶
func (x *DeleteRequest) GetId() string
func (*DeleteRequest) ProtoMessage ¶
func (*DeleteRequest) ProtoMessage()
func (*DeleteRequest) ProtoReflect ¶
func (x *DeleteRequest) ProtoReflect() protoreflect.Message
func (*DeleteRequest) Reset ¶
func (x *DeleteRequest) Reset()
func (*DeleteRequest) String ¶
func (x *DeleteRequest) String() string
type DeleteResponse ¶
type DeleteResponse struct {
// contains filtered or unexported fields
}
func (*DeleteResponse) Descriptor
deprecated
func (*DeleteResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead.
func (*DeleteResponse) ProtoMessage ¶
func (*DeleteResponse) ProtoMessage()
func (*DeleteResponse) ProtoReflect ¶
func (x *DeleteResponse) ProtoReflect() protoreflect.Message
func (*DeleteResponse) Reset ¶
func (x *DeleteResponse) Reset()
func (*DeleteResponse) String ¶
func (x *DeleteResponse) String() string
type GetRequest ¶
type GetRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetRequest) Descriptor
deprecated
func (*GetRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.
func (*GetRequest) GetId ¶
func (x *GetRequest) GetId() string
func (*GetRequest) ProtoMessage ¶
func (*GetRequest) ProtoMessage()
func (*GetRequest) ProtoReflect ¶
func (x *GetRequest) ProtoReflect() protoreflect.Message
func (*GetRequest) Reset ¶
func (x *GetRequest) Reset()
func (*GetRequest) String ¶
func (x *GetRequest) String() string
type GetResponse ¶
type GetResponse struct { Sku *Sku `protobuf:"bytes,1,opt,name=sku,proto3" json:"sku,omitempty"` // contains filtered or unexported fields }
func (*GetResponse) Descriptor
deprecated
func (*GetResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetResponse.ProtoReflect.Descriptor instead.
func (*GetResponse) GetSku ¶
func (x *GetResponse) GetSku() *Sku
func (*GetResponse) ProtoMessage ¶
func (*GetResponse) ProtoMessage()
func (*GetResponse) ProtoReflect ¶
func (x *GetResponse) ProtoReflect() protoreflect.Message
func (*GetResponse) Reset ¶
func (x *GetResponse) Reset()
func (*GetResponse) String ¶
func (x *GetResponse) String() string
type Inventory ¶
type Inventory struct { Quantity int64 `protobuf:"varint,1,opt,name=quantity,proto3" json:"quantity,omitempty"` IsFinite bool `protobuf:"varint,2,opt,name=is_finite,json=isFinite,proto3" json:"is_finite,omitempty"` // contains filtered or unexported fields }
func (*Inventory) Descriptor
deprecated
func (*Inventory) GetIsFinite ¶
func (*Inventory) GetQuantity ¶
func (*Inventory) ProtoMessage ¶
func (*Inventory) ProtoMessage()
func (*Inventory) ProtoReflect ¶
func (x *Inventory) ProtoReflect() protoreflect.Message
type ListRequest ¶
type ListRequest struct { LastKey string `protobuf:"bytes,1,opt,name=last_key,json=lastKey,proto3" json:"last_key,omitempty"` Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` Sort ListRequest_Sort `protobuf:"varint,3,opt,name=sort,proto3,enum=sku.v1.ListRequest_Sort" json:"sort,omitempty"` // contains filtered or unexported fields }
func (*ListRequest) Descriptor
deprecated
func (*ListRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.
func (*ListRequest) GetLastKey ¶
func (x *ListRequest) GetLastKey() string
func (*ListRequest) GetLimit ¶
func (x *ListRequest) GetLimit() int32
func (*ListRequest) GetSort ¶
func (x *ListRequest) GetSort() ListRequest_Sort
func (*ListRequest) ProtoMessage ¶
func (*ListRequest) ProtoMessage()
func (*ListRequest) ProtoReflect ¶
func (x *ListRequest) ProtoReflect() protoreflect.Message
func (*ListRequest) Reset ¶
func (x *ListRequest) Reset()
func (*ListRequest) String ¶
func (x *ListRequest) String() string
type ListRequest_Sort ¶
type ListRequest_Sort int32
const ( ListRequest_SORT_UNSPECIFIED ListRequest_Sort = 0 ListRequest_SORT_NATURAL ListRequest_Sort = 1 ListRequest_SORT_CREATED_DESC ListRequest_Sort = 2 ListRequest_SORT_CREATED_ASC ListRequest_Sort = 3 ListRequest_SORT_UPDATED_DESC ListRequest_Sort = 4 ListRequest_SORT_UPDATED_ASC ListRequest_Sort = 5 )
func (ListRequest_Sort) Descriptor ¶
func (ListRequest_Sort) Descriptor() protoreflect.EnumDescriptor
func (ListRequest_Sort) Enum ¶
func (x ListRequest_Sort) Enum() *ListRequest_Sort
func (ListRequest_Sort) EnumDescriptor
deprecated
func (ListRequest_Sort) EnumDescriptor() ([]byte, []int)
Deprecated: Use ListRequest_Sort.Descriptor instead.
func (ListRequest_Sort) Number ¶
func (x ListRequest_Sort) Number() protoreflect.EnumNumber
func (ListRequest_Sort) String ¶
func (x ListRequest_Sort) String() string
func (ListRequest_Sort) Type ¶
func (ListRequest_Sort) Type() protoreflect.EnumType
type ListResponse ¶
type ListResponse struct { Skus []*Sku `protobuf:"bytes,1,rep,name=skus,proto3" json:"skus,omitempty"` Total int32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` LastKey string `protobuf:"bytes,3,opt,name=last_key,json=lastKey,proto3" json:"last_key,omitempty"` // contains filtered or unexported fields }
func (*ListResponse) Descriptor
deprecated
func (*ListResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.
func (*ListResponse) GetLastKey ¶
func (x *ListResponse) GetLastKey() string
func (*ListResponse) GetSkus ¶
func (x *ListResponse) GetSkus() []*Sku
func (*ListResponse) GetTotal ¶
func (x *ListResponse) GetTotal() int32
func (*ListResponse) ProtoMessage ¶
func (*ListResponse) ProtoMessage()
func (*ListResponse) ProtoReflect ¶
func (x *ListResponse) ProtoReflect() protoreflect.Message
func (*ListResponse) Reset ¶
func (x *ListResponse) Reset()
func (*ListResponse) String ¶
func (x *ListResponse) String() string
type NewRequest ¶
type NewRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Currency v1.Currency `protobuf:"varint,2,opt,name=currency,proto3,enum=payment.v1.Currency" json:"currency,omitempty"` Active bool `protobuf:"varint,3,opt,name=active,proto3" json:"active,omitempty"` Price uint64 `protobuf:"varint,4,opt,name=price,proto3" json:"price,omitempty"` Parent string `protobuf:"bytes,5,opt,name=parent,proto3" json:"parent,omitempty"` Metadata map[string]string `` /* 157-byte string literal not displayed */ Image string `protobuf:"bytes,7,opt,name=image,proto3" json:"image,omitempty"` PackageDimensions *PackageDimensions `protobuf:"bytes,8,opt,name=package_dimensions,json=packageDimensions,proto3" json:"package_dimensions,omitempty"` Inventory *Inventory `protobuf:"bytes,9,opt,name=inventory,proto3" json:"inventory,omitempty"` Attributes map[string]string `` /* 162-byte string literal not displayed */ // contains filtered or unexported fields }
func (*NewRequest) Descriptor
deprecated
func (*NewRequest) Descriptor() ([]byte, []int)
Deprecated: Use NewRequest.ProtoReflect.Descriptor instead.
func (*NewRequest) GetActive ¶
func (x *NewRequest) GetActive() bool
func (*NewRequest) GetAttributes ¶
func (x *NewRequest) GetAttributes() map[string]string
func (*NewRequest) GetCurrency ¶
func (x *NewRequest) GetCurrency() v1.Currency
func (*NewRequest) GetImage ¶
func (x *NewRequest) GetImage() string
func (*NewRequest) GetInventory ¶
func (x *NewRequest) GetInventory() *Inventory
func (*NewRequest) GetMetadata ¶
func (x *NewRequest) GetMetadata() map[string]string
func (*NewRequest) GetName ¶
func (x *NewRequest) GetName() string
func (*NewRequest) GetPackageDimensions ¶
func (x *NewRequest) GetPackageDimensions() *PackageDimensions
func (*NewRequest) GetParent ¶
func (x *NewRequest) GetParent() string
func (*NewRequest) GetPrice ¶
func (x *NewRequest) GetPrice() uint64
func (*NewRequest) ProtoMessage ¶
func (*NewRequest) ProtoMessage()
func (*NewRequest) ProtoReflect ¶
func (x *NewRequest) ProtoReflect() protoreflect.Message
func (*NewRequest) Reset ¶
func (x *NewRequest) Reset()
func (*NewRequest) String ¶
func (x *NewRequest) String() string
type NewResponse ¶
type NewResponse struct { Sku *Sku `protobuf:"bytes,1,opt,name=sku,proto3" json:"sku,omitempty"` // contains filtered or unexported fields }
func (*NewResponse) Descriptor
deprecated
func (*NewResponse) Descriptor() ([]byte, []int)
Deprecated: Use NewResponse.ProtoReflect.Descriptor instead.
func (*NewResponse) GetSku ¶
func (x *NewResponse) GetSku() *Sku
func (*NewResponse) ProtoMessage ¶
func (*NewResponse) ProtoMessage()
func (*NewResponse) ProtoReflect ¶
func (x *NewResponse) ProtoReflect() protoreflect.Message
func (*NewResponse) Reset ¶
func (x *NewResponse) Reset()
func (*NewResponse) String ¶
func (x *NewResponse) String() string
type PackageDimensions ¶
type PackageDimensions struct { Height float64 `protobuf:"fixed64,1,opt,name=height,proto3" json:"height,omitempty"` Length float64 `protobuf:"fixed64,2,opt,name=length,proto3" json:"length,omitempty"` Weight float64 `protobuf:"fixed64,3,opt,name=weight,proto3" json:"weight,omitempty"` Width float64 `protobuf:"fixed64,4,opt,name=width,proto3" json:"width,omitempty"` // contains filtered or unexported fields }
func (*PackageDimensions) Descriptor
deprecated
func (*PackageDimensions) Descriptor() ([]byte, []int)
Deprecated: Use PackageDimensions.ProtoReflect.Descriptor instead.
func (*PackageDimensions) GetHeight ¶
func (x *PackageDimensions) GetHeight() float64
func (*PackageDimensions) GetLength ¶
func (x *PackageDimensions) GetLength() float64
func (*PackageDimensions) GetWeight ¶
func (x *PackageDimensions) GetWeight() float64
func (*PackageDimensions) GetWidth ¶
func (x *PackageDimensions) GetWidth() float64
func (*PackageDimensions) ProtoMessage ¶
func (*PackageDimensions) ProtoMessage()
func (*PackageDimensions) ProtoReflect ¶
func (x *PackageDimensions) ProtoReflect() protoreflect.Message
func (*PackageDimensions) Reset ¶
func (x *PackageDimensions) Reset()
func (*PackageDimensions) String ¶
func (x *PackageDimensions) String() string
type Sku ¶
type Sku 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"` Price uint64 `protobuf:"varint,3,opt,name=price,proto3" json:"price,omitempty"` Currency v1.Currency `protobuf:"varint,4,opt,name=currency,proto3,enum=payment.v1.Currency" json:"currency,omitempty"` Active bool `protobuf:"varint,5,opt,name=active,proto3" json:"active,omitempty"` Parent string `protobuf:"bytes,6,opt,name=parent,proto3" json:"parent,omitempty"` Metadata map[string]string `` /* 157-byte string literal not displayed */ Attributes map[string]string `` /* 161-byte string literal not displayed */ Image string `protobuf:"bytes,9,opt,name=image,proto3" json:"image,omitempty"` PackageDimensions *PackageDimensions `protobuf:"bytes,10,opt,name=package_dimensions,json=packageDimensions,proto3" json:"package_dimensions,omitempty"` Inventory *Inventory `protobuf:"bytes,11,opt,name=inventory,proto3" json:"inventory,omitempty"` Created int64 `protobuf:"varint,998,opt,name=created,proto3" json:"created,omitempty"` Updated int64 `protobuf:"varint,999,opt,name=updated,proto3" json:"updated,omitempty"` // contains filtered or unexported fields }
func (*Sku) Descriptor
deprecated
func (*Sku) GetAttributes ¶
func (*Sku) GetCreated ¶
func (*Sku) GetCurrency ¶
func (*Sku) GetInventory ¶
func (*Sku) GetMetadata ¶
func (*Sku) GetPackageDimensions ¶
func (x *Sku) GetPackageDimensions() *PackageDimensions
func (*Sku) GetUpdated ¶
func (*Sku) ProtoMessage ¶
func (*Sku) ProtoMessage()
func (*Sku) ProtoReflect ¶
func (x *Sku) ProtoReflect() protoreflect.Message
type UpdateRequest ¶
type UpdateRequest 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"` Currency v1.Currency `protobuf:"varint,3,opt,name=currency,proto3,enum=payment.v1.Currency" json:"currency,omitempty"` Active bool `protobuf:"varint,4,opt,name=active,proto3" json:"active,omitempty"` Price uint64 `protobuf:"varint,5,opt,name=price,proto3" json:"price,omitempty"` Parent string `protobuf:"bytes,6,opt,name=parent,proto3" json:"parent,omitempty"` Metadata map[string]string `` /* 157-byte string literal not displayed */ Image string `protobuf:"bytes,8,opt,name=image,proto3" json:"image,omitempty"` PackageDimensions *PackageDimensions `protobuf:"bytes,9,opt,name=package_dimensions,json=packageDimensions,proto3" json:"package_dimensions,omitempty"` Inventory *Inventory `protobuf:"bytes,10,opt,name=inventory,proto3" json:"inventory,omitempty"` Attributes map[string]string `` /* 162-byte string literal not displayed */ // contains filtered or unexported fields }
func (*UpdateRequest) Descriptor
deprecated
func (*UpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRequest.ProtoReflect.Descriptor instead.
func (*UpdateRequest) GetActive ¶
func (x *UpdateRequest) GetActive() bool
func (*UpdateRequest) GetAttributes ¶
func (x *UpdateRequest) GetAttributes() map[string]string
func (*UpdateRequest) GetCurrency ¶
func (x *UpdateRequest) GetCurrency() v1.Currency
func (*UpdateRequest) GetId ¶
func (x *UpdateRequest) GetId() string
func (*UpdateRequest) GetImage ¶
func (x *UpdateRequest) GetImage() string
func (*UpdateRequest) GetInventory ¶
func (x *UpdateRequest) GetInventory() *Inventory
func (*UpdateRequest) GetMetadata ¶
func (x *UpdateRequest) GetMetadata() map[string]string
func (*UpdateRequest) GetName ¶
func (x *UpdateRequest) GetName() string
func (*UpdateRequest) GetPackageDimensions ¶
func (x *UpdateRequest) GetPackageDimensions() *PackageDimensions
func (*UpdateRequest) GetParent ¶
func (x *UpdateRequest) GetParent() string
func (*UpdateRequest) GetPrice ¶
func (x *UpdateRequest) GetPrice() uint64
func (*UpdateRequest) ProtoMessage ¶
func (*UpdateRequest) ProtoMessage()
func (*UpdateRequest) ProtoReflect ¶
func (x *UpdateRequest) ProtoReflect() protoreflect.Message
func (*UpdateRequest) Reset ¶
func (x *UpdateRequest) Reset()
func (*UpdateRequest) String ¶
func (x *UpdateRequest) String() string
type UpdateResponse ¶
type UpdateResponse struct { Sku *Sku `protobuf:"bytes,1,opt,name=sku,proto3" json:"sku,omitempty"` // contains filtered or unexported fields }
func (*UpdateResponse) Descriptor
deprecated
func (*UpdateResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateResponse.ProtoReflect.Descriptor instead.
func (*UpdateResponse) GetSku ¶
func (x *UpdateResponse) GetSku() *Sku
func (*UpdateResponse) ProtoMessage ¶
func (*UpdateResponse) ProtoMessage()
func (*UpdateResponse) ProtoReflect ¶
func (x *UpdateResponse) ProtoReflect() protoreflect.Message
func (*UpdateResponse) Reset ¶
func (x *UpdateResponse) Reset()
func (*UpdateResponse) String ¶
func (x *UpdateResponse) String() string