chore(sdk): regenerate gateway stubs with logging; stop buf clean wiping hand-written SDK
This commit is contained in:
4 files changed
+1250
-418
No files matched your search
@@ -1,5 +1,4 @@
|
||||
version: v2
|
||||
clean: true
|
||||
managed:
|
||||
enabled: true
|
||||
override:
|
||||
|
||||
+910
-402
File diff suppressed because it is too large.
Load diff
+131
-15
@@ -19,14 +19,16 @@ import (
|
||||
const _ = grpc.SupportPackageIsVersion9
|
||||
|
||||
const (
|
||||
ChatService_RecentLogs_FullMethodName = "/gateway.v1.ChatService/RecentLogs"
|
||||
ChatService_Snapshot_FullMethodName = "/gateway.v1.ChatService/Snapshot"
|
||||
ChatService_GetSession_FullMethodName = "/gateway.v1.ChatService/GetSession"
|
||||
ChatService_RecentMessages_FullMethodName = "/gateway.v1.ChatService/RecentMessages"
|
||||
ChatService_RecentTurns_FullMethodName = "/gateway.v1.ChatService/RecentTurns"
|
||||
ChatService_Route_FullMethodName = "/gateway.v1.ChatService/Route"
|
||||
ChatService_Stream_FullMethodName = "/gateway.v1.ChatService/Stream"
|
||||
ChatService_Answer_FullMethodName = "/gateway.v1.ChatService/Answer"
|
||||
ChatService_Cancel_FullMethodName = "/gateway.v1.ChatService/Cancel"
|
||||
ChatService_SetPersona_FullMethodName = "/gateway.v1.ChatService/SetPersona"
|
||||
ChatService_StopTasks_FullMethodName = "/gateway.v1.ChatService/StopTasks"
|
||||
ChatService_ApplyTaskAction_FullMethodName = "/gateway.v1.ChatService/ApplyTaskAction"
|
||||
ChatService_ApplyOperatorTaskAction_FullMethodName = "/gateway.v1.ChatService/ApplyOperatorTaskAction"
|
||||
ChatService_SaveSession_FullMethodName = "/gateway.v1.ChatService/SaveSession"
|
||||
@@ -43,20 +45,23 @@ const (
|
||||
ChatService_ListSkills_FullMethodName = "/gateway.v1.ChatService/ListSkills"
|
||||
ChatService_CuratorHealth_FullMethodName = "/gateway.v1.ChatService/CuratorHealth"
|
||||
ChatService_ReloadChannel_FullMethodName = "/gateway.v1.ChatService/ReloadChannel"
|
||||
ChatService_CheckSecret_FullMethodName = "/gateway.v1.ChatService/CheckSecret"
|
||||
)
|
||||
|
||||
// ChatServiceClient is the client API for ChatService 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 ChatServiceClient interface {
|
||||
RecentLogs(ctx context.Context, in *RecentLogsRequest, opts ...grpc.CallOption) (*RecentLogsResponse, error)
|
||||
Snapshot(ctx context.Context, in *SnapshotRequest, opts ...grpc.CallOption) (*SnapshotResponse, error)
|
||||
GetSession(ctx context.Context, in *GetSessionRequest, opts ...grpc.CallOption) (*GetSessionResponse, error)
|
||||
RecentMessages(ctx context.Context, in *RecentMessagesRequest, opts ...grpc.CallOption) (*RecentMessagesResponse, error)
|
||||
RecentTurns(ctx context.Context, in *RecentTurnsRequest, opts ...grpc.CallOption) (*RecentTurnsResponse, error)
|
||||
Route(ctx context.Context, in *RouteRequest, opts ...grpc.CallOption) (*RouteResponse, error)
|
||||
Stream(ctx context.Context, in *StreamRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[StreamResponse], error)
|
||||
Answer(ctx context.Context, in *AnswerRequest, opts ...grpc.CallOption) (*AnswerResponse, error)
|
||||
Cancel(ctx context.Context, in *CancelRequest, opts ...grpc.CallOption) (*CancelResponse, error)
|
||||
SetPersona(ctx context.Context, in *SetPersonaRequest, opts ...grpc.CallOption) (*SetPersonaResponse, error)
|
||||
StopTasks(ctx context.Context, in *StopTasksRequest, opts ...grpc.CallOption) (*StopTasksResponse, error)
|
||||
ApplyTaskAction(ctx context.Context, in *ApplyTaskActionRequest, opts ...grpc.CallOption) (*ApplyTaskActionResponse, error)
|
||||
ApplyOperatorTaskAction(ctx context.Context, in *ApplyOperatorTaskActionRequest, opts ...grpc.CallOption) (*ApplyOperatorTaskActionResponse, error)
|
||||
SaveSession(ctx context.Context, in *SaveSessionRequest, opts ...grpc.CallOption) (*SaveSessionResponse, error)
|
||||
@@ -73,6 +78,8 @@ type ChatServiceClient interface {
|
||||
ListSkills(ctx context.Context, in *ListSkillsRequest, opts ...grpc.CallOption) (*ListSkillsResponse, error)
|
||||
CuratorHealth(ctx context.Context, in *CuratorHealthRequest, opts ...grpc.CallOption) (*CuratorHealthResponse, error)
|
||||
ReloadChannel(ctx context.Context, in *ReloadChannelRequest, opts ...grpc.CallOption) (*ReloadChannelResponse, error)
|
||||
// CheckSecret reports resolution in this process without returning a value.
|
||||
CheckSecret(ctx context.Context, in *CheckSecretRequest, opts ...grpc.CallOption) (*CheckSecretResponse, error)
|
||||
}
|
||||
|
||||
type chatServiceClient struct {
|
||||
@@ -83,6 +90,16 @@ func NewChatServiceClient(cc grpc.ClientConnInterface) ChatServiceClient {
|
||||
return &chatServiceClient{cc}
|
||||
}
|
||||
|
||||
func (c *chatServiceClient) RecentLogs(ctx context.Context, in *RecentLogsRequest, opts ...grpc.CallOption) (*RecentLogsResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(RecentLogsResponse)
|
||||
err := c.cc.Invoke(ctx, ChatService_RecentLogs_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *chatServiceClient) Snapshot(ctx context.Context, in *SnapshotRequest, opts ...grpc.CallOption) (*SnapshotResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(SnapshotResponse)
|
||||
@@ -152,6 +169,16 @@ func (c *chatServiceClient) Stream(ctx context.Context, in *StreamRequest, opts
|
||||
// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
|
||||
type ChatService_StreamClient = grpc.ServerStreamingClient[StreamResponse]
|
||||
|
||||
func (c *chatServiceClient) Answer(ctx context.Context, in *AnswerRequest, opts ...grpc.CallOption) (*AnswerResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(AnswerResponse)
|
||||
err := c.cc.Invoke(ctx, ChatService_Answer_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *chatServiceClient) Cancel(ctx context.Context, in *CancelRequest, opts ...grpc.CallOption) (*CancelResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(CancelResponse)
|
||||
@@ -162,10 +189,10 @@ func (c *chatServiceClient) Cancel(ctx context.Context, in *CancelRequest, opts
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *chatServiceClient) SetPersona(ctx context.Context, in *SetPersonaRequest, opts ...grpc.CallOption) (*SetPersonaResponse, error) {
|
||||
func (c *chatServiceClient) StopTasks(ctx context.Context, in *StopTasksRequest, opts ...grpc.CallOption) (*StopTasksResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(SetPersonaResponse)
|
||||
err := c.cc.Invoke(ctx, ChatService_SetPersona_FullMethodName, in, out, cOpts...)
|
||||
out := new(StopTasksResponse)
|
||||
err := c.cc.Invoke(ctx, ChatService_StopTasks_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -332,18 +359,30 @@ func (c *chatServiceClient) ReloadChannel(ctx context.Context, in *ReloadChannel
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *chatServiceClient) CheckSecret(ctx context.Context, in *CheckSecretRequest, opts ...grpc.CallOption) (*CheckSecretResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(CheckSecretResponse)
|
||||
err := c.cc.Invoke(ctx, ChatService_CheckSecret_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// ChatServiceServer is the server API for ChatService service.
|
||||
// All implementations must embed UnimplementedChatServiceServer
|
||||
// for forward compatibility.
|
||||
type ChatServiceServer interface {
|
||||
RecentLogs(context.Context, *RecentLogsRequest) (*RecentLogsResponse, error)
|
||||
Snapshot(context.Context, *SnapshotRequest) (*SnapshotResponse, error)
|
||||
GetSession(context.Context, *GetSessionRequest) (*GetSessionResponse, error)
|
||||
RecentMessages(context.Context, *RecentMessagesRequest) (*RecentMessagesResponse, error)
|
||||
RecentTurns(context.Context, *RecentTurnsRequest) (*RecentTurnsResponse, error)
|
||||
Route(context.Context, *RouteRequest) (*RouteResponse, error)
|
||||
Stream(*StreamRequest, grpc.ServerStreamingServer[StreamResponse]) error
|
||||
Answer(context.Context, *AnswerRequest) (*AnswerResponse, error)
|
||||
Cancel(context.Context, *CancelRequest) (*CancelResponse, error)
|
||||
SetPersona(context.Context, *SetPersonaRequest) (*SetPersonaResponse, error)
|
||||
StopTasks(context.Context, *StopTasksRequest) (*StopTasksResponse, error)
|
||||
ApplyTaskAction(context.Context, *ApplyTaskActionRequest) (*ApplyTaskActionResponse, error)
|
||||
ApplyOperatorTaskAction(context.Context, *ApplyOperatorTaskActionRequest) (*ApplyOperatorTaskActionResponse, error)
|
||||
SaveSession(context.Context, *SaveSessionRequest) (*SaveSessionResponse, error)
|
||||
@@ -360,6 +399,8 @@ type ChatServiceServer interface {
|
||||
ListSkills(context.Context, *ListSkillsRequest) (*ListSkillsResponse, error)
|
||||
CuratorHealth(context.Context, *CuratorHealthRequest) (*CuratorHealthResponse, error)
|
||||
ReloadChannel(context.Context, *ReloadChannelRequest) (*ReloadChannelResponse, error)
|
||||
// CheckSecret reports resolution in this process without returning a value.
|
||||
CheckSecret(context.Context, *CheckSecretRequest) (*CheckSecretResponse, error)
|
||||
mustEmbedUnimplementedChatServiceServer()
|
||||
}
|
||||
|
||||
@@ -370,6 +411,9 @@ type ChatServiceServer interface {
|
||||
// pointer dereference when methods are called.
|
||||
type UnimplementedChatServiceServer struct{}
|
||||
|
||||
func (UnimplementedChatServiceServer) RecentLogs(context.Context, *RecentLogsRequest) (*RecentLogsResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method RecentLogs not implemented")
|
||||
}
|
||||
func (UnimplementedChatServiceServer) Snapshot(context.Context, *SnapshotRequest) (*SnapshotResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method Snapshot not implemented")
|
||||
}
|
||||
@@ -388,11 +432,14 @@ func (UnimplementedChatServiceServer) Route(context.Context, *RouteRequest) (*Ro
|
||||
func (UnimplementedChatServiceServer) Stream(*StreamRequest, grpc.ServerStreamingServer[StreamResponse]) error {
|
||||
return status.Error(codes.Unimplemented, "method Stream not implemented")
|
||||
}
|
||||
func (UnimplementedChatServiceServer) Answer(context.Context, *AnswerRequest) (*AnswerResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method Answer not implemented")
|
||||
}
|
||||
func (UnimplementedChatServiceServer) Cancel(context.Context, *CancelRequest) (*CancelResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method Cancel not implemented")
|
||||
}
|
||||
func (UnimplementedChatServiceServer) SetPersona(context.Context, *SetPersonaRequest) (*SetPersonaResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method SetPersona not implemented")
|
||||
func (UnimplementedChatServiceServer) StopTasks(context.Context, *StopTasksRequest) (*StopTasksResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method StopTasks not implemented")
|
||||
}
|
||||
func (UnimplementedChatServiceServer) ApplyTaskAction(context.Context, *ApplyTaskActionRequest) (*ApplyTaskActionResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method ApplyTaskAction not implemented")
|
||||
@@ -442,6 +489,9 @@ func (UnimplementedChatServiceServer) CuratorHealth(context.Context, *CuratorHea
|
||||
func (UnimplementedChatServiceServer) ReloadChannel(context.Context, *ReloadChannelRequest) (*ReloadChannelResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method ReloadChannel not implemented")
|
||||
}
|
||||
func (UnimplementedChatServiceServer) CheckSecret(context.Context, *CheckSecretRequest) (*CheckSecretResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method CheckSecret not implemented")
|
||||
}
|
||||
func (UnimplementedChatServiceServer) mustEmbedUnimplementedChatServiceServer() {}
|
||||
func (UnimplementedChatServiceServer) testEmbeddedByValue() {}
|
||||
|
||||
@@ -463,6 +513,24 @@ func RegisterChatServiceServer(s grpc.ServiceRegistrar, srv ChatServiceServer) {
|
||||
s.RegisterService(&ChatService_ServiceDesc, srv)
|
||||
}
|
||||
|
||||
func _ChatService_RecentLogs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(RecentLogsRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(ChatServiceServer).RecentLogs(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: ChatService_RecentLogs_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(ChatServiceServer).RecentLogs(ctx, req.(*RecentLogsRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _ChatService_Snapshot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(SnapshotRequest)
|
||||
if err := dec(in); err != nil {
|
||||
@@ -564,6 +632,24 @@ func _ChatService_Stream_Handler(srv interface{}, stream grpc.ServerStream) erro
|
||||
// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
|
||||
type ChatService_StreamServer = grpc.ServerStreamingServer[StreamResponse]
|
||||
|
||||
func _ChatService_Answer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(AnswerRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(ChatServiceServer).Answer(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: ChatService_Answer_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(ChatServiceServer).Answer(ctx, req.(*AnswerRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _ChatService_Cancel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(CancelRequest)
|
||||
if err := dec(in); err != nil {
|
||||
@@ -582,20 +668,20 @@ func _ChatService_Cancel_Handler(srv interface{}, ctx context.Context, dec func(
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _ChatService_SetPersona_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(SetPersonaRequest)
|
||||
func _ChatService_StopTasks_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(StopTasksRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(ChatServiceServer).SetPersona(ctx, in)
|
||||
return srv.(ChatServiceServer).StopTasks(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: ChatService_SetPersona_FullMethodName,
|
||||
FullMethod: ChatService_StopTasks_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(ChatServiceServer).SetPersona(ctx, req.(*SetPersonaRequest))
|
||||
return srv.(ChatServiceServer).StopTasks(ctx, req.(*StopTasksRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
@@ -888,6 +974,24 @@ func _ChatService_ReloadChannel_Handler(srv interface{}, ctx context.Context, de
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _ChatService_CheckSecret_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(CheckSecretRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(ChatServiceServer).CheckSecret(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: ChatService_CheckSecret_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(ChatServiceServer).CheckSecret(ctx, req.(*CheckSecretRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
// ChatService_ServiceDesc is the grpc.ServiceDesc for ChatService service.
|
||||
// It's only intended for direct use with grpc.RegisterService,
|
||||
// and not to be introspected or modified (even as a copy)
|
||||
@@ -895,6 +999,10 @@ var ChatService_ServiceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "gateway.v1.ChatService",
|
||||
HandlerType: (*ChatServiceServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "RecentLogs",
|
||||
Handler: _ChatService_RecentLogs_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "Snapshot",
|
||||
Handler: _ChatService_Snapshot_Handler,
|
||||
@@ -915,13 +1023,17 @@ var ChatService_ServiceDesc = grpc.ServiceDesc{
|
||||
MethodName: "Route",
|
||||
Handler: _ChatService_Route_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "Answer",
|
||||
Handler: _ChatService_Answer_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "Cancel",
|
||||
Handler: _ChatService_Cancel_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "SetPersona",
|
||||
Handler: _ChatService_SetPersona_Handler,
|
||||
MethodName: "StopTasks",
|
||||
Handler: _ChatService_StopTasks_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "ApplyTaskAction",
|
||||
@@ -987,6 +1099,10 @@ var ChatService_ServiceDesc = grpc.ServiceDesc{
|
||||
MethodName: "ReloadChannel",
|
||||
Handler: _ChatService_ReloadChannel_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "CheckSecret",
|
||||
Handler: _ChatService_CheckSecret_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{
|
||||
{
|
||||
|
||||
@@ -0,0 +1,209 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.36.11
|
||||
// protoc (unknown)
|
||||
// source: logging/v1/logging.proto
|
||||
|
||||
package loggingv1
|
||||
|
||||
import (
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
unsafe "unsafe"
|
||||
)
|
||||
|
||||
const (
|
||||
// Verify that this generated code is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
||||
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||
)
|
||||
|
||||
type LogQuery struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Limit int32 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"`
|
||||
Levels []string `protobuf:"bytes,2,rep,name=levels,proto3" json:"levels,omitempty"`
|
||||
Component string `protobuf:"bytes,3,opt,name=component,proto3" json:"component,omitempty"`
|
||||
Contains string `protobuf:"bytes,4,opt,name=contains,proto3" json:"contains,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *LogQuery) Reset() {
|
||||
*x = LogQuery{}
|
||||
mi := &file_logging_v1_logging_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *LogQuery) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*LogQuery) ProtoMessage() {}
|
||||
|
||||
func (x *LogQuery) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_logging_v1_logging_proto_msgTypes[0]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use LogQuery.ProtoReflect.Descriptor instead.
|
||||
func (*LogQuery) Descriptor() ([]byte, []int) {
|
||||
return file_logging_v1_logging_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *LogQuery) GetLimit() int32 {
|
||||
if x != nil {
|
||||
return x.Limit
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *LogQuery) GetLevels() []string {
|
||||
if x != nil {
|
||||
return x.Levels
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *LogQuery) GetComponent() string {
|
||||
if x != nil {
|
||||
return x.Component
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *LogQuery) GetContains() string {
|
||||
if x != nil {
|
||||
return x.Contains
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type LogSnapshot struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
EntriesJson []byte `protobuf:"bytes,1,opt,name=entries_json,json=entriesJson,proto3" json:"entries_json,omitempty"`
|
||||
Truncated bool `protobuf:"varint,2,opt,name=truncated,proto3" json:"truncated,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *LogSnapshot) Reset() {
|
||||
*x = LogSnapshot{}
|
||||
mi := &file_logging_v1_logging_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *LogSnapshot) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*LogSnapshot) ProtoMessage() {}
|
||||
|
||||
func (x *LogSnapshot) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_logging_v1_logging_proto_msgTypes[1]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use LogSnapshot.ProtoReflect.Descriptor instead.
|
||||
func (*LogSnapshot) Descriptor() ([]byte, []int) {
|
||||
return file_logging_v1_logging_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *LogSnapshot) GetEntriesJson() []byte {
|
||||
if x != nil {
|
||||
return x.EntriesJson
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *LogSnapshot) GetTruncated() bool {
|
||||
if x != nil {
|
||||
return x.Truncated
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
var File_logging_v1_logging_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_logging_v1_logging_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\x18logging/v1/logging.proto\x12\n" +
|
||||
"logging.v1\"r\n" +
|
||||
"\bLogQuery\x12\x14\n" +
|
||||
"\x05limit\x18\x01 \x01(\x05R\x05limit\x12\x16\n" +
|
||||
"\x06levels\x18\x02 \x03(\tR\x06levels\x12\x1c\n" +
|
||||
"\tcomponent\x18\x03 \x01(\tR\tcomponent\x12\x1a\n" +
|
||||
"\bcontains\x18\x04 \x01(\tR\bcontains\"N\n" +
|
||||
"\vLogSnapshot\x12!\n" +
|
||||
"\fentries_json\x18\x01 \x01(\fR\ventriesJson\x12\x1c\n" +
|
||||
"\ttruncated\x18\x02 \x01(\bR\ttruncatedB\xa5\x01\n" +
|
||||
"\x0ecom.logging.v1B\fLoggingProtoP\x01Z<github.com/samcharles93/archipelago/sdk/logging/v1;loggingv1\xa2\x02\x03LXX\xaa\x02\n" +
|
||||
"Logging.V1\xca\x02\n" +
|
||||
"Logging\\V1\xe2\x02\x16Logging\\V1\\GPBMetadata\xea\x02\vLogging::V1b\x06proto3"
|
||||
|
||||
var (
|
||||
file_logging_v1_logging_proto_rawDescOnce sync.Once
|
||||
file_logging_v1_logging_proto_rawDescData []byte
|
||||
)
|
||||
|
||||
func file_logging_v1_logging_proto_rawDescGZIP() []byte {
|
||||
file_logging_v1_logging_proto_rawDescOnce.Do(func() {
|
||||
file_logging_v1_logging_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_logging_v1_logging_proto_rawDesc), len(file_logging_v1_logging_proto_rawDesc)))
|
||||
})
|
||||
return file_logging_v1_logging_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_logging_v1_logging_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
||||
var file_logging_v1_logging_proto_goTypes = []any{
|
||||
(*LogQuery)(nil), // 0: logging.v1.LogQuery
|
||||
(*LogSnapshot)(nil), // 1: logging.v1.LogSnapshot
|
||||
}
|
||||
var file_logging_v1_logging_proto_depIdxs = []int32{
|
||||
0, // [0:0] is the sub-list for method output_type
|
||||
0, // [0:0] is the sub-list for method input_type
|
||||
0, // [0:0] is the sub-list for extension type_name
|
||||
0, // [0:0] is the sub-list for extension extendee
|
||||
0, // [0:0] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_logging_v1_logging_proto_init() }
|
||||
func file_logging_v1_logging_proto_init() {
|
||||
if File_logging_v1_logging_proto != nil {
|
||||
return
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_logging_v1_logging_proto_rawDesc), len(file_logging_v1_logging_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 2,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
GoTypes: file_logging_v1_logging_proto_goTypes,
|
||||
DependencyIndexes: file_logging_v1_logging_proto_depIdxs,
|
||||
MessageInfos: file_logging_v1_logging_proto_msgTypes,
|
||||
}.Build()
|
||||
File_logging_v1_logging_proto = out.File
|
||||
file_logging_v1_logging_proto_goTypes = nil
|
||||
file_logging_v1_logging_proto_depIdxs = nil
|
||||
}
|
||||
Reference in new issue
Block a user