Documentation ¶
Index ¶
- Variables
- func RegisterListingCommentsServer(s grpc.ServiceRegistrar, srv ListingCommentsServer)
- type BulkGetListingCommentsRequest
- func (*BulkGetListingCommentsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BulkGetListingCommentsRequest) GetListingId() []string
- func (*BulkGetListingCommentsRequest) ProtoMessage()
- func (x *BulkGetListingCommentsRequest) ProtoReflect() protoreflect.Message
- func (x *BulkGetListingCommentsRequest) Reset()
- func (x *BulkGetListingCommentsRequest) String() string
- type BulkGetListingCommentsResponse
- func (*BulkGetListingCommentsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *BulkGetListingCommentsResponse) GetListingComments() []*ListingComment
- func (*BulkGetListingCommentsResponse) ProtoMessage()
- func (x *BulkGetListingCommentsResponse) ProtoReflect() protoreflect.Message
- func (x *BulkGetListingCommentsResponse) Reset()
- func (x *BulkGetListingCommentsResponse) String() string
- type GetListingCommentsRequest
- func (*GetListingCommentsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetListingCommentsRequest) GetListingId() string
- func (*GetListingCommentsRequest) ProtoMessage()
- func (x *GetListingCommentsRequest) ProtoReflect() protoreflect.Message
- func (x *GetListingCommentsRequest) Reset()
- func (x *GetListingCommentsRequest) String() string
- type GetListingCommentsResponse
- func (*GetListingCommentsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetListingCommentsResponse) GetListingComment() *ListingComment
- func (*GetListingCommentsResponse) ProtoMessage()
- func (x *GetListingCommentsResponse) ProtoReflect() protoreflect.Message
- func (x *GetListingCommentsResponse) Reset()
- func (x *GetListingCommentsResponse) String() string
- type ListingComment
- type ListingComment_Comment
- func (*ListingComment_Comment) Descriptor() ([]byte, []int)deprecated
- func (x *ListingComment_Comment) GetBody() string
- func (x *ListingComment_Comment) GetTitle() string
- func (*ListingComment_Comment) ProtoMessage()
- func (x *ListingComment_Comment) ProtoReflect() protoreflect.Message
- func (x *ListingComment_Comment) Reset()
- func (x *ListingComment_Comment) String() string
- type ListingCommentsClient
- type ListingCommentsServer
- type UnimplementedListingCommentsServer
- type UnsafeListingCommentsServer
Constants ¶
This section is empty.
Variables ¶
var File_listing_comments_comments_proto protoreflect.FileDescriptor
var ListingComments_ServiceDesc = grpc.ServiceDesc{ ServiceName: "listing_comments.ListingComments", HandlerType: (*ListingCommentsServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetListingComments", Handler: _ListingComments_GetListingComments_Handler, }, { MethodName: "BulkGetListingComments", Handler: _ListingComments_BulkGetListingComments_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "listing_comments/comments.proto", }
ListingComments_ServiceDesc is the grpc.ServiceDesc for ListingComments service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterListingCommentsServer ¶
func RegisterListingCommentsServer(s grpc.ServiceRegistrar, srv ListingCommentsServer)
Types ¶
type BulkGetListingCommentsRequest ¶
type BulkGetListingCommentsRequest struct { ListingId []string `protobuf:"bytes,1,rep,name=listing_id,json=listingId,proto3" json:"listing_id,omitempty"` // contains filtered or unexported fields }
func (*BulkGetListingCommentsRequest) Descriptor
deprecated
func (*BulkGetListingCommentsRequest) Descriptor() ([]byte, []int)
Deprecated: Use BulkGetListingCommentsRequest.ProtoReflect.Descriptor instead.
func (*BulkGetListingCommentsRequest) GetListingId ¶
func (x *BulkGetListingCommentsRequest) GetListingId() []string
func (*BulkGetListingCommentsRequest) ProtoMessage ¶
func (*BulkGetListingCommentsRequest) ProtoMessage()
func (*BulkGetListingCommentsRequest) ProtoReflect ¶
func (x *BulkGetListingCommentsRequest) ProtoReflect() protoreflect.Message
func (*BulkGetListingCommentsRequest) Reset ¶
func (x *BulkGetListingCommentsRequest) Reset()
func (*BulkGetListingCommentsRequest) String ¶
func (x *BulkGetListingCommentsRequest) String() string
type BulkGetListingCommentsResponse ¶
type BulkGetListingCommentsResponse struct { ListingComments []*ListingComment `protobuf:"bytes,1,rep,name=listing_comments,json=listingComments,proto3" json:"listing_comments,omitempty"` // contains filtered or unexported fields }
func (*BulkGetListingCommentsResponse) Descriptor
deprecated
func (*BulkGetListingCommentsResponse) Descriptor() ([]byte, []int)
Deprecated: Use BulkGetListingCommentsResponse.ProtoReflect.Descriptor instead.
func (*BulkGetListingCommentsResponse) GetListingComments ¶
func (x *BulkGetListingCommentsResponse) GetListingComments() []*ListingComment
func (*BulkGetListingCommentsResponse) ProtoMessage ¶
func (*BulkGetListingCommentsResponse) ProtoMessage()
func (*BulkGetListingCommentsResponse) ProtoReflect ¶
func (x *BulkGetListingCommentsResponse) ProtoReflect() protoreflect.Message
func (*BulkGetListingCommentsResponse) Reset ¶
func (x *BulkGetListingCommentsResponse) Reset()
func (*BulkGetListingCommentsResponse) String ¶
func (x *BulkGetListingCommentsResponse) String() string
type GetListingCommentsRequest ¶
type GetListingCommentsRequest struct { ListingId string `protobuf:"bytes,1,opt,name=listing_id,json=listingId,proto3" json:"listing_id,omitempty"` // contains filtered or unexported fields }
func (*GetListingCommentsRequest) Descriptor
deprecated
func (*GetListingCommentsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetListingCommentsRequest.ProtoReflect.Descriptor instead.
func (*GetListingCommentsRequest) GetListingId ¶
func (x *GetListingCommentsRequest) GetListingId() string
func (*GetListingCommentsRequest) ProtoMessage ¶
func (*GetListingCommentsRequest) ProtoMessage()
func (*GetListingCommentsRequest) ProtoReflect ¶
func (x *GetListingCommentsRequest) ProtoReflect() protoreflect.Message
func (*GetListingCommentsRequest) Reset ¶
func (x *GetListingCommentsRequest) Reset()
func (*GetListingCommentsRequest) String ¶
func (x *GetListingCommentsRequest) String() string
type GetListingCommentsResponse ¶
type GetListingCommentsResponse struct { ListingComment *ListingComment `protobuf:"bytes,1,opt,name=listing_comment,json=listingComment,proto3" json:"listing_comment,omitempty"` // contains filtered or unexported fields }
func (*GetListingCommentsResponse) Descriptor
deprecated
func (*GetListingCommentsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetListingCommentsResponse.ProtoReflect.Descriptor instead.
func (*GetListingCommentsResponse) GetListingComment ¶
func (x *GetListingCommentsResponse) GetListingComment() *ListingComment
func (*GetListingCommentsResponse) ProtoMessage ¶
func (*GetListingCommentsResponse) ProtoMessage()
func (*GetListingCommentsResponse) ProtoReflect ¶
func (x *GetListingCommentsResponse) ProtoReflect() protoreflect.Message
func (*GetListingCommentsResponse) Reset ¶
func (x *GetListingCommentsResponse) Reset()
func (*GetListingCommentsResponse) String ¶
func (x *GetListingCommentsResponse) String() string
type ListingComment ¶
type ListingComment struct { Comments []*ListingComment_Comment `protobuf:"bytes,1,rep,name=comments,proto3" json:"comments,omitempty"` // contains filtered or unexported fields }
func (*ListingComment) Descriptor
deprecated
func (*ListingComment) Descriptor() ([]byte, []int)
Deprecated: Use ListingComment.ProtoReflect.Descriptor instead.
func (*ListingComment) GetComments ¶
func (x *ListingComment) GetComments() []*ListingComment_Comment
func (*ListingComment) ProtoMessage ¶
func (*ListingComment) ProtoMessage()
func (*ListingComment) ProtoReflect ¶
func (x *ListingComment) ProtoReflect() protoreflect.Message
func (*ListingComment) Reset ¶
func (x *ListingComment) Reset()
func (*ListingComment) String ¶
func (x *ListingComment) String() string
type ListingComment_Comment ¶
type ListingComment_Comment struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Body string `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` // contains filtered or unexported fields }
func (*ListingComment_Comment) Descriptor
deprecated
func (*ListingComment_Comment) Descriptor() ([]byte, []int)
Deprecated: Use ListingComment_Comment.ProtoReflect.Descriptor instead.
func (*ListingComment_Comment) GetBody ¶
func (x *ListingComment_Comment) GetBody() string
func (*ListingComment_Comment) GetTitle ¶
func (x *ListingComment_Comment) GetTitle() string
func (*ListingComment_Comment) ProtoMessage ¶
func (*ListingComment_Comment) ProtoMessage()
func (*ListingComment_Comment) ProtoReflect ¶
func (x *ListingComment_Comment) ProtoReflect() protoreflect.Message
func (*ListingComment_Comment) Reset ¶
func (x *ListingComment_Comment) Reset()
func (*ListingComment_Comment) String ¶
func (x *ListingComment_Comment) String() string
type ListingCommentsClient ¶
type ListingCommentsClient interface { GetListingComments(ctx context.Context, in *GetListingCommentsRequest, opts ...grpc.CallOption) (*GetListingCommentsResponse, error) BulkGetListingComments(ctx context.Context, in *BulkGetListingCommentsRequest, opts ...grpc.CallOption) (*BulkGetListingCommentsResponse, error) }
ListingCommentsClient is the client API for ListingComments 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.
func NewListingCommentsClient ¶
func NewListingCommentsClient(cc grpc.ClientConnInterface) ListingCommentsClient
type ListingCommentsServer ¶
type ListingCommentsServer interface { GetListingComments(context.Context, *GetListingCommentsRequest) (*GetListingCommentsResponse, error) BulkGetListingComments(context.Context, *BulkGetListingCommentsRequest) (*BulkGetListingCommentsResponse, error) // contains filtered or unexported methods }
ListingCommentsServer is the server API for ListingComments service. All implementations must embed UnimplementedListingCommentsServer for forward compatibility
type UnimplementedListingCommentsServer ¶
type UnimplementedListingCommentsServer struct { }
UnimplementedListingCommentsServer must be embedded to have forward compatible implementations.
func (UnimplementedListingCommentsServer) BulkGetListingComments ¶
func (UnimplementedListingCommentsServer) BulkGetListingComments(context.Context, *BulkGetListingCommentsRequest) (*BulkGetListingCommentsResponse, error)
func (UnimplementedListingCommentsServer) GetListingComments ¶
func (UnimplementedListingCommentsServer) GetListingComments(context.Context, *GetListingCommentsRequest) (*GetListingCommentsResponse, error)
type UnsafeListingCommentsServer ¶
type UnsafeListingCommentsServer interface {
// contains filtered or unexported methods
}
UnsafeListingCommentsServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ListingCommentsServer will result in compilation errors.