apipb

package
v0.0.0-...-7c5988b Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Inventory_SearchProducts_FullMethodName      = "/api.v1.Inventory/SearchProducts"
	Inventory_CreateProduct_FullMethodName       = "/api.v1.Inventory/CreateProduct"
	Inventory_UpdateProduct_FullMethodName       = "/api.v1.Inventory/UpdateProduct"
	Inventory_DeleteProduct_FullMethodName       = "/api.v1.Inventory/DeleteProduct"
	Inventory_GetProduct_FullMethodName          = "/api.v1.Inventory/GetProduct"
	Inventory_CreateProductReview_FullMethodName = "/api.v1.Inventory/CreateProductReview"
	Inventory_UpdateProductReview_FullMethodName = "/api.v1.Inventory/UpdateProductReview"
	Inventory_DeleteProductReview_FullMethodName = "/api.v1.Inventory/DeleteProductReview"
	Inventory_GetProductReview_FullMethodName    = "/api.v1.Inventory/GetProductReview"
)
View Source
const (
	Default_SearchProductsRequest_Page = int32(1)
)

Default values for SearchProductsRequest fields.

Variables

View Source
var Inventory_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.v1.Inventory",
	HandlerType: (*InventoryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SearchProducts",
			Handler:    _Inventory_SearchProducts_Handler,
		},
		{
			MethodName: "CreateProduct",
			Handler:    _Inventory_CreateProduct_Handler,
		},
		{
			MethodName: "UpdateProduct",
			Handler:    _Inventory_UpdateProduct_Handler,
		},
		{
			MethodName: "DeleteProduct",
			Handler:    _Inventory_DeleteProduct_Handler,
		},
		{
			MethodName: "GetProduct",
			Handler:    _Inventory_GetProduct_Handler,
		},
		{
			MethodName: "CreateProductReview",
			Handler:    _Inventory_CreateProductReview_Handler,
		},
		{
			MethodName: "UpdateProductReview",
			Handler:    _Inventory_UpdateProductReview_Handler,
		},
		{
			MethodName: "DeleteProductReview",
			Handler:    _Inventory_DeleteProductReview_Handler,
		},
		{
			MethodName: "GetProductReview",
			Handler:    _Inventory_GetProductReview_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api.proto",
}

Inventory_ServiceDesc is the grpc.ServiceDesc for Inventory service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterInventoryServer

func RegisterInventoryServer(s grpc.ServiceRegistrar, srv InventoryServer)

Types

type CreateProductRequest

type CreateProductRequest struct {
	XXX_raceDetectHookData protoimpl.RaceDetectHookData
	XXX_presence           [1]uint32
	// contains filtered or unexported fields
}

CreateProductRequest message.

func (*CreateProductRequest) ClearDescription

func (x *CreateProductRequest) ClearDescription()

func (*CreateProductRequest) ClearId

func (x *CreateProductRequest) ClearId()

func (*CreateProductRequest) ClearName

func (x *CreateProductRequest) ClearName()

func (*CreateProductRequest) ClearPrice

func (x *CreateProductRequest) ClearPrice()

func (*CreateProductRequest) GetDescription

func (x *CreateProductRequest) GetDescription() string

func (*CreateProductRequest) GetId

func (x *CreateProductRequest) GetId() string

func (*CreateProductRequest) GetName

func (x *CreateProductRequest) GetName() string

func (*CreateProductRequest) GetPrice

func (x *CreateProductRequest) GetPrice() int64

func (*CreateProductRequest) HasDescription

func (x *CreateProductRequest) HasDescription() bool

func (*CreateProductRequest) HasId

func (x *CreateProductRequest) HasId() bool

func (*CreateProductRequest) HasName

func (x *CreateProductRequest) HasName() bool

func (*CreateProductRequest) HasPrice

func (x *CreateProductRequest) HasPrice() bool

func (*CreateProductRequest) ProtoMessage

func (*CreateProductRequest) ProtoMessage()

func (*CreateProductRequest) ProtoReflect

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

func (*CreateProductRequest) Reset

func (x *CreateProductRequest) Reset()

func (*CreateProductRequest) SetDescription

func (x *CreateProductRequest) SetDescription(v string)

func (*CreateProductRequest) SetId

func (x *CreateProductRequest) SetId(v string)

func (*CreateProductRequest) SetName

func (x *CreateProductRequest) SetName(v string)

func (*CreateProductRequest) SetPrice

func (x *CreateProductRequest) SetPrice(v int64)

func (*CreateProductRequest) String

func (x *CreateProductRequest) String() string

type CreateProductRequest_builder

