knowledge_base

package
v0.0.0-...-953e6da Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KnowledgeBaseService_CreateKnowledgeBase_FullMethodName     = "/knowdateapp.knowledge.v1.knowledge_base.KnowledgeBaseService/CreateKnowledgeBase"
	KnowledgeBaseService_GetKnowledgeBaseById_FullMethodName    = "/knowdateapp.knowledge.v1.knowledge_base.KnowledgeBaseService/GetKnowledgeBaseById"
	KnowledgeBaseService_DeleteKnowledgeBaseById_FullMethodName = "/knowdateapp.knowledge.v1.knowledge_base.KnowledgeBaseService/DeleteKnowledgeBaseById"
)

Variables

View Source
var File_api_v1_knowledge_base_knowledge_base_proto protoreflect.FileDescriptor
View Source
var KnowledgeBaseService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "knowdateapp.knowledge.v1.knowledge_base.KnowledgeBaseService",
	HandlerType: (*KnowledgeBaseServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateKnowledgeBase",
			Handler:    _KnowledgeBaseService_CreateKnowledgeBase_Handler,
		},
		{
			MethodName: "GetKnowledgeBaseById",
			Handler:    _KnowledgeBaseService_GetKnowledgeBaseById_Handler,
		},
		{
			MethodName: "DeleteKnowledgeBaseById",
			Handler:    _KnowledgeBaseService_DeleteKnowledgeBaseById_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/v1/knowledge_base/knowledge_base.proto",
}

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

Functions

func RegisterKnowledgeBaseServiceServer

func RegisterKnowledgeBaseServiceServer(s grpc.ServiceRegistrar, srv KnowledgeBaseServiceServer)

Types

type CreateKnowledgeBaseRequest

type CreateKnowledgeBaseRequest struct {
	OwnerId     string `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"`
	Topic       string `protobuf:"bytes,2,opt,name=topic,proto3" json:"topic,omitempty"`
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateKnowledgeBaseRequest) Descriptor deprecated

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

Deprecated: Use CreateKnowledgeBaseRequest.ProtoReflect.Descriptor instead.

func (*CreateKnowledgeBaseRequest) GetDescription

func (x *CreateKnowledgeBaseRequest) GetDescription() string

func (*CreateKnowledgeBaseRequest) GetOwnerId

func (x *CreateKnowledgeBaseRequest) GetOwnerId() string

func (*CreateKnowledgeBaseRequest) GetTopic

func (x *CreateKnowledgeBaseRequest) GetTopic() string

func (*CreateKnowledgeBaseRequest) ProtoMessage

func (*CreateKnowledgeBaseRequest) ProtoMessage()

func (*CreateKnowledgeBaseRequest) ProtoReflect

func (*CreateKnowledgeBaseRequest) Reset

func (x *CreateKnowledgeBaseRequest) Reset()

func (*CreateKnowledgeBaseRequest) String

func (x *CreateKnowledgeBaseRequest) String() string

type CreateKnowledgeBaseResponse

