Documentation
¶
Index ¶
- Variables
- func RegisterContentServiceServer(s *grpc.Server, srv ContentServiceServer)
- type Address
- func (*Address) Descriptor() ([]byte, []int)deprecated
- func (x *Address) GetCity() string
- func (x *Address) GetCountry() string
- func (x *Address) GetDivision() string
- func (x *Address) GetLane() string
- func (x *Address) GetPin() string
- func (*Address) ProtoMessage()
- func (x *Address) ProtoReflect() protoreflect.Message
- func (x *Address) Reset()
- func (x *Address) String() string
- type ContentServiceClient
- type ContentServiceServer
- type CreateProductRequest
- func (*CreateProductRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateProductRequest) GetAddress() *Address
- func (x *CreateProductRequest) GetBrand() string
- func (x *CreateProductRequest) GetCategory() string
- func (x *CreateProductRequest) GetDescription() string
- func (x *CreateProductRequest) GetMfdate() *timestamppb.Timestamp
- func (x *CreateProductRequest) GetName() string
- func (x *CreateProductRequest) GetPhotourl() []string
- func (x *CreateProductRequest) GetPrice() uint32
- func (x *CreateProductRequest) GetSeller() string
- func (x *CreateProductRequest) GetSpec() []*Spec
- func (x *CreateProductRequest) GetSubcategory() string
- func (*CreateProductRequest) ProtoMessage()
- func (x *CreateProductRequest) ProtoReflect() protoreflect.Message
- func (x *CreateProductRequest) Reset()
- func (x *CreateProductRequest) String() string
- type DeleteProductRequest
- func (*DeleteProductRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteProductRequest) GetId() string
- func (*DeleteProductRequest) ProtoMessage()
- func (x *DeleteProductRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteProductRequest) Reset()
- func (x *DeleteProductRequest) String() string
- type Empty
- type FilterRequest
- func (*FilterRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FilterRequest) GetAddress() *Address
- func (x *FilterRequest) GetBrand() []string
- func (x *FilterRequest) GetCategory() string
- func (x *FilterRequest) GetMaxPrice() uint32
- func (x *FilterRequest) GetMinPrice() uint32
- func (x *FilterRequest) GetSpec() []*Spec
- func (x *FilterRequest) GetSubcategory() string
- func (*FilterRequest) ProtoMessage()
- func (x *FilterRequest) ProtoReflect() protoreflect.Message
- func (x *FilterRequest) Reset()
- func (x *FilterRequest) String() string
- type Pagination
- func (*Pagination) Descriptor() ([]byte, []int)deprecated
- func (x *Pagination) GetLimit() uint32
- func (x *Pagination) GetOffset() uint32
- func (x *Pagination) GetToken() string
- func (*Pagination) ProtoMessage()
- func (x *Pagination) ProtoReflect() protoreflect.Message
- func (x *Pagination) Reset()
- func (x *Pagination) String() string
- type Product
- func (*Product) Descriptor() ([]byte, []int)deprecated
- func (x *Product) GetAddress() *Address
- func (x *Product) GetBrand() string
- func (x *Product) GetCategory() string
- func (x *Product) GetDescription() string
- func (x *Product) GetId() string
- func (x *Product) GetLikes() []string
- func (x *Product) GetMfdate() *timestamppb.Timestamp
- func (x *Product) GetName() string
- func (x *Product) GetPhotourl() []string
- func (x *Product) GetPrice() uint32
- func (x *Product) GetSeller() string
- func (x *Product) GetSpec() []*Spec
- func (x *Product) GetStatus() Product_Status
- func (x *Product) GetSubcategory() string
- func (x *Product) GetUploadDate() *timestamppb.Timestamp
- func (*Product) ProtoMessage()
- func (x *Product) ProtoReflect() protoreflect.Message
- func (x *Product) Reset()
- func (x *Product) String() string
- type Product_Status
- func (Product_Status) Descriptor() protoreflect.EnumDescriptor
- func (x Product_Status) Enum() *Product_Status
- func (Product_Status) EnumDescriptor() ([]byte, []int)deprecated
- func (x Product_Status) Number() protoreflect.EnumNumber
- func (x Product_Status) String() string
- func (Product_Status) Type() protoreflect.EnumType
- type Products
- type SearchRequest
- type Spec
- type UnimplementedContentServiceServer
- func (*UnimplementedContentServiceServer) DeleteProduct(context.Context, *DeleteProductRequest) (*Empty, error)
- func (*UnimplementedContentServiceServer) GetAllProducts(context.Context, *Empty) (*Products, error)
- func (*UnimplementedContentServiceServer) GetProductsByFilter(context.Context, *FilterRequest) (*Products, error)
- func (*UnimplementedContentServiceServer) GetProductsBySearch(context.Context, *SearchRequest) (*Products, error)
- func (*UnimplementedContentServiceServer) GetSomeProducts(context.Context, *Pagination) (*Products, error)
- func (*UnimplementedContentServiceServer) RegisterProduct(context.Context, *CreateProductRequest) (*Product, error)
- func (*UnimplementedContentServiceServer) UpdateProduct(context.Context, *UpdateProductRequest) (*Product, error)
- type UpdateProductRequest
- func (*UpdateProductRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateProductRequest) GetAddress() *Address
- func (x *UpdateProductRequest) GetBrand() string
- func (x *UpdateProductRequest) GetCategory() string
- func (x *UpdateProductRequest) GetDescription() string
- func (x *UpdateProductRequest) GetMfdate() *timestamppb.Timestamp
- func (x *UpdateProductRequest) GetName() string
- func (x *UpdateProductRequest) GetPhotourl() []string
- func (x *UpdateProductRequest) GetPrice() uint32
- func (x *UpdateProductRequest) GetSpec() []*Spec
- func (x *UpdateProductRequest) GetStatus() UpdateProductRequest_Status
- func (x *UpdateProductRequest) GetSubcategory() string
- func (*UpdateProductRequest) ProtoMessage()
- func (x *UpdateProductRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateProductRequest) Reset()
- func (x *UpdateProductRequest) String() string
- type UpdateProductRequest_Status
- func (UpdateProductRequest_Status) Descriptor() protoreflect.EnumDescriptor
- func (x UpdateProductRequest_Status) Enum() *UpdateProductRequest_Status
- func (UpdateProductRequest_Status) EnumDescriptor() ([]byte, []int)deprecated
- func (x UpdateProductRequest_Status) Number() protoreflect.EnumNumber
- func (x UpdateProductRequest_Status) String() string
- func (UpdateProductRequest_Status) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
var ( Product_Status_name = map[int32]string{ 0: "SOLD", 1: "UNSOLD", } Product_Status_value = map[string]int32{ "SOLD": 0, "UNSOLD": 1, } )
Enum value maps for Product_Status.
var ( UpdateProductRequest_Status_name = map[int32]string{ 0: "SOLD", 1: "UNSOLD", } UpdateProductRequest_Status_value = map[string]int32{ "SOLD": 0, "UNSOLD": 1, } )
Enum value maps for UpdateProductRequest_Status.
var File_content_proto protoreflect.FileDescriptor
var File_utils_proto protoreflect.FileDescriptor
Functions ¶
func RegisterContentServiceServer ¶
func RegisterContentServiceServer(s *grpc.Server, srv ContentServiceServer)
Types ¶
type Address ¶
type Address struct { Country string `protobuf:"bytes,1,opt,name=country,proto3" json:"country,omitempty"` Division string `protobuf:"bytes,2,opt,name=division,proto3" json:"division,omitempty"` City string `protobuf:"bytes,3,opt,name=city,proto3" json:"city,omitempty"` Lane string `protobuf:"bytes,4,opt,name=lane,proto3" json:"lane,omitempty"` Pin string `protobuf:"bytes,5,opt,name=pin,proto3" json:"pin,omitempty"` // contains filtered or unexported fields }
func (*Address) Descriptor
deprecated
func (*Address) GetCountry ¶
func (*Address) GetDivision ¶
func (*Address) ProtoMessage ¶
func (*Address) ProtoMessage()
func (*Address) ProtoReflect ¶
func (x *Address) ProtoReflect() protoreflect.Message
type ContentServiceClient ¶
type ContentServiceClient interface { RegisterProduct(ctx context.Context, in *CreateProductRequest, opts ...grpc.CallOption) (*Product, error) UpdateProduct(ctx context.Context, in *UpdateProductRequest, opts ...grpc.CallOption) (*Product, error) DeleteProduct(ctx context.Context, in *DeleteProductRequest, opts ...grpc.CallOption) (*Empty, error) GetAllProducts(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Products, error) GetSomeProducts(ctx context.Context, in *Pagination, opts ...grpc.CallOption) (*Products, error) GetProductsByFilter(ctx context.Context, in *FilterRequest, opts ...grpc.CallOption) (*Products, error) GetProductsBySearch(ctx context.Context, in *SearchRequest, opts ...grpc.CallOption) (*Products, error) }
ContentServiceClient is the client API for ContentService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewContentServiceClient ¶
func NewContentServiceClient(cc grpc.ClientConnInterface) ContentServiceClient
type ContentServiceServer ¶
type ContentServiceServer interface { RegisterProduct(context.Context, *CreateProductRequest) (*Product, error) UpdateProduct(context.Context, *UpdateProductRequest) (*Product, error) DeleteProduct(context.Context, *DeleteProductRequest) (*Empty, error) GetAllProducts(context.Context, *Empty) (*Products, error) GetSomeProducts(context.Context, *Pagination) (*Products, error) GetProductsByFilter(context.Context, *FilterRequest) (*Products, error) GetProductsBySearch(context.Context, *SearchRequest) (*Products, error) }
ContentServiceServer is the server API for ContentService service.
type CreateProductRequest ¶
type CreateProductRequest struct { Price uint32 `protobuf:"varint,1,opt,name=price,proto3" json:"price,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` Address *Address `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"` Seller string `protobuf:"bytes,5,opt,name=seller,proto3" json:"seller,omitempty"` Spec []*Spec `protobuf:"bytes,6,rep,name=spec,proto3" json:"spec,omitempty"` Photourl []string `protobuf:"bytes,7,rep,name=photourl,proto3" json:"photourl,omitempty"` Mfdate *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=mfdate,proto3" json:"mfdate,omitempty"` Brand string `protobuf:"bytes,12,opt,name=brand,proto3" json:"brand,omitempty"` Category string `protobuf:"bytes,13,opt,name=category,proto3" json:"category,omitempty"` Subcategory string `protobuf:"bytes,14,opt,name=subcategory,proto3" json:"subcategory,omitempty"` // contains filtered or unexported fields }
func (*CreateProductRequest) Descriptor
deprecated
func (*CreateProductRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateProductRequest.ProtoReflect.Descriptor instead.
func (*CreateProductRequest) GetAddress ¶
func (x *CreateProductRequest) GetAddress() *Address
func (*CreateProductRequest) GetBrand ¶
func (x *CreateProductRequest) GetBrand() string
func (*CreateProductRequest) GetCategory ¶
func (x *CreateProductRequest) GetCategory() string
func (*CreateProductRequest) GetDescription ¶
func (x *CreateProductRequest) GetDescription() string
func (*CreateProductRequest) GetMfdate ¶
func (x *CreateProductRequest) GetMfdate() *timestamppb.Timestamp
func (*CreateProductRequest) GetName ¶
func (x *CreateProductRequest) GetName() string
func (*CreateProductRequest) GetPhotourl ¶
func (x *CreateProductRequest) GetPhotourl() []string
func (*CreateProductRequest) GetPrice ¶
func (x *CreateProductRequest) GetPrice() uint32
func (*CreateProductRequest) GetSeller ¶
func (x *CreateProductRequest) GetSeller() string
func (*CreateProductRequest) GetSpec ¶
func (x *CreateProductRequest) GetSpec() []*Spec
func (*CreateProductRequest) GetSubcategory ¶
func (x *CreateProductRequest) GetSubcategory() string
func (*CreateProductRequest) ProtoMessage ¶
func (*CreateProductRequest) ProtoMessage()
func (*CreateProductRequest) ProtoReflect ¶
func (x *CreateProductRequest) ProtoReflect() protoreflect.Message
func (*CreateProductRequest) Reset ¶
func (x *CreateProductRequest) Reset()
func (*CreateProductRequest) String ¶
func (x *CreateProductRequest) String() string
type DeleteProductRequest ¶
type DeleteProductRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteProductRequest) Descriptor
deprecated
func (*DeleteProductRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteProductRequest.ProtoReflect.Descriptor instead.
func (*DeleteProductRequest) GetId ¶
func (x *DeleteProductRequest) GetId() string
func (*DeleteProductRequest) ProtoMessage ¶
func (*DeleteProductRequest) ProtoMessage()
func (*DeleteProductRequest) ProtoReflect ¶
func (x *DeleteProductRequest) ProtoReflect() protoreflect.Message
func (*DeleteProductRequest) Reset ¶
func (x *DeleteProductRequest) Reset()
func (*DeleteProductRequest) String ¶
func (x *DeleteProductRequest) String() string
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type FilterRequest ¶
type FilterRequest struct { Spec []*Spec `protobuf:"bytes,1,rep,name=spec,proto3" json:"spec,omitempty"` MinPrice uint32 `protobuf:"varint,2,opt,name=min_price,json=minPrice,proto3" json:"min_price,omitempty"` MaxPrice uint32 `protobuf:"varint,3,opt,name=max_price,json=maxPrice,proto3" json:"max_price,omitempty"` Category string `protobuf:"bytes,4,opt,name=category,proto3" json:"category,omitempty"` Subcategory string `protobuf:"bytes,5,opt,name=subcategory,proto3" json:"subcategory,omitempty"` Brand []string `protobuf:"bytes,6,rep,name=brand,proto3" json:"brand,omitempty"` Address *Address `protobuf:"bytes,7,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
func (*FilterRequest) Descriptor
deprecated
func (*FilterRequest) Descriptor() ([]byte, []int)
Deprecated: Use FilterRequest.ProtoReflect.Descriptor instead.
func (*FilterRequest) GetAddress ¶
func (x *FilterRequest) GetAddress() *Address
func (*FilterRequest) GetBrand ¶
func (x *FilterRequest) GetBrand() []string
func (*FilterRequest) GetCategory ¶
func (x *FilterRequest) GetCategory() string
func (*FilterRequest) GetMaxPrice ¶
func (x *FilterRequest) GetMaxPrice() uint32
func (*FilterRequest) GetMinPrice ¶
func (x *FilterRequest) GetMinPrice() uint32
func (*FilterRequest) GetSpec ¶
func (x *FilterRequest) GetSpec() []*Spec
func (*FilterRequest) GetSubcategory ¶
func (x *FilterRequest) GetSubcategory() string
func (*FilterRequest) ProtoMessage ¶
func (*FilterRequest) ProtoMessage()
func (*FilterRequest) ProtoReflect ¶
func (x *FilterRequest) ProtoReflect() protoreflect.Message
func (*FilterRequest) Reset ¶
func (x *FilterRequest) Reset()
func (*FilterRequest) String ¶
func (x *FilterRequest) String() string
type Pagination ¶
type Pagination struct { Offset uint32 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` Limit uint32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*Pagination) Descriptor
deprecated
func (*Pagination) Descriptor() ([]byte, []int)
Deprecated: Use Pagination.ProtoReflect.Descriptor instead.
func (*Pagination) GetLimit ¶
func (x *Pagination) GetLimit() uint32
func (*Pagination) GetOffset ¶
func (x *Pagination) GetOffset() uint32
func (*Pagination) GetToken ¶
func (x *Pagination) GetToken() string
func (*Pagination) ProtoMessage ¶
func (*Pagination) ProtoMessage()
func (*Pagination) ProtoReflect ¶
func (x *Pagination) ProtoReflect() protoreflect.Message
func (*Pagination) Reset ¶
func (x *Pagination) Reset()
func (*Pagination) String ¶
func (x *Pagination) String() string
type Product ¶
type Product struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Price uint32 `protobuf:"varint,2,opt,name=price,proto3" json:"price,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` Brand string `protobuf:"bytes,12,opt,name=brand,proto3" json:"brand,omitempty"` Category string `protobuf:"bytes,13,opt,name=category,proto3" json:"category,omitempty"` Subcategory string `protobuf:"bytes,14,opt,name=subcategory,proto3" json:"subcategory,omitempty"` Address *Address `protobuf:"bytes,5,opt,name=address,proto3" json:"address,omitempty"` Seller string `protobuf:"bytes,6,opt,name=seller,proto3" json:"seller,omitempty"` Status Product_Status `protobuf:"varint,7,opt,name=status,proto3,enum=protos.Product_Status" json:"status,omitempty"` UploadDate *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=uploadDate,proto3" json:"uploadDate,omitempty"` Spec []*Spec `protobuf:"bytes,9,rep,name=spec,proto3" json:"spec,omitempty"` Photourl []string `protobuf:"bytes,10,rep,name=photourl,proto3" json:"photourl,omitempty"` Mfdate *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=mfdate,proto3" json:"mfdate,omitempty"` Likes []string `protobuf:"bytes,15,rep,name=likes,proto3" json:"likes,omitempty"` // contains filtered or unexported fields }
func (*Product) Descriptor
deprecated
func (*Product) GetAddress ¶
func (*Product) GetCategory ¶
func (*Product) GetDescription ¶
func (*Product) GetMfdate ¶
func (x *Product) GetMfdate() *timestamppb.Timestamp
func (*Product) GetPhotourl ¶
func (*Product) GetStatus ¶
func (x *Product) GetStatus() Product_Status
func (*Product) GetSubcategory ¶
func (*Product) GetUploadDate ¶
func (x *Product) GetUploadDate() *timestamppb.Timestamp
func (*Product) ProtoMessage ¶
func (*Product) ProtoMessage()
func (*Product) ProtoReflect ¶
func (x *Product) ProtoReflect() protoreflect.Message
type Product_Status ¶
type Product_Status int32
const ( Product_SOLD Product_Status = 0 Product_UNSOLD Product_Status = 1 )
func (Product_Status) Descriptor ¶
func (Product_Status) Descriptor() protoreflect.EnumDescriptor
func (Product_Status) Enum ¶
func (x Product_Status) Enum() *Product_Status
func (Product_Status) EnumDescriptor
deprecated
func (Product_Status) EnumDescriptor() ([]byte, []int)
Deprecated: Use Product_Status.Descriptor instead.
func (Product_Status) Number ¶
func (x Product_Status) Number() protoreflect.EnumNumber
func (Product_Status) String ¶
func (x Product_Status) String() string
func (Product_Status) Type ¶
func (Product_Status) Type() protoreflect.EnumType
type Products ¶
type Products struct { Product []*Product `protobuf:"bytes,1,rep,name=product,proto3" json:"product,omitempty"` // contains filtered or unexported fields }
func (*Products) Descriptor
deprecated
func (*Products) GetProduct ¶
func (*Products) ProtoMessage ¶
func (*Products) ProtoMessage()
func (*Products) ProtoReflect ¶
func (x *Products) ProtoReflect() protoreflect.Message
type SearchRequest ¶
type SearchRequest struct { Val string `protobuf:"bytes,1,opt,name=val,proto3" json:"val,omitempty"` // contains filtered or unexported fields }
func (*SearchRequest) Descriptor
deprecated
func (*SearchRequest) Descriptor() ([]byte, []int)
Deprecated: Use SearchRequest.ProtoReflect.Descriptor instead.
func (*SearchRequest) GetVal ¶
func (x *SearchRequest) GetVal() string
func (*SearchRequest) ProtoMessage ¶
func (*SearchRequest) ProtoMessage()
func (*SearchRequest) ProtoReflect ¶
func (x *SearchRequest) ProtoReflect() protoreflect.Message
func (*SearchRequest) Reset ¶
func (x *SearchRequest) Reset()
func (*SearchRequest) String ¶
func (x *SearchRequest) String() string
type Spec ¶
type Spec struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*Spec) Descriptor
deprecated
func (*Spec) ProtoMessage ¶
func (*Spec) ProtoMessage()
func (*Spec) ProtoReflect ¶
func (x *Spec) ProtoReflect() protoreflect.Message
type UnimplementedContentServiceServer ¶
type UnimplementedContentServiceServer struct { }
UnimplementedContentServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedContentServiceServer) DeleteProduct ¶
func (*UnimplementedContentServiceServer) DeleteProduct(context.Context, *DeleteProductRequest) (*Empty, error)
func (*UnimplementedContentServiceServer) GetAllProducts ¶
func (*UnimplementedContentServiceServer) GetProductsByFilter ¶
func (*UnimplementedContentServiceServer) GetProductsByFilter(context.Context, *FilterRequest) (*Products, error)
func (*UnimplementedContentServiceServer) GetProductsBySearch ¶
func (*UnimplementedContentServiceServer) GetProductsBySearch(context.Context, *SearchRequest) (*Products, error)
func (*UnimplementedContentServiceServer) GetSomeProducts ¶
func (*UnimplementedContentServiceServer) GetSomeProducts(context.Context, *Pagination) (*Products, error)
func (*UnimplementedContentServiceServer) RegisterProduct ¶
func (*UnimplementedContentServiceServer) RegisterProduct(context.Context, *CreateProductRequest) (*Product, error)
func (*UnimplementedContentServiceServer) UpdateProduct ¶
func (*UnimplementedContentServiceServer) UpdateProduct(context.Context, *UpdateProductRequest) (*Product, error)
type UpdateProductRequest ¶
type UpdateProductRequest struct { Price uint32 `protobuf:"varint,2,opt,name=price,proto3" json:"price,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` Address *Address `protobuf:"bytes,5,opt,name=address,proto3" json:"address,omitempty"` Status UpdateProductRequest_Status `protobuf:"varint,7,opt,name=status,proto3,enum=protos.UpdateProductRequest_Status" json:"status,omitempty"` Spec []*Spec `protobuf:"bytes,9,rep,name=spec,proto3" json:"spec,omitempty"` Photourl []string `protobuf:"bytes,10,rep,name=photourl,proto3" json:"photourl,omitempty"` Mfdate *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=mfdate,proto3" json:"mfdate,omitempty"` Brand string `protobuf:"bytes,12,opt,name=brand,proto3" json:"brand,omitempty"` Category string `protobuf:"bytes,13,opt,name=category,proto3" json:"category,omitempty"` Subcategory string `protobuf:"bytes,14,opt,name=subcategory,proto3" json:"subcategory,omitempty"` // contains filtered or unexported fields }
func (*UpdateProductRequest) Descriptor
deprecated
func (*UpdateProductRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateProductRequest.ProtoReflect.Descriptor instead.
func (*UpdateProductRequest) GetAddress ¶
func (x *UpdateProductRequest) GetAddress() *Address
func (*UpdateProductRequest) GetBrand ¶
func (x *UpdateProductRequest) GetBrand() string
func (*UpdateProductRequest) GetCategory ¶
func (x *UpdateProductRequest) GetCategory() string
func (*UpdateProductRequest) GetDescription ¶
func (x *UpdateProductRequest) GetDescription() string
func (*UpdateProductRequest) GetMfdate ¶
func (x *UpdateProductRequest) GetMfdate() *timestamppb.Timestamp
func (*UpdateProductRequest) GetName ¶
func (x *UpdateProductRequest) GetName() string
func (*UpdateProductRequest) GetPhotourl ¶
func (x *UpdateProductRequest) GetPhotourl() []string
func (*UpdateProductRequest) GetPrice ¶
func (x *UpdateProductRequest) GetPrice() uint32
func (*UpdateProductRequest) GetSpec ¶
func (x *UpdateProductRequest) GetSpec() []*Spec
func (*UpdateProductRequest) GetStatus ¶
func (x *UpdateProductRequest) GetStatus() UpdateProductRequest_Status
func (*UpdateProductRequest) GetSubcategory ¶
func (x *UpdateProductRequest) GetSubcategory() string
func (*UpdateProductRequest) ProtoMessage ¶
func (*UpdateProductRequest) ProtoMessage()
func (*UpdateProductRequest) ProtoReflect ¶
func (x *UpdateProductRequest) ProtoReflect() protoreflect.Message
func (*UpdateProductRequest) Reset ¶
func (x *UpdateProductRequest) Reset()
func (*UpdateProductRequest) String ¶
func (x *UpdateProductRequest) String() string
type UpdateProductRequest_Status ¶
type UpdateProductRequest_Status int32
const ( UpdateProductRequest_SOLD UpdateProductRequest_Status = 0 UpdateProductRequest_UNSOLD UpdateProductRequest_Status = 1 )
func (UpdateProductRequest_Status) Descriptor ¶
func (UpdateProductRequest_Status) Descriptor() protoreflect.EnumDescriptor
func (UpdateProductRequest_Status) Enum ¶
func (x UpdateProductRequest_Status) Enum() *UpdateProductRequest_Status
func (UpdateProductRequest_Status) EnumDescriptor
deprecated
func (UpdateProductRequest_Status) EnumDescriptor() ([]byte, []int)
Deprecated: Use UpdateProductRequest_Status.Descriptor instead.
func (UpdateProductRequest_Status) Number ¶
func (x UpdateProductRequest_Status) Number() protoreflect.EnumNumber
func (UpdateProductRequest_Status) String ¶
func (x UpdateProductRequest_Status) String() string
func (UpdateProductRequest_Status) Type ¶
func (UpdateProductRequest_Status) Type() protoreflect.EnumType