type CreateProductRequest_builder struct {
	Id          *string
	Name        *string
	Description *string
	Price       *int64
	// contains filtered or unexported fields
}

func (CreateProductRequest_builder) Build

type CreateProductResponse

type CreateProductResponse struct {
	// contains filtered or unexported fields
}

CreateProductResponse message.

func (*CreateProductResponse) ProtoMessage

func (*CreateProductResponse) ProtoMessage()

func (*CreateProductResponse) ProtoReflect

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

func (*CreateProductResponse) Reset

func (x *CreateProductResponse) Reset()

func (*CreateProductResponse) String

func (x *CreateProductResponse) String() string

type CreateProductResponse_builder

type CreateProductResponse_builder struct {
	// contains filtered or unexported fields
}

func (CreateProductResponse_builder) Build

type CreateProductReviewRequest

type CreateProductReviewRequest struct {
	XXX_raceDetectHookData protoimpl.RaceDetectHookData
	XXX_presence           [1]uint32
	// contains filtered or unexported fields
}

CreateProductReviewRequest message.

func (*CreateProductReviewRequest) ClearDescription

func (x *CreateProductReviewRequest) ClearDescription()

func (*CreateProductReviewRequest) ClearProductId

func (x *CreateProductReviewRequest) ClearProductId()

func (*CreateProductReviewRequest) ClearReviewerId

func (x *CreateProductReviewRequest) ClearReviewerId()

func (*CreateProductReviewRequest) ClearScore

func (x *CreateProductReviewRequest) ClearScore()

func (*CreateProductReviewRequest) ClearTitle

func (x *CreateProductReviewRequest) ClearTitle()

func (*CreateProductReviewRequest) GetDescription

func (x *CreateProductReviewRequest) GetDescription() string

func (*CreateProductReviewRequest) GetProductId

func (x *CreateProductReviewRequest) GetProductId() string

func (*CreateProductReviewRequest) GetReviewerId

func (x *CreateProductReviewRequest) GetReviewerId() string

func (*CreateProductReviewRequest) GetScore

func (x *CreateProductReviewRequest) GetScore() int32

func (*CreateProductReviewRequest) GetTitle

func (x *CreateProductReviewRequest) GetTitle() string

func (*CreateProductReviewRequest) HasDescription

func (x *CreateProductReviewRequest) HasDescription() bool

func (*CreateProductReviewRequest) HasProductId

func (x *CreateProductReviewRequest) HasProductId() bool

func (*CreateProductReviewRequest) HasReviewerId

func (x *CreateProductReviewRequest) HasReviewerId() bool

func (*CreateProductReviewRequest) HasScore

func (x *CreateProductReviewRequest) HasScore() bool

func (*CreateProductReviewRequest) HasTitle

func (x *CreateProductReviewRequest) HasTitle() bool

func (*CreateProductReviewRequest) ProtoMessage

func (*CreateProductReviewRequest) ProtoMessage()

func (*CreateProductReviewRequest) ProtoReflect

func (*CreateProductReviewRequest) Reset

func (x *CreateProductReviewRequest) Reset()

func (*CreateProductReviewRequest) SetDescription

func (x *CreateProductReviewRequest) SetDescription(v string)

func (*CreateProductReviewRequest) SetProductId

func (x *CreateProductReviewRequest) SetProductId(v string)

func (*CreateProductReviewRequest) SetReviewerId

func (x *CreateProductReviewRequest) SetReviewerId(v string)

func (*CreateProductReviewRequest) SetScore

func (x *CreateProductReviewRequest) SetScore(v int32)

func (*CreateProductReviewRequest) SetTitle

func (x *CreateProductReviewRequest) SetTitle(v string)

func (*CreateProductReviewRequest) String

func (x *CreateProductReviewRequest) String() string

type CreateProductReviewRequest_builder

type CreateProductReviewRequest_builder struct {
	ProductId   *string
	ReviewerId  *string
	Score       *int32
	Title       *string
	Description *string
	// contains filtered or unexported fields
}

func (CreateProductReviewRequest_builder) Build

type CreateProductReviewResponse

type CreateProductReviewResponse struct {
	XXX_raceDetectHookData protoimpl.RaceDetectHookData
	XXX_presence           [1]uint32
	// contains filtered or unexported fields
}

CreateProductReviewResponse message.

func (*CreateProductReviewResponse) ClearId

func (x *CreateProductReviewResponse) ClearId()

func (*CreateProductReviewResponse) GetId

func (*CreateProductReviewResponse) HasId

func (x *CreateProductReviewResponse) HasId() bool

func (*CreateProductReviewResponse) ProtoMessage

