productpb

package
Version: v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2018 License: MIT Imports: 8 Imported by: 20

Documentation

Overview

Package productpb is a generated protocol buffer package.

It is generated from these files:

product/productpb/product.proto

It has these top-level messages:

Empty
Product
ProductList
NewRequest
GetRequest
DeleteRequest
UpdateRequest
ListRequest

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthProduct = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowProduct   = fmt.Errorf("proto: integer overflow")
)

Functions

func RegisterProductServiceServer

func RegisterProductServiceServer(s *grpc.Server, srv ProductServiceServer)

Types

type DeleteRequest

type DeleteRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" validate:"required,uuid4"`
}

func (*DeleteRequest) Descriptor

func (*DeleteRequest) Descriptor() ([]byte, []int)

func (*DeleteRequest) GetId

func (m *DeleteRequest) GetId() string

func (*DeleteRequest) Marshal

func (m *DeleteRequest) Marshal() (dAtA []byte, err error)

func (*DeleteRequest) MarshalTo

func (m *DeleteRequest) MarshalTo(dAtA []byte) (int, error)

func (*DeleteRequest) ProtoMessage

func (*DeleteRequest) ProtoMessage()

func (*DeleteRequest) Reset

func (m *DeleteRequest) Reset()

func (*DeleteRequest) Size

func (m *DeleteRequest) Size() (n int)

func (*DeleteRequest) String

func (m *DeleteRequest) String() string

func (*DeleteRequest) Unmarshal

func (m *DeleteRequest) Unmarshal(dAtA []byte) error

type Empty

type Empty struct {
}

func (*Empty) Descriptor

func (*Empty) Descriptor() ([]byte, []int)

func (*Empty) Marshal

func (m *Empty) Marshal() (dAtA []byte, err error)

func (*Empty) MarshalTo

func (m *Empty) MarshalTo(dAtA []byte) (int, error)

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) Reset

func (m *Empty) Reset()

func (*Empty) Size

func (m *Empty) Size() (n int)

func (*Empty) String

func (m *Empty) String() string

func (*Empty) Unmarshal

func (m *Empty) Unmarshal(dAtA []byte) error

type GetRequest

type GetRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" validate:"required,uuid4"`
}

func (*GetRequest) Descriptor

func (*GetRequest) Descriptor() ([]byte, []int)

func (*GetRequest) GetId

func (m *GetRequest) GetId() string

func (*GetRequest) Marshal

func (m *GetRequest) Marshal() (dAtA []byte, err error)

func (*GetRequest) MarshalTo

func (m *GetRequest) MarshalTo(dAtA []byte) (int, error)

func (*GetRequest) ProtoMessage

func (*GetRequest) ProtoMessage()

func (*GetRequest) Reset

func (m *GetRequest) Reset()

func (*GetRequest) Size

func (m *GetRequest) Size() (n int)

func (*GetRequest) String

func (m *GetRequest) String() string

func (*GetRequest) Unmarshal

func (m *GetRequest) Unmarshal(dAtA []byte) error

type ListRequest

type ListRequest struct {
	Page  int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	Limit int64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
}

func (*ListRequest) Descriptor

func (*ListRequest) Descriptor() ([]byte, []int)

func (*ListRequest) GetLimit

func (m *ListRequest) GetLimit() int64

func (*ListRequest) GetPage

func (m *ListRequest) GetPage() int64

func (*ListRequest) Marshal

func (m *ListRequest) Marshal() (dAtA []byte, err error)

func (*ListRequest) MarshalTo

func (m *ListRequest) MarshalTo(dAtA []byte) (int, error)

func (*ListRequest) ProtoMessage

func (*ListRequest) ProtoMessage()

func (*ListRequest) Reset

func (m *ListRequest) Reset()

func (*ListRequest) Size

func (m *ListRequest) Size() (n int)

func (*ListRequest) String

func (m *ListRequest) String() string

func (*ListRequest) Unmarshal

func (m *ListRequest) Unmarshal(dAtA []byte) error

type NewRequest

