|
|
|
@@ -1,6 +1,6 @@
|
|
|
|
|
// Code generated by protoc-gen-go-drpc. DO NOT EDIT.
|
|
|
|
|
// protoc-gen-go-drpc version: v0.0.34
|
|
|
|
|
// source: enterprise/x/aibridged/proto/aibridged.proto
|
|
|
|
|
// source: enterprise/aibridged/proto/aibridged.proto
|
|
|
|
|
|
|
|
|
|
package proto
|
|
|
|
|
|
|
|
|
@@ -13,25 +13,25 @@ import (
|
|
|
|
|
drpcerr "storj.io/drpc/drpcerr"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type drpcEncoding_File_enterprise_x_aibridged_proto_aibridged_proto struct{}
|
|
|
|
|
type drpcEncoding_File_enterprise_aibridged_proto_aibridged_proto struct{}
|
|
|
|
|
|
|
|
|
|
func (drpcEncoding_File_enterprise_x_aibridged_proto_aibridged_proto) Marshal(msg drpc.Message) ([]byte, error) {
|
|
|
|
|
func (drpcEncoding_File_enterprise_aibridged_proto_aibridged_proto) Marshal(msg drpc.Message) ([]byte, error) {
|
|
|
|
|
return proto.Marshal(msg.(proto.Message))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (drpcEncoding_File_enterprise_x_aibridged_proto_aibridged_proto) MarshalAppend(buf []byte, msg drpc.Message) ([]byte, error) {
|
|
|
|
|
func (drpcEncoding_File_enterprise_aibridged_proto_aibridged_proto) MarshalAppend(buf []byte, msg drpc.Message) ([]byte, error) {
|
|
|
|
|
return proto.MarshalOptions{}.MarshalAppend(buf, msg.(proto.Message))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (drpcEncoding_File_enterprise_x_aibridged_proto_aibridged_proto) Unmarshal(buf []byte, msg drpc.Message) error {
|
|
|
|
|
func (drpcEncoding_File_enterprise_aibridged_proto_aibridged_proto) Unmarshal(buf []byte, msg drpc.Message) error {
|
|
|
|
|
return proto.Unmarshal(buf, msg.(proto.Message))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (drpcEncoding_File_enterprise_x_aibridged_proto_aibridged_proto) JSONMarshal(msg drpc.Message) ([]byte, error) {
|
|
|
|
|
func (drpcEncoding_File_enterprise_aibridged_proto_aibridged_proto) JSONMarshal(msg drpc.Message) ([]byte, error) {
|
|
|
|
|
return protojson.Marshal(msg.(proto.Message))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (drpcEncoding_File_enterprise_x_aibridged_proto_aibridged_proto) JSONUnmarshal(buf []byte, msg drpc.Message) error {
|
|
|
|
|
func (drpcEncoding_File_enterprise_aibridged_proto_aibridged_proto) JSONUnmarshal(buf []byte, msg drpc.Message) error {
|
|
|
|
|
return protojson.Unmarshal(buf, msg.(proto.Message))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -57,7 +57,7 @@ func (c *drpcRecorderClient) DRPCConn() drpc.Conn { return c.cc }
|
|
|
|
|
|
|
|
|
|
func (c *drpcRecorderClient) RecordInterception(ctx context.Context, in *RecordInterceptionRequest) (*RecordInterceptionResponse, error) {
|
|
|
|
|
out := new(RecordInterceptionResponse)
|
|
|
|
|
err := c.cc.Invoke(ctx, "/proto.Recorder/RecordInterception", drpcEncoding_File_enterprise_x_aibridged_proto_aibridged_proto{}, in, out)
|
|
|
|
|
err := c.cc.Invoke(ctx, "/proto.Recorder/RecordInterception", drpcEncoding_File_enterprise_aibridged_proto_aibridged_proto{}, in, out)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
@@ -66,7 +66,7 @@ func (c *drpcRecorderClient) RecordInterception(ctx context.Context, in *RecordI
|
|
|
|
|
|
|
|
|
|
func (c *drpcRecorderClient) RecordInterceptionEnded(ctx context.Context, in *RecordInterceptionEndedRequest) (*RecordInterceptionEndedResponse, error) {
|
|
|
|
|
out := new(RecordInterceptionEndedResponse)
|
|
|
|
|
err := c.cc.Invoke(ctx, "/proto.Recorder/RecordInterceptionEnded", drpcEncoding_File_enterprise_x_aibridged_proto_aibridged_proto{}, in, out)
|
|
|
|
|
err := c.cc.Invoke(ctx, "/proto.Recorder/RecordInterceptionEnded", drpcEncoding_File_enterprise_aibridged_proto_aibridged_proto{}, in, out)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
@@ -75,7 +75,7 @@ func (c *drpcRecorderClient) RecordInterceptionEnded(ctx context.Context, in *Re
|
|
|
|
|
|
|
|
|
|
func (c *drpcRecorderClient) RecordTokenUsage(ctx context.Context, in *RecordTokenUsageRequest) (*RecordTokenUsageResponse, error) {
|
|
|
|
|
out := new(RecordTokenUsageResponse)
|
|
|
|
|
err := c.cc.Invoke(ctx, "/proto.Recorder/RecordTokenUsage", drpcEncoding_File_enterprise_x_aibridged_proto_aibridged_proto{}, in, out)
|
|
|
|
|
err := c.cc.Invoke(ctx, "/proto.Recorder/RecordTokenUsage", drpcEncoding_File_enterprise_aibridged_proto_aibridged_proto{}, in, out)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
@@ -84,7 +84,7 @@ func (c *drpcRecorderClient) RecordTokenUsage(ctx context.Context, in *RecordTok
|
|
|
|
|
|
|
|
|
|
func (c *drpcRecorderClient) RecordPromptUsage(ctx context.Context, in *RecordPromptUsageRequest) (*RecordPromptUsageResponse, error) {
|
|
|
|
|
out := new(RecordPromptUsageResponse)
|
|
|
|
|
err := c.cc.Invoke(ctx, "/proto.Recorder/RecordPromptUsage", drpcEncoding_File_enterprise_x_aibridged_proto_aibridged_proto{}, in, out)
|
|
|
|
|
err := c.cc.Invoke(ctx, "/proto.Recorder/RecordPromptUsage", drpcEncoding_File_enterprise_aibridged_proto_aibridged_proto{}, in, out)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
@@ -93,7 +93,7 @@ func (c *drpcRecorderClient) RecordPromptUsage(ctx context.Context, in *RecordPr
|
|
|
|
|
|
|
|
|
|
func (c *drpcRecorderClient) RecordToolUsage(ctx context.Context, in *RecordToolUsageRequest) (*RecordToolUsageResponse, error) {
|
|
|
|
|
out := new(RecordToolUsageResponse)
|
|
|
|
|
err := c.cc.Invoke(ctx, "/proto.Recorder/RecordToolUsage", drpcEncoding_File_enterprise_x_aibridged_proto_aibridged_proto{}, in, out)
|
|
|
|
|
err := c.cc.Invoke(ctx, "/proto.Recorder/RecordToolUsage", drpcEncoding_File_enterprise_aibridged_proto_aibridged_proto{}, in, out)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
@@ -137,7 +137,7 @@ func (DRPCRecorderDescription) NumMethods() int { return 5 }
|
|
|
|
|
func (DRPCRecorderDescription) Method(n int) (string, drpc.Encoding, drpc.Receiver, interface{}, bool) {
|
|
|
|
|
switch n {
|
|
|
|
|
case 0:
|
|
|
|
|
return "/proto.Recorder/RecordInterception", drpcEncoding_File_enterprise_x_aibridged_proto_aibridged_proto{},
|
|
|
|
|
return "/proto.Recorder/RecordInterception", drpcEncoding_File_enterprise_aibridged_proto_aibridged_proto{},
|
|
|
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
|
|
|
|
return srv.(DRPCRecorderServer).
|
|
|
|
|
RecordInterception(
|
|
|
|
@@ -146,7 +146,7 @@ func (DRPCRecorderDescription) Method(n int) (string, drpc.Encoding, drpc.Receiv
|
|
|
|
|
)
|
|
|
|
|
}, DRPCRecorderServer.RecordInterception, true
|
|
|
|
|
case 1:
|
|
|
|
|
return "/proto.Recorder/RecordInterceptionEnded", drpcEncoding_File_enterprise_x_aibridged_proto_aibridged_proto{},
|
|
|
|
|
return "/proto.Recorder/RecordInterceptionEnded", drpcEncoding_File_enterprise_aibridged_proto_aibridged_proto{},
|
|
|
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
|
|
|
|
return srv.(DRPCRecorderServer).
|
|
|
|
|
RecordInterceptionEnded(
|
|
|
|
@@ -155,7 +155,7 @@ func (DRPCRecorderDescription) Method(n int) (string, drpc.Encoding, drpc.Receiv
|
|
|
|
|
)
|
|
|
|
|
}, DRPCRecorderServer.RecordInterceptionEnded, true
|
|
|
|
|
case 2:
|
|
|
|
|
return "/proto.Recorder/RecordTokenUsage", drpcEncoding_File_enterprise_x_aibridged_proto_aibridged_proto{},
|
|
|
|
|
return "/proto.Recorder/RecordTokenUsage", drpcEncoding_File_enterprise_aibridged_proto_aibridged_proto{},
|
|
|
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
|
|
|
|
return srv.(DRPCRecorderServer).
|
|
|
|
|
RecordTokenUsage(
|
|
|
|
@@ -164,7 +164,7 @@ func (DRPCRecorderDescription) Method(n int) (string, drpc.Encoding, drpc.Receiv
|
|
|
|
|
)
|
|
|
|
|
}, DRPCRecorderServer.RecordTokenUsage, true
|
|
|
|
|
case 3:
|
|
|
|
|
return "/proto.Recorder/RecordPromptUsage", drpcEncoding_File_enterprise_x_aibridged_proto_aibridged_proto{},
|
|
|
|
|
return "/proto.Recorder/RecordPromptUsage", drpcEncoding_File_enterprise_aibridged_proto_aibridged_proto{},
|
|
|
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
|
|
|
|
return srv.(DRPCRecorderServer).
|
|
|
|
|
RecordPromptUsage(
|
|
|
|
@@ -173,7 +173,7 @@ func (DRPCRecorderDescription) Method(n int) (string, drpc.Encoding, drpc.Receiv
|
|
|
|
|
)
|
|
|
|
|
}, DRPCRecorderServer.RecordPromptUsage, true
|
|
|
|
|
case 4:
|
|
|
|
|
return "/proto.Recorder/RecordToolUsage", drpcEncoding_File_enterprise_x_aibridged_proto_aibridged_proto{},
|
|
|
|
|
return "/proto.Recorder/RecordToolUsage", drpcEncoding_File_enterprise_aibridged_proto_aibridged_proto{},
|
|
|
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
|
|
|
|
return srv.(DRPCRecorderServer).
|
|
|
|
|
RecordToolUsage(
|
|
|
|
@@ -200,7 +200,7 @@ type drpcRecorder_RecordInterceptionStream struct {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *drpcRecorder_RecordInterceptionStream) SendAndClose(m *RecordInterceptionResponse) error {
|
|
|
|
|
if err := x.MsgSend(m, drpcEncoding_File_enterprise_x_aibridged_proto_aibridged_proto{}); err != nil {
|
|
|
|
|
if err := x.MsgSend(m, drpcEncoding_File_enterprise_aibridged_proto_aibridged_proto{}); err != nil {
|
|
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
return x.CloseSend()
|
|
|
|
@@ -216,7 +216,7 @@ type drpcRecorder_RecordInterceptionEndedStream struct {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *drpcRecorder_RecordInterceptionEndedStream) SendAndClose(m *RecordInterceptionEndedResponse) error {
|
|
|
|
|
if err := x.MsgSend(m, drpcEncoding_File_enterprise_x_aibridged_proto_aibridged_proto{}); err != nil {
|
|
|
|
|
if err := x.MsgSend(m, drpcEncoding_File_enterprise_aibridged_proto_aibridged_proto{}); err != nil {
|
|
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
return x.CloseSend()
|
|
|
|
@@ -232,7 +232,7 @@ type drpcRecorder_RecordTokenUsageStream struct {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *drpcRecorder_RecordTokenUsageStream) SendAndClose(m *RecordTokenUsageResponse) error {
|
|
|
|
|
if err := x.MsgSend(m, drpcEncoding_File_enterprise_x_aibridged_proto_aibridged_proto{}); err != nil {
|
|
|
|
|
if err := x.MsgSend(m, drpcEncoding_File_enterprise_aibridged_proto_aibridged_proto{}); err != nil {
|
|
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
return x.CloseSend()
|
|
|
|
@@ -248,7 +248,7 @@ type drpcRecorder_RecordPromptUsageStream struct {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *drpcRecorder_RecordPromptUsageStream) SendAndClose(m *RecordPromptUsageResponse) error {
|
|
|
|
|
if err := x.MsgSend(m, drpcEncoding_File_enterprise_x_aibridged_proto_aibridged_proto{}); err != nil {
|
|
|
|
|
if err := x.MsgSend(m, drpcEncoding_File_enterprise_aibridged_proto_aibridged_proto{}); err != nil {
|
|
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
return x.CloseSend()
|
|
|
|
@@ -264,7 +264,7 @@ type drpcRecorder_RecordToolUsageStream struct {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *drpcRecorder_RecordToolUsageStream) SendAndClose(m *RecordToolUsageResponse) error {
|
|
|
|
|
if err := x.MsgSend(m, drpcEncoding_File_enterprise_x_aibridged_proto_aibridged_proto{}); err != nil {
|
|
|
|
|
if err := x.MsgSend(m, drpcEncoding_File_enterprise_aibridged_proto_aibridged_proto{}); err != nil {
|
|
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
return x.CloseSend()
|
|
|
|
@@ -289,7 +289,7 @@ func (c *drpcMCPConfiguratorClient) DRPCConn() drpc.Conn { return c.cc }
|
|
|
|
|
|
|
|
|
|
func (c *drpcMCPConfiguratorClient) GetMCPServerConfigs(ctx context.Context, in *GetMCPServerConfigsRequest) (*GetMCPServerConfigsResponse, error) {
|
|
|
|
|
out := new(GetMCPServerConfigsResponse)
|
|
|
|
|
err := c.cc.Invoke(ctx, "/proto.MCPConfigurator/GetMCPServerConfigs", drpcEncoding_File_enterprise_x_aibridged_proto_aibridged_proto{}, in, out)
|
|
|
|
|
err := c.cc.Invoke(ctx, "/proto.MCPConfigurator/GetMCPServerConfigs", drpcEncoding_File_enterprise_aibridged_proto_aibridged_proto{}, in, out)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
@@ -298,7 +298,7 @@ func (c *drpcMCPConfiguratorClient) GetMCPServerConfigs(ctx context.Context, in
|
|
|
|
|
|
|
|
|
|
func (c *drpcMCPConfiguratorClient) GetMCPServerAccessTokensBatch(ctx context.Context, in *GetMCPServerAccessTokensBatchRequest) (*GetMCPServerAccessTokensBatchResponse, error) {
|
|
|
|
|
out := new(GetMCPServerAccessTokensBatchResponse)
|
|
|
|
|
err := c.cc.Invoke(ctx, "/proto.MCPConfigurator/GetMCPServerAccessTokensBatch", drpcEncoding_File_enterprise_x_aibridged_proto_aibridged_proto{}, in, out)
|
|
|
|
|
err := c.cc.Invoke(ctx, "/proto.MCPConfigurator/GetMCPServerAccessTokensBatch", drpcEncoding_File_enterprise_aibridged_proto_aibridged_proto{}, in, out)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
@@ -327,7 +327,7 @@ func (DRPCMCPConfiguratorDescription) NumMethods() int { return 2 }
|
|
|
|
|
func (DRPCMCPConfiguratorDescription) Method(n int) (string, drpc.Encoding, drpc.Receiver, interface{}, bool) {
|
|
|
|
|
switch n {
|
|
|
|
|
case 0:
|
|
|
|
|
return "/proto.MCPConfigurator/GetMCPServerConfigs", drpcEncoding_File_enterprise_x_aibridged_proto_aibridged_proto{},
|
|
|
|
|
return "/proto.MCPConfigurator/GetMCPServerConfigs", drpcEncoding_File_enterprise_aibridged_proto_aibridged_proto{},
|
|
|
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
|
|
|
|
return srv.(DRPCMCPConfiguratorServer).
|
|
|
|
|
GetMCPServerConfigs(
|
|
|
|
@@ -336,7 +336,7 @@ func (DRPCMCPConfiguratorDescription) Method(n int) (string, drpc.Encoding, drpc
|
|
|
|
|
)
|
|
|
|
|
}, DRPCMCPConfiguratorServer.GetMCPServerConfigs, true
|
|
|
|
|
case 1:
|
|
|
|
|
return "/proto.MCPConfigurator/GetMCPServerAccessTokensBatch", drpcEncoding_File_enterprise_x_aibridged_proto_aibridged_proto{},
|
|
|
|
|
return "/proto.MCPConfigurator/GetMCPServerAccessTokensBatch", drpcEncoding_File_enterprise_aibridged_proto_aibridged_proto{},
|
|
|
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
|
|
|
|
return srv.(DRPCMCPConfiguratorServer).
|
|
|
|
|
GetMCPServerAccessTokensBatch(
|
|
|
|
@@ -363,7 +363,7 @@ type drpcMCPConfigurator_GetMCPServerConfigsStream struct {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *drpcMCPConfigurator_GetMCPServerConfigsStream) SendAndClose(m *GetMCPServerConfigsResponse) error {
|
|
|
|
|
if err := x.MsgSend(m, drpcEncoding_File_enterprise_x_aibridged_proto_aibridged_proto{}); err != nil {
|
|
|
|
|
if err := x.MsgSend(m, drpcEncoding_File_enterprise_aibridged_proto_aibridged_proto{}); err != nil {
|
|
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
return x.CloseSend()
|
|
|
|
@@ -379,7 +379,7 @@ type drpcMCPConfigurator_GetMCPServerAccessTokensBatchStream struct {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *drpcMCPConfigurator_GetMCPServerAccessTokensBatchStream) SendAndClose(m *GetMCPServerAccessTokensBatchResponse) error {
|
|
|
|
|
if err := x.MsgSend(m, drpcEncoding_File_enterprise_x_aibridged_proto_aibridged_proto{}); err != nil {
|
|
|
|
|
if err := x.MsgSend(m, drpcEncoding_File_enterprise_aibridged_proto_aibridged_proto{}); err != nil {
|
|
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
return x.CloseSend()
|
|
|
|
@@ -403,7 +403,7 @@ func (c *drpcAuthorizerClient) DRPCConn() drpc.Conn { return c.cc }
|
|
|
|
|
|
|
|
|
|
func (c *drpcAuthorizerClient) IsAuthorized(ctx context.Context, in *IsAuthorizedRequest) (*IsAuthorizedResponse, error) {
|
|
|
|
|
out := new(IsAuthorizedResponse)
|
|
|
|
|
err := c.cc.Invoke(ctx, "/proto.Authorizer/IsAuthorized", drpcEncoding_File_enterprise_x_aibridged_proto_aibridged_proto{}, in, out)
|
|
|
|
|
err := c.cc.Invoke(ctx, "/proto.Authorizer/IsAuthorized", drpcEncoding_File_enterprise_aibridged_proto_aibridged_proto{}, in, out)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
@@ -427,7 +427,7 @@ func (DRPCAuthorizerDescription) NumMethods() int { return 1 }
|
|
|
|
|
func (DRPCAuthorizerDescription) Method(n int) (string, drpc.Encoding, drpc.Receiver, interface{}, bool) {
|
|
|
|
|
switch n {
|
|
|
|
|
case 0:
|
|
|
|
|
return "/proto.Authorizer/IsAuthorized", drpcEncoding_File_enterprise_x_aibridged_proto_aibridged_proto{},
|
|
|
|
|
return "/proto.Authorizer/IsAuthorized", drpcEncoding_File_enterprise_aibridged_proto_aibridged_proto{},
|
|
|
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
|
|
|
|
return srv.(DRPCAuthorizerServer).
|
|
|
|
|
IsAuthorized(
|
|
|
|
@@ -454,7 +454,7 @@ type drpcAuthorizer_IsAuthorizedStream struct {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *drpcAuthorizer_IsAuthorizedStream) SendAndClose(m *IsAuthorizedResponse) error {
|
|
|
|
|
if err := x.MsgSend(m, drpcEncoding_File_enterprise_x_aibridged_proto_aibridged_proto{}); err != nil {
|
|
|
|
|
if err := x.MsgSend(m, drpcEncoding_File_enterprise_aibridged_proto_aibridged_proto{}); err != nil {
|
|
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
return x.CloseSend()
|