func (*CreateProductReviewResponse) ProtoMessage()

func (*CreateProductReviewResponse) ProtoReflect

func (*CreateProductReviewResponse) Reset

func (x *CreateProductReviewResponse) Reset()

func (*CreateProductReviewResponse) SetId

func (x *CreateProductReviewResponse) SetId(v string)

func (*CreateProductReviewResponse) String

func (x *CreateProductReviewResponse) String() string

type CreateProductReviewResponse_builder

type CreateProductReviewResponse_builder struct {
	Id *string
	// contains filtered or unexported fields
}

func (CreateProductReviewResponse_builder) Build

type DeleteProductRequest

type DeleteProductRequest struct {
	XXX_raceDetectHookData protoimpl.RaceDetectHookData
	XXX_presence           [1]uint32
	// contains filtered or unexported fields
}

DeleteProductRequest message.

func (*DeleteProductRequest) ClearId

func (x *DeleteProductRequest) ClearId()

func (*DeleteProductRequest) GetId

func (x *DeleteProductRequest) GetId() string

func (*DeleteProductRequest) HasId

func (x *DeleteProductRequest) HasId() bool

func (*DeleteProductRequest) ProtoMessage

func (*DeleteProductRequest) ProtoMessage()

func (*DeleteProductRequest) ProtoReflect

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

func (*DeleteProductRequest) Reset

func (x *DeleteProductRequest) Reset()

func (*DeleteProductRequest) SetId

func (x *DeleteProductRequest) SetId(v string)

func (*DeleteProductRequest) String

func (x *DeleteProductRequest) String() string

type DeleteProductRequest_builder

type DeleteProductRequest_builder struct {
	Id *string
	// contains filtered or unexported fields
}

func (DeleteProductRequest_builder) Build

type DeleteProductResponse

type DeleteProductResponse struct {
	// contains filtered or unexported fields
}

DeleteProductResponse message.

func (*DeleteProductResponse) ProtoMessage

func (*DeleteProductResponse) ProtoMessage()

func (*DeleteProductResponse) ProtoReflect

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

func (*DeleteProductResponse) Reset

func (x *DeleteProductResponse) Reset()

func (*DeleteProductResponse) String

func (x *DeleteProductResponse) String() string

type DeleteProductResponse_builder

type DeleteProductResponse_builder struct {
	// contains filtered or unexported fields
}

func (DeleteProductResponse_builder) Build

type DeleteProductReviewRequest

type DeleteProductReviewRequest struct {
	XXX_raceDetectHookData protoimpl.RaceDetectHookData
	XXX_presence           [1]uint32
	// contains filtered or unexported fields
}

DeleteProductReviewRequest message.

func (*DeleteProductReviewRequest) ClearId

func (x *DeleteProductReviewRequest) ClearId()

func (*DeleteProductReviewRequest) GetId

func (*DeleteProductReviewRequest) HasId

func (x *DeleteProductReviewRequest) HasId() bool

func (*DeleteProductReviewRequest) ProtoMessage

func (*DeleteProductReviewRequest) ProtoMessage()

func (*DeleteProductReviewRequest) ProtoReflect

func (*DeleteProductReviewRequest) Reset

func (x *DeleteProductReviewRequest) Reset()

func (*DeleteProductReviewRequest) SetId

func (x *DeleteProductReviewRequest) SetId(v string)

func (*DeleteProductReviewRequest) String

func (x *DeleteProductReviewRequest) String() string

type DeleteProductReviewRequest_builder

type DeleteProductReviewRequest_builder struct {
	Id *string
	// contains filtered or unexported fields
}

func (DeleteProductReviewRequest_builder) Build

type DeleteProductReviewResponse

type DeleteProductReviewResponse struct {
	// contains filtered or unexported fields
}

DeleteProductReviewResponse message.

func (*DeleteProductReviewResponse) ProtoMessage

func (*DeleteProductReviewResponse) ProtoMessage()

func (*DeleteProductReviewResponse) ProtoReflect

func (*DeleteProductReviewResponse) Reset

func (x *DeleteProductReviewResponse) Reset()

func (*DeleteProductReviewResponse) String

func (x *DeleteProductReviewResponse) String() string

type DeleteProductReviewResponse_builder

type DeleteProductReviewResponse_builder struct {
	// contains filtered or unexported fields
}

func (DeleteProductReviewResponse_builder) Build

type GetProductRequest

type GetProductRequest struct {
	XXX_raceDetectHookData protoimpl.RaceDetectHookData
	XXX_presence           [1]uint32
	// contains filtered or unexported fields
}

GetProductRequest message.

func (*GetProductRequest) ClearId

