comment_grpc_service

package
v0.0.0-...-e437075 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: Apache-2.0 Imports: 10 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CommentGrpcService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "commentGrpcService",
	HandlerType: (*CommentGrpcServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "UpsertComment",
			Handler:    _CommentGrpcService_UpsertComment_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "comment.proto",
}

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

View Source
var File_comment_proto protoreflect.FileDescriptor

Functions

func RegisterCommentGrpcServiceServer

func RegisterCommentGrpcServiceServer(s grpc.ServiceRegistrar, srv CommentGrpcServiceServer)

Types

type CommentGrpcServiceClient

type CommentGrpcServiceClient interface {
	UpsertComment(ctx context.Context, in *UpsertCommentGrpcRequest, opts ...grpc.CallOption) (*CommentIdGrpcResponse, error)
}

CommentGrpcServiceClient is the client API for CommentGrpcService 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 CommentGrpcServiceServer

type CommentGrpcServiceServer interface {
	UpsertComment(context.Context, *UpsertCommentGrpcRequest) (*CommentIdGrpcResponse, error)
}

CommentGrpcServiceServer is the server API for CommentGrpcService service. All implementations should embed UnimplementedCommentGrpcServiceServer for forward compatibility

type CommentIdGrpcResponse

type CommentIdGrpcResponse struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*CommentIdGrpcResponse) Descriptor deprecated

func (*CommentIdGrpcResponse) Descriptor() ([]byte, []int)

Deprecated: Use CommentIdGrpcResponse.ProtoReflect.Descriptor instead.

func (*CommentIdGrpcResponse) GetId

func (x *CommentIdGrpcResponse) GetId() string

func (*CommentIdGrpcResponse) ProtoMessage

func (*CommentIdGrpcResponse) ProtoMessage()

func (*CommentIdGrpcResponse) ProtoReflect

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

func (*CommentIdGrpcResponse) Reset

func (x *CommentIdGrpcResponse) Reset()

func (*CommentIdGrpcResponse) String

func (x *CommentIdGrpcResponse) String() string

type UnimplementedCommentGrpcServiceServer

type UnimplementedCommentGrpcServiceServer struct {
}

UnimplementedCommentGrpcServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedCommentGrpcServiceServer) UpsertComment

type UnsafeCommentGrpcServiceServer

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

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

type UpsertCommentGrpcRequest

type UpsertCommentGrpcRequest struct {
	Id                   string                       `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Tenant               string                       `protobuf:"bytes,2,opt,name=tenant,proto3" json:"tenant,omitempty"`
	UserId               string                       `protobuf:"bytes,3,opt,name=userId,proto3" json:"userId,omitempty"`
	Content              string                       `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"`
	ContentType          string                       `protobuf:"bytes,5,opt,name=contentType,proto3" json:"contentType,omitempty"`
	CreatedAt            *timestamppb.Timestamp       `protobuf:"bytes,6,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
	UpdatedAt            *timestamppb.Timestamp       `protobuf:"bytes,7,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"`
	AuthorUserId         *string                      `protobuf:"bytes,8,opt,name=authorUserId,proto3,oneof" json:"authorUserId,omitempty"`
	CommentedIssueId     *string                      `protobuf:"bytes,9,opt,name=commentedIssueId,proto3,oneof" json:"commentedIssueId,omitempty"`
	SourceFields         *common.SourceFields         `protobuf:"bytes,10,opt,name=sourceFields,proto3" json:"sourceFields,omitempty"`
	ExternalSystemFields *common.ExternalSystemFields `protobuf:"bytes,11,opt,name=externalSystemFields,proto3" json:"externalSystemFields,omitempty"`
	// contains filtered or unexported fields
}

func (*UpsertCommentGrpcRequest) Descriptor deprecated

func (*UpsertCommentGrpcRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpsertCommentGrpcRequest.ProtoReflect.Descriptor instead.

func (*UpsertCommentGrpcRequest) GetAuthorUserId

func (x *UpsertCommentGrpcRequest) GetAuthorUserId() string

func (*UpsertCommentGrpcRequest) GetCommentedIssueId

func (x *UpsertCommentGrpcRequest) GetCommentedIssueId() string

func (*UpsertCommentGrpcRequest) GetContent

func (x *UpsertCommentGrpcRequest) GetContent() string

func (*UpsertCommentGrpcRequest) GetContentType

func (x *UpsertCommentGrpcRequest) GetContentType() string

func (*UpsertCommentGrpcRequest) GetCreatedAt

func (x *UpsertCommentGrpcRequest) GetCreatedAt() *timestamppb.Timestamp

func (*UpsertCommentGrpcRequest) GetExternalSystemFields

func (x *UpsertCommentGrpcRequest) GetExternalSystemFields() *common.ExternalSystemFields

func (*UpsertCommentGrpcRequest) GetId

func (x *UpsertCommentGrpcRequest) GetId() string

func (*UpsertCommentGrpcRequest) GetSourceFields

func (x *UpsertCommentGrpcRequest) GetSourceFields() *common.SourceFields

func (*UpsertCommentGrpcRequest) GetTenant

func (x *UpsertCommentGrpcRequest) GetTenant() string

func (*UpsertCommentGrpcRequest) GetUpdatedAt

func (x *UpsertCommentGrpcRequest) GetUpdatedAt() *timestamppb.Timestamp

func (*UpsertCommentGrpcRequest) GetUserId

func (x *UpsertCommentGrpcRequest) GetUserId() string

func (*UpsertCommentGrpcRequest) ProtoMessage

func (*UpsertCommentGrpcRequest) ProtoMessage()

func (*UpsertCommentGrpcRequest) ProtoReflect

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

func (*UpsertCommentGrpcRequest) Reset

func (x *UpsertCommentGrpcRequest) Reset()

func (*UpsertCommentGrpcRequest) String

func (x *UpsertCommentGrpcRequest) String() string

Jump to

Keyboard shortcuts

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