grpcpb

package
v1.4.9 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2025 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UTCPService_GetManual_FullMethodName = "/grpcpb.UTCPService/GetManual"
	UTCPService_CallTool_FullMethodName  = "/grpcpb.UTCPService/CallTool"
)

Variables

View Source
var File_grpcpb_utcp_proto protoreflect.FileDescriptor
View Source
var UTCPService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "grpcpb.UTCPService",
	HandlerType: (*UTCPServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetManual",
			Handler:    _UTCPService_GetManual_Handler,
		},
		{
			MethodName: "CallTool",
			Handler:    _UTCPService_CallTool_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "grpcpb/utcp.proto",
}

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

Functions

func RegisterUTCPServiceServer

func RegisterUTCPServiceServer(s grpc.ServiceRegistrar, srv UTCPServiceServer)

Types

type Empty

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

func (*Empty) Descriptor deprecated

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

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

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

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

type Manual

type Manual struct {
	Version string  `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	Tools   []*Tool `protobuf:"bytes,2,rep,name=tools,proto3" json:"tools,omitempty"`
	// contains filtered or unexported fields
}

func (*Manual) Descriptor deprecated

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

Deprecated: Use Manual.ProtoReflect.Descriptor instead.

func (*Manual) GetTools

func (x *Manual) GetTools() []*Tool

func (*Manual) GetVersion

func (x *Manual) GetVersion() string

func (*Manual) ProtoMessage

func (*Manual) ProtoMessage()

func (*Manual) ProtoReflect

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

func (*Manual) Reset

func (x *Manual) Reset()

func (*Manual) String

func (x *Manual) String() string

type Tool

type Tool struct {
	Name        string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// contains filtered or unexported fields
}

func (*Tool) Descriptor deprecated

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

Deprecated: Use Tool.ProtoReflect.Descriptor instead.

func (*Tool) GetDescription

func (x *Tool) GetDescription() string

func (*Tool) GetName

func (x *Tool) GetName() string

func (*Tool) ProtoMessage

func (*Tool) ProtoMessage()

func (*Tool) ProtoReflect

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

func (*Tool) Reset

func (x *Tool) Reset()

func (*Tool) String

func (x *Tool) String() string

type ToolCallRequest

type ToolCallRequest struct {
	Tool     string `protobuf:"bytes,1,opt,name=tool,proto3" json:"tool,omitempty"`
	ArgsJson string `protobuf:"bytes,2,opt,name=args_json,json=argsJson,proto3" json:"args_json,omitempty"`
	// contains filtered or unexported fields
}

func (*ToolCallRequest) Descriptor deprecated

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

Deprecated: Use ToolCallRequest.ProtoReflect.Descriptor instead.

func (*ToolCallRequest) GetArgsJson

func (x *ToolCallRequest) GetArgsJson() string

func (*ToolCallRequest) GetTool

func (x *ToolCallRequest) GetTool() string

func (*ToolCallRequest) ProtoMessage

func (*ToolCallRequest) ProtoMessage()

func (*ToolCallRequest) ProtoReflect

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

func (*ToolCallRequest) Reset

func (x *ToolCallRequest) Reset()

func (*ToolCallRequest) String

func (x *ToolCallRequest) String() string

type ToolCallResponse

type ToolCallResponse struct {
	ResultJson string `protobuf:"bytes,1,opt,name=result_json,json=resultJson,proto3" json:"result_json,omitempty"`
	// contains filtered or unexported fields
}

func (*ToolCallResponse) Descriptor deprecated

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

Deprecated: Use ToolCallResponse.ProtoReflect.Descriptor instead.

func (*ToolCallResponse) GetResultJson

func (x *ToolCallResponse) GetResultJson() string

func (*ToolCallResponse) ProtoMessage

func (*ToolCallResponse) ProtoMessage()

func (*ToolCallResponse) ProtoReflect

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

func (*ToolCallResponse) Reset

func (x *ToolCallResponse) Reset()

func (*ToolCallResponse) String

func (x *ToolCallResponse) String() string

type UTCPServiceClient

type UTCPServiceClient interface {
	GetManual(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Manual, error)
	CallTool(ctx context.Context, in *ToolCallRequest, opts ...grpc.CallOption) (*ToolCallResponse, error)
}

UTCPServiceClient is the client API for UTCPService 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 UTCPServiceServer

type UTCPServiceServer interface {
	GetManual(context.Context, *Empty) (*Manual, error)
	CallTool(context.Context, *ToolCallRequest) (*ToolCallResponse, error)
	// contains filtered or unexported methods
}

UTCPServiceServer is the server API for UTCPService service. All implementations must embed UnimplementedUTCPServiceServer for forward compatibility

type UnimplementedUTCPServiceServer

type UnimplementedUTCPServiceServer struct {
}

UnimplementedUTCPServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedUTCPServiceServer) CallTool

func (UnimplementedUTCPServiceServer) GetManual

type UnsafeUTCPServiceServer

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

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

Jump to

Keyboard shortcuts

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