func (x *GetProductRequest) ClearId()

func (*GetProductRequest) GetId

func (x *GetProductRequest) GetId() string

func (*GetProductRequest) HasId

func (x *GetProductRequest) HasId() bool

func (*GetProductRequest) ProtoMessage

func (*GetProductRequest) ProtoMessage()

func (*GetProductRequest) ProtoReflect

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

func (*GetProductRequest) Reset

func (x *GetProductRequest) Reset()

func (*GetProductRequest) SetId

func (x *GetProductRequest) SetId(v string)

func (*GetProductRequest) String

func (x *GetProductRequest) String() string

type GetProductRequest_builder

type GetProductRequest_builder struct {
	Id *string
	// contains filtered or unexported fields
}

func (GetProductRequest_builder) Build

type GetProductResponse

type GetProductResponse struct {
	XXX_raceDetectHookData protoimpl.RaceDetectHookData
	XXX_presence           [1]uint32
	// contains filtered or unexported fields
}

GetProductResponse message.

func (*GetProductResponse) ClearCreatedAt

func (x *GetProductResponse) ClearCreatedAt()

func (*GetProductResponse) ClearDescription

func (x *GetProductResponse) ClearDescription()

func (*GetProductResponse) ClearId

func (x *GetProductResponse) ClearId()

func (*GetProductResponse) ClearModifiedAt

func (x *GetProductResponse) ClearModifiedAt()

func (*GetProductResponse) ClearName

func (x *GetProductResponse) ClearName()

func (*GetProductResponse) ClearPrice

func (x *GetProductResponse) ClearPrice()

func (*GetProductResponse) GetCreatedAt

func (x *GetProductResponse) GetCreatedAt() string

func (*GetProductResponse) GetDescription

func (x *GetProductResponse) GetDescription() string

func (*GetProductResponse) GetId

func (x *GetProductResponse) GetId() string

func (*GetProductResponse) GetModifiedAt

func (x *GetProductResponse) GetModifiedAt() string

func (*GetProductResponse) GetName

func (x *GetProductResponse) GetName() string

func (*GetProductResponse) GetPrice

func (x *GetProductResponse) GetPrice() int64

func (*GetProductResponse) HasCreatedAt

func (x *GetProductResponse) HasCreatedAt() bool

func (*GetProductResponse) HasDescription

func (x *GetProductResponse) HasDescription() bool

func (*GetProductResponse) HasId

func (x *GetProductResponse) HasId() bool

func (*GetProductResponse) HasModifiedAt

func (x *GetProductResponse) HasModifiedAt() bool

func (*GetProductResponse) HasName

func (x *GetProductResponse) HasName() bool

func (*GetProductResponse) HasPrice

func (x *GetProductResponse) HasPrice() bool

func (*GetProductResponse) ProtoMessage

func (*GetProductResponse) ProtoMessage()

func (*GetProductResponse) ProtoReflect

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

func (*GetProductResponse) Reset

func (x *GetProductResponse) Reset()

func (*GetProductResponse) SetCreatedAt

func (x *GetProductResponse) SetCreatedAt(v string)

func (*GetProductResponse) SetDescription

func (x *GetProductResponse) SetDescription(v string)

func (*GetProductResponse) SetId

func (x *GetProductResponse) SetId(v string)

func (*GetProductResponse) SetModifiedAt

func (x *GetProductResponse) SetModifiedAt(v string)

func (*GetProductResponse) SetName

func (x *GetProductResponse) SetName(v string)

func (*GetProductResponse) SetPrice

func (x *GetProductResponse) SetPrice(v int64)

func (*GetProductResponse) String

func (x *GetProductResponse) String() string

type GetProductResponse_builder

type GetProductResponse_builder struct {
	Id          *string
	Price       *int64
	Name        *string
	Description *string
	CreatedAt   *string
	ModifiedAt  *string
	// contains filtered or unexported fields
}

func (GetProductResponse_builder) Build

type GetProductReviewRequest

type GetProductReviewRequest struct {
	XXX_raceDetectHookData protoimpl.RaceDetectHookData
	XXX_presence           [1]uint32
	// contains filtered or unexported fields
}

GetProductReviewRequest message.

func (*GetProductReviewRequest) ClearId

func (x *GetProductReviewRequest) ClearId()

func (*GetProductReviewRequest) GetId

func (x *GetProductReviewRequest) GetId() string

func (*GetProductReviewRequest) HasId

func (x *GetProductReviewRequest) HasId() bool

func (*GetProductReviewRequest) ProtoMessage

func (*GetProductReviewRequest) ProtoMessage()

