Documentation ¶
Index ¶
- Variables
- type OrderItem
- func (*OrderItem) Descriptor() ([]byte, []int)deprecated
- func (x *OrderItem) GetCreatedAt() *timestamppb.Timestamp
- func (x *OrderItem) GetId() string
- func (x *OrderItem) GetOrderId() string
- func (x *OrderItem) GetPrice() float64
- func (x *OrderItem) GetProductId() string
- func (x *OrderItem) GetQuantity() int64
- func (x *OrderItem) GetUpdatedAt() *timestamppb.Timestamp
- func (*OrderItem) ProtoMessage()
- func (x *OrderItem) ProtoReflect() protoreflect.Message
- func (x *OrderItem) Reset()
- func (x *OrderItem) String() string
- func (m *OrderItem) Validate() error
- type OrderItemValidationError
- type OrderItems
- func (*OrderItems) Descriptor() ([]byte, []int)deprecated
- func (x *OrderItems) GetList() []*OrderItem
- func (x *OrderItems) GetPagination() *common.PaginationResult
- func (*OrderItems) ProtoMessage()
- func (x *OrderItems) ProtoReflect() protoreflect.Message
- func (x *OrderItems) Reset()
- func (x *OrderItems) String() string
- func (m *OrderItems) Validate() error
- type OrderItemsValidationError
Constants ¶
This section is empty.
Variables ¶
var File_pkg_proto_order_item_types_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type OrderItem ¶
type OrderItem struct { // @inject_tag: faker:"uuid_hyphenated" Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // @inject_tag: faker:"oneof: 4.95, 9.99, 31997.97" Price float64 `protobuf:"fixed64,2,opt,name=price,proto3" json:"price,omitempty"` // @inject_tag: faker:"oneof: 11, 12" Quantity int64 `protobuf:"varint,3,opt,name=quantity,proto3" json:"quantity,omitempty"` // @inject_tag: faker:"uuid_hyphenated" ProductId string `protobuf:"bytes,4,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"` // @inject_tag: faker:"uuid_hyphenated" OrderId string `protobuf:"bytes,5,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // contains filtered or unexported fields }
OrderItem
func (*OrderItem) Descriptor
deprecated
func (*OrderItem) GetCreatedAt ¶
func (x *OrderItem) GetCreatedAt() *timestamppb.Timestamp
func (*OrderItem) GetOrderId ¶
func (*OrderItem) GetProductId ¶
func (*OrderItem) GetQuantity ¶
func (*OrderItem) GetUpdatedAt ¶
func (x *OrderItem) GetUpdatedAt() *timestamppb.Timestamp
func (*OrderItem) ProtoMessage ¶
func (*OrderItem) ProtoMessage()
func (*OrderItem) ProtoReflect ¶
func (x *OrderItem) ProtoReflect() protoreflect.Message
type OrderItemValidationError ¶
type OrderItemValidationError struct {
// contains filtered or unexported fields
}
OrderItemValidationError is the validation error returned by OrderItem.Validate if the designated constraints aren't met.
func (OrderItemValidationError) Cause ¶
func (e OrderItemValidationError) Cause() error
Cause function returns cause value.
func (OrderItemValidationError) Error ¶
func (e OrderItemValidationError) Error() string
Error satisfies the builtin error interface
func (OrderItemValidationError) ErrorName ¶
func (e OrderItemValidationError) ErrorName() string
ErrorName returns error name.
func (OrderItemValidationError) Field ¶
func (e OrderItemValidationError) Field() string
Field function returns field value.
func (OrderItemValidationError) Key ¶
func (e OrderItemValidationError) Key() bool
Key function returns key value.
func (OrderItemValidationError) Reason ¶
func (e OrderItemValidationError) Reason() string
Reason function returns reason value.
type OrderItems ¶
type OrderItems struct { List []*OrderItem `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` Pagination *common.PaginationResult `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
func (*OrderItems) Descriptor
deprecated
func (*OrderItems) Descriptor() ([]byte, []int)
Deprecated: Use OrderItems.ProtoReflect.Descriptor instead.
func (*OrderItems) GetList ¶
func (x *OrderItems) GetList() []*OrderItem
func (*OrderItems) GetPagination ¶
func (x *OrderItems) GetPagination() *common.PaginationResult
func (*OrderItems) ProtoMessage ¶
func (*OrderItems) ProtoMessage()
func (*OrderItems) ProtoReflect ¶
func (x *OrderItems) ProtoReflect() protoreflect.Message
func (*OrderItems) Reset ¶
func (x *OrderItems) Reset()
func (*OrderItems) String ¶
func (x *OrderItems) String() string
func (*OrderItems) Validate ¶
func (m *OrderItems) Validate() error
Validate checks the field values on OrderItems with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type OrderItemsValidationError ¶
type OrderItemsValidationError struct {
// contains filtered or unexported fields
}
OrderItemsValidationError is the validation error returned by OrderItems.Validate if the designated constraints aren't met.
func (OrderItemsValidationError) Cause ¶
func (e OrderItemsValidationError) Cause() error
Cause function returns cause value.
func (OrderItemsValidationError) Error ¶
func (e OrderItemsValidationError) Error() string
Error satisfies the builtin error interface
func (OrderItemsValidationError) ErrorName ¶
func (e OrderItemsValidationError) ErrorName() string
ErrorName returns error name.
func (OrderItemsValidationError) Field ¶
func (e OrderItemsValidationError) Field() string
Field function returns field value.
func (OrderItemsValidationError) Key ¶
func (e OrderItemsValidationError) Key() bool
Key function returns key value.
func (OrderItemsValidationError) Reason ¶
func (e OrderItemsValidationError) Reason() string
Reason function returns reason value.