type NewRequest struct {
	Name        string            `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty" validate:"required,gte=0"`
	Active      bool              `protobuf:"varint,2,opt,name=active,proto3" json:"active,omitempty" validate:"required"`
	Attributes  []string          `protobuf:"bytes,3,rep,name=attributes" json:"attributes,omitempty" validate:"dive,required"`
	Description string            `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty" validate:"gt=0,lt=2056"`
	Images      []string          `protobuf:"bytes,5,rep,name=images" json:"images,omitempty" validate:"dive,url"`
	Metadata    map[string]string `` /* 162-byte string literal not displayed */
	Shippable   bool              `protobuf:"varint,7,opt,name=shippable,proto3" json:"shippable,omitempty" validate:""`
	Url         string            `protobuf:"bytes,8,opt,name=url,proto3" json:"url,omitempty" validate:"omitempty,url"`
}

func (*NewRequest) Descriptor

func (*NewRequest) Descriptor() ([]byte, []int)

func (*NewRequest) GetActive

func (m *NewRequest) GetActive() bool

func (*NewRequest) GetAttributes

func (m *NewRequest) GetAttributes() []string

func (*NewRequest) GetDescription

func (m *NewRequest) GetDescription() string

func (*NewRequest) GetImages

func (m *NewRequest) GetImages() []string

func (*NewRequest) GetMetadata

func (m *NewRequest) GetMetadata() map[string]string

func (*NewRequest) GetName

func (m *NewRequest) GetName() string

func (*NewRequest) GetShippable

func (m *NewRequest) GetShippable() bool

func (*NewRequest) GetUrl

func (m *NewRequest) GetUrl() string

func (*NewRequest) Marshal

func (m *NewRequest) Marshal() (dAtA []byte, err error)

func (*NewRequest) MarshalTo

func (m *NewRequest) MarshalTo(dAtA []byte) (int, error)

func (*NewRequest) ProtoMessage

func (*NewRequest) ProtoMessage()

func (*NewRequest) Reset

func (m *NewRequest) Reset()

func (*NewRequest) Size

func (m *NewRequest) Size() (n int)

func (*NewRequest) String

func (m *NewRequest) String() string

func (*NewRequest) Unmarshal

func (m *NewRequest) Unmarshal(dAtA []byte) error

type Product

type Product struct {
	Id          string            `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" bson:"_id"`
	Name        string            `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Active      bool              `protobuf:"varint,3,opt,name=active,proto3" json:"active,omitempty"`
	Attributes  []string          `protobuf:"bytes,4,rep,name=attributes" json:"attributes,omitempty"`
	Description string            `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
	Images      []string          `protobuf:"bytes,6,rep,name=images" json:"images,omitempty"`
	Metadata    map[string]string `` /* 150-byte string literal not displayed */
	Shippable   bool              `protobuf:"varint,8,opt,name=shippable,proto3" json:"shippable,omitempty"`
	Url         string            `protobuf:"bytes,9,opt,name=url,proto3" json:"url,omitempty"`
	Skus        []*skupb.Sku      `protobuf:"bytes,10,rep,name=skus" json:"skus,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"`
}

func (*Product) Descriptor

func (*Product) Descriptor() ([]byte, []int)

func (*Product) GetActive

func (m *Product) GetActive() bool

func (*Product) GetAttributes

func (m *Product) GetAttributes() []string

func (*Product) GetCreated

func (m *Product) GetCreated() int64

func (*Product) GetDescription

func (m *Product) GetDescription() string

func (*Product) GetId

func (m *Product) GetId() string

func (*Product) GetImages

func (m *Product) GetImages() []string

func (*Product) GetMetadata

func (m *Product) GetMetadata() map[string]string

func (*Product) GetName

func (m *Product) GetName() string

func (*Product) GetShippable

func (m *Product) GetShippable() bool

func (*Product) GetSkus

func (m *Product) GetSkus() []*skupb.Sku

func (*Product) GetUpdated

func (m *Product) GetUpdated() int64

func (*Product) GetUrl

func (m *Product) GetUrl() string

func (*Product) Marshal

func (m *Product) Marshal() (dAtA []byte, err error)

func (*Product) MarshalTo

func (m *Product) MarshalTo(dAtA []byte) (int, error)

func (*Product) ProtoMessage

func (*Product) ProtoMessage()

func (*Product) Reset

func (m *Product) Reset()

func (*Product) Size