func (*GetProductReviewRequest) ProtoReflect

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

func (*GetProductReviewRequest) Reset

func (x *GetProductReviewRequest) Reset()

func (*GetProductReviewRequest) SetId

func (x *GetProductReviewRequest) SetId(v string)

func (*GetProductReviewRequest) String

func (x *GetProductReviewRequest) String() string

type GetProductReviewRequest_builder

type GetProductReviewRequest_builder struct {
	Id *string
	// contains filtered or unexported fields
}

func (GetProductReviewRequest_builder) Build

type GetProductReviewResponse

type GetProductReviewResponse struct {
	XXX_raceDetectHookData protoimpl.RaceDetectHookData
	XXX_presence           [1]uint32
	// contains filtered or unexported fields
}

GetProductReviewResponse message.

func (*GetProductReviewResponse) ClearCreatedAt

func (x *GetProductReviewResponse) ClearCreatedAt()

func (*GetProductReviewResponse) ClearDescription

func (x *GetProductReviewResponse) ClearDescription()

func (*GetProductReviewResponse) ClearId

func (x *GetProductReviewResponse) ClearId()

func (*GetProductReviewResponse) ClearModifiedAt

func (x *GetProductReviewResponse) ClearModifiedAt()

func (*GetProductReviewResponse) ClearProductId

func (x *GetProductReviewResponse) ClearProductId()

func (*GetProductReviewResponse) ClearReviewerId

func (x *GetProductReviewResponse) ClearReviewerId()

func (*GetProductReviewResponse) ClearScore

func (x *GetProductReviewResponse) ClearScore()

func (*GetProductReviewResponse) ClearTitle

func (x *GetProductReviewResponse) ClearTitle()

func (*GetProductReviewResponse) GetCreatedAt

func (x *GetProductReviewResponse) GetCreatedAt() string

func (*GetProductReviewResponse) GetDescription

func (x *GetProductReviewResponse) GetDescription() string

func (*GetProductReviewResponse) GetId

func (x *GetProductReviewResponse) GetId() string

func (*GetProductReviewResponse) GetModifiedAt

func (x *GetProductReviewResponse) GetModifiedAt() string

func (*GetProductReviewResponse) GetProductId

func (x *GetProductReviewResponse) GetProductId() string

func (*GetProductReviewResponse) GetReviewerId

func (x *GetProductReviewResponse) GetReviewerId() string

func (*GetProductReviewResponse) GetScore

func (x *GetProductReviewResponse) GetScore() int32

func (*GetProductReviewResponse) GetTitle

func (x *GetProductReviewResponse) GetTitle() string

func (*GetProductReviewResponse) HasCreatedAt

func (x *GetProductReviewResponse) HasCreatedAt() bool

func (*GetProductReviewResponse) HasDescription

func (x *GetProductReviewResponse) HasDescription() bool

func (*GetProductReviewResponse) HasId

func (x *GetProductReviewResponse) HasId() bool

func (*GetProductReviewResponse) HasModifiedAt

func (x *GetProductReviewResponse) HasModifiedAt() bool

func (*GetProductReviewResponse) HasProductId

func (x *GetProductReviewResponse) HasProductId() bool

func (*GetProductReviewResponse) HasReviewerId

func (x *GetProductReviewResponse) HasReviewerId() bool

func (*GetProductReviewResponse) HasScore

func (x *GetProductReviewResponse) HasScore() bool

func (*GetProductReviewResponse) HasTitle

func (x *GetProductReviewResponse) HasTitle() bool

func (*GetProductReviewResponse) ProtoMessage

func (*GetProductReviewResponse) ProtoMessage()

func (*GetProductReviewResponse) ProtoReflect

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

func (*GetProductReviewResponse) Reset

func (x *GetProductReviewResponse) Reset()

func (*GetProductReviewResponse) SetCreatedAt

func (x *GetProductReviewResponse) SetCreatedAt(v string)

func (*GetProductReviewResponse) SetDescription

func (x *GetProductReviewResponse) SetDescription(v string)

func (*GetProductReviewResponse) SetId

func (x *GetProductReviewResponse) SetId(v string)

func (*GetProductReviewResponse) SetModifiedAt

func (x *GetProductReviewResponse) SetModifiedAt(v string)

func (*GetProductReviewResponse) SetProductId

func (x *GetProductReviewResponse) SetProductId(v string)

func (*GetProductReviewResponse) SetReviewerId

func (x *GetProductReviewResponse) SetReviewerId(v string)

func (*GetProductReviewResponse) SetScore

func (x *GetProductReviewResponse) SetScore(v int32)

func (*GetProductReviewResponse) SetTitle

func (x *GetProductReviewResponse) SetTitle(v string)

func (*GetProductReviewResponse) String

func (x *GetProductReviewResponse) String() string

type GetProductReviewResponse_builder

type GetProductReviewResponse_builder struct {
	Id          *string
	ProductId   *string
	ReviewerId  *string
	Score       *int32
	Title       *string
	Description *string
	CreatedAt   *string
	ModifiedAt  *string
	// contains filtered or unexported fields
}

func (GetProductReviewResponse_builder) Build

type InventoryClient

InventoryClient is the client API for Inventory service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

Inventory gRPC API service.

func NewInventoryClient

func NewInventoryClient(cc grpc.ClientConnInterface) InventoryClient

type InventoryServer

InventoryServer is the server API for Inventory service. All implementations must embed UnimplementedInventoryServer for forward compatibility.

Inventory gRPC API service.

type Product

type Product struct {
	XXX_raceDetectHookData protoimpl.RaceDetectHookData
	XXX_presence           [1]uint32
	// contains filtered or unexported fields
}

Product message.

func (*Product) ClearDescription

func (x *Product) ClearDescription()

func (*Product) ClearId

func (x *Product) ClearId()

func (*Product) ClearName

func (x *Product) ClearName()

func (*Product) ClearPrice

func (x *Product) ClearPrice()

func (*Product) GetDescription

func (x *Product) GetDescription() string

func (*Product) GetId

func (x *Product) GetId() string

func (*Product) GetName

func (x *Product) GetName() string

func (*Product) GetPrice

func (x *Product) GetPrice() int64

func (*Product) HasDescription

func (x *Product) HasDescription() bool

func (*Product) HasId

func (x *Product) HasId() bool

func (*Product) HasName

func (x *Product) HasName() bool

func (*Product) HasPrice

func (x *Product) HasPrice() bool

func (*Product) ProtoMessage

func (*Product) ProtoMessage()

func (*Product) ProtoReflect

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

func (*Product) Reset

func (x *Product) Reset()

func (*Product) SetDescription

func (x *Product) SetDescription(v string)

func (*Product) SetId

func (x *Product) SetId(v string)

func (*Product) SetName

func (x *Product) SetName(v string)

func (*Product) SetPrice

func (x *Product) SetPrice(v int64)

func (*Product) String

func (x *Product) String() string

type Product_builder

type Product_builder struct {
	Id          *string
	Price       *int64
	Name        *string
	Description *string
	// contains filtered or unexported fields
}

func (Product_builder) Build

func (b0 Product_builder) Build() *Product

type SearchProductsRequest

type SearchProductsRequest struct {
	XXX_raceDetectHookData protoimpl.RaceDetectHookData
	XXX_presence           [1]uint32
	// contains filtered or unexported fields
}

SearchProductsRequest message.

func (*SearchProductsRequest) ClearMaxPrice

func (x *SearchProductsRequest) ClearMaxPrice()

func (*SearchProductsRequest) ClearMinPrice

func (x *SearchProductsRequest) ClearMinPrice()

func (*SearchProductsRequest) ClearPage

func (x *SearchProductsRequest) ClearPage()

func (*SearchProductsRequest) ClearQueryString

func (x *SearchProductsRequest) ClearQueryString()

func (*SearchProductsRequest) GetMaxPrice

func (x *SearchProductsRequest) GetMaxPrice() int64

func (*SearchProductsRequest) GetMinPrice

func (x *SearchProductsRequest) GetMinPrice() int64

func (*SearchProductsRequest) GetPage

func (x *SearchProductsRequest) GetPage() int32

func (*SearchProductsRequest) GetQueryString

func (x *SearchProductsRequest) GetQueryString() string

func (*SearchProductsRequest) HasMaxPrice

func (x *SearchProductsRequest) HasMaxPrice() bool

func (*SearchProductsRequest) HasMinPrice

func (x *SearchProductsRequest) HasMinPrice() bool

func (*SearchProductsRequest) HasPage

func (x *SearchProductsRequest) HasPage() bool

func (*SearchProductsRequest) HasQueryString

func (x *SearchProductsRequest) HasQueryString() bool

func (*SearchProductsRequest) ProtoMessage

func (*SearchProductsRequest) ProtoMessage()

func (*SearchProductsRequest) ProtoReflect

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

func (*SearchProductsRequest) Reset

func (x *SearchProductsRequest) Reset()

func (*SearchProductsRequest) SetMaxPrice

func (x *SearchProductsRequest) SetMaxPrice(v int64)

func (*SearchProductsRequest) SetMinPrice

func (x *SearchProductsRequest) SetMinPrice(v int64)

func (*SearchProductsRequest) SetPage

func (x *SearchProductsRequest) SetPage(v int32)

func (*SearchProductsRequest) SetQueryString

func (x *SearchProductsRequest) SetQueryString(v string)

func (*SearchProductsRequest) String

func (x *SearchProductsRequest) String() string

type SearchProductsRequest_builder

type SearchProductsRequest_builder struct {
	QueryString *string
	MinPrice    *int64
	MaxPrice    *int64
	Page        *int32
	// contains filtered or unexported fields
}

func (SearchProductsRequest_builder) Build

type SearchProductsResponse

type SearchProductsResponse struct {
	XXX_raceDetectHookData protoimpl.RaceDetectHookData
	XXX_presence           [1]uint32
	// contains filtered or unexported fields
}

SearchProductsResponse message.

func (*SearchProductsResponse) ClearTotal

func (x *SearchProductsResponse) ClearTotal()

func (*SearchProductsResponse) GetItems

func (x *SearchProductsResponse) GetItems() []*Product

func (*SearchProductsResponse) GetTotal

func (x *SearchProductsResponse) GetTotal() int32

func (*SearchProductsResponse) HasTotal

func (x *SearchProductsResponse) HasTotal() bool

func (*SearchProductsResponse) ProtoMessage

func (*SearchProductsResponse) ProtoMessage()

func (*SearchProductsResponse) ProtoReflect

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

func (*SearchProductsResponse) Reset

func (x *SearchProductsResponse) Reset()

func (*SearchProductsResponse) SetItems

func (x *SearchProductsResponse) SetItems(v []*Product)

func (*SearchProductsResponse) SetTotal

func (x *SearchProductsResponse) SetTotal(v int32)

func (*SearchProductsResponse) String

func (x *SearchProductsResponse) String() string

type SearchProductsResponse_builder

type SearchProductsResponse_builder struct {
	Total *int32
	Items []*Product
	// contains filtered or unexported fields
}

func (SearchProductsResponse_builder) Build

type UnimplementedInventoryServer

type UnimplementedInventoryServer struct{}

UnimplementedInventoryServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedInventoryServer) CreateProduct

func (UnimplementedInventoryServer) DeleteProduct

func (UnimplementedInventoryServer) GetProduct

func (UnimplementedInventoryServer) GetProductReview

func (UnimplementedInventoryServer) SearchProducts

func (UnimplementedInventoryServer) UpdateProduct

type UnsafeInventoryServer

type UnsafeInventoryServer interface {
	// contains filtered or unexported methods
}

UnsafeInventoryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to InventoryServer will result in compilation errors.

type UpdateProductRequest

type UpdateProductRequest struct {
	XXX_raceDetectHookData protoimpl.RaceDetectHookData
	XXX_presence           [1]uint32
	// contains filtered or unexported fields
}

UpdateProductRequest message.

func (*UpdateProductRequest) ClearDescription

func (x *UpdateProductRequest) ClearDescription()

func (*UpdateProductRequest) ClearId

func (x *UpdateProductRequest) ClearId()

func (*UpdateProductRequest) ClearName

func (x *UpdateProductRequest) ClearName()

func (*UpdateProductRequest) ClearPrice

func (x *UpdateProductRequest) ClearPrice()

func (*UpdateProductRequest) GetDescription

func (x *UpdateProductRequest) GetDescription() string

func (*UpdateProductRequest) GetId

func (x *UpdateProductRequest) GetId() string

func (*UpdateProductRequest) GetName

func (x *UpdateProductRequest) GetName() string

func (*UpdateProductRequest) GetPrice

func (x *UpdateProductRequest) GetPrice() int64

func (*UpdateProductRequest) HasDescription

func (x *UpdateProductRequest) HasDescription() bool

func (*UpdateProductRequest) HasId

func (x *UpdateProductRequest) HasId() bool

func (*UpdateProductRequest) HasName

func (x *UpdateProductRequest) HasName() bool

func (*UpdateProductRequest) HasPrice

func (x *UpdateProductRequest) HasPrice() bool

func (*UpdateProductRequest) ProtoMessage

func (*UpdateProductRequest) ProtoMessage()

func (*UpdateProductRequest) ProtoReflect

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

func (*UpdateProductRequest) Reset

func (x *UpdateProductRequest) Reset()

func (*UpdateProductRequest) SetDescription

func (x *UpdateProductRequest) SetDescription(v string)

func (*UpdateProductRequest) SetId

func (x *UpdateProductRequest) SetId(v string)

func (*UpdateProductRequest) SetName

func (x *UpdateProductRequest) SetName(v string)

func (*UpdateProductRequest) SetPrice

func (x *UpdateProductRequest) SetPrice(v int64)

func (*UpdateProductRequest) String

func (x *UpdateProductRequest) String() string

type UpdateProductRequest_builder

type UpdateProductRequest_builder struct {
	Id          *string
	Name        *string
	Description *string
	Price       *int64
	// contains filtered or unexported fields
}

func (UpdateProductRequest_builder) Build

type UpdateProductResponse

type UpdateProductResponse struct {
	// contains filtered or unexported fields
}

UpdateProductResponse message.

func (*UpdateProductResponse) ProtoMessage

func (*UpdateProductResponse) ProtoMessage()

func (*UpdateProductResponse) ProtoReflect

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

func (*UpdateProductResponse) Reset

func (x *UpdateProductResponse) Reset()

func (*UpdateProductResponse) String

func (x *UpdateProductResponse) String() string

type UpdateProductResponse_builder

type UpdateProductResponse_builder struct {
	// contains filtered or unexported fields
}

func (UpdateProductResponse_builder) Build

type UpdateProductReviewRequest

type UpdateProductReviewRequest struct {
	XXX_raceDetectHookData protoimpl.RaceDetectHookData
	XXX_presence           [1]uint32
	// contains filtered or unexported fields
}

UpdateProductReviewRequest message.

func (*UpdateProductReviewRequest) ClearDescription

func (x *UpdateProductReviewRequest) ClearDescription()

func (*UpdateProductReviewRequest) ClearId

func (x *UpdateProductReviewRequest) ClearId()

func (*UpdateProductReviewRequest) ClearScore

func (x *UpdateProductReviewRequest) ClearScore()

func (*UpdateProductReviewRequest) ClearTitle

func (x *UpdateProductReviewRequest) ClearTitle()

func (*UpdateProductReviewRequest) GetDescription

func (x *UpdateProductReviewRequest) GetDescription() string

func (*UpdateProductReviewRequest) GetId

func (*UpdateProductReviewRequest) GetScore

func (x *UpdateProductReviewRequest) GetScore() int32

func (*UpdateProductReviewRequest) GetTitle

func (x *UpdateProductReviewRequest) GetTitle() string

func (*UpdateProductReviewRequest) HasDescription

func (x *UpdateProductReviewRequest) HasDescription() bool

func (*UpdateProductReviewRequest) HasId

func (x *UpdateProductReviewRequest) HasId() bool

func (*UpdateProductReviewRequest) HasScore

func (x *UpdateProductReviewRequest) HasScore() bool

func (*UpdateProductReviewRequest) HasTitle

func (x *UpdateProductReviewRequest) HasTitle() bool

func (*UpdateProductReviewRequest) ProtoMessage

func (*UpdateProductReviewRequest) ProtoMessage()

func (*UpdateProductReviewRequest) ProtoReflect

func (*UpdateProductReviewRequest) Reset

func (x *UpdateProductReviewRequest) Reset()

func (*UpdateProductReviewRequest) SetDescription

func (x *UpdateProductReviewRequest) SetDescription(v string)

func (*UpdateProductReviewRequest) SetId

func (x *UpdateProductReviewRequest) SetId(v string)

func (*UpdateProductReviewRequest) SetScore

func (x *UpdateProductReviewRequest) SetScore(v int32)

func (*UpdateProductReviewRequest) SetTitle

func (x *UpdateProductReviewRequest) SetTitle(v string)

func (*UpdateProductReviewRequest) String

func (x *UpdateProductReviewRequest) String() string

type UpdateProductReviewRequest_builder

type UpdateProductReviewRequest_builder struct {
	Id          *string
	Score       *int32
	Title       *string
	Description *string
	// contains filtered or unexported fields
}

func (UpdateProductReviewRequest_builder) Build

type UpdateProductReviewResponse

type UpdateProductReviewResponse struct {
	// contains filtered or unexported fields
}

UpdateProductReviewResponse message.

func (*UpdateProductReviewResponse) ProtoMessage

func (*UpdateProductReviewResponse) ProtoMessage()

func (*UpdateProductReviewResponse) ProtoReflect

func (*UpdateProductReviewResponse) Reset

func (x *UpdateProductReviewResponse) Reset()

func (*UpdateProductReviewResponse) String

func (x *UpdateProductReviewResponse) String() string

type UpdateProductReviewResponse_builder

type UpdateProductReviewResponse_builder struct {
	// contains filtered or unexported fields
}

func (UpdateProductReviewResponse_builder) Build

Jump to

Keyboard shortcuts

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