protobuf

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use Address.ProtoReflect.Descriptor instead.

func (*Address) GetAdditionalAddressInfo

func (x *Address) GetAdditionalAddressInfo() string

func (*Address) GetCity

func (x *Address) GetCity() string

func (*Address) GetCreatedAt

func (x *Address) GetCreatedAt() *timestamppb.Timestamp

func (*Address) GetCustomer

func (x *Address) GetCustomer() *Address_Customer

func (*Address) GetFirstName

func (x *Address) GetFirstName() string

func (*Address) GetHouseNumber

func (x *Address) GetHouseNumber() string

func (*Address) GetId

func (x *Address) GetId() string

func (*Address) GetLastName

func (x *Address) GetLastName() string

func (*Address) GetLatitude

func (x *Address) GetLatitude() float32

func (*Address) GetLongitude

func (x *Address) GetLongitude() float32

func (*Address) GetPhone

func (x *Address) GetPhone() string

func (*Address) GetRevision

func (x *Address) GetRevision() int32

func (*Address) GetState

func (x *Address) GetState() string

func (*Address) GetType

func (x *Address) GetType() string

func (*Address) GetVersion

func (x *Address) GetVersion() int32

func (*Address) GetZip

func (x *Address) GetZip() string

func (*Address) ProtoMessage

func (*Address) ProtoMessage()

func (*Address) ProtoReflect

func (x *Address) ProtoReflect() protoreflect.Message

func (*Address) Reset

func (x *Address) Reset()

func (*Address) String

func (x *Address) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Customer.ProtoReflect.Descriptor instead.

func (*Customer) GetCompanyName

func (x *Customer) GetCompanyName() string

func (*Customer) GetCustomerType

func (x *Customer) GetCustomerType() Customer_CustomerType

func (*Customer) GetEmail

func (x *Customer) GetEmail() string

func (*Customer) GetFirstName

func (x *Customer) GetFirstName() string

func (*Customer) GetGender

func (x *Customer) GetGender() string

func (*Customer) GetId

func (x *Customer) GetId() string

func (*Customer) GetLastName

func (x *Customer) GetLastName() string

func (*Customer) GetRevision

func (x *Customer) GetRevision() int32

func (*Customer) GetVersion

func (x *Customer) GetVersion() int32

func (*Customer) ProtoMessage

func (*Customer) ProtoMessage()

func (*Customer) ProtoReflect

func (x *Customer) ProtoReflect() protoreflect.Message

func (*Customer) Reset

func (x *Customer) Reset()

func (*Customer) String

func (x *Customer) String() string

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) Enum

func (Customer_CustomerType) EnumDescriptor deprecated

func (Customer_CustomerType) EnumDescriptor() ([]byte, []int)

Deprecated: Use Customer_CustomerType.Descriptor instead.

func (Customer_CustomerType) Number

func (Customer_CustomerType) String

func (x Customer_CustomerType) String() string

func (Customer_CustomerType) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use Order.ProtoReflect.Descriptor instead.

func (*Order) GetCompletedAt

func (x *Order) GetCompletedAt() *timestamppb.Timestamp

func (*Order) GetCreatedAt

func (x *Order) GetCreatedAt() *timestamppb.Timestamp

func (*Order) GetCustomer

func (x *Order) GetCustomer() *Customer

func (*Order) GetDeliveredAt

func (x *Order) GetDeliveredAt() *timestamppb.Timestamp

func (*Order) GetDeliveryAddress

func (x *Order) GetDeliveryAddress() *Address

func (*Order) GetId

func (x *Order) GetId() string

func (*Order) GetLastUpdatedAt

func (x *Order) GetLastUpdatedAt() *timestamppb.Timestamp

func (*Order) GetLineItems

func (x *Order) GetLineItems() []*Order_LineItem

func (*Order) GetOrderValue

func (x *Order) GetOrderValue() int32

func (*Order) GetPayment

func (x *Order) GetPayment() *Order_Payment

func (*Order) GetRevision

func (x *Order) GetRevision() int32

func (*Order) GetVersion

func (x *Order) GetVersion() int32

func (*Order) ProtoMessage

func (*Order) ProtoMessage()

func (*Order) ProtoReflect

func (x *Order) ProtoReflect() protoreflect.Message

func (*Order) Reset

func (x *Order) Reset()

func (*Order) String

func (x *Order) String() string

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

Jump to

Keyboard shortcuts

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