listing_comments

package
v0.0.0-...-588a488 Latest Latest
Warning

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

Go to latest
Published: May 10, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_listing_comments_comments_proto protoreflect.FileDescriptor
View Source
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 (*BulkGetListingCommentsRequest) Reset

func (x *BulkGetListingCommentsRequest) Reset()

func (*BulkGetListingCommentsRequest) 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 (*BulkGetListingCommentsResponse) Reset

func (x *BulkGetListingCommentsResponse) Reset()

func (*BulkGetListingCommentsResponse) 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 (*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 (*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.

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) GetListingComments

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.

Jump to

Keyboard shortcuts

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