Documentation ¶
Index ¶
- Variables
- func NewTimestamp(time *time.Time) *timestamppb.Timestamp
- type Address
- func (*Address) Descriptor() ([]byte, []int)deprecated
- func (x *Address) GetAdditionalAddressInfo() string
- func (x *Address) GetCity() string
- func (x *Address) GetCreatedAt() *timestamppb.Timestamp
- func (x *Address) GetCustomer() *Address_Customer
- func (x *Address) GetFirstName() string
- func (x *Address) GetHouseNumber() string
- func (x *Address) GetId() string
- func (x *Address) GetLastName() string
- func (x *Address) GetLatitude() float32
- func (x *Address) GetLongitude() float32
- func (x *Address) GetPhone() string
- func (x *Address) GetRevision() int32
- func (x *Address) GetState() string
- func (x *Address) GetType() string
- func (x *Address) GetVersion() int32
- func (x *Address) GetZip() string
- func (*Address) ProtoMessage()
- func (x *Address) ProtoReflect() protoreflect.Message
- func (x *Address) Reset()
- func (x *Address) String() string
- type Address_Customer
- func (*Address_Customer) Descriptor() ([]byte, []int)deprecated
- func (x *Address_Customer) GetCustomerId() string
- func (x *Address_Customer) GetCustomerType() string
- func (*Address_Customer) ProtoMessage()
- func (x *Address_Customer) ProtoReflect() protoreflect.Message
- func (x *Address_Customer) Reset()
- func (x *Address_Customer) String() string
- type Customer
- func (*Customer) Descriptor() ([]byte, []int)deprecated
- func (x *Customer) GetCompanyName() string
- func (x *Customer) GetCustomerType() Customer_CustomerType
- func (x *Customer) GetEmail() string
- func (x *Customer) GetFirstName() string
- func (x *Customer) GetGender() string
- func (x *Customer) GetId() string
- func (x *Customer) GetLastName() string
- func (x *Customer) GetRevision() int32
- func (x *Customer) GetVersion() int32
- func (*Customer) ProtoMessage()
- func (x *Customer) ProtoReflect() protoreflect.Message
- func (x *Customer) Reset()
- func (x *Customer) String() string
- type Customer_CustomerType
- func (Customer_CustomerType) Descriptor() protoreflect.EnumDescriptor
- func (x Customer_CustomerType) Enum() *Customer_CustomerType
- func (Customer_CustomerType) EnumDescriptor() ([]byte, []int)deprecated
- func (x Customer_CustomerType) Number() protoreflect.EnumNumber
- func (x Customer_CustomerType) String() string
- func (Customer_CustomerType) Type() protoreflect.EnumType
- type Order
- func (*Order) Descriptor() ([]byte, []int)deprecated
- func (x *Order) GetCompletedAt() *timestamppb.Timestamp
- func (x *Order) GetCreatedAt() *timestamppb.Timestamp
- func (x *Order) GetCustomer() *Customer
- func (x *Order) GetDeliveredAt() *timestamppb.Timestamp
- func (x *Order) GetDeliveryAddress() *Address
- func (x *Order) GetId() string
- func (x *Order) GetLastUpdatedAt() *timestamppb.Timestamp
- func (x *Order) GetLineItems() []*Order_LineItem
- func (x *Order) GetOrderValue() int32
- func (x *Order) GetPayment() *Order_Payment
- func (x *Order) GetRevision() int32
- func (x *Order) GetVersion() int32
- func (*Order) ProtoMessage()
- func (x *Order) ProtoReflect() protoreflect.Message
- func (x *Order) Reset()
- func (x *Order) String() string
- type Order_LineItem
- func (*Order_LineItem) Descriptor() ([]byte, []int)deprecated
- func (x *Order_LineItem) GetArticleId() string
- func (x *Order_LineItem) GetName() string
- func (x *Order_LineItem) GetQuantity() int32
- func (x *Order_LineItem) GetQuantityUnit() string
- func (x *Order_LineItem) GetTotalPrice() int32
- func (x *Order_LineItem) GetUnitPrice() int32
- func (*Order_LineItem) ProtoMessage()
- func (x *Order_LineItem) ProtoReflect() protoreflect.Message
- func (x *Order_LineItem) Reset()
- func (x *Order_LineItem) String() string
- type Order_Payment
- func (*Order_Payment) Descriptor() ([]byte, []int)deprecated
- func (x *Order_Payment) GetMethod() string
- func (x *Order_Payment) GetPaymentId() string
- func (*Order_Payment) ProtoMessage()
- func (x *Order_Payment) ProtoReflect() protoreflect.Message
- func (x *Order_Payment) Reset()
- func (x *Order_Payment) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Customer_CustomerType_name = map[int32]string{ 0: "PERSONAL", 1: "BUSINESS", } Customer_CustomerType_value = map[string]int32{ "PERSONAL": 0, "BUSINESS": 1, } )
Enum value maps for Customer_CustomerType.
View Source
var File_address_proto protoreflect.FileDescriptor
View Source
var File_customer_proto protoreflect.FileDescriptor
View Source
var File_order_proto protoreflect.FileDescriptor
Functions ¶
func NewTimestamp ¶
func NewTimestamp(time *time.Time) *timestamppb.Timestamp
Types ¶
type Address ¶
type Address struct { Version int32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` Customer *Address_Customer `protobuf:"bytes,3,opt,name=customer,proto3" json:"customer,omitempty"` Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` FirstName string `protobuf:"bytes,5,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` LastName string `protobuf:"bytes,6,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` State string `protobuf:"bytes,7,opt,name=state,proto3" json:"state,omitempty"` HouseNumber string `protobuf:"bytes,8,opt,name=house_number,json=houseNumber,proto3" json:"house_number,omitempty"` City string `protobuf:"bytes,9,opt,name=city,proto3" json:"city,omitempty"` Zip string `protobuf:"bytes,10,opt,name=zip,proto3" json:"zip,omitempty"` Latitude float32 `protobuf:"fixed32,11,opt,name=latitude,proto3" json:"latitude,omitempty"` Longitude float32 `protobuf:"fixed32,12,opt,name=longitude,proto3" json:"longitude,omitempty"` Phone string `protobuf:"bytes,13,opt,name=phone,proto3" json:"phone,omitempty"` AdditionalAddressInfo string `` /* 127-byte string literal not displayed */ CreatedAt *timestamppb.Timestamp `protobuf:"bytes,15,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` Revision int32 `protobuf:"varint,16,opt,name=revision,proto3" json:"revision,omitempty"` // contains filtered or unexported fields }
func (*Address) Descriptor
deprecated
func (*Address) GetAdditionalAddressInfo ¶
func (*Address) GetCreatedAt ¶
func (x *Address) GetCreatedAt() *timestamppb.Timestamp
func (*Address) GetCustomer ¶
func (x *Address) GetCustomer() *Address_Customer
func (*Address) GetFirstName ¶
func (*Address) GetHouseNumber ¶
func (*Address) GetLastName ¶
func (*Address) GetLatitude ¶
func (*Address) GetLongitude ¶
func (*Address) GetRevision ¶
func (*Address) GetVersion ¶
func (*Address) ProtoMessage ¶
func (*Address) ProtoMessage()
func (*Address) ProtoReflect ¶
func (x *Address) ProtoReflect() protoreflect.Message
type Address_Customer ¶
type Address_Customer struct { CustomerId string `protobuf:"bytes,1,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"` CustomerType string `protobuf:"bytes,2,opt,name=customer_type,json=customerType,proto3" json:"customer_type,omitempty"` // contains filtered or unexported fields }
func (*Address_Customer) Descriptor
deprecated
func (*Address_Customer) Descriptor() ([]byte, []int)
Deprecated: Use Address_Customer.ProtoReflect.Descriptor instead.
func (*Address_Customer) GetCustomerId ¶
func (x *Address_Customer) GetCustomerId() string
func (*Address_Customer) GetCustomerType ¶
func (x *Address_Customer) GetCustomerType() string
func (*Address_Customer) ProtoMessage ¶
func (*Address_Customer) ProtoMessage()
func (*Address_Customer) ProtoReflect ¶
func (x *Address_Customer) ProtoReflect() protoreflect.Message
func (*Address_Customer) Reset ¶
func (x *Address_Customer) Reset()
func (*Address_Customer) String ¶
func (x *Address_Customer) String() string
type Customer ¶
type Customer struct { Version int32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` FirstName string `protobuf:"bytes,3,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` LastName string `protobuf:"bytes,4,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` Gender string `protobuf:"bytes,5,opt,name=gender,proto3" json:"gender,omitempty"` CompanyName string `protobuf:"bytes,6,opt,name=company_name,json=companyName,proto3" json:"company_name,omitempty"` Email string `protobuf:"bytes,7,opt,name=email,proto3" json:"email,omitempty"` CustomerType Customer_CustomerType `` /* 137-byte string literal not displayed */ Revision int32 `protobuf:"varint,9,opt,name=revision,proto3" json:"revision,omitempty"` // contains filtered or unexported fields }
func (*Customer) Descriptor
deprecated
func (*Customer) GetCompanyName ¶
func (*Customer) GetCustomerType ¶
func (x *Customer) GetCustomerType() Customer_CustomerType
func (*Customer) GetFirstName ¶
func (*Customer) GetLastName ¶
func (*Customer) GetRevision ¶
func (*Customer) GetVersion ¶
func (*Customer) ProtoMessage ¶
func (*Customer) ProtoMessage()
func (*Customer) ProtoReflect ¶
func (x *Customer) ProtoReflect() protoreflect.Message
type Customer_CustomerType ¶
type Customer_CustomerType int32
const ( Customer_PERSONAL Customer_CustomerType = 0 Customer_BUSINESS Customer_CustomerType = 1 )
func (Customer_CustomerType) Descriptor ¶
func (Customer_CustomerType) Descriptor() protoreflect.EnumDescriptor
func (Customer_CustomerType) Enum ¶
func (x Customer_CustomerType) Enum() *Customer_CustomerType
func (Customer_CustomerType) EnumDescriptor
deprecated
func (Customer_CustomerType) EnumDescriptor() ([]byte, []int)
Deprecated: Use Customer_CustomerType.Descriptor instead.
func (Customer_CustomerType) Number ¶
func (x Customer_CustomerType) Number() protoreflect.EnumNumber
func (Customer_CustomerType) String ¶
func (x Customer_CustomerType) String() string
func (Customer_CustomerType) Type ¶
func (Customer_CustomerType) Type() protoreflect.EnumType
type Order ¶
type Order struct { Version int32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` LastUpdatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=last_updated_at,json=lastUpdatedAt,proto3" json:"last_updated_at,omitempty"` DeliveredAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=delivered_at,json=deliveredAt,proto3" json:"delivered_at,omitempty"` CompletedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=completed_at,json=completedAt,proto3" json:"completed_at,omitempty"` Customer *Customer `protobuf:"bytes,7,opt,name=Customer,proto3" json:"Customer,omitempty"` OrderValue int32 `protobuf:"varint,8,opt,name=OrderValue,proto3" json:"OrderValue,omitempty"` LineItems []*Order_LineItem `protobuf:"bytes,9,rep,name=line_items,json=lineItems,proto3" json:"line_items,omitempty"` Payment *Order_Payment `protobuf:"bytes,10,opt,name=payment,proto3" json:"payment,omitempty"` DeliveryAddress *Address `protobuf:"bytes,11,opt,name=delivery_address,json=deliveryAddress,proto3" json:"delivery_address,omitempty"` Revision int32 `protobuf:"varint,12,opt,name=revision,proto3" json:"revision,omitempty"` // contains filtered or unexported fields }
func (*Order) Descriptor
deprecated
func (*Order) GetCompletedAt ¶
func (x *Order) GetCompletedAt() *timestamppb.Timestamp
func (*Order) GetCreatedAt ¶
func (x *Order) GetCreatedAt() *timestamppb.Timestamp
func (*Order) GetCustomer ¶
func (*Order) GetDeliveredAt ¶
func (x *Order) GetDeliveredAt() *timestamppb.Timestamp
func (*Order) GetDeliveryAddress ¶
func (*Order) GetLastUpdatedAt ¶
func (x *Order) GetLastUpdatedAt() *timestamppb.Timestamp
func (*Order) GetLineItems ¶
func (x *Order) GetLineItems() []*Order_LineItem
func (*Order) GetOrderValue ¶
func (*Order) GetPayment ¶
func (x *Order) GetPayment() *Order_Payment
func (*Order) GetRevision ¶
func (*Order) GetVersion ¶
func (*Order) ProtoMessage ¶
func (*Order) ProtoMessage()
func (*Order) ProtoReflect ¶
func (x *Order) ProtoReflect() protoreflect.Message
type Order_LineItem ¶
type Order_LineItem struct { ArticleId string `protobuf:"bytes,1,opt,name=article_id,json=articleId,proto3" json:"article_id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Quantity int32 `protobuf:"varint,3,opt,name=quantity,proto3" json:"quantity,omitempty"` QuantityUnit string `protobuf:"bytes,4,opt,name=quantity_unit,json=quantityUnit,proto3" json:"quantity_unit,omitempty"` UnitPrice int32 `protobuf:"varint,5,opt,name=unit_price,json=unitPrice,proto3" json:"unit_price,omitempty"` TotalPrice int32 `protobuf:"varint,6,opt,name=total_price,json=totalPrice,proto3" json:"total_price,omitempty"` // contains filtered or unexported fields }
func (*Order_LineItem) Descriptor
deprecated
func (*Order_LineItem) Descriptor() ([]byte, []int)
Deprecated: Use Order_LineItem.ProtoReflect.Descriptor instead.
func (*Order_LineItem) GetArticleId ¶
func (x *Order_LineItem) GetArticleId() string
func (*Order_LineItem) GetName ¶
func (x *Order_LineItem) GetName() string
func (*Order_LineItem) GetQuantity ¶
func (x *Order_LineItem) GetQuantity() int32
func (*Order_LineItem) GetQuantityUnit ¶
func (x *Order_LineItem) GetQuantityUnit() string
func (*Order_LineItem) GetTotalPrice ¶
func (x *Order_LineItem) GetTotalPrice() int32
func (*Order_LineItem) GetUnitPrice ¶
func (x *Order_LineItem) GetUnitPrice() int32
func (*Order_LineItem) ProtoMessage ¶
func (*Order_LineItem) ProtoMessage()
func (*Order_LineItem) ProtoReflect ¶
func (x *Order_LineItem) ProtoReflect() protoreflect.Message
func (*Order_LineItem) Reset ¶
func (x *Order_LineItem) Reset()
func (*Order_LineItem) String ¶
func (x *Order_LineItem) String() string
type Order_Payment ¶
type Order_Payment struct { PaymentId string `protobuf:"bytes,1,opt,name=payment_id,json=paymentId,proto3" json:"payment_id,omitempty"` Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"` // contains filtered or unexported fields }
func (*Order_Payment) Descriptor
deprecated
func (*Order_Payment) Descriptor() ([]byte, []int)
Deprecated: Use Order_Payment.ProtoReflect.Descriptor instead.
func (*Order_Payment) GetMethod ¶
func (x *Order_Payment) GetMethod() string
func (*Order_Payment) GetPaymentId ¶
func (x *Order_Payment) GetPaymentId() string
func (*Order_Payment) ProtoMessage ¶
func (*Order_Payment) ProtoMessage()
func (*Order_Payment) ProtoReflect ¶
func (x *Order_Payment) ProtoReflect() protoreflect.Message
func (*Order_Payment) Reset ¶
func (x *Order_Payment) Reset()
func (*Order_Payment) String ¶
func (x *Order_Payment) String() string
Click to show internal directories.
Click to hide internal directories.