func (m *Product) Size() (n int)

func (*Product) String

func (m *Product) String() string

func (*Product) Unmarshal

func (m *Product) Unmarshal(dAtA []byte) error

type ProductList

type ProductList struct {
	Products []*Product `protobuf:"bytes,1,rep,name=products" json:"products,omitempty"`
	Total    int32      `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
}

func (*ProductList) Descriptor

func (*ProductList) Descriptor() ([]byte, []int)

func (*ProductList) GetProducts

func (m *ProductList) GetProducts() []*Product

func (*ProductList) GetTotal

func (m *ProductList) GetTotal() int32

func (*ProductList) Marshal

func (m *ProductList) Marshal() (dAtA []byte, err error)

func (*ProductList) MarshalTo

func (m *ProductList) MarshalTo(dAtA []byte) (int, error)

func (*ProductList) ProtoMessage

func (*ProductList) ProtoMessage()

func (*ProductList) Reset

func (m *ProductList) Reset()

func (*ProductList) Size

func (m *ProductList) Size() (n int)

func (*ProductList) String

func (m *ProductList) String() string

func (*ProductList) Unmarshal

func (m *ProductList) Unmarshal(dAtA []byte) error

type ProductServiceClient

type ProductServiceClient interface {
	New(ctx context.Context, in *NewRequest, opts ...grpc.CallOption) (*Product, error)
	Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*Product, error)
	Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*Product, error)
	List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ProductList, error)
	Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*Empty, error)
}

func NewProductServiceClient

func NewProductServiceClient(cc *grpc.ClientConn) ProductServiceClient

type UpdateRequest

type UpdateRequest struct {
	Id          string            `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" validate:"required,uuid4"`
	Name        string            `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty" validate:"required,gte=4"`
	Active      bool              `protobuf:"varint,3,opt,name=active,proto3" json:"active,omitempty" validate:"omitempty,required"`
	Attributes  []string          `protobuf:"bytes,4,rep,name=attributes" json:"attributes,omitempty" validate:"dive,required"`
	Description string            `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty" validate:"gt=0,lt=2056"`
	Images      []string          `protobuf:"bytes,6,rep,name=images" json:"images,omitempty" validate:"dive,url"`
	Metadata    map[string]string `` /* 162-byte string literal not displayed */
	Shippable   bool              `protobuf:"varint,8,opt,name=shippable,proto3" json:"shippable,omitempty" validate:""`
	Url         string            `protobuf:"bytes,9,opt,name=url,proto3" json:"url,omitempty" validate:"omitempty,url"`
}

func (*UpdateRequest) Descriptor

func (*UpdateRequest) Descriptor() ([]byte, []int)

func (*UpdateRequest) GetActive

func (m *UpdateRequest) GetActive() bool

func (*UpdateRequest) GetAttributes

func (m *UpdateRequest) GetAttributes() []string

func (*UpdateRequest) GetDescription

func (m *UpdateRequest) GetDescription() string

func (*UpdateRequest) GetId

func (m *UpdateRequest) GetId() string

func (*UpdateRequest) GetImages

func (m *UpdateRequest) GetImages() []string

func (*UpdateRequest) GetMetadata

func (m *UpdateRequest) GetMetadata() map[string]string

func (*UpdateRequest) GetName

func (m *UpdateRequest) GetName() string

func (*UpdateRequest) GetShippable

func (m *UpdateRequest) GetShippable() bool

func (*UpdateRequest) GetUrl

func (m *UpdateRequest) GetUrl() string

func (*UpdateRequest) Marshal

func (m *UpdateRequest) Marshal() (dAtA []byte, err error)

func (*UpdateRequest) MarshalTo

func (m *UpdateRequest) MarshalTo(dAtA []byte) (int, error)

func (*UpdateRequest) ProtoMessage

func (*UpdateRequest) ProtoMessage()

func (*UpdateRequest) Reset

func (m *UpdateRequest) Reset()

func (*UpdateRequest) Size

func (m *UpdateRequest) Size() (n int)

func (*UpdateRequest) String

func (m *UpdateRequest) String() string

func (*UpdateRequest) Unmarshal

func (m *UpdateRequest) Unmarshal(dAtA []byte) error

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL