Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterInventoryServer(s grpc.ServiceRegistrar, srv InventoryServer)
- type CreateProductRequest
- func (x *CreateProductRequest) ClearDescription()
- func (x *CreateProductRequest) ClearId()
- func (x *CreateProductRequest) ClearName()
- func (x *CreateProductRequest) ClearPrice()
- func (x *CreateProductRequest) GetDescription() string
- func (x *CreateProductRequest) GetId() string
- func (x *CreateProductRequest) GetName() string
- func (x *CreateProductRequest) GetPrice() int64
- func (x *CreateProductRequest) HasDescription() bool
- func (x *CreateProductRequest) HasId() bool
- func (x *CreateProductRequest) HasName() bool
- func (x *CreateProductRequest) HasPrice() bool
- func (*CreateProductRequest) ProtoMessage()
- func (x *CreateProductRequest) ProtoReflect() protoreflect.Message
- func (x *CreateProductRequest) Reset()
- func (x *CreateProductRequest) SetDescription(v string)
- func (x *CreateProductRequest) SetId(v string)
- func (x *CreateProductRequest) SetName(v string)
- func (x *CreateProductRequest) SetPrice(v int64)
- func (x *CreateProductRequest) String() string
- type CreateProductRequest_builder
- type CreateProductResponse
- type CreateProductResponse_builder
- type CreateProductReviewRequest
- func (x *CreateProductReviewRequest) ClearDescription()
- func (x *CreateProductReviewRequest) ClearProductId()
- func (x *CreateProductReviewRequest) ClearReviewerId()
- func (x *CreateProductReviewRequest) ClearScore()
- func (x *CreateProductReviewRequest) ClearTitle()
- func (x *CreateProductReviewRequest) GetDescription() string
- func (x *CreateProductReviewRequest) GetProductId() string
- func (x *CreateProductReviewRequest) GetReviewerId() string
- func (x *CreateProductReviewRequest) GetScore() int32
- func (x *CreateProductReviewRequest) GetTitle() string
- func (x *CreateProductReviewRequest) HasDescription() bool
- func (x *CreateProductReviewRequest) HasProductId() bool
- func (x *CreateProductReviewRequest) HasReviewerId() bool
- func (x *CreateProductReviewRequest) HasScore() bool
- func (x *CreateProductReviewRequest) HasTitle() bool
- func (*CreateProductReviewRequest) ProtoMessage()
- func (x *CreateProductReviewRequest) ProtoReflect() protoreflect.Message
- func (x *CreateProductReviewRequest) Reset()
- func (x *CreateProductReviewRequest) SetDescription(v string)
- func (x *CreateProductReviewRequest) SetProductId(v string)
- func (x *CreateProductReviewRequest) SetReviewerId(v string)
- func (x *CreateProductReviewRequest) SetScore(v int32)
- func (x *CreateProductReviewRequest) SetTitle(v string)
- func (x *CreateProductReviewRequest) String() string
- type CreateProductReviewRequest_builder
- type CreateProductReviewResponse
- func (x *CreateProductReviewResponse) ClearId()
- func (x *CreateProductReviewResponse) GetId() string
- func (x *CreateProductReviewResponse) HasId() bool
- func (*CreateProductReviewResponse) ProtoMessage()
- func (x *CreateProductReviewResponse) ProtoReflect() protoreflect.Message
- func (x *CreateProductReviewResponse) Reset()
- func (x *CreateProductReviewResponse) SetId(v string)
- func (x *CreateProductReviewResponse) String() string
- type CreateProductReviewResponse_builder
- type DeleteProductRequest
- func (x *DeleteProductRequest) ClearId()
- func (x *DeleteProductRequest) GetId() string
- func (x *DeleteProductRequest) HasId() bool
- func (*DeleteProductRequest) ProtoMessage()
- func (x *DeleteProductRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteProductRequest) Reset()
- func (x *DeleteProductRequest) SetId(v string)
- func (x *DeleteProductRequest) String() string
- type DeleteProductRequest_builder
- type DeleteProductResponse
- type DeleteProductResponse_builder
- type DeleteProductReviewRequest
- func (x *DeleteProductReviewRequest) ClearId()
- func (x *DeleteProductReviewRequest) GetId() string
- func (x *DeleteProductReviewRequest) HasId() bool
- func (*DeleteProductReviewRequest) ProtoMessage()
- func (x *DeleteProductReviewRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteProductReviewRequest) Reset()
- func (x *DeleteProductReviewRequest) SetId(v string)
- func (x *DeleteProductReviewRequest) String() string
- type DeleteProductReviewRequest_builder
- type DeleteProductReviewResponse
- type DeleteProductReviewResponse_builder
- type GetProductRequest
- func (x *GetProductRequest) ClearId()
- func (x *GetProductRequest) GetId() string
- func (x *GetProductRequest) HasId() bool
- func (*GetProductRequest) ProtoMessage()
- func (x *GetProductRequest) ProtoReflect() protoreflect.Message
- func (x *GetProductRequest) Reset()
- func (x *GetProductRequest) SetId(v string)
- func (x *GetProductRequest) String() string
- type GetProductRequest_builder
- type GetProductResponse
- func (x *GetProductResponse) ClearCreatedAt()
- func (x *GetProductResponse) ClearDescription()
- func (x *GetProductResponse) ClearId()
- func (x *GetProductResponse) ClearModifiedAt()
- func (x *GetProductResponse) ClearName()
- func (x *GetProductResponse) ClearPrice()
- func (x *GetProductResponse) GetCreatedAt() string
- func (x *GetProductResponse) GetDescription() string
- func (x *GetProductResponse) GetId() string
- func (x *GetProductResponse) GetModifiedAt() string
- func (x *GetProductResponse) GetName() string
- func (x *GetProductResponse) GetPrice() int64
- func (x *GetProductResponse) HasCreatedAt() bool
- func (x *GetProductResponse) HasDescription() bool
- func (x *GetProductResponse) HasId() bool
- func (x *GetProductResponse) HasModifiedAt() bool
- func (x *GetProductResponse) HasName() bool
- func (x *GetProductResponse) HasPrice() bool
- func (*GetProductResponse) ProtoMessage()
- func (x *GetProductResponse) ProtoReflect() protoreflect.Message
- func (x *GetProductResponse) Reset()
- func (x *GetProductResponse) SetCreatedAt(v string)
- func (x *GetProductResponse) SetDescription(v string)
- func (x *GetProductResponse) SetId(v string)
- func (x *GetProductResponse) SetModifiedAt(v string)
- func (x *GetProductResponse) SetName(v string)
- func (x *GetProductResponse) SetPrice(v int64)
- func (x *GetProductResponse) String() string
- type GetProductResponse_builder
- type GetProductReviewRequest
- func (x *GetProductReviewRequest) ClearId()
- func (x *GetProductReviewRequest) GetId() string
- func (x *GetProductReviewRequest) HasId() bool
- func (*GetProductReviewRequest) ProtoMessage()
- func (x *GetProductReviewRequest) ProtoReflect() protoreflect.Message
- func (x *GetProductReviewRequest) Reset()
- func (x *GetProductReviewRequest) SetId(v string)
- func (x *GetProductReviewRequest) String() string
- type GetProductReviewRequest_builder
- type GetProductReviewResponse
- func (x *GetProductReviewResponse) ClearCreatedAt()
- func (x *GetProductReviewResponse) ClearDescription()
- func (x *GetProductReviewResponse) ClearId()
- func (x *GetProductReviewResponse) ClearModifiedAt()
- func (x *GetProductReviewResponse) ClearProductId()
- func (x *GetProductReviewResponse) ClearReviewerId()
- func (x *GetProductReviewResponse) ClearScore()
- func (x *GetProductReviewResponse) ClearTitle()
- func (x *GetProductReviewResponse) GetCreatedAt() string
- func (x *GetProductReviewResponse) GetDescription() string
- func (x *GetProductReviewResponse) GetId() string
- func (x *GetProductReviewResponse) GetModifiedAt() string
- func (x *GetProductReviewResponse) GetProductId() string
- func (x *GetProductReviewResponse) GetReviewerId() string
- func (x *GetProductReviewResponse) GetScore() int32
- func (x *GetProductReviewResponse) GetTitle() string
- func (x *GetProductReviewResponse) HasCreatedAt() bool
- func (x *GetProductReviewResponse) HasDescription() bool
- func (x *GetProductReviewResponse) HasId() bool
- func (x *GetProductReviewResponse) HasModifiedAt() bool
- func (x *GetProductReviewResponse) HasProductId() bool
- func (x *GetProductReviewResponse) HasReviewerId() bool
- func (x *GetProductReviewResponse) HasScore() bool
- func (x *GetProductReviewResponse) HasTitle() bool
- func (*GetProductReviewResponse) ProtoMessage()
- func (x *GetProductReviewResponse) ProtoReflect() protoreflect.Message
- func (x *GetProductReviewResponse) Reset()
- func (x *GetProductReviewResponse) SetCreatedAt(v string)
- func (x *GetProductReviewResponse) SetDescription(v string)
- func (x *GetProductReviewResponse) SetId(v string)
- func (x *GetProductReviewResponse) SetModifiedAt(v string)
- func (x *GetProductReviewResponse) SetProductId(v string)
- func (x *GetProductReviewResponse) SetReviewerId(v string)
- func (x *GetProductReviewResponse) SetScore(v int32)
- func (x *GetProductReviewResponse) SetTitle(v string)
- func (x *GetProductReviewResponse) String() string
- type GetProductReviewResponse_builder
- type InventoryClient
- type InventoryServer
- type Product
- func (x *Product) ClearDescription()
- func (x *Product) ClearId()
- func (x *Product) ClearName()
- func (x *Product) ClearPrice()
- func (x *Product) GetDescription() string
- func (x *Product) GetId() string
- func (x *Product) GetName() string
- func (x *Product) GetPrice() int64
- func (x *Product) HasDescription() bool
- func (x *Product) HasId() bool
- func (x *Product) HasName() bool
- func (x *Product) HasPrice() bool
- func (*Product) ProtoMessage()
- func (x *Product) ProtoReflect() protoreflect.Message
- func (x *Product) Reset()
- func (x *Product) SetDescription(v string)
- func (x *Product) SetId(v string)
- func (x *Product) SetName(v string)
- func (x *Product) SetPrice(v int64)
- func (x *Product) String() string
- type Product_builder
- type SearchProductsRequest
- func (x *SearchProductsRequest) ClearMaxPrice()
- func (x *SearchProductsRequest) ClearMinPrice()
- func (x *SearchProductsRequest) ClearPage()
- func (x *SearchProductsRequest) ClearQueryString()
- func (x *SearchProductsRequest) GetMaxPrice() int64
- func (x *SearchProductsRequest) GetMinPrice() int64
- func (x *SearchProductsRequest) GetPage() int32
- func (x *SearchProductsRequest) GetQueryString() string
- func (x *SearchProductsRequest) HasMaxPrice() bool
- func (x *SearchProductsRequest) HasMinPrice() bool
- func (x *SearchProductsRequest) HasPage() bool
- func (x *SearchProductsRequest) HasQueryString() bool
- func (*SearchProductsRequest) ProtoMessage()
- func (x *SearchProductsRequest) ProtoReflect() protoreflect.Message
- func (x *SearchProductsRequest) Reset()
- func (x *SearchProductsRequest) SetMaxPrice(v int64)
- func (x *SearchProductsRequest) SetMinPrice(v int64)
- func (x *SearchProductsRequest) SetPage(v int32)
- func (x *SearchProductsRequest) SetQueryString(v string)
- func (x *SearchProductsRequest) String() string
- type SearchProductsRequest_builder
- type SearchProductsResponse
- func (x *SearchProductsResponse) ClearTotal()
- func (x *SearchProductsResponse) GetItems() []*Product
- func (x *SearchProductsResponse) GetTotal() int32
- func (x *SearchProductsResponse) HasTotal() bool
- func (*SearchProductsResponse) ProtoMessage()
- func (x *SearchProductsResponse) ProtoReflect() protoreflect.Message
- func (x *SearchProductsResponse) Reset()
- func (x *SearchProductsResponse) SetItems(v []*Product)
- func (x *SearchProductsResponse) SetTotal(v int32)
- func (x *SearchProductsResponse) String() string
- type SearchProductsResponse_builder
- type UnimplementedInventoryServer
- func (UnimplementedInventoryServer) CreateProduct(context.Context, *CreateProductRequest) (*CreateProductResponse, error)
- func (UnimplementedInventoryServer) CreateProductReview(context.Context, *CreateProductReviewRequest) (*CreateProductReviewResponse, error)
- func (UnimplementedInventoryServer) DeleteProduct(context.Context, *DeleteProductRequest) (*DeleteProductResponse, error)
- func (UnimplementedInventoryServer) DeleteProductReview(context.Context, *DeleteProductReviewRequest) (*DeleteProductReviewResponse, error)
- func (UnimplementedInventoryServer) GetProduct(context.Context, *GetProductRequest) (*GetProductResponse, error)
- func (UnimplementedInventoryServer) GetProductReview(context.Context, *GetProductReviewRequest) (*GetProductReviewResponse, error)
- func (UnimplementedInventoryServer) SearchProducts(context.Context, *SearchProductsRequest) (*SearchProductsResponse, error)
- func (UnimplementedInventoryServer) UpdateProduct(context.Context, *UpdateProductRequest) (*UpdateProductResponse, error)
- func (UnimplementedInventoryServer) UpdateProductReview(context.Context, *UpdateProductReviewRequest) (*UpdateProductReviewResponse, error)
- type UnsafeInventoryServer
- type UpdateProductRequest
- func (x *UpdateProductRequest) ClearDescription()
- func (x *UpdateProductRequest) ClearId()
- func (x *UpdateProductRequest) ClearName()
- func (x *UpdateProductRequest) ClearPrice()
- func (x *UpdateProductRequest) GetDescription() string
- func (x *UpdateProductRequest) GetId() string
- func (x *UpdateProductRequest) GetName() string
- func (x *UpdateProductRequest) GetPrice() int64
- func (x *UpdateProductRequest) HasDescription() bool
- func (x *UpdateProductRequest) HasId() bool
- func (x *UpdateProductRequest) HasName() bool
- func (x *UpdateProductRequest) HasPrice() bool
- func (*UpdateProductRequest) ProtoMessage()
- func (x *UpdateProductRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateProductRequest) Reset()
- func (x *UpdateProductRequest) SetDescription(v string)
- func (x *UpdateProductRequest) SetId(v string)
- func (x *UpdateProductRequest) SetName(v string)
- func (x *UpdateProductRequest) SetPrice(v int64)
- func (x *UpdateProductRequest) String() string
- type UpdateProductRequest_builder
- type UpdateProductResponse
- type UpdateProductResponse_builder
- type UpdateProductReviewRequest
- func (x *UpdateProductReviewRequest) ClearDescription()
- func (x *UpdateProductReviewRequest) ClearId()
- func (x *UpdateProductReviewRequest) ClearScore()
- func (x *UpdateProductReviewRequest) ClearTitle()
- func (x *UpdateProductReviewRequest) GetDescription() string
- func (x *UpdateProductReviewRequest) GetId() string
- func (x *UpdateProductReviewRequest) GetScore() int32
- func (x *UpdateProductReviewRequest) GetTitle() string
- func (x *UpdateProductReviewRequest) HasDescription() bool
- func (x *UpdateProductReviewRequest) HasId() bool
- func (x *UpdateProductReviewRequest) HasScore() bool
- func (x *UpdateProductReviewRequest) HasTitle() bool
- func (*UpdateProductReviewRequest) ProtoMessage()
- func (x *UpdateProductReviewRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateProductReviewRequest) Reset()
- func (x *UpdateProductReviewRequest) SetDescription(v string)
- func (x *UpdateProductReviewRequest) SetId(v string)
- func (x *UpdateProductReviewRequest) SetScore(v int32)
- func (x *UpdateProductReviewRequest) SetTitle(v string)
- func (x *UpdateProductReviewRequest) String() string
- type UpdateProductReviewRequest_builder
- type UpdateProductReviewResponse
- type UpdateProductReviewResponse_builder
Constants ¶
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" )
const (
Default_SearchProductsRequest_Page = int32(1)
)
Default values for SearchProductsRequest fields.
Variables ¶
var File_api_proto protoreflect.FileDescriptor
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 ¶
func (b0 CreateProductRequest_builder) Build() *CreateProductRequest
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 ¶
func (b0 CreateProductResponse_builder) Build() *CreateProductResponse
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 (x *CreateProductReviewRequest) ProtoReflect() protoreflect.Message
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 ¶
func (b0 CreateProductReviewRequest_builder) Build() *CreateProductReviewRequest
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 (x *CreateProductReviewResponse) GetId() string
func (*CreateProductReviewResponse) HasId ¶
func (x *CreateProductReviewResponse) HasId() bool
func (*CreateProductReviewResponse) ProtoMessage ¶
func (*CreateProductReviewResponse) ProtoMessage()
func (*CreateProductReviewResponse) ProtoReflect ¶
func (x *CreateProductReviewResponse) ProtoReflect() protoreflect.Message
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 ¶
func (b0 CreateProductReviewResponse_builder) Build() *CreateProductReviewResponse
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 ¶
func (b0 DeleteProductRequest_builder) Build() *DeleteProductRequest
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 ¶
func (b0 DeleteProductResponse_builder) Build() *DeleteProductResponse
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 (x *DeleteProductReviewRequest) GetId() string
func (*DeleteProductReviewRequest) HasId ¶
func (x *DeleteProductReviewRequest) HasId() bool
func (*DeleteProductReviewRequest) ProtoMessage ¶
func (*DeleteProductReviewRequest) ProtoMessage()
func (*DeleteProductReviewRequest) ProtoReflect ¶
func (x *DeleteProductReviewRequest) ProtoReflect() protoreflect.Message
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 ¶
func (b0 DeleteProductReviewRequest_builder) Build() *DeleteProductReviewRequest
type DeleteProductReviewResponse ¶
type DeleteProductReviewResponse struct {
// contains filtered or unexported fields
}
DeleteProductReviewResponse message.
func (*DeleteProductReviewResponse) ProtoMessage ¶
func (*DeleteProductReviewResponse) ProtoMessage()
func (*DeleteProductReviewResponse) ProtoReflect ¶
func (x *DeleteProductReviewResponse) ProtoReflect() protoreflect.Message
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 ¶
func (b0 DeleteProductReviewResponse_builder) Build() *DeleteProductReviewResponse
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 ¶
func (b0 GetProductRequest_builder) Build() *GetProductRequest
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 ¶
func (b0 GetProductResponse_builder) Build() *GetProductResponse
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 ¶
func (b0 GetProductReviewRequest_builder) Build() *GetProductReviewRequest
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 ¶
func (b0 GetProductReviewResponse_builder) Build() *GetProductReviewResponse
type InventoryClient ¶
type InventoryClient interface { SearchProducts(ctx context.Context, in *SearchProductsRequest, opts ...grpc.CallOption) (*SearchProductsResponse, error) CreateProduct(ctx context.Context, in *CreateProductRequest, opts ...grpc.CallOption) (*CreateProductResponse, error) UpdateProduct(ctx context.Context, in *UpdateProductRequest, opts ...grpc.CallOption) (*UpdateProductResponse, error) DeleteProduct(ctx context.Context, in *DeleteProductRequest, opts ...grpc.CallOption) (*DeleteProductResponse, error) GetProduct(ctx context.Context, in *GetProductRequest, opts ...grpc.CallOption) (*GetProductResponse, error) CreateProductReview(ctx context.Context, in *CreateProductReviewRequest, opts ...grpc.CallOption) (*CreateProductReviewResponse, error) UpdateProductReview(ctx context.Context, in *UpdateProductReviewRequest, opts ...grpc.CallOption) (*UpdateProductReviewResponse, error) DeleteProductReview(ctx context.Context, in *DeleteProductReviewRequest, opts ...grpc.CallOption) (*DeleteProductReviewResponse, error) GetProductReview(ctx context.Context, in *GetProductReviewRequest, opts ...grpc.CallOption) (*GetProductReviewResponse, error) }
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 ¶
type InventoryServer interface { SearchProducts(context.Context, *SearchProductsRequest) (*SearchProductsResponse, error) CreateProduct(context.Context, *CreateProductRequest) (*CreateProductResponse, error) UpdateProduct(context.Context, *UpdateProductRequest) (*UpdateProductResponse, error) DeleteProduct(context.Context, *DeleteProductRequest) (*DeleteProductResponse, error) GetProduct(context.Context, *GetProductRequest) (*GetProductResponse, error) CreateProductReview(context.Context, *CreateProductReviewRequest) (*CreateProductReviewResponse, error) UpdateProductReview(context.Context, *UpdateProductReviewRequest) (*UpdateProductReviewResponse, error) DeleteProductReview(context.Context, *DeleteProductReviewRequest) (*DeleteProductReviewResponse, error) GetProductReview(context.Context, *GetProductReviewRequest) (*GetProductReviewResponse, error) // contains filtered or unexported methods }
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) ClearPrice ¶
func (x *Product) ClearPrice()
func (*Product) GetDescription ¶
func (*Product) HasDescription ¶
func (*Product) ProtoMessage ¶
func (*Product) ProtoMessage()
func (*Product) ProtoReflect ¶
func (x *Product) ProtoReflect() protoreflect.Message
func (*Product) SetDescription ¶
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 ¶
func (b0 SearchProductsRequest_builder) Build() *SearchProductsRequest
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 ¶
func (b0 SearchProductsResponse_builder) Build() *SearchProductsResponse
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) CreateProduct(context.Context, *CreateProductRequest) (*CreateProductResponse, error)
func (UnimplementedInventoryServer) CreateProductReview ¶
func (UnimplementedInventoryServer) CreateProductReview(context.Context, *CreateProductReviewRequest) (*CreateProductReviewResponse, error)
func (UnimplementedInventoryServer) DeleteProduct ¶
func (UnimplementedInventoryServer) DeleteProduct(context.Context, *DeleteProductRequest) (*DeleteProductResponse, error)
func (UnimplementedInventoryServer) DeleteProductReview ¶
func (UnimplementedInventoryServer) DeleteProductReview(context.Context, *DeleteProductReviewRequest) (*DeleteProductReviewResponse, error)
func (UnimplementedInventoryServer) GetProduct ¶
func (UnimplementedInventoryServer) GetProduct(context.Context, *GetProductRequest) (*GetProductResponse, error)
func (UnimplementedInventoryServer) GetProductReview ¶
func (UnimplementedInventoryServer) GetProductReview(context.Context, *GetProductReviewRequest) (*GetProductReviewResponse, error)
func (UnimplementedInventoryServer) SearchProducts ¶
func (UnimplementedInventoryServer) SearchProducts(context.Context, *SearchProductsRequest) (*SearchProductsResponse, error)
func (UnimplementedInventoryServer) UpdateProduct ¶
func (UnimplementedInventoryServer) UpdateProduct(context.Context, *UpdateProductRequest) (*UpdateProductResponse, error)
func (UnimplementedInventoryServer) UpdateProductReview ¶
func (UnimplementedInventoryServer) UpdateProductReview(context.Context, *UpdateProductReviewRequest) (*UpdateProductReviewResponse, error)
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 ¶
func (b0 UpdateProductRequest_builder) Build() *UpdateProductRequest
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 ¶
func (b0 UpdateProductResponse_builder) Build() *UpdateProductResponse
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 (x *UpdateProductReviewRequest) GetId() string
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 (x *UpdateProductReviewRequest) ProtoReflect() protoreflect.Message
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 ¶
func (b0 UpdateProductReviewRequest_builder) Build() *UpdateProductReviewRequest
type UpdateProductReviewResponse ¶
type UpdateProductReviewResponse struct {
// contains filtered or unexported fields
}
UpdateProductReviewResponse message.
func (*UpdateProductReviewResponse) ProtoMessage ¶
func (*UpdateProductReviewResponse) ProtoMessage()
func (*UpdateProductReviewResponse) ProtoReflect ¶
func (x *UpdateProductReviewResponse) ProtoReflect() protoreflect.Message
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 ¶
func (b0 UpdateProductReviewResponse_builder) Build() *UpdateProductReviewResponse