type CreateKnowledgeBaseResponse struct {
	KnowledgeBase *common.KnowledgeBase `protobuf:"bytes,1,opt,name=knowledge_base,json=knowledgeBase,proto3" json:"knowledge_base,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateKnowledgeBaseResponse) Descriptor deprecated

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

Deprecated: Use CreateKnowledgeBaseResponse.ProtoReflect.Descriptor instead.

func (*CreateKnowledgeBaseResponse) GetKnowledgeBase

func (x *CreateKnowledgeBaseResponse) GetKnowledgeBase() *common.KnowledgeBase

func (*CreateKnowledgeBaseResponse) ProtoMessage

func (*CreateKnowledgeBaseResponse) ProtoMessage()

func (*CreateKnowledgeBaseResponse) ProtoReflect

func (*CreateKnowledgeBaseResponse) Reset

func (x *CreateKnowledgeBaseResponse) Reset()

func (*CreateKnowledgeBaseResponse) String

func (x *CreateKnowledgeBaseResponse) String() string

type DeleteKnowledgeBaseByIdRequest

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

func (*DeleteKnowledgeBaseByIdRequest) Descriptor deprecated

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

Deprecated: Use DeleteKnowledgeBaseByIdRequest.ProtoReflect.Descriptor instead.

func (*DeleteKnowledgeBaseByIdRequest) GetId

func (*DeleteKnowledgeBaseByIdRequest) ProtoMessage

func (*DeleteKnowledgeBaseByIdRequest) ProtoMessage()

func (*DeleteKnowledgeBaseByIdRequest) ProtoReflect

func (*DeleteKnowledgeBaseByIdRequest) Reset

func (x *DeleteKnowledgeBaseByIdRequest) Reset()

func (*DeleteKnowledgeBaseByIdRequest) String

type DeleteKnowledgeBaseByIdResponse

type DeleteKnowledgeBaseByIdResponse struct {
	// contains filtered or unexported fields
}

func (*DeleteKnowledgeBaseByIdResponse) Descriptor deprecated

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

Deprecated: Use DeleteKnowledgeBaseByIdResponse.ProtoReflect.Descriptor instead.

func (*DeleteKnowledgeBaseByIdResponse) ProtoMessage

func (*DeleteKnowledgeBaseByIdResponse) ProtoMessage()

func (*DeleteKnowledgeBaseByIdResponse) ProtoReflect

func (*DeleteKnowledgeBaseByIdResponse) Reset

func (*DeleteKnowledgeBaseByIdResponse) String

type GetKnowledgeBaseByIdRequest

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

func (*GetKnowledgeBaseByIdRequest) Descriptor deprecated

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

Deprecated: Use GetKnowledgeBaseByIdRequest.ProtoReflect.Descriptor instead.

func (*GetKnowledgeBaseByIdRequest) GetId

func (*GetKnowledgeBaseByIdRequest) ProtoMessage

func (*GetKnowledgeBaseByIdRequest) ProtoMessage()

func (*GetKnowledgeBaseByIdRequest) ProtoReflect

func (*GetKnowledgeBaseByIdRequest) Reset

func (x *GetKnowledgeBaseByIdRequest) Reset()

func (*GetKnowledgeBaseByIdRequest) String

func (x *GetKnowledgeBaseByIdRequest) String() string

type GetKnowledgeBaseByIdResponse

type GetKnowledgeBaseByIdResponse struct {
	KnowledgeBase *common.KnowledgeBase `protobuf:"bytes,1,opt,name=knowledge_base,json=knowledgeBase,proto3" json:"knowledge_base,omitempty"`
	// contains filtered or unexported fields
}

func (*GetKnowledgeBaseByIdResponse) Descriptor deprecated

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

Deprecated: Use GetKnowledgeBaseByIdResponse.ProtoReflect.Descriptor instead.

func (*GetKnowledgeBaseByIdResponse) GetKnowledgeBase

func (x *GetKnowledgeBaseByIdResponse) GetKnowledgeBase() *common.KnowledgeBase

func (*GetKnowledgeBaseByIdResponse) ProtoMessage

func (*GetKnowledgeBaseByIdResponse) ProtoMessage()

func (*GetKnowledgeBaseByIdResponse) ProtoReflect

func (*GetKnowledgeBaseByIdResponse) Reset

func (x *GetKnowledgeBaseByIdResponse) Reset()

func (*GetKnowledgeBaseByIdResponse) String

type KnowledgeBaseServiceClient

type KnowledgeBaseServiceClient interface {
	CreateKnowledgeBase(ctx context.Context, in *CreateKnowledgeBaseRequest, opts ...grpc.CallOption) (*CreateKnowledgeBaseResponse, error)
	GetKnowledgeBaseById(ctx context.Context, in *GetKnowledgeBaseByIdRequest, opts ...grpc.CallOption) (*GetKnowledgeBaseByIdResponse, error)
	DeleteKnowledgeBaseById(ctx context.Context, in *DeleteKnowledgeBaseByIdRequest, opts ...grpc.CallOption) (*DeleteKnowledgeBaseByIdResponse, error)
}

KnowledgeBaseServiceClient is the client API for KnowledgeBaseService 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 KnowledgeBaseServiceServer

type KnowledgeBaseServiceServer interface {
	CreateKnowledgeBase(context.Context, *CreateKnowledgeBaseRequest) (*CreateKnowledgeBaseResponse, error)
	GetKnowledgeBaseById(context.Context, *GetKnowledgeBaseByIdRequest) (*GetKnowledgeBaseByIdResponse, error)
	DeleteKnowledgeBaseById(context.Context, *DeleteKnowledgeBaseByIdRequest) (*DeleteKnowledgeBaseByIdResponse, error)
	// contains filtered or unexported methods
}

KnowledgeBaseServiceServer is the server API for KnowledgeBaseService service. All implementations must embed UnimplementedKnowledgeBaseServiceServer for forward compatibility

type UnimplementedKnowledgeBaseServiceServer

type UnimplementedKnowledgeBaseServiceServer struct {
}

UnimplementedKnowledgeBaseServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedKnowledgeBaseServiceServer) CreateKnowledgeBase

func (UnimplementedKnowledgeBaseServiceServer) GetKnowledgeBaseById

type UnsafeKnowledgeBaseServiceServer

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

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

Jump to

Keyboard shortcuts

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