mirror of
https://github.com/hanzozt/foundation.git
synced 2026-10-30 14:42:04 +00:00
346 lines
12 KiB
Go
346 lines
12 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// source: trace.proto
|
|
|
|
package trace_pb
|
|
|
|
import proto "github.com/golang/protobuf/proto"
|
|
import fmt "fmt"
|
|
import math "math"
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = fmt.Errorf
|
|
var _ = math.Inf
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the proto package it is being compiled against.
|
|
// A compilation error at this line likely means your copy of the
|
|
// proto package needs to be updated.
|
|
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
|
|
|
type MessageType int32
|
|
|
|
const (
|
|
MessageType_ChannelStateType MessageType = 0
|
|
MessageType_ChannelMessageType MessageType = 1
|
|
)
|
|
|
|
var MessageType_name = map[int32]string{
|
|
0: "ChannelStateType",
|
|
1: "ChannelMessageType",
|
|
}
|
|
var MessageType_value = map[string]int32{
|
|
"ChannelStateType": 0,
|
|
"ChannelMessageType": 1,
|
|
}
|
|
|
|
func (x MessageType) String() string {
|
|
return proto.EnumName(MessageType_name, int32(x))
|
|
}
|
|
func (MessageType) EnumDescriptor() ([]byte, []int) {
|
|
return fileDescriptor_trace_4b7bed56b6035167, []int{0}
|
|
}
|
|
|
|
type TraceToggleVerbosity int32
|
|
|
|
const (
|
|
TraceToggleVerbosity_ReportNone TraceToggleVerbosity = 0
|
|
TraceToggleVerbosity_ReportMatches TraceToggleVerbosity = 1
|
|
TraceToggleVerbosity_ReportMisses TraceToggleVerbosity = 2
|
|
TraceToggleVerbosity_ReportAll TraceToggleVerbosity = 3
|
|
)
|
|
|
|
var TraceToggleVerbosity_name = map[int32]string{
|
|
0: "ReportNone",
|
|
1: "ReportMatches",
|
|
2: "ReportMisses",
|
|
3: "ReportAll",
|
|
}
|
|
var TraceToggleVerbosity_value = map[string]int32{
|
|
"ReportNone": 0,
|
|
"ReportMatches": 1,
|
|
"ReportMisses": 2,
|
|
"ReportAll": 3,
|
|
}
|
|
|
|
func (x TraceToggleVerbosity) String() string {
|
|
return proto.EnumName(TraceToggleVerbosity_name, int32(x))
|
|
}
|
|
func (TraceToggleVerbosity) EnumDescriptor() ([]byte, []int) {
|
|
return fileDescriptor_trace_4b7bed56b6035167, []int{1}
|
|
}
|
|
|
|
type ChannelState struct {
|
|
Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
|
|
Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"`
|
|
Channel string `protobuf:"bytes,3,opt,name=channel,proto3" json:"channel,omitempty"`
|
|
Connected bool `protobuf:"varint,4,opt,name=connected,proto3" json:"connected,omitempty"`
|
|
RemoteAddress string `protobuf:"bytes,5,opt,name=remoteAddress,proto3" json:"remoteAddress,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ChannelState) Reset() { *m = ChannelState{} }
|
|
func (m *ChannelState) String() string { return proto.CompactTextString(m) }
|
|
func (*ChannelState) ProtoMessage() {}
|
|
func (*ChannelState) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_trace_4b7bed56b6035167, []int{0}
|
|
}
|
|
func (m *ChannelState) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_ChannelState.Unmarshal(m, b)
|
|
}
|
|
func (m *ChannelState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_ChannelState.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *ChannelState) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ChannelState.Merge(dst, src)
|
|
}
|
|
func (m *ChannelState) XXX_Size() int {
|
|
return xxx_messageInfo_ChannelState.Size(m)
|
|
}
|
|
func (m *ChannelState) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ChannelState.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ChannelState proto.InternalMessageInfo
|
|
|
|
func (m *ChannelState) GetTimestamp() int64 {
|
|
if m != nil {
|
|
return m.Timestamp
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *ChannelState) GetIdentity() string {
|
|
if m != nil {
|
|
return m.Identity
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *ChannelState) GetChannel() string {
|
|
if m != nil {
|
|
return m.Channel
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *ChannelState) GetConnected() bool {
|
|
if m != nil {
|
|
return m.Connected
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *ChannelState) GetRemoteAddress() string {
|
|
if m != nil {
|
|
return m.RemoteAddress
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ChannelMessage struct {
|
|
Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
|
|
Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"`
|
|
Channel string `protobuf:"bytes,3,opt,name=channel,proto3" json:"channel,omitempty"`
|
|
IsRx bool `protobuf:"varint,4,opt,name=isRx,proto3" json:"isRx,omitempty"`
|
|
ContentType int32 `protobuf:"varint,5,opt,name=contentType,proto3" json:"contentType,omitempty"`
|
|
Sequence int32 `protobuf:"varint,6,opt,name=sequence,proto3" json:"sequence,omitempty"`
|
|
ReplyFor int32 `protobuf:"varint,7,opt,name=replyFor,proto3" json:"replyFor,omitempty"`
|
|
Length int32 `protobuf:"varint,8,opt,name=length,proto3" json:"length,omitempty"`
|
|
Decode []byte `protobuf:"bytes,9,opt,name=decode,proto3" json:"decode,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ChannelMessage) Reset() { *m = ChannelMessage{} }
|
|
func (m *ChannelMessage) String() string { return proto.CompactTextString(m) }
|
|
func (*ChannelMessage) ProtoMessage() {}
|
|
func (*ChannelMessage) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_trace_4b7bed56b6035167, []int{1}
|
|
}
|
|
func (m *ChannelMessage) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_ChannelMessage.Unmarshal(m, b)
|
|
}
|
|
func (m *ChannelMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_ChannelMessage.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *ChannelMessage) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ChannelMessage.Merge(dst, src)
|
|
}
|
|
func (m *ChannelMessage) XXX_Size() int {
|
|
return xxx_messageInfo_ChannelMessage.Size(m)
|
|
}
|
|
func (m *ChannelMessage) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ChannelMessage.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ChannelMessage proto.InternalMessageInfo
|
|
|
|
func (m *ChannelMessage) GetTimestamp() int64 {
|
|
if m != nil {
|
|
return m.Timestamp
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *ChannelMessage) GetIdentity() string {
|
|
if m != nil {
|
|
return m.Identity
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *ChannelMessage) GetChannel() string {
|
|
if m != nil {
|
|
return m.Channel
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *ChannelMessage) GetIsRx() bool {
|
|
if m != nil {
|
|
return m.IsRx
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *ChannelMessage) GetContentType() int32 {
|
|
if m != nil {
|
|
return m.ContentType
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *ChannelMessage) GetSequence() int32 {
|
|
if m != nil {
|
|
return m.Sequence
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *ChannelMessage) GetReplyFor() int32 {
|
|
if m != nil {
|
|
return m.ReplyFor
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *ChannelMessage) GetLength() int32 {
|
|
if m != nil {
|
|
return m.Length
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *ChannelMessage) GetDecode() []byte {
|
|
if m != nil {
|
|
return m.Decode
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type TogglePipeTracesRequest struct {
|
|
Enable bool `protobuf:"varint,1,opt,name=enable,proto3" json:"enable,omitempty"`
|
|
Verbosity TraceToggleVerbosity `protobuf:"varint,2,opt,name=verbosity,proto3,enum=trace_pb.TraceToggleVerbosity" json:"verbosity,omitempty"`
|
|
AppRegex string `protobuf:"bytes,3,opt,name=appRegex,proto3" json:"appRegex,omitempty"`
|
|
PipeRegex string `protobuf:"bytes,4,opt,name=pipeRegex,proto3" json:"pipeRegex,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *TogglePipeTracesRequest) Reset() { *m = TogglePipeTracesRequest{} }
|
|
func (m *TogglePipeTracesRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*TogglePipeTracesRequest) ProtoMessage() {}
|
|
func (*TogglePipeTracesRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_trace_4b7bed56b6035167, []int{2}
|
|
}
|
|
func (m *TogglePipeTracesRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_TogglePipeTracesRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *TogglePipeTracesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_TogglePipeTracesRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *TogglePipeTracesRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_TogglePipeTracesRequest.Merge(dst, src)
|
|
}
|
|
func (m *TogglePipeTracesRequest) XXX_Size() int {
|
|
return xxx_messageInfo_TogglePipeTracesRequest.Size(m)
|
|
}
|
|
func (m *TogglePipeTracesRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_TogglePipeTracesRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_TogglePipeTracesRequest proto.InternalMessageInfo
|
|
|
|
func (m *TogglePipeTracesRequest) GetEnable() bool {
|
|
if m != nil {
|
|
return m.Enable
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *TogglePipeTracesRequest) GetVerbosity() TraceToggleVerbosity {
|
|
if m != nil {
|
|
return m.Verbosity
|
|
}
|
|
return TraceToggleVerbosity_ReportNone
|
|
}
|
|
|
|
func (m *TogglePipeTracesRequest) GetAppRegex() string {
|
|
if m != nil {
|
|
return m.AppRegex
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *TogglePipeTracesRequest) GetPipeRegex() string {
|
|
if m != nil {
|
|
return m.PipeRegex
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*ChannelState)(nil), "trace_pb.ChannelState")
|
|
proto.RegisterType((*ChannelMessage)(nil), "trace_pb.ChannelMessage")
|
|
proto.RegisterType((*TogglePipeTracesRequest)(nil), "trace_pb.TogglePipeTracesRequest")
|
|
proto.RegisterEnum("trace_pb.MessageType", MessageType_name, MessageType_value)
|
|
proto.RegisterEnum("trace_pb.TraceToggleVerbosity", TraceToggleVerbosity_name, TraceToggleVerbosity_value)
|
|
}
|
|
|
|
func init() { proto.RegisterFile("trace.proto", fileDescriptor_trace_4b7bed56b6035167) }
|
|
|
|
var fileDescriptor_trace_4b7bed56b6035167 = []byte{
|
|
// 409 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xb4, 0x93, 0xcf, 0xeb, 0xd3, 0x30,
|
|
0x18, 0xc6, 0xed, 0xb6, 0xef, 0xd6, 0xbe, 0xfb, 0x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