diff --git a/api/v1/README.md b/api/v1/README.md index 5045258015c..d0411e51e18 100644 --- a/api/v1/README.md +++ b/api/v1/README.md @@ -96,8 +96,8 @@ - [EnableSensorResponse](#tetragon-EnableSensorResponse) - [EnableTracingPolicyRequest](#tetragon-EnableTracingPolicyRequest) - [EnableTracingPolicyResponse](#tetragon-EnableTracingPolicyResponse) - - [GetLogLevelRequest](#tetragon-GetLogLevelRequest) - - [GetLogLevelResponse](#tetragon-GetLogLevelResponse) + - [GetDebugRequest](#tetragon-GetDebugRequest) + - [GetDebugResponse](#tetragon-GetDebugResponse) - [GetStackTraceTreeRequest](#tetragon-GetStackTraceTreeRequest) - [GetStackTraceTreeResponse](#tetragon-GetStackTraceTreeResponse) - [GetVersionRequest](#tetragon-GetVersionRequest) @@ -108,13 +108,13 @@ - [ListTracingPoliciesResponse](#tetragon-ListTracingPoliciesResponse) - [RemoveSensorRequest](#tetragon-RemoveSensorRequest) - [RemoveSensorResponse](#tetragon-RemoveSensorResponse) - - [ResetLogLevelRequest](#tetragon-ResetLogLevelRequest) - - [ResetLogLevelResponse](#tetragon-ResetLogLevelResponse) - [SensorStatus](#tetragon-SensorStatus) - - [SetLogLevelRequest](#tetragon-SetLogLevelRequest) - - [SetLogLevelResponse](#tetragon-SetLogLevelResponse) + - [SetDebugRequest](#tetragon-SetDebugRequest) + - [SetDebugResponse](#tetragon-SetDebugResponse) - [TracingPolicyStatus](#tetragon-TracingPolicyStatus) + - [ConfigFlag](#tetragon-ConfigFlag) + - [LogLevel](#tetragon-LogLevel) - [TracingPolicyState](#tetragon-TracingPolicyState) - [FineGuidanceSensors](#tetragon-FineGuidanceSensors) @@ -1680,25 +1680,31 @@ Determines the behavior of a field filter - + -### GetLogLevelRequest +### GetDebugRequest +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| flag | [ConfigFlag](#tetragon-ConfigFlag) | | | + - -### GetLogLevelResponse + + +### GetDebugResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| level | [string](#string) | | | +| flag | [ConfigFlag](#tetragon-ConfigFlag) | | | +| level | [LogLevel](#tetragon-LogLevel) | | | @@ -1835,31 +1841,6 @@ Determines the behavior of a field filter - - -### ResetLogLevelRequest - - - - - - - - - -### ResetLogLevelResponse - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| level | [string](#string) | | | - - - - - - ### SensorStatus @@ -1877,30 +1858,32 @@ Determines the behavior of a field filter - + -### SetLogLevelRequest +### SetDebugRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| level | [string](#string) | | | +| flag | [ConfigFlag](#tetragon-ConfigFlag) | | | +| level | [LogLevel](#tetragon-LogLevel) | | | - + -### SetLogLevelResponse +### SetDebugResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| level | [string](#string) | | | +| flag | [ConfigFlag](#tetragon-ConfigFlag) | | | +| level | [LogLevel](#tetragon-LogLevel) | | | @@ -1932,6 +1915,34 @@ Determines the behavior of a field filter + + +### ConfigFlag +For now, we only want to support debug-related config flags to be configurable. + +| Name | Number | Description | +| ---- | ------ | ----------- | +| CONFIG_FLAG_LOG_LEVEL | 0 | | + + + + + +### LogLevel + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| LOG_LEVEL_PANIC | 0 | | +| LOG_LEVEL_FATAL | 1 | | +| LOG_LEVEL_ERROR | 2 | | +| LOG_LEVEL_WARN | 3 | | +| LOG_LEVEL_INFO | 4 | | +| LOG_LEVEL_DEBUG | 5 | | +| LOG_LEVEL_TRACE | 6 | | + + + ### TracingPolicyState @@ -1974,9 +1985,8 @@ Determines the behavior of a field filter | GetStackTraceTree | [GetStackTraceTreeRequest](#tetragon-GetStackTraceTreeRequest) | [GetStackTraceTreeResponse](#tetragon-GetStackTraceTreeResponse) | | | GetVersion | [GetVersionRequest](#tetragon-GetVersionRequest) | [GetVersionResponse](#tetragon-GetVersionResponse) | | | RuntimeHook | [RuntimeHookRequest](#tetragon-RuntimeHookRequest) | [RuntimeHookResponse](#tetragon-RuntimeHookResponse) | | -| GetLogLevel | [GetLogLevelRequest](#tetragon-GetLogLevelRequest) | [GetLogLevelResponse](#tetragon-GetLogLevelResponse) | | -| SetLogLevel | [SetLogLevelRequest](#tetragon-SetLogLevelRequest) | [SetLogLevelResponse](#tetragon-SetLogLevelResponse) | | -| ResetLogLevel | [ResetLogLevelRequest](#tetragon-ResetLogLevelRequest) | [ResetLogLevelResponse](#tetragon-ResetLogLevelResponse) | | +| GetDebug | [GetDebugRequest](#tetragon-GetDebugRequest) | [GetDebugResponse](#tetragon-GetDebugResponse) | | +| SetDebug | [SetDebugRequest](#tetragon-SetDebugRequest) | [SetDebugResponse](#tetragon-SetDebugResponse) | | diff --git a/api/v1/tetragon/sensors.pb.go b/api/v1/tetragon/sensors.pb.go index 0dd37a1589f..49e4f154ccb 100644 --- a/api/v1/tetragon/sensors.pb.go +++ b/api/v1/tetragon/sensors.pb.go @@ -91,6 +91,111 @@ func (TracingPolicyState) EnumDescriptor() ([]byte, []int) { return file_tetragon_sensors_proto_rawDescGZIP(), []int{0} } +// For now, we only want to support debug-related config flags to be configurable. +type ConfigFlag int32 + +const ( + ConfigFlag_CONFIG_FLAG_LOG_LEVEL ConfigFlag = 0 +) + +// Enum value maps for ConfigFlag. +var ( + ConfigFlag_name = map[int32]string{ + 0: "CONFIG_FLAG_LOG_LEVEL", + } + ConfigFlag_value = map[string]int32{ + "CONFIG_FLAG_LOG_LEVEL": 0, + } +) + +func (x ConfigFlag) Enum() *ConfigFlag { + p := new(ConfigFlag) + *p = x + return p +} + +func (x ConfigFlag) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ConfigFlag) Descriptor() protoreflect.EnumDescriptor { + return file_tetragon_sensors_proto_enumTypes[1].Descriptor() +} + +func (ConfigFlag) Type() protoreflect.EnumType { + return &file_tetragon_sensors_proto_enumTypes[1] +} + +func (x ConfigFlag) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ConfigFlag.Descriptor instead. +func (ConfigFlag) EnumDescriptor() ([]byte, []int) { + return file_tetragon_sensors_proto_rawDescGZIP(), []int{1} +} + +type LogLevel int32 + +const ( + LogLevel_LOG_LEVEL_PANIC LogLevel = 0 + LogLevel_LOG_LEVEL_FATAL LogLevel = 1 + LogLevel_LOG_LEVEL_ERROR LogLevel = 2 + LogLevel_LOG_LEVEL_WARN LogLevel = 3 + LogLevel_LOG_LEVEL_INFO LogLevel = 4 + LogLevel_LOG_LEVEL_DEBUG LogLevel = 5 + LogLevel_LOG_LEVEL_TRACE LogLevel = 6 +) + +// Enum value maps for LogLevel. +var ( + LogLevel_name = map[int32]string{ + 0: "LOG_LEVEL_PANIC", + 1: "LOG_LEVEL_FATAL", + 2: "LOG_LEVEL_ERROR", + 3: "LOG_LEVEL_WARN", + 4: "LOG_LEVEL_INFO", + 5: "LOG_LEVEL_DEBUG", + 6: "LOG_LEVEL_TRACE", + } + LogLevel_value = map[string]int32{ + "LOG_LEVEL_PANIC": 0, + "LOG_LEVEL_FATAL": 1, + "LOG_LEVEL_ERROR": 2, + "LOG_LEVEL_WARN": 3, + "LOG_LEVEL_INFO": 4, + "LOG_LEVEL_DEBUG": 5, + "LOG_LEVEL_TRACE": 6, + } +) + +func (x LogLevel) Enum() *LogLevel { + p := new(LogLevel) + *p = x + return p +} + +func (x LogLevel) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (LogLevel) Descriptor() protoreflect.EnumDescriptor { + return file_tetragon_sensors_proto_enumTypes[2].Descriptor() +} + +func (LogLevel) Type() protoreflect.EnumType { + return &file_tetragon_sensors_proto_enumTypes[2] +} + +func (x LogLevel) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use LogLevel.Descriptor instead. +func (LogLevel) EnumDescriptor() ([]byte, []int) { + return file_tetragon_sensors_proto_rawDescGZIP(), []int{2} +} + type ListSensorsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1248,14 +1353,16 @@ func (x *GetVersionResponse) GetVersion() string { return "" } -type GetLogLevelRequest struct { +type GetDebugRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + + Flag ConfigFlag `protobuf:"varint,1,opt,name=flag,proto3,enum=tetragon.ConfigFlag" json:"flag,omitempty"` } -func (x *GetLogLevelRequest) Reset() { - *x = GetLogLevelRequest{} +func (x *GetDebugRequest) Reset() { + *x = GetDebugRequest{} if protoimpl.UnsafeEnabled { mi := &file_tetragon_sensors_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1263,13 +1370,13 @@ func (x *GetLogLevelRequest) Reset() { } } -func (x *GetLogLevelRequest) String() string { +func (x *GetDebugRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*GetLogLevelRequest) ProtoMessage() {} +func (*GetDebugRequest) ProtoMessage() {} -func (x *GetLogLevelRequest) ProtoReflect() protoreflect.Message { +func (x *GetDebugRequest) ProtoReflect() protoreflect.Message { mi := &file_tetragon_sensors_proto_msgTypes[24] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1281,21 +1388,29 @@ func (x *GetLogLevelRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetLogLevelRequest.ProtoReflect.Descriptor instead. -func (*GetLogLevelRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use GetDebugRequest.ProtoReflect.Descriptor instead. +func (*GetDebugRequest) Descriptor() ([]byte, []int) { return file_tetragon_sensors_proto_rawDescGZIP(), []int{24} } -type GetLogLevelResponse struct { +func (x *GetDebugRequest) GetFlag() ConfigFlag { + if x != nil { + return x.Flag + } + return ConfigFlag_CONFIG_FLAG_LOG_LEVEL +} + +type GetDebugResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Level string `protobuf:"bytes,1,opt,name=level,proto3" json:"level,omitempty"` + Flag ConfigFlag `protobuf:"varint,1,opt,name=flag,proto3,enum=tetragon.ConfigFlag" json:"flag,omitempty"` + Level LogLevel `protobuf:"varint,2,opt,name=level,proto3,enum=tetragon.LogLevel" json:"level,omitempty"` } -func (x *GetLogLevelResponse) Reset() { - *x = GetLogLevelResponse{} +func (x *GetDebugResponse) Reset() { + *x = GetDebugResponse{} if protoimpl.UnsafeEnabled { mi := &file_tetragon_sensors_proto_msgTypes[25] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1303,13 +1418,13 @@ func (x *GetLogLevelResponse) Reset() { } } -func (x *GetLogLevelResponse) String() string { +func (x *GetDebugResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*GetLogLevelResponse) ProtoMessage() {} +func (*GetDebugResponse) ProtoMessage() {} -func (x *GetLogLevelResponse) ProtoReflect() protoreflect.Message { +func (x *GetDebugResponse) ProtoReflect() protoreflect.Message { mi := &file_tetragon_sensors_proto_msgTypes[25] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1321,28 +1436,36 @@ func (x *GetLogLevelResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetLogLevelResponse.ProtoReflect.Descriptor instead. -func (*GetLogLevelResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use GetDebugResponse.ProtoReflect.Descriptor instead. +func (*GetDebugResponse) Descriptor() ([]byte, []int) { return file_tetragon_sensors_proto_rawDescGZIP(), []int{25} } -func (x *GetLogLevelResponse) GetLevel() string { +func (x *GetDebugResponse) GetFlag() ConfigFlag { + if x != nil { + return x.Flag + } + return ConfigFlag_CONFIG_FLAG_LOG_LEVEL +} + +func (x *GetDebugResponse) GetLevel() LogLevel { if x != nil { return x.Level } - return "" + return LogLevel_LOG_LEVEL_PANIC } -type SetLogLevelRequest struct { +type SetDebugRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Level string `protobuf:"bytes,1,opt,name=level,proto3" json:"level,omitempty"` + Flag ConfigFlag `protobuf:"varint,1,opt,name=flag,proto3,enum=tetragon.ConfigFlag" json:"flag,omitempty"` + Level LogLevel `protobuf:"varint,2,opt,name=level,proto3,enum=tetragon.LogLevel" json:"level,omitempty"` } -func (x *SetLogLevelRequest) Reset() { - *x = SetLogLevelRequest{} +func (x *SetDebugRequest) Reset() { + *x = SetDebugRequest{} if protoimpl.UnsafeEnabled { mi := &file_tetragon_sensors_proto_msgTypes[26] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1350,13 +1473,13 @@ func (x *SetLogLevelRequest) Reset() { } } -func (x *SetLogLevelRequest) String() string { +func (x *SetDebugRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*SetLogLevelRequest) ProtoMessage() {} +func (*SetDebugRequest) ProtoMessage() {} -func (x *SetLogLevelRequest) ProtoReflect() protoreflect.Message { +func (x *SetDebugRequest) ProtoReflect() protoreflect.Message { mi := &file_tetragon_sensors_proto_msgTypes[26] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1368,28 +1491,36 @@ func (x *SetLogLevelRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SetLogLevelRequest.ProtoReflect.Descriptor instead. -func (*SetLogLevelRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use SetDebugRequest.ProtoReflect.Descriptor instead. +func (*SetDebugRequest) Descriptor() ([]byte, []int) { return file_tetragon_sensors_proto_rawDescGZIP(), []int{26} } -func (x *SetLogLevelRequest) GetLevel() string { +func (x *SetDebugRequest) GetFlag() ConfigFlag { + if x != nil { + return x.Flag + } + return ConfigFlag_CONFIG_FLAG_LOG_LEVEL +} + +func (x *SetDebugRequest) GetLevel() LogLevel { if x != nil { return x.Level } - return "" + return LogLevel_LOG_LEVEL_PANIC } -type SetLogLevelResponse struct { +type SetDebugResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Level string `protobuf:"bytes,1,opt,name=level,proto3" json:"level,omitempty"` + Flag ConfigFlag `protobuf:"varint,1,opt,name=flag,proto3,enum=tetragon.ConfigFlag" json:"flag,omitempty"` + Level LogLevel `protobuf:"varint,2,opt,name=level,proto3,enum=tetragon.LogLevel" json:"level,omitempty"` } -func (x *SetLogLevelResponse) Reset() { - *x = SetLogLevelResponse{} +func (x *SetDebugResponse) Reset() { + *x = SetDebugResponse{} if protoimpl.UnsafeEnabled { mi := &file_tetragon_sensors_proto_msgTypes[27] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1397,13 +1528,13 @@ func (x *SetLogLevelResponse) Reset() { } } -func (x *SetLogLevelResponse) String() string { +func (x *SetDebugResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*SetLogLevelResponse) ProtoMessage() {} +func (*SetDebugResponse) ProtoMessage() {} -func (x *SetLogLevelResponse) ProtoReflect() protoreflect.Message { +func (x *SetDebugResponse) ProtoReflect() protoreflect.Message { mi := &file_tetragon_sensors_proto_msgTypes[27] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1415,101 +1546,23 @@ func (x *SetLogLevelResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SetLogLevelResponse.ProtoReflect.Descriptor instead. -func (*SetLogLevelResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use SetDebugResponse.ProtoReflect.Descriptor instead. +func (*SetDebugResponse) Descriptor() ([]byte, []int) { return file_tetragon_sensors_proto_rawDescGZIP(), []int{27} } -func (x *SetLogLevelResponse) GetLevel() string { +func (x *SetDebugResponse) GetFlag() ConfigFlag { if x != nil { - return x.Level + return x.Flag } - return "" -} - -type ResetLogLevelRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields + return ConfigFlag_CONFIG_FLAG_LOG_LEVEL } -func (x *ResetLogLevelRequest) Reset() { - *x = ResetLogLevelRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_tetragon_sensors_proto_msgTypes[28] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ResetLogLevelRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ResetLogLevelRequest) ProtoMessage() {} - -func (x *ResetLogLevelRequest) ProtoReflect() protoreflect.Message { - mi := &file_tetragon_sensors_proto_msgTypes[28] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ResetLogLevelRequest.ProtoReflect.Descriptor instead. -func (*ResetLogLevelRequest) Descriptor() ([]byte, []int) { - return file_tetragon_sensors_proto_rawDescGZIP(), []int{28} -} - -type ResetLogLevelResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Level string `protobuf:"bytes,1,opt,name=level,proto3" json:"level,omitempty"` -} - -func (x *ResetLogLevelResponse) Reset() { - *x = ResetLogLevelResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_tetragon_sensors_proto_msgTypes[29] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ResetLogLevelResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ResetLogLevelResponse) ProtoMessage() {} - -func (x *ResetLogLevelResponse) ProtoReflect() protoreflect.Message { - mi := &file_tetragon_sensors_proto_msgTypes[29] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ResetLogLevelResponse.ProtoReflect.Descriptor instead. -func (*ResetLogLevelResponse) Descriptor() ([]byte, []int) { - return file_tetragon_sensors_proto_rawDescGZIP(), []int{29} -} - -func (x *ResetLogLevelResponse) GetLevel() string { +func (x *SetDebugResponse) GetLevel() LogLevel { if x != nil { return x.Level } - return "" + return LogLevel_LOG_LEVEL_PANIC } var File_tetragon_sensors_proto protoreflect.FileDescriptor @@ -1608,127 +1661,142 @@ var file_tetragon_sensors_proto_rawDesc = []byte{ 0x2e, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, - 0x14, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x2b, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x4c, - 0x65, 0x76, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, - 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, 0x65, 0x76, - 0x65, 0x6c, 0x22, 0x2a, 0x0a, 0x12, 0x53, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, - 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, - 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x22, 0x2b, - 0x0a, 0x13, 0x53, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x22, 0x16, 0x0a, 0x14, 0x52, - 0x65, 0x73, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x22, 0x2d, 0x0a, 0x15, 0x52, 0x65, 0x73, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x4c, - 0x65, 0x76, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, - 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, 0x65, 0x76, - 0x65, 0x6c, 0x2a, 0xb2, 0x01, 0x0a, 0x12, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, 0x6f, - 0x6c, 0x69, 0x63, 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x50, 0x5f, - 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, - 0x14, 0x0a, 0x10, 0x54, 0x50, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x45, 0x4e, 0x41, 0x42, - 0x4c, 0x45, 0x44, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x54, 0x50, 0x5f, 0x53, 0x54, 0x41, 0x54, - 0x45, 0x5f, 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x02, 0x12, 0x17, 0x0a, 0x13, - 0x54, 0x50, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x4c, 0x4f, 0x41, 0x44, 0x5f, 0x45, 0x52, - 0x52, 0x4f, 0x52, 0x10, 0x03, 0x12, 0x12, 0x0a, 0x0e, 0x54, 0x50, 0x5f, 0x53, 0x54, 0x41, 0x54, - 0x45, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x04, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x50, 0x5f, - 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x4c, 0x4f, 0x41, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x05, 0x12, - 0x16, 0x0a, 0x12, 0x54, 0x50, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x4c, 0x4f, - 0x41, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x06, 0x32, 0xe4, 0x0b, 0x0a, 0x13, 0x46, 0x69, 0x6e, 0x65, - 0x47, 0x75, 0x69, 0x64, 0x61, 0x6e, 0x63, 0x65, 0x53, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x12, - 0x48, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x1a, 0x2e, 0x74, - 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, - 0x67, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x12, 0x52, 0x0a, 0x09, 0x47, 0x65, 0x74, - 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x12, 0x20, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, - 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x53, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, - 0x67, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x53, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5b, 0x0a, - 0x10, 0x41, 0x64, 0x64, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, - 0x79, 0x12, 0x21, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x41, 0x64, 0x64, - 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, - 0x41, 0x64, 0x64, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x64, 0x0a, 0x13, 0x44, 0x65, - 0x6c, 0x65, 0x74, 0x65, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, - 0x79, 0x12, 0x24, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x44, 0x65, 0x6c, - 0x65, 0x74, 0x65, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, - 0x6f, 0x6e, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, - 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, - 0x12, 0x64, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, - 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x12, 0x24, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, - 0x6f, 0x6e, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, 0x6f, - 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, - 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x72, 0x61, - 0x63, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x64, 0x0a, 0x13, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, - 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x24, 0x2e, - 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x54, + 0x3b, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x44, 0x65, 0x62, 0x75, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x28, 0x0a, 0x04, 0x66, 0x6c, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x14, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x46, 0x6c, 0x61, 0x67, 0x52, 0x04, 0x66, 0x6c, 0x61, 0x67, 0x22, 0x66, 0x0a, 0x10, + 0x47, 0x65, 0x74, 0x44, 0x65, 0x62, 0x75, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x28, 0x0a, 0x04, 0x66, 0x6c, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, + 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x46, 0x6c, 0x61, 0x67, 0x52, 0x04, 0x66, 0x6c, 0x61, 0x67, 0x12, 0x28, 0x0a, 0x05, 0x6c, 0x65, + 0x76, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x12, 0x2e, 0x74, 0x65, 0x74, 0x72, + 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x05, 0x6c, + 0x65, 0x76, 0x65, 0x6c, 0x22, 0x65, 0x0a, 0x0f, 0x53, 0x65, 0x74, 0x44, 0x65, 0x62, 0x75, 0x67, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x04, 0x66, 0x6c, 0x61, 0x67, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, + 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x46, 0x6c, 0x61, 0x67, 0x52, 0x04, 0x66, 0x6c, 0x61, + 0x67, 0x12, 0x28, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x12, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x4c, 0x6f, 0x67, 0x4c, + 0x65, 0x76, 0x65, 0x6c, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x22, 0x66, 0x0a, 0x10, 0x53, + 0x65, 0x74, 0x44, 0x65, 0x62, 0x75, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x28, 0x0a, 0x04, 0x66, 0x6c, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, + 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x46, + 0x6c, 0x61, 0x67, 0x52, 0x04, 0x66, 0x6c, 0x61, 0x67, 0x12, 0x28, 0x0a, 0x05, 0x6c, 0x65, 0x76, + 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x12, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, + 0x67, 0x6f, 0x6e, 0x2e, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x05, 0x6c, 0x65, + 0x76, 0x65, 0x6c, 0x2a, 0xb2, 0x01, 0x0a, 0x12, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, + 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x50, + 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, + 0x12, 0x14, 0x0a, 0x10, 0x54, 0x50, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x45, 0x4e, 0x41, + 0x42, 0x4c, 0x45, 0x44, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x54, 0x50, 0x5f, 0x53, 0x54, 0x41, + 0x54, 0x45, 0x5f, 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x02, 0x12, 0x17, 0x0a, + 0x13, 0x54, 0x50, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x4c, 0x4f, 0x41, 0x44, 0x5f, 0x45, + 0x52, 0x52, 0x4f, 0x52, 0x10, 0x03, 0x12, 0x12, 0x0a, 0x0e, 0x54, 0x50, 0x5f, 0x53, 0x54, 0x41, + 0x54, 0x45, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x04, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x50, + 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x4c, 0x4f, 0x41, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x05, + 0x12, 0x16, 0x0a, 0x12, 0x54, 0x50, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x4c, + 0x4f, 0x41, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x06, 0x2a, 0x27, 0x0a, 0x0a, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x46, 0x6c, 0x61, 0x67, 0x12, 0x19, 0x0a, 0x15, 0x43, 0x4f, 0x4e, 0x46, 0x49, 0x47, + 0x5f, 0x46, 0x4c, 0x41, 0x47, 0x5f, 0x4c, 0x4f, 0x47, 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x10, + 0x00, 0x2a, 0x9b, 0x01, 0x0a, 0x08, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x13, + 0x0a, 0x0f, 0x4c, 0x4f, 0x47, 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x50, 0x41, 0x4e, 0x49, + 0x43, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x4c, 0x4f, 0x47, 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, + 0x5f, 0x46, 0x41, 0x54, 0x41, 0x4c, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x4c, 0x4f, 0x47, 0x5f, + 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x02, 0x12, 0x12, 0x0a, + 0x0e, 0x4c, 0x4f, 0x47, 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x57, 0x41, 0x52, 0x4e, 0x10, + 0x03, 0x12, 0x12, 0x0a, 0x0e, 0x4c, 0x4f, 0x47, 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x49, + 0x4e, 0x46, 0x4f, 0x10, 0x04, 0x12, 0x13, 0x0a, 0x0f, 0x4c, 0x4f, 0x47, 0x5f, 0x4c, 0x45, 0x56, + 0x45, 0x4c, 0x5f, 0x44, 0x45, 0x42, 0x55, 0x47, 0x10, 0x05, 0x12, 0x13, 0x0a, 0x0f, 0x4c, 0x4f, + 0x47, 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x54, 0x52, 0x41, 0x43, 0x45, 0x10, 0x06, 0x32, + 0xfe, 0x0a, 0x0a, 0x13, 0x46, 0x69, 0x6e, 0x65, 0x47, 0x75, 0x69, 0x64, 0x61, 0x6e, 0x63, 0x65, + 0x53, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x12, 0x48, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x45, 0x76, + 0x65, 0x6e, 0x74, 0x73, 0x12, 0x1a, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, + 0x47, 0x65, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x1b, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x45, + 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, + 0x01, 0x12, 0x52, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x12, 0x20, + 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x48, 0x65, 0x61, + 0x6c, 0x74, 0x68, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x21, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x48, + 0x65, 0x61, 0x6c, 0x74, 0x68, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5b, 0x0a, 0x10, 0x41, 0x64, 0x64, 0x54, 0x72, 0x61, 0x63, + 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x21, 0x2e, 0x74, 0x65, 0x74, 0x72, + 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x41, 0x64, 0x64, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, + 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x74, + 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x41, 0x64, 0x64, 0x54, 0x72, 0x61, 0x63, 0x69, + 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x00, 0x12, 0x64, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x72, 0x61, 0x63, + 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x24, 0x2e, 0x74, 0x65, 0x74, 0x72, + 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x72, 0x61, 0x63, 0x69, + 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x25, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x64, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, + 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x12, + 0x24, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, + 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, + 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, + 0x63, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x64, + 0x0a, 0x13, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, + 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x24, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, + 0x2e, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, 0x6f, + 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x74, 0x65, + 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x72, 0x61, + 0x63, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x00, 0x12, 0x67, 0x0a, 0x14, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x54, + 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x25, 0x2e, 0x74, + 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x45, - 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, - 0x63, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x67, 0x0a, 0x14, - 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, 0x6f, - 0x6c, 0x69, 0x63, 0x79, 0x12, 0x25, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, - 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, 0x6f, - 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x74, 0x65, - 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x72, - 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4f, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x6e, - 0x73, 0x6f, 0x72, 0x73, 0x12, 0x1c, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, - 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x4c, 0x69, - 0x73, 0x74, 0x53, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x03, 0x88, 0x02, 0x01, 0x12, 0x52, 0x0a, 0x0c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, - 0x53, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x12, 0x1d, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, - 0x6e, 0x2e, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, - 0x2e, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x88, 0x02, 0x01, 0x12, 0x55, 0x0a, 0x0d, 0x44, 0x69, - 0x73, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x12, 0x1e, 0x2e, 0x74, 0x65, - 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x65, - 0x6e, 0x73, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x74, 0x65, - 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x65, - 0x6e, 0x73, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x88, 0x02, - 0x01, 0x12, 0x52, 0x0a, 0x0c, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x53, 0x65, 0x6e, 0x73, 0x6f, - 0x72, 0x12, 0x1d, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x6d, - 0x6f, 0x76, 0x65, 0x53, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x1e, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x6d, 0x6f, - 0x76, 0x65, 0x53, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x03, 0x88, 0x02, 0x01, 0x12, 0x5e, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x63, - 0x6b, 0x54, 0x72, 0x61, 0x63, 0x65, 0x54, 0x72, 0x65, 0x65, 0x12, 0x22, 0x2e, 0x74, 0x65, 0x74, - 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x54, 0x72, - 0x61, 0x63, 0x65, 0x54, 0x72, 0x65, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, - 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, - 0x63, 0x6b, 0x54, 0x72, 0x61, 0x63, 0x65, 0x54, 0x72, 0x65, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x49, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, - 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x47, - 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x1c, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x56, - 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, - 0x12, 0x4c, 0x0a, 0x0b, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x48, 0x6f, 0x6f, 0x6b, 0x12, - 0x1c, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x52, 0x75, 0x6e, 0x74, 0x69, - 0x6d, 0x65, 0x48, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, - 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, - 0x48, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4c, - 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x1c, 0x2e, - 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x4c, - 0x65, 0x76, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x74, 0x65, - 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, - 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4c, 0x0a, 0x0b, - 0x53, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x1c, 0x2e, 0x74, 0x65, - 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x53, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, - 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x74, 0x65, 0x74, 0x72, - 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x53, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x52, 0x0a, 0x0d, 0x52, 0x65, - 0x73, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x1e, 0x2e, 0x74, 0x65, - 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x73, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x4c, - 0x65, 0x76, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x74, 0x65, - 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x73, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x4c, - 0x65, 0x76, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x44, + 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, + 0x69, 0x63, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4f, 0x0a, + 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x12, 0x1c, 0x2e, 0x74, + 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x6e, 0x73, + 0x6f, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x74, 0x65, 0x74, + 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x6e, 0x73, 0x6f, 0x72, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x88, 0x02, 0x01, 0x12, 0x52, + 0x0a, 0x0c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x12, 0x1d, + 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, + 0x53, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, + 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x53, + 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x88, + 0x02, 0x01, 0x12, 0x55, 0x0a, 0x0d, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x65, 0x6e, + 0x73, 0x6f, 0x72, 0x12, 0x1e, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x44, + 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x44, + 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x88, 0x02, 0x01, 0x12, 0x52, 0x0a, 0x0c, 0x52, 0x65, 0x6d, + 0x6f, 0x76, 0x65, 0x53, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x12, 0x1d, 0x2e, 0x74, 0x65, 0x74, 0x72, + 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x53, 0x65, 0x6e, 0x73, 0x6f, + 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, + 0x67, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x53, 0x65, 0x6e, 0x73, 0x6f, 0x72, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x88, 0x02, 0x01, 0x12, 0x5e, 0x0a, + 0x11, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x54, 0x72, 0x61, 0x63, 0x65, 0x54, 0x72, + 0x65, 0x65, 0x12, 0x22, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x47, 0x65, + 0x74, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x54, 0x72, 0x61, 0x63, 0x65, 0x54, 0x72, 0x65, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, + 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x54, 0x72, 0x61, 0x63, 0x65, 0x54, + 0x72, 0x65, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x49, 0x0a, + 0x0a, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x2e, 0x74, 0x65, + 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, + 0x67, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4c, 0x0a, 0x0b, 0x52, 0x75, 0x6e, 0x74, + 0x69, 0x6d, 0x65, 0x48, 0x6f, 0x6f, 0x6b, 0x12, 0x1c, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, + 0x6f, 0x6e, 0x2e, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x48, 0x6f, 0x6f, 0x6b, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, + 0x2e, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x48, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x43, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x44, 0x65, 0x62, + 0x75, 0x67, 0x12, 0x19, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x47, 0x65, + 0x74, 0x44, 0x65, 0x62, 0x75, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, + 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x65, 0x62, 0x75, + 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x43, 0x0a, 0x08, 0x53, + 0x65, 0x74, 0x44, 0x65, 0x62, 0x75, 0x67, 0x12, 0x19, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, + 0x6f, 0x6e, 0x2e, 0x53, 0x65, 0x74, 0x44, 0x65, 0x62, 0x75, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x53, 0x65, + 0x74, 0x44, 0x65, 0x62, 0x75, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -1743,40 +1811,40 @@ func file_tetragon_sensors_proto_rawDescGZIP() []byte { return file_tetragon_sensors_proto_rawDescData } -var file_tetragon_sensors_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_tetragon_sensors_proto_msgTypes = make([]protoimpl.MessageInfo, 30) +var file_tetragon_sensors_proto_enumTypes = make([]protoimpl.EnumInfo, 3) +var file_tetragon_sensors_proto_msgTypes = make([]protoimpl.MessageInfo, 28) var file_tetragon_sensors_proto_goTypes = []interface{}{ (TracingPolicyState)(0), // 0: tetragon.TracingPolicyState - (*ListSensorsRequest)(nil), // 1: tetragon.ListSensorsRequest - (*SensorStatus)(nil), // 2: tetragon.SensorStatus - (*ListSensorsResponse)(nil), // 3: tetragon.ListSensorsResponse - (*ListTracingPoliciesRequest)(nil), // 4: tetragon.ListTracingPoliciesRequest - (*TracingPolicyStatus)(nil), // 5: tetragon.TracingPolicyStatus - (*ListTracingPoliciesResponse)(nil), // 6: tetragon.ListTracingPoliciesResponse - (*AddTracingPolicyRequest)(nil), // 7: tetragon.AddTracingPolicyRequest - (*AddTracingPolicyResponse)(nil), // 8: tetragon.AddTracingPolicyResponse - (*DeleteTracingPolicyRequest)(nil), // 9: tetragon.DeleteTracingPolicyRequest - (*DeleteTracingPolicyResponse)(nil), // 10: tetragon.DeleteTracingPolicyResponse - (*EnableTracingPolicyRequest)(nil), // 11: tetragon.EnableTracingPolicyRequest - (*EnableTracingPolicyResponse)(nil), // 12: tetragon.EnableTracingPolicyResponse - (*DisableTracingPolicyRequest)(nil), // 13: tetragon.DisableTracingPolicyRequest - (*DisableTracingPolicyResponse)(nil), // 14: tetragon.DisableTracingPolicyResponse - (*RemoveSensorRequest)(nil), // 15: tetragon.RemoveSensorRequest - (*RemoveSensorResponse)(nil), // 16: tetragon.RemoveSensorResponse - (*EnableSensorRequest)(nil), // 17: tetragon.EnableSensorRequest - (*EnableSensorResponse)(nil), // 18: tetragon.EnableSensorResponse - (*DisableSensorRequest)(nil), // 19: tetragon.DisableSensorRequest - (*DisableSensorResponse)(nil), // 20: tetragon.DisableSensorResponse - (*GetStackTraceTreeRequest)(nil), // 21: tetragon.GetStackTraceTreeRequest - (*GetStackTraceTreeResponse)(nil), // 22: tetragon.GetStackTraceTreeResponse - (*GetVersionRequest)(nil), // 23: tetragon.GetVersionRequest - (*GetVersionResponse)(nil), // 24: tetragon.GetVersionResponse - (*GetLogLevelRequest)(nil), // 25: tetragon.GetLogLevelRequest - (*GetLogLevelResponse)(nil), // 26: tetragon.GetLogLevelResponse - (*SetLogLevelRequest)(nil), // 27: tetragon.SetLogLevelRequest - (*SetLogLevelResponse)(nil), // 28: tetragon.SetLogLevelResponse - (*ResetLogLevelRequest)(nil), // 29: tetragon.ResetLogLevelRequest - (*ResetLogLevelResponse)(nil), // 30: tetragon.ResetLogLevelResponse + (ConfigFlag)(0), // 1: tetragon.ConfigFlag + (LogLevel)(0), // 2: tetragon.LogLevel + (*ListSensorsRequest)(nil), // 3: tetragon.ListSensorsRequest + (*SensorStatus)(nil), // 4: tetragon.SensorStatus + (*ListSensorsResponse)(nil), // 5: tetragon.ListSensorsResponse + (*ListTracingPoliciesRequest)(nil), // 6: tetragon.ListTracingPoliciesRequest + (*TracingPolicyStatus)(nil), // 7: tetragon.TracingPolicyStatus + (*ListTracingPoliciesResponse)(nil), // 8: tetragon.ListTracingPoliciesResponse + (*AddTracingPolicyRequest)(nil), // 9: tetragon.AddTracingPolicyRequest + (*AddTracingPolicyResponse)(nil), // 10: tetragon.AddTracingPolicyResponse + (*DeleteTracingPolicyRequest)(nil), // 11: tetragon.DeleteTracingPolicyRequest + (*DeleteTracingPolicyResponse)(nil), // 12: tetragon.DeleteTracingPolicyResponse + (*EnableTracingPolicyRequest)(nil), // 13: tetragon.EnableTracingPolicyRequest + (*EnableTracingPolicyResponse)(nil), // 14: tetragon.EnableTracingPolicyResponse + (*DisableTracingPolicyRequest)(nil), // 15: tetragon.DisableTracingPolicyRequest + (*DisableTracingPolicyResponse)(nil), // 16: tetragon.DisableTracingPolicyResponse + (*RemoveSensorRequest)(nil), // 17: tetragon.RemoveSensorRequest + (*RemoveSensorResponse)(nil), // 18: tetragon.RemoveSensorResponse + (*EnableSensorRequest)(nil), // 19: tetragon.EnableSensorRequest + (*EnableSensorResponse)(nil), // 20: tetragon.EnableSensorResponse + (*DisableSensorRequest)(nil), // 21: tetragon.DisableSensorRequest + (*DisableSensorResponse)(nil), // 22: tetragon.DisableSensorResponse + (*GetStackTraceTreeRequest)(nil), // 23: tetragon.GetStackTraceTreeRequest + (*GetStackTraceTreeResponse)(nil), // 24: tetragon.GetStackTraceTreeResponse + (*GetVersionRequest)(nil), // 25: tetragon.GetVersionRequest + (*GetVersionResponse)(nil), // 26: tetragon.GetVersionResponse + (*GetDebugRequest)(nil), // 27: tetragon.GetDebugRequest + (*GetDebugResponse)(nil), // 28: tetragon.GetDebugResponse + (*SetDebugRequest)(nil), // 29: tetragon.SetDebugRequest + (*SetDebugResponse)(nil), // 30: tetragon.SetDebugResponse (*StackTraceNode)(nil), // 31: tetragon.StackTraceNode (*GetEventsRequest)(nil), // 32: tetragon.GetEventsRequest (*GetHealthStatusRequest)(nil), // 33: tetragon.GetHealthStatusRequest @@ -1786,49 +1854,54 @@ var file_tetragon_sensors_proto_goTypes = []interface{}{ (*RuntimeHookResponse)(nil), // 37: tetragon.RuntimeHookResponse } var file_tetragon_sensors_proto_depIdxs = []int32{ - 2, // 0: tetragon.ListSensorsResponse.sensors:type_name -> tetragon.SensorStatus + 4, // 0: tetragon.ListSensorsResponse.sensors:type_name -> tetragon.SensorStatus 0, // 1: tetragon.TracingPolicyStatus.state:type_name -> tetragon.TracingPolicyState - 5, // 2: tetragon.ListTracingPoliciesResponse.policies:type_name -> tetragon.TracingPolicyStatus + 7, // 2: tetragon.ListTracingPoliciesResponse.policies:type_name -> tetragon.TracingPolicyStatus 31, // 3: tetragon.GetStackTraceTreeResponse.root:type_name -> tetragon.StackTraceNode - 32, // 4: tetragon.FineGuidanceSensors.GetEvents:input_type -> tetragon.GetEventsRequest - 33, // 5: tetragon.FineGuidanceSensors.GetHealth:input_type -> tetragon.GetHealthStatusRequest - 7, // 6: tetragon.FineGuidanceSensors.AddTracingPolicy:input_type -> tetragon.AddTracingPolicyRequest - 9, // 7: tetragon.FineGuidanceSensors.DeleteTracingPolicy:input_type -> tetragon.DeleteTracingPolicyRequest - 4, // 8: tetragon.FineGuidanceSensors.ListTracingPolicies:input_type -> tetragon.ListTracingPoliciesRequest - 11, // 9: tetragon.FineGuidanceSensors.EnableTracingPolicy:input_type -> tetragon.EnableTracingPolicyRequest - 13, // 10: tetragon.FineGuidanceSensors.DisableTracingPolicy:input_type -> tetragon.DisableTracingPolicyRequest - 1, // 11: tetragon.FineGuidanceSensors.ListSensors:input_type -> tetragon.ListSensorsRequest - 17, // 12: tetragon.FineGuidanceSensors.EnableSensor:input_type -> tetragon.EnableSensorRequest - 19, // 13: tetragon.FineGuidanceSensors.DisableSensor:input_type -> tetragon.DisableSensorRequest - 15, // 14: tetragon.FineGuidanceSensors.RemoveSensor:input_type -> tetragon.RemoveSensorRequest - 21, // 15: tetragon.FineGuidanceSensors.GetStackTraceTree:input_type -> tetragon.GetStackTraceTreeRequest - 23, // 16: tetragon.FineGuidanceSensors.GetVersion:input_type -> tetragon.GetVersionRequest - 34, // 17: tetragon.FineGuidanceSensors.RuntimeHook:input_type -> tetragon.RuntimeHookRequest - 25, // 18: tetragon.FineGuidanceSensors.GetLogLevel:input_type -> tetragon.GetLogLevelRequest - 27, // 19: tetragon.FineGuidanceSensors.SetLogLevel:input_type -> tetragon.SetLogLevelRequest - 29, // 20: tetragon.FineGuidanceSensors.ResetLogLevel:input_type -> tetragon.ResetLogLevelRequest - 35, // 21: tetragon.FineGuidanceSensors.GetEvents:output_type -> tetragon.GetEventsResponse - 36, // 22: tetragon.FineGuidanceSensors.GetHealth:output_type -> tetragon.GetHealthStatusResponse - 8, // 23: tetragon.FineGuidanceSensors.AddTracingPolicy:output_type -> tetragon.AddTracingPolicyResponse - 10, // 24: tetragon.FineGuidanceSensors.DeleteTracingPolicy:output_type -> tetragon.DeleteTracingPolicyResponse - 6, // 25: tetragon.FineGuidanceSensors.ListTracingPolicies:output_type -> tetragon.ListTracingPoliciesResponse - 12, // 26: tetragon.FineGuidanceSensors.EnableTracingPolicy:output_type -> tetragon.EnableTracingPolicyResponse - 14, // 27: tetragon.FineGuidanceSensors.DisableTracingPolicy:output_type -> tetragon.DisableTracingPolicyResponse - 3, // 28: tetragon.FineGuidanceSensors.ListSensors:output_type -> tetragon.ListSensorsResponse - 18, // 29: tetragon.FineGuidanceSensors.EnableSensor:output_type -> tetragon.EnableSensorResponse - 20, // 30: tetragon.FineGuidanceSensors.DisableSensor:output_type -> tetragon.DisableSensorResponse - 16, // 31: tetragon.FineGuidanceSensors.RemoveSensor:output_type -> tetragon.RemoveSensorResponse - 22, // 32: tetragon.FineGuidanceSensors.GetStackTraceTree:output_type -> tetragon.GetStackTraceTreeResponse - 24, // 33: tetragon.FineGuidanceSensors.GetVersion:output_type -> tetragon.GetVersionResponse - 37, // 34: tetragon.FineGuidanceSensors.RuntimeHook:output_type -> tetragon.RuntimeHookResponse - 26, // 35: tetragon.FineGuidanceSensors.GetLogLevel:output_type -> tetragon.GetLogLevelResponse - 28, // 36: tetragon.FineGuidanceSensors.SetLogLevel:output_type -> tetragon.SetLogLevelResponse - 30, // 37: tetragon.FineGuidanceSensors.ResetLogLevel:output_type -> tetragon.ResetLogLevelResponse - 21, // [21:38] is the sub-list for method output_type - 4, // [4:21] is the sub-list for method input_type - 4, // [4:4] is the sub-list for extension type_name - 4, // [4:4] is the sub-list for extension extendee - 0, // [0:4] is the sub-list for field type_name + 1, // 4: tetragon.GetDebugRequest.flag:type_name -> tetragon.ConfigFlag + 1, // 5: tetragon.GetDebugResponse.flag:type_name -> tetragon.ConfigFlag + 2, // 6: tetragon.GetDebugResponse.level:type_name -> tetragon.LogLevel + 1, // 7: tetragon.SetDebugRequest.flag:type_name -> tetragon.ConfigFlag + 2, // 8: tetragon.SetDebugRequest.level:type_name -> tetragon.LogLevel + 1, // 9: tetragon.SetDebugResponse.flag:type_name -> tetragon.ConfigFlag + 2, // 10: tetragon.SetDebugResponse.level:type_name -> tetragon.LogLevel + 32, // 11: tetragon.FineGuidanceSensors.GetEvents:input_type -> tetragon.GetEventsRequest + 33, // 12: tetragon.FineGuidanceSensors.GetHealth:input_type -> tetragon.GetHealthStatusRequest + 9, // 13: tetragon.FineGuidanceSensors.AddTracingPolicy:input_type -> tetragon.AddTracingPolicyRequest + 11, // 14: tetragon.FineGuidanceSensors.DeleteTracingPolicy:input_type -> tetragon.DeleteTracingPolicyRequest + 6, // 15: tetragon.FineGuidanceSensors.ListTracingPolicies:input_type -> tetragon.ListTracingPoliciesRequest + 13, // 16: tetragon.FineGuidanceSensors.EnableTracingPolicy:input_type -> tetragon.EnableTracingPolicyRequest + 15, // 17: tetragon.FineGuidanceSensors.DisableTracingPolicy:input_type -> tetragon.DisableTracingPolicyRequest + 3, // 18: tetragon.FineGuidanceSensors.ListSensors:input_type -> tetragon.ListSensorsRequest + 19, // 19: tetragon.FineGuidanceSensors.EnableSensor:input_type -> tetragon.EnableSensorRequest + 21, // 20: tetragon.FineGuidanceSensors.DisableSensor:input_type -> tetragon.DisableSensorRequest + 17, // 21: tetragon.FineGuidanceSensors.RemoveSensor:input_type -> tetragon.RemoveSensorRequest + 23, // 22: tetragon.FineGuidanceSensors.GetStackTraceTree:input_type -> tetragon.GetStackTraceTreeRequest + 25, // 23: tetragon.FineGuidanceSensors.GetVersion:input_type -> tetragon.GetVersionRequest + 34, // 24: tetragon.FineGuidanceSensors.RuntimeHook:input_type -> tetragon.RuntimeHookRequest + 27, // 25: tetragon.FineGuidanceSensors.GetDebug:input_type -> tetragon.GetDebugRequest + 29, // 26: tetragon.FineGuidanceSensors.SetDebug:input_type -> tetragon.SetDebugRequest + 35, // 27: tetragon.FineGuidanceSensors.GetEvents:output_type -> tetragon.GetEventsResponse + 36, // 28: tetragon.FineGuidanceSensors.GetHealth:output_type -> tetragon.GetHealthStatusResponse + 10, // 29: tetragon.FineGuidanceSensors.AddTracingPolicy:output_type -> tetragon.AddTracingPolicyResponse + 12, // 30: tetragon.FineGuidanceSensors.DeleteTracingPolicy:output_type -> tetragon.DeleteTracingPolicyResponse + 8, // 31: tetragon.FineGuidanceSensors.ListTracingPolicies:output_type -> tetragon.ListTracingPoliciesResponse + 14, // 32: tetragon.FineGuidanceSensors.EnableTracingPolicy:output_type -> tetragon.EnableTracingPolicyResponse + 16, // 33: tetragon.FineGuidanceSensors.DisableTracingPolicy:output_type -> tetragon.DisableTracingPolicyResponse + 5, // 34: tetragon.FineGuidanceSensors.ListSensors:output_type -> tetragon.ListSensorsResponse + 20, // 35: tetragon.FineGuidanceSensors.EnableSensor:output_type -> tetragon.EnableSensorResponse + 22, // 36: tetragon.FineGuidanceSensors.DisableSensor:output_type -> tetragon.DisableSensorResponse + 18, // 37: tetragon.FineGuidanceSensors.RemoveSensor:output_type -> tetragon.RemoveSensorResponse + 24, // 38: tetragon.FineGuidanceSensors.GetStackTraceTree:output_type -> tetragon.GetStackTraceTreeResponse + 26, // 39: tetragon.FineGuidanceSensors.GetVersion:output_type -> tetragon.GetVersionResponse + 37, // 40: tetragon.FineGuidanceSensors.RuntimeHook:output_type -> tetragon.RuntimeHookResponse + 28, // 41: tetragon.FineGuidanceSensors.GetDebug:output_type -> tetragon.GetDebugResponse + 30, // 42: tetragon.FineGuidanceSensors.SetDebug:output_type -> tetragon.SetDebugResponse + 27, // [27:43] is the sub-list for method output_type + 11, // [11:27] is the sub-list for method input_type + 11, // [11:11] is the sub-list for extension type_name + 11, // [11:11] is the sub-list for extension extendee + 0, // [0:11] is the sub-list for field type_name } func init() { file_tetragon_sensors_proto_init() } @@ -2129,7 +2202,7 @@ func file_tetragon_sensors_proto_init() { } } file_tetragon_sensors_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetLogLevelRequest); i { + switch v := v.(*GetDebugRequest); i { case 0: return &v.state case 1: @@ -2141,7 +2214,7 @@ func file_tetragon_sensors_proto_init() { } } file_tetragon_sensors_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetLogLevelResponse); i { + switch v := v.(*GetDebugResponse); i { case 0: return &v.state case 1: @@ -2153,7 +2226,7 @@ func file_tetragon_sensors_proto_init() { } } file_tetragon_sensors_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SetLogLevelRequest); i { + switch v := v.(*SetDebugRequest); i { case 0: return &v.state case 1: @@ -2165,31 +2238,7 @@ func file_tetragon_sensors_proto_init() { } } file_tetragon_sensors_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SetLogLevelResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tetragon_sensors_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ResetLogLevelRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tetragon_sensors_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ResetLogLevelResponse); i { + switch v := v.(*SetDebugResponse); i { case 0: return &v.state case 1: @@ -2206,8 +2255,8 @@ func file_tetragon_sensors_proto_init() { File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_tetragon_sensors_proto_rawDesc, - NumEnums: 1, - NumMessages: 30, + NumEnums: 3, + NumMessages: 28, NumExtensions: 0, NumServices: 1, }, diff --git a/api/v1/tetragon/sensors.pb.json.go b/api/v1/tetragon/sensors.pb.json.go index 3c082681621..a9d01c00e30 100644 --- a/api/v1/tetragon/sensors.pb.json.go +++ b/api/v1/tetragon/sensors.pb.json.go @@ -392,7 +392,7 @@ func (msg *GetVersionResponse) UnmarshalJSON(b []byte) error { } // MarshalJSON implements json.Marshaler -func (msg *GetLogLevelRequest) MarshalJSON() ([]byte, error) { +func (msg *GetDebugRequest) MarshalJSON() ([]byte, error) { return protojson.MarshalOptions{ UseEnumNumbers: false, EmitUnpopulated: false, @@ -401,14 +401,14 @@ func (msg *GetLogLevelRequest) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements json.Unmarshaler -func (msg *GetLogLevelRequest) UnmarshalJSON(b []byte) error { +func (msg *GetDebugRequest) UnmarshalJSON(b []byte) error { return protojson.UnmarshalOptions{ DiscardUnknown: false, }.Unmarshal(b, msg) } // MarshalJSON implements json.Marshaler -func (msg *GetLogLevelResponse) MarshalJSON() ([]byte, error) { +func (msg *GetDebugResponse) MarshalJSON() ([]byte, error) { return protojson.MarshalOptions{ UseEnumNumbers: false, EmitUnpopulated: false, @@ -417,14 +417,14 @@ func (msg *GetLogLevelResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements json.Unmarshaler -func (msg *GetLogLevelResponse) UnmarshalJSON(b []byte) error { +func (msg *GetDebugResponse) UnmarshalJSON(b []byte) error { return protojson.UnmarshalOptions{ DiscardUnknown: false, }.Unmarshal(b, msg) } // MarshalJSON implements json.Marshaler -func (msg *SetLogLevelRequest) MarshalJSON() ([]byte, error) { +func (msg *SetDebugRequest) MarshalJSON() ([]byte, error) { return protojson.MarshalOptions{ UseEnumNumbers: false, EmitUnpopulated: false, @@ -433,14 +433,14 @@ func (msg *SetLogLevelRequest) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements json.Unmarshaler -func (msg *SetLogLevelRequest) UnmarshalJSON(b []byte) error { +func (msg *SetDebugRequest) UnmarshalJSON(b []byte) error { return protojson.UnmarshalOptions{ DiscardUnknown: false, }.Unmarshal(b, msg) } // MarshalJSON implements json.Marshaler -func (msg *SetLogLevelResponse) MarshalJSON() ([]byte, error) { +func (msg *SetDebugResponse) MarshalJSON() ([]byte, error) { return protojson.MarshalOptions{ UseEnumNumbers: false, EmitUnpopulated: false, @@ -449,39 +449,7 @@ func (msg *SetLogLevelResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements json.Unmarshaler -func (msg *SetLogLevelResponse) UnmarshalJSON(b []byte) error { - return protojson.UnmarshalOptions{ - DiscardUnknown: false, - }.Unmarshal(b, msg) -} - -// MarshalJSON implements json.Marshaler -func (msg *ResetLogLevelRequest) MarshalJSON() ([]byte, error) { - return protojson.MarshalOptions{ - UseEnumNumbers: false, - EmitUnpopulated: false, - UseProtoNames: true, - }.Marshal(msg) -} - -// UnmarshalJSON implements json.Unmarshaler -func (msg *ResetLogLevelRequest) UnmarshalJSON(b []byte) error { - return protojson.UnmarshalOptions{ - DiscardUnknown: false, - }.Unmarshal(b, msg) -} - -// MarshalJSON implements json.Marshaler -func (msg *ResetLogLevelResponse) MarshalJSON() ([]byte, error) { - return protojson.MarshalOptions{ - UseEnumNumbers: false, - EmitUnpopulated: false, - UseProtoNames: true, - }.Marshal(msg) -} - -// UnmarshalJSON implements json.Unmarshaler -func (msg *ResetLogLevelResponse) UnmarshalJSON(b []byte) error { +func (msg *SetDebugResponse) UnmarshalJSON(b []byte) error { return protojson.UnmarshalOptions{ DiscardUnknown: false, }.Unmarshal(b, msg) diff --git a/api/v1/tetragon/sensors.proto b/api/v1/tetragon/sensors.proto index 7b218ae77bb..930228dba78 100644 --- a/api/v1/tetragon/sensors.proto +++ b/api/v1/tetragon/sensors.proto @@ -125,21 +125,36 @@ message GetVersionResponse{ string version = 1; } -message GetLogLevelRequest{} -message GetLogLevelResponse{ - string level = 1; +// For now, we only want to support debug-related config flags to be configurable. +enum ConfigFlag { + CONFIG_FLAG_LOG_LEVEL = 0; } -message SetLogLevelRequest{ - string level = 1; +enum LogLevel { + LOG_LEVEL_PANIC = 0; + LOG_LEVEL_FATAL = 1; + LOG_LEVEL_ERROR = 2; + LOG_LEVEL_WARN = 3; + LOG_LEVEL_INFO = 4; + LOG_LEVEL_DEBUG = 5; + LOG_LEVEL_TRACE = 6; } -message SetLogLevelResponse{ - string level = 1; + +message GetDebugRequest{ + ConfigFlag flag = 1; +} +message GetDebugResponse{ + ConfigFlag flag = 1; + LogLevel level = 2; } -message ResetLogLevelRequest{} -message ResetLogLevelResponse{ - string level = 1; +message SetDebugRequest{ + ConfigFlag flag = 1; + LogLevel level = 2; +} +message SetDebugResponse{ + ConfigFlag flag = 1; + LogLevel level = 2; } service FineGuidanceSensors { @@ -171,7 +186,6 @@ service FineGuidanceSensors { rpc RuntimeHook(RuntimeHookRequest) returns (RuntimeHookResponse) {} - rpc GetLogLevel(GetLogLevelRequest) returns (GetLogLevelResponse) {} - rpc SetLogLevel(SetLogLevelRequest) returns (SetLogLevelResponse) {} - rpc ResetLogLevel(ResetLogLevelRequest) returns (ResetLogLevelResponse) {} + rpc GetDebug(GetDebugRequest) returns (GetDebugResponse) {} + rpc SetDebug(SetDebugRequest) returns (SetDebugResponse) {} } diff --git a/api/v1/tetragon/sensors_grpc.pb.go b/api/v1/tetragon/sensors_grpc.pb.go index f65ec9bd55f..515f905c1b2 100644 --- a/api/v1/tetragon/sensors_grpc.pb.go +++ b/api/v1/tetragon/sensors_grpc.pb.go @@ -36,9 +36,8 @@ const ( FineGuidanceSensors_GetStackTraceTree_FullMethodName = "/tetragon.FineGuidanceSensors/GetStackTraceTree" FineGuidanceSensors_GetVersion_FullMethodName = "/tetragon.FineGuidanceSensors/GetVersion" FineGuidanceSensors_RuntimeHook_FullMethodName = "/tetragon.FineGuidanceSensors/RuntimeHook" - FineGuidanceSensors_GetLogLevel_FullMethodName = "/tetragon.FineGuidanceSensors/GetLogLevel" - FineGuidanceSensors_SetLogLevel_FullMethodName = "/tetragon.FineGuidanceSensors/SetLogLevel" - FineGuidanceSensors_ResetLogLevel_FullMethodName = "/tetragon.FineGuidanceSensors/ResetLogLevel" + FineGuidanceSensors_GetDebug_FullMethodName = "/tetragon.FineGuidanceSensors/GetDebug" + FineGuidanceSensors_SetDebug_FullMethodName = "/tetragon.FineGuidanceSensors/SetDebug" ) // FineGuidanceSensorsClient is the client API for FineGuidanceSensors service. @@ -63,9 +62,8 @@ type FineGuidanceSensorsClient interface { GetStackTraceTree(ctx context.Context, in *GetStackTraceTreeRequest, opts ...grpc.CallOption) (*GetStackTraceTreeResponse, error) GetVersion(ctx context.Context, in *GetVersionRequest, opts ...grpc.CallOption) (*GetVersionResponse, error) RuntimeHook(ctx context.Context, in *RuntimeHookRequest, opts ...grpc.CallOption) (*RuntimeHookResponse, error) - GetLogLevel(ctx context.Context, in *GetLogLevelRequest, opts ...grpc.CallOption) (*GetLogLevelResponse, error) - SetLogLevel(ctx context.Context, in *SetLogLevelRequest, opts ...grpc.CallOption) (*SetLogLevelResponse, error) - ResetLogLevel(ctx context.Context, in *ResetLogLevelRequest, opts ...grpc.CallOption) (*ResetLogLevelResponse, error) + GetDebug(ctx context.Context, in *GetDebugRequest, opts ...grpc.CallOption) (*GetDebugResponse, error) + SetDebug(ctx context.Context, in *SetDebugRequest, opts ...grpc.CallOption) (*SetDebugResponse, error) } type fineGuidanceSensorsClient struct { @@ -229,27 +227,18 @@ func (c *fineGuidanceSensorsClient) RuntimeHook(ctx context.Context, in *Runtime return out, nil } -func (c *fineGuidanceSensorsClient) GetLogLevel(ctx context.Context, in *GetLogLevelRequest, opts ...grpc.CallOption) (*GetLogLevelResponse, error) { - out := new(GetLogLevelResponse) - err := c.cc.Invoke(ctx, FineGuidanceSensors_GetLogLevel_FullMethodName, in, out, opts...) +func (c *fineGuidanceSensorsClient) GetDebug(ctx context.Context, in *GetDebugRequest, opts ...grpc.CallOption) (*GetDebugResponse, error) { + out := new(GetDebugResponse) + err := c.cc.Invoke(ctx, FineGuidanceSensors_GetDebug_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *fineGuidanceSensorsClient) SetLogLevel(ctx context.Context, in *SetLogLevelRequest, opts ...grpc.CallOption) (*SetLogLevelResponse, error) { - out := new(SetLogLevelResponse) - err := c.cc.Invoke(ctx, FineGuidanceSensors_SetLogLevel_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *fineGuidanceSensorsClient) ResetLogLevel(ctx context.Context, in *ResetLogLevelRequest, opts ...grpc.CallOption) (*ResetLogLevelResponse, error) { - out := new(ResetLogLevelResponse) - err := c.cc.Invoke(ctx, FineGuidanceSensors_ResetLogLevel_FullMethodName, in, out, opts...) +func (c *fineGuidanceSensorsClient) SetDebug(ctx context.Context, in *SetDebugRequest, opts ...grpc.CallOption) (*SetDebugResponse, error) { + out := new(SetDebugResponse) + err := c.cc.Invoke(ctx, FineGuidanceSensors_SetDebug_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -278,9 +267,8 @@ type FineGuidanceSensorsServer interface { GetStackTraceTree(context.Context, *GetStackTraceTreeRequest) (*GetStackTraceTreeResponse, error) GetVersion(context.Context, *GetVersionRequest) (*GetVersionResponse, error) RuntimeHook(context.Context, *RuntimeHookRequest) (*RuntimeHookResponse, error) - GetLogLevel(context.Context, *GetLogLevelRequest) (*GetLogLevelResponse, error) - SetLogLevel(context.Context, *SetLogLevelRequest) (*SetLogLevelResponse, error) - ResetLogLevel(context.Context, *ResetLogLevelRequest) (*ResetLogLevelResponse, error) + GetDebug(context.Context, *GetDebugRequest) (*GetDebugResponse, error) + SetDebug(context.Context, *SetDebugRequest) (*SetDebugResponse, error) } // UnimplementedFineGuidanceSensorsServer should be embedded to have forward compatible implementations. @@ -329,14 +317,11 @@ func (UnimplementedFineGuidanceSensorsServer) GetVersion(context.Context, *GetVe func (UnimplementedFineGuidanceSensorsServer) RuntimeHook(context.Context, *RuntimeHookRequest) (*RuntimeHookResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method RuntimeHook not implemented") } -func (UnimplementedFineGuidanceSensorsServer) GetLogLevel(context.Context, *GetLogLevelRequest) (*GetLogLevelResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetLogLevel not implemented") +func (UnimplementedFineGuidanceSensorsServer) GetDebug(context.Context, *GetDebugRequest) (*GetDebugResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetDebug not implemented") } -func (UnimplementedFineGuidanceSensorsServer) SetLogLevel(context.Context, *SetLogLevelRequest) (*SetLogLevelResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SetLogLevel not implemented") -} -func (UnimplementedFineGuidanceSensorsServer) ResetLogLevel(context.Context, *ResetLogLevelRequest) (*ResetLogLevelResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ResetLogLevel not implemented") +func (UnimplementedFineGuidanceSensorsServer) SetDebug(context.Context, *SetDebugRequest) (*SetDebugResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetDebug not implemented") } // UnsafeFineGuidanceSensorsServer may be embedded to opt out of forward compatibility for this service. @@ -605,56 +590,38 @@ func _FineGuidanceSensors_RuntimeHook_Handler(srv interface{}, ctx context.Conte return interceptor(ctx, in, info, handler) } -func _FineGuidanceSensors_GetLogLevel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetLogLevelRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(FineGuidanceSensorsServer).GetLogLevel(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: FineGuidanceSensors_GetLogLevel_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(FineGuidanceSensorsServer).GetLogLevel(ctx, req.(*GetLogLevelRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _FineGuidanceSensors_SetLogLevel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SetLogLevelRequest) +func _FineGuidanceSensors_GetDebug_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetDebugRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(FineGuidanceSensorsServer).SetLogLevel(ctx, in) + return srv.(FineGuidanceSensorsServer).GetDebug(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: FineGuidanceSensors_SetLogLevel_FullMethodName, + FullMethod: FineGuidanceSensors_GetDebug_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(FineGuidanceSensorsServer).SetLogLevel(ctx, req.(*SetLogLevelRequest)) + return srv.(FineGuidanceSensorsServer).GetDebug(ctx, req.(*GetDebugRequest)) } return interceptor(ctx, in, info, handler) } -func _FineGuidanceSensors_ResetLogLevel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ResetLogLevelRequest) +func _FineGuidanceSensors_SetDebug_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SetDebugRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(FineGuidanceSensorsServer).ResetLogLevel(ctx, in) + return srv.(FineGuidanceSensorsServer).SetDebug(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: FineGuidanceSensors_ResetLogLevel_FullMethodName, + FullMethod: FineGuidanceSensors_SetDebug_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(FineGuidanceSensorsServer).ResetLogLevel(ctx, req.(*ResetLogLevelRequest)) + return srv.(FineGuidanceSensorsServer).SetDebug(ctx, req.(*SetDebugRequest)) } return interceptor(ctx, in, info, handler) } @@ -719,16 +686,12 @@ var FineGuidanceSensors_ServiceDesc = grpc.ServiceDesc{ Handler: _FineGuidanceSensors_RuntimeHook_Handler, }, { - MethodName: "GetLogLevel", - Handler: _FineGuidanceSensors_GetLogLevel_Handler, - }, - { - MethodName: "SetLogLevel", - Handler: _FineGuidanceSensors_SetLogLevel_Handler, + MethodName: "GetDebug", + Handler: _FineGuidanceSensors_GetDebug_Handler, }, { - MethodName: "ResetLogLevel", - Handler: _FineGuidanceSensors_ResetLogLevel_Handler, + MethodName: "SetDebug", + Handler: _FineGuidanceSensors_SetDebug_Handler, }, }, Streams: []grpc.StreamDesc{ diff --git a/cmd/tetra/getevents/io_reader_client.go b/cmd/tetra/getevents/io_reader_client.go index b51872c5e16..f8aaeee06b7 100644 --- a/cmd/tetra/getevents/io_reader_client.go +++ b/cmd/tetra/getevents/io_reader_client.go @@ -133,14 +133,10 @@ func (i *ioReaderClient) RuntimeHook(_ context.Context, _ *tetragon.RuntimeHookR panic("stub") } -func (i *ioReaderClient) GetLogLevel(_ context.Context, _ *tetragon.GetLogLevelRequest, _ ...grpc.CallOption) (*tetragon.GetLogLevelResponse, error) { +func (i *ioReaderClient) GetDebug(_ context.Context, _ *tetragon.GetDebugRequest, _ ...grpc.CallOption) (*tetragon.GetDebugResponse, error) { panic("stub") } -func (i *ioReaderClient) SetLogLevel(_ context.Context, _ *tetragon.SetLogLevelRequest, _ ...grpc.CallOption) (*tetragon.SetLogLevelResponse, error) { - panic("stub") -} - -func (i *ioReaderClient) ResetLogLevel(_ context.Context, _ *tetragon.ResetLogLevelRequest, _ ...grpc.CallOption) (*tetragon.ResetLogLevelResponse, error) { +func (i *ioReaderClient) SetDebug(_ context.Context, _ *tetragon.SetDebugRequest, _ ...grpc.CallOption) (*tetragon.SetDebugResponse, error) { panic("stub") } diff --git a/cmd/tetra/loglevel/loglevel.go b/cmd/tetra/loglevel/loglevel.go index 59ca9009e7f..4354f2a744e 100644 --- a/cmd/tetra/loglevel/loglevel.go +++ b/cmd/tetra/loglevel/loglevel.go @@ -30,11 +30,13 @@ func New() *cobra.Command { } defer c.Close() - currentLoglevel, err := c.Client.GetLogLevel(c.Ctx, &tetragon.GetLogLevelRequest{}) + currentLoglevel, err := c.Client.GetDebug(c.Ctx, &tetragon.GetDebugRequest{ + Flag: tetragon.ConfigFlag_CONFIG_FLAG_LOG_LEVEL, + }) if err != nil { return fmt.Errorf("failed to get current Tetragon log level: %w", err) } - cmd.Printf("Current log level: %s\n", currentLoglevel.GetLevel()) + cmd.Printf("Current log level: %s\n", logrus.Level(currentLoglevel.GetLevel())) return nil }, @@ -55,7 +57,7 @@ func New() *cobra.Command { return fmt.Errorf("usage: tetra loglevel set [trace|debug|info|warning|error|fatal|panic]") } levelStr := args[0] - _, err := logrus.ParseLevel(levelStr) + levelParsed, err := logrus.ParseLevel(levelStr) if err != nil { return fmt.Errorf("invalid log level: %s", levelStr) } @@ -66,33 +68,14 @@ func New() *cobra.Command { } defer c.Close() - currentLogLevel, err := c.Client.SetLogLevel(c.Ctx, &tetragon.SetLogLevelRequest{ - Level: levelStr, + currentLogLevel, err := c.Client.SetDebug(c.Ctx, &tetragon.SetDebugRequest{ + Flag: tetragon.ConfigFlag_CONFIG_FLAG_LOG_LEVEL, + Level: tetragon.LogLevel(levelParsed), }) if err != nil { return fmt.Errorf("failed to set log level: %w", err) } - cmd.Printf("Log level set to: %s\n", currentLogLevel.GetLevel()) - - return nil - }, - } - - resetCmd := &cobra.Command{ - Use: "reset", - Short: "Reset the log level to the value Tetragon was started with", - RunE: func(cmd *cobra.Command, _ []string) error { - c, err := common.NewClientWithDefaultContextAndAddress() - if err != nil { - return fmt.Errorf("failed create gRPC client: %w", err) - } - defer c.Close() - - currentLogLevel, err := c.Client.ResetLogLevel(c.Ctx, &tetragon.ResetLogLevelRequest{}) - if err != nil { - return fmt.Errorf("failed to reset log level: %w", err) - } - cmd.Printf("Reset log level to: %s\n", currentLogLevel.GetLevel()) + cmd.Printf("Log level set to: %s\n", logrus.Level(currentLogLevel.GetLevel())) return nil }, @@ -102,7 +85,6 @@ func New() *cobra.Command { cmd.AddCommand( getCmd, setCmd, - resetCmd, ) return cmd diff --git a/contrib/tetragon-rthooks/vendor/github.com/cilium/tetragon/api/v1/tetragon/sensors.pb.go b/contrib/tetragon-rthooks/vendor/github.com/cilium/tetragon/api/v1/tetragon/sensors.pb.go index 0dd37a1589f..49e4f154ccb 100644 --- a/contrib/tetragon-rthooks/vendor/github.com/cilium/tetragon/api/v1/tetragon/sensors.pb.go +++ b/contrib/tetragon-rthooks/vendor/github.com/cilium/tetragon/api/v1/tetragon/sensors.pb.go @@ -91,6 +91,111 @@ func (TracingPolicyState) EnumDescriptor() ([]byte, []int) { return file_tetragon_sensors_proto_rawDescGZIP(), []int{0} } +// For now, we only want to support debug-related config flags to be configurable. +type ConfigFlag int32 + +const ( + ConfigFlag_CONFIG_FLAG_LOG_LEVEL ConfigFlag = 0 +) + +// Enum value maps for ConfigFlag. +var ( + ConfigFlag_name = map[int32]string{ + 0: "CONFIG_FLAG_LOG_LEVEL", + } + ConfigFlag_value = map[string]int32{ + "CONFIG_FLAG_LOG_LEVEL": 0, + } +) + +func (x ConfigFlag) Enum() *ConfigFlag { + p := new(ConfigFlag) + *p = x + return p +} + +func (x ConfigFlag) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ConfigFlag) Descriptor() protoreflect.EnumDescriptor { + return file_tetragon_sensors_proto_enumTypes[1].Descriptor() +} + +func (ConfigFlag) Type() protoreflect.EnumType { + return &file_tetragon_sensors_proto_enumTypes[1] +} + +func (x ConfigFlag) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ConfigFlag.Descriptor instead. +func (ConfigFlag) EnumDescriptor() ([]byte, []int) { + return file_tetragon_sensors_proto_rawDescGZIP(), []int{1} +} + +type LogLevel int32 + +const ( + LogLevel_LOG_LEVEL_PANIC LogLevel = 0 + LogLevel_LOG_LEVEL_FATAL LogLevel = 1 + LogLevel_LOG_LEVEL_ERROR LogLevel = 2 + LogLevel_LOG_LEVEL_WARN LogLevel = 3 + LogLevel_LOG_LEVEL_INFO LogLevel = 4 + LogLevel_LOG_LEVEL_DEBUG LogLevel = 5 + LogLevel_LOG_LEVEL_TRACE LogLevel = 6 +) + +// Enum value maps for LogLevel. +var ( + LogLevel_name = map[int32]string{ + 0: "LOG_LEVEL_PANIC", + 1: "LOG_LEVEL_FATAL", + 2: "LOG_LEVEL_ERROR", + 3: "LOG_LEVEL_WARN", + 4: "LOG_LEVEL_INFO", + 5: "LOG_LEVEL_DEBUG", + 6: "LOG_LEVEL_TRACE", + } + LogLevel_value = map[string]int32{ + "LOG_LEVEL_PANIC": 0, + "LOG_LEVEL_FATAL": 1, + "LOG_LEVEL_ERROR": 2, + "LOG_LEVEL_WARN": 3, + "LOG_LEVEL_INFO": 4, + "LOG_LEVEL_DEBUG": 5, + "LOG_LEVEL_TRACE": 6, + } +) + +func (x LogLevel) Enum() *LogLevel { + p := new(LogLevel) + *p = x + return p +} + +func (x LogLevel) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (LogLevel) Descriptor() protoreflect.EnumDescriptor { + return file_tetragon_sensors_proto_enumTypes[2].Descriptor() +} + +func (LogLevel) Type() protoreflect.EnumType { + return &file_tetragon_sensors_proto_enumTypes[2] +} + +func (x LogLevel) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use LogLevel.Descriptor instead. +func (LogLevel) EnumDescriptor() ([]byte, []int) { + return file_tetragon_sensors_proto_rawDescGZIP(), []int{2} +} + type ListSensorsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1248,14 +1353,16 @@ func (x *GetVersionResponse) GetVersion() string { return "" } -type GetLogLevelRequest struct { +type GetDebugRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + + Flag ConfigFlag `protobuf:"varint,1,opt,name=flag,proto3,enum=tetragon.ConfigFlag" json:"flag,omitempty"` } -func (x *GetLogLevelRequest) Reset() { - *x = GetLogLevelRequest{} +func (x *GetDebugRequest) Reset() { + *x = GetDebugRequest{} if protoimpl.UnsafeEnabled { mi := &file_tetragon_sensors_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1263,13 +1370,13 @@ func (x *GetLogLevelRequest) Reset() { } } -func (x *GetLogLevelRequest) String() string { +func (x *GetDebugRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*GetLogLevelRequest) ProtoMessage() {} +func (*GetDebugRequest) ProtoMessage() {} -func (x *GetLogLevelRequest) ProtoReflect() protoreflect.Message { +func (x *GetDebugRequest) ProtoReflect() protoreflect.Message { mi := &file_tetragon_sensors_proto_msgTypes[24] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1281,21 +1388,29 @@ func (x *GetLogLevelRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetLogLevelRequest.ProtoReflect.Descriptor instead. -func (*GetLogLevelRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use GetDebugRequest.ProtoReflect.Descriptor instead. +func (*GetDebugRequest) Descriptor() ([]byte, []int) { return file_tetragon_sensors_proto_rawDescGZIP(), []int{24} } -type GetLogLevelResponse struct { +func (x *GetDebugRequest) GetFlag() ConfigFlag { + if x != nil { + return x.Flag + } + return ConfigFlag_CONFIG_FLAG_LOG_LEVEL +} + +type GetDebugResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Level string `protobuf:"bytes,1,opt,name=level,proto3" json:"level,omitempty"` + Flag ConfigFlag `protobuf:"varint,1,opt,name=flag,proto3,enum=tetragon.ConfigFlag" json:"flag,omitempty"` + Level LogLevel `protobuf:"varint,2,opt,name=level,proto3,enum=tetragon.LogLevel" json:"level,omitempty"` } -func (x *GetLogLevelResponse) Reset() { - *x = GetLogLevelResponse{} +func (x *GetDebugResponse) Reset() { + *x = GetDebugResponse{} if protoimpl.UnsafeEnabled { mi := &file_tetragon_sensors_proto_msgTypes[25] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1303,13 +1418,13 @@ func (x *GetLogLevelResponse) Reset() { } } -func (x *GetLogLevelResponse) String() string { +func (x *GetDebugResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*GetLogLevelResponse) ProtoMessage() {} +func (*GetDebugResponse) ProtoMessage() {} -func (x *GetLogLevelResponse) ProtoReflect() protoreflect.Message { +func (x *GetDebugResponse) ProtoReflect() protoreflect.Message { mi := &file_tetragon_sensors_proto_msgTypes[25] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1321,28 +1436,36 @@ func (x *GetLogLevelResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetLogLevelResponse.ProtoReflect.Descriptor instead. -func (*GetLogLevelResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use GetDebugResponse.ProtoReflect.Descriptor instead. +func (*GetDebugResponse) Descriptor() ([]byte, []int) { return file_tetragon_sensors_proto_rawDescGZIP(), []int{25} } -func (x *GetLogLevelResponse) GetLevel() string { +func (x *GetDebugResponse) GetFlag() ConfigFlag { + if x != nil { + return x.Flag + } + return ConfigFlag_CONFIG_FLAG_LOG_LEVEL +} + +func (x *GetDebugResponse) GetLevel() LogLevel { if x != nil { return x.Level } - return "" + return LogLevel_LOG_LEVEL_PANIC } -type SetLogLevelRequest struct { +type SetDebugRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Level string `protobuf:"bytes,1,opt,name=level,proto3" json:"level,omitempty"` + Flag ConfigFlag `protobuf:"varint,1,opt,name=flag,proto3,enum=tetragon.ConfigFlag" json:"flag,omitempty"` + Level LogLevel `protobuf:"varint,2,opt,name=level,proto3,enum=tetragon.LogLevel" json:"level,omitempty"` } -func (x *SetLogLevelRequest) Reset() { - *x = SetLogLevelRequest{} +func (x *SetDebugRequest) Reset() { + *x = SetDebugRequest{} if protoimpl.UnsafeEnabled { mi := &file_tetragon_sensors_proto_msgTypes[26] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1350,13 +1473,13 @@ func (x *SetLogLevelRequest) Reset() { } } -func (x *SetLogLevelRequest) String() string { +func (x *SetDebugRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*SetLogLevelRequest) ProtoMessage() {} +func (*SetDebugRequest) ProtoMessage() {} -func (x *SetLogLevelRequest) ProtoReflect() protoreflect.Message { +func (x *SetDebugRequest) ProtoReflect() protoreflect.Message { mi := &file_tetragon_sensors_proto_msgTypes[26] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1368,28 +1491,36 @@ func (x *SetLogLevelRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SetLogLevelRequest.ProtoReflect.Descriptor instead. -func (*SetLogLevelRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use SetDebugRequest.ProtoReflect.Descriptor instead. +func (*SetDebugRequest) Descriptor() ([]byte, []int) { return file_tetragon_sensors_proto_rawDescGZIP(), []int{26} } -func (x *SetLogLevelRequest) GetLevel() string { +func (x *SetDebugRequest) GetFlag() ConfigFlag { + if x != nil { + return x.Flag + } + return ConfigFlag_CONFIG_FLAG_LOG_LEVEL +} + +func (x *SetDebugRequest) GetLevel() LogLevel { if x != nil { return x.Level } - return "" + return LogLevel_LOG_LEVEL_PANIC } -type SetLogLevelResponse struct { +type SetDebugResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Level string `protobuf:"bytes,1,opt,name=level,proto3" json:"level,omitempty"` + Flag ConfigFlag `protobuf:"varint,1,opt,name=flag,proto3,enum=tetragon.ConfigFlag" json:"flag,omitempty"` + Level LogLevel `protobuf:"varint,2,opt,name=level,proto3,enum=tetragon.LogLevel" json:"level,omitempty"` } -func (x *SetLogLevelResponse) Reset() { - *x = SetLogLevelResponse{} +func (x *SetDebugResponse) Reset() { + *x = SetDebugResponse{} if protoimpl.UnsafeEnabled { mi := &file_tetragon_sensors_proto_msgTypes[27] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1397,13 +1528,13 @@ func (x *SetLogLevelResponse) Reset() { } } -func (x *SetLogLevelResponse) String() string { +func (x *SetDebugResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*SetLogLevelResponse) ProtoMessage() {} +func (*SetDebugResponse) ProtoMessage() {} -func (x *SetLogLevelResponse) ProtoReflect() protoreflect.Message { +func (x *SetDebugResponse) ProtoReflect() protoreflect.Message { mi := &file_tetragon_sensors_proto_msgTypes[27] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1415,101 +1546,23 @@ func (x *SetLogLevelResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SetLogLevelResponse.ProtoReflect.Descriptor instead. -func (*SetLogLevelResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use SetDebugResponse.ProtoReflect.Descriptor instead. +func (*SetDebugResponse) Descriptor() ([]byte, []int) { return file_tetragon_sensors_proto_rawDescGZIP(), []int{27} } -func (x *SetLogLevelResponse) GetLevel() string { +func (x *SetDebugResponse) GetFlag() ConfigFlag { if x != nil { - return x.Level + return x.Flag } - return "" -} - -type ResetLogLevelRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields + return ConfigFlag_CONFIG_FLAG_LOG_LEVEL } -func (x *ResetLogLevelRequest) Reset() { - *x = ResetLogLevelRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_tetragon_sensors_proto_msgTypes[28] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ResetLogLevelRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ResetLogLevelRequest) ProtoMessage() {} - -func (x *ResetLogLevelRequest) ProtoReflect() protoreflect.Message { - mi := &file_tetragon_sensors_proto_msgTypes[28] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ResetLogLevelRequest.ProtoReflect.Descriptor instead. -func (*ResetLogLevelRequest) Descriptor() ([]byte, []int) { - return file_tetragon_sensors_proto_rawDescGZIP(), []int{28} -} - -type ResetLogLevelResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Level string `protobuf:"bytes,1,opt,name=level,proto3" json:"level,omitempty"` -} - -func (x *ResetLogLevelResponse) Reset() { - *x = ResetLogLevelResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_tetragon_sensors_proto_msgTypes[29] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ResetLogLevelResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ResetLogLevelResponse) ProtoMessage() {} - -func (x *ResetLogLevelResponse) ProtoReflect() protoreflect.Message { - mi := &file_tetragon_sensors_proto_msgTypes[29] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ResetLogLevelResponse.ProtoReflect.Descriptor instead. -func (*ResetLogLevelResponse) Descriptor() ([]byte, []int) { - return file_tetragon_sensors_proto_rawDescGZIP(), []int{29} -} - -func (x *ResetLogLevelResponse) GetLevel() string { +func (x *SetDebugResponse) GetLevel() LogLevel { if x != nil { return x.Level } - return "" + return LogLevel_LOG_LEVEL_PANIC } var File_tetragon_sensors_proto protoreflect.FileDescriptor @@ -1608,127 +1661,142 @@ var file_tetragon_sensors_proto_rawDesc = []byte{ 0x2e, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, - 0x14, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x2b, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x4c, - 0x65, 0x76, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, - 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, 0x65, 0x76, - 0x65, 0x6c, 0x22, 0x2a, 0x0a, 0x12, 0x53, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, - 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, - 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x22, 0x2b, - 0x0a, 0x13, 0x53, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x22, 0x16, 0x0a, 0x14, 0x52, - 0x65, 0x73, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x22, 0x2d, 0x0a, 0x15, 0x52, 0x65, 0x73, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x4c, - 0x65, 0x76, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, - 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, 0x65, 0x76, - 0x65, 0x6c, 0x2a, 0xb2, 0x01, 0x0a, 0x12, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, 0x6f, - 0x6c, 0x69, 0x63, 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x50, 0x5f, - 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, - 0x14, 0x0a, 0x10, 0x54, 0x50, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x45, 0x4e, 0x41, 0x42, - 0x4c, 0x45, 0x44, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x54, 0x50, 0x5f, 0x53, 0x54, 0x41, 0x54, - 0x45, 0x5f, 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x02, 0x12, 0x17, 0x0a, 0x13, - 0x54, 0x50, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x4c, 0x4f, 0x41, 0x44, 0x5f, 0x45, 0x52, - 0x52, 0x4f, 0x52, 0x10, 0x03, 0x12, 0x12, 0x0a, 0x0e, 0x54, 0x50, 0x5f, 0x53, 0x54, 0x41, 0x54, - 0x45, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x04, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x50, 0x5f, - 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x4c, 0x4f, 0x41, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x05, 0x12, - 0x16, 0x0a, 0x12, 0x54, 0x50, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x4c, 0x4f, - 0x41, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x06, 0x32, 0xe4, 0x0b, 0x0a, 0x13, 0x46, 0x69, 0x6e, 0x65, - 0x47, 0x75, 0x69, 0x64, 0x61, 0x6e, 0x63, 0x65, 0x53, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x12, - 0x48, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x1a, 0x2e, 0x74, - 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, - 0x67, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x12, 0x52, 0x0a, 0x09, 0x47, 0x65, 0x74, - 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x12, 0x20, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, - 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x53, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, - 0x67, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x53, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5b, 0x0a, - 0x10, 0x41, 0x64, 0x64, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, - 0x79, 0x12, 0x21, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x41, 0x64, 0x64, - 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, - 0x41, 0x64, 0x64, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x64, 0x0a, 0x13, 0x44, 0x65, - 0x6c, 0x65, 0x74, 0x65, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, - 0x79, 0x12, 0x24, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x44, 0x65, 0x6c, - 0x65, 0x74, 0x65, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, - 0x6f, 0x6e, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, - 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, - 0x12, 0x64, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, - 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x12, 0x24, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, - 0x6f, 0x6e, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, 0x6f, - 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, - 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x72, 0x61, - 0x63, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x64, 0x0a, 0x13, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, - 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x24, 0x2e, - 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x54, + 0x3b, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x44, 0x65, 0x62, 0x75, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x28, 0x0a, 0x04, 0x66, 0x6c, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x14, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x46, 0x6c, 0x61, 0x67, 0x52, 0x04, 0x66, 0x6c, 0x61, 0x67, 0x22, 0x66, 0x0a, 0x10, + 0x47, 0x65, 0x74, 0x44, 0x65, 0x62, 0x75, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x28, 0x0a, 0x04, 0x66, 0x6c, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, + 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x46, 0x6c, 0x61, 0x67, 0x52, 0x04, 0x66, 0x6c, 0x61, 0x67, 0x12, 0x28, 0x0a, 0x05, 0x6c, 0x65, + 0x76, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x12, 0x2e, 0x74, 0x65, 0x74, 0x72, + 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x05, 0x6c, + 0x65, 0x76, 0x65, 0x6c, 0x22, 0x65, 0x0a, 0x0f, 0x53, 0x65, 0x74, 0x44, 0x65, 0x62, 0x75, 0x67, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x04, 0x66, 0x6c, 0x61, 0x67, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, + 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x46, 0x6c, 0x61, 0x67, 0x52, 0x04, 0x66, 0x6c, 0x61, + 0x67, 0x12, 0x28, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x12, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x4c, 0x6f, 0x67, 0x4c, + 0x65, 0x76, 0x65, 0x6c, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x22, 0x66, 0x0a, 0x10, 0x53, + 0x65, 0x74, 0x44, 0x65, 0x62, 0x75, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x28, 0x0a, 0x04, 0x66, 0x6c, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, + 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x46, + 0x6c, 0x61, 0x67, 0x52, 0x04, 0x66, 0x6c, 0x61, 0x67, 0x12, 0x28, 0x0a, 0x05, 0x6c, 0x65, 0x76, + 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x12, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, + 0x67, 0x6f, 0x6e, 0x2e, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x05, 0x6c, 0x65, + 0x76, 0x65, 0x6c, 0x2a, 0xb2, 0x01, 0x0a, 0x12, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, + 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x50, + 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, + 0x12, 0x14, 0x0a, 0x10, 0x54, 0x50, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x45, 0x4e, 0x41, + 0x42, 0x4c, 0x45, 0x44, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x54, 0x50, 0x5f, 0x53, 0x54, 0x41, + 0x54, 0x45, 0x5f, 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x02, 0x12, 0x17, 0x0a, + 0x13, 0x54, 0x50, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x4c, 0x4f, 0x41, 0x44, 0x5f, 0x45, + 0x52, 0x52, 0x4f, 0x52, 0x10, 0x03, 0x12, 0x12, 0x0a, 0x0e, 0x54, 0x50, 0x5f, 0x53, 0x54, 0x41, + 0x54, 0x45, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x04, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x50, + 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x4c, 0x4f, 0x41, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x05, + 0x12, 0x16, 0x0a, 0x12, 0x54, 0x50, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x4c, + 0x4f, 0x41, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x06, 0x2a, 0x27, 0x0a, 0x0a, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x46, 0x6c, 0x61, 0x67, 0x12, 0x19, 0x0a, 0x15, 0x43, 0x4f, 0x4e, 0x46, 0x49, 0x47, + 0x5f, 0x46, 0x4c, 0x41, 0x47, 0x5f, 0x4c, 0x4f, 0x47, 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x10, + 0x00, 0x2a, 0x9b, 0x01, 0x0a, 0x08, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x13, + 0x0a, 0x0f, 0x4c, 0x4f, 0x47, 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x50, 0x41, 0x4e, 0x49, + 0x43, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x4c, 0x4f, 0x47, 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, + 0x5f, 0x46, 0x41, 0x54, 0x41, 0x4c, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x4c, 0x4f, 0x47, 0x5f, + 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x02, 0x12, 0x12, 0x0a, + 0x0e, 0x4c, 0x4f, 0x47, 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x57, 0x41, 0x52, 0x4e, 0x10, + 0x03, 0x12, 0x12, 0x0a, 0x0e, 0x4c, 0x4f, 0x47, 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x49, + 0x4e, 0x46, 0x4f, 0x10, 0x04, 0x12, 0x13, 0x0a, 0x0f, 0x4c, 0x4f, 0x47, 0x5f, 0x4c, 0x45, 0x56, + 0x45, 0x4c, 0x5f, 0x44, 0x45, 0x42, 0x55, 0x47, 0x10, 0x05, 0x12, 0x13, 0x0a, 0x0f, 0x4c, 0x4f, + 0x47, 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x54, 0x52, 0x41, 0x43, 0x45, 0x10, 0x06, 0x32, + 0xfe, 0x0a, 0x0a, 0x13, 0x46, 0x69, 0x6e, 0x65, 0x47, 0x75, 0x69, 0x64, 0x61, 0x6e, 0x63, 0x65, + 0x53, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x12, 0x48, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x45, 0x76, + 0x65, 0x6e, 0x74, 0x73, 0x12, 0x1a, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, + 0x47, 0x65, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x1b, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x45, + 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, + 0x01, 0x12, 0x52, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x12, 0x20, + 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x48, 0x65, 0x61, + 0x6c, 0x74, 0x68, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x21, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x48, + 0x65, 0x61, 0x6c, 0x74, 0x68, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5b, 0x0a, 0x10, 0x41, 0x64, 0x64, 0x54, 0x72, 0x61, 0x63, + 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x21, 0x2e, 0x74, 0x65, 0x74, 0x72, + 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x41, 0x64, 0x64, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, + 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x74, + 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x41, 0x64, 0x64, 0x54, 0x72, 0x61, 0x63, 0x69, + 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x00, 0x12, 0x64, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x72, 0x61, 0x63, + 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x24, 0x2e, 0x74, 0x65, 0x74, 0x72, + 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x72, 0x61, 0x63, 0x69, + 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x25, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x64, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, + 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x12, + 0x24, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, + 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, + 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, + 0x63, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x64, + 0x0a, 0x13, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, + 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x24, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, + 0x2e, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, 0x6f, + 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x74, 0x65, + 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x72, 0x61, + 0x63, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x00, 0x12, 0x67, 0x0a, 0x14, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x54, + 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x25, 0x2e, 0x74, + 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x45, - 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, - 0x63, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x67, 0x0a, 0x14, - 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, 0x6f, - 0x6c, 0x69, 0x63, 0x79, 0x12, 0x25, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, - 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, 0x6f, - 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x74, 0x65, - 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x72, - 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4f, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x6e, - 0x73, 0x6f, 0x72, 0x73, 0x12, 0x1c, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, - 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x4c, 0x69, - 0x73, 0x74, 0x53, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x03, 0x88, 0x02, 0x01, 0x12, 0x52, 0x0a, 0x0c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, - 0x53, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x12, 0x1d, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, - 0x6e, 0x2e, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, - 0x2e, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x88, 0x02, 0x01, 0x12, 0x55, 0x0a, 0x0d, 0x44, 0x69, - 0x73, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x12, 0x1e, 0x2e, 0x74, 0x65, - 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x65, - 0x6e, 0x73, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x74, 0x65, - 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x65, - 0x6e, 0x73, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x88, 0x02, - 0x01, 0x12, 0x52, 0x0a, 0x0c, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x53, 0x65, 0x6e, 0x73, 0x6f, - 0x72, 0x12, 0x1d, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x6d, - 0x6f, 0x76, 0x65, 0x53, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x1e, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x6d, 0x6f, - 0x76, 0x65, 0x53, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x03, 0x88, 0x02, 0x01, 0x12, 0x5e, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x63, - 0x6b, 0x54, 0x72, 0x61, 0x63, 0x65, 0x54, 0x72, 0x65, 0x65, 0x12, 0x22, 0x2e, 0x74, 0x65, 0x74, - 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x54, 0x72, - 0x61, 0x63, 0x65, 0x54, 0x72, 0x65, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, - 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, - 0x63, 0x6b, 0x54, 0x72, 0x61, 0x63, 0x65, 0x54, 0x72, 0x65, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x49, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, - 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x47, - 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x1c, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x56, - 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, - 0x12, 0x4c, 0x0a, 0x0b, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x48, 0x6f, 0x6f, 0x6b, 0x12, - 0x1c, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x52, 0x75, 0x6e, 0x74, 0x69, - 0x6d, 0x65, 0x48, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, - 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, - 0x48, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4c, - 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x1c, 0x2e, - 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x4c, - 0x65, 0x76, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x74, 0x65, - 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, - 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4c, 0x0a, 0x0b, - 0x53, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x1c, 0x2e, 0x74, 0x65, - 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x53, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, - 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x74, 0x65, 0x74, 0x72, - 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x53, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x52, 0x0a, 0x0d, 0x52, 0x65, - 0x73, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x1e, 0x2e, 0x74, 0x65, - 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x73, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x4c, - 0x65, 0x76, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x74, 0x65, - 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x73, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x4c, - 0x65, 0x76, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x44, + 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, + 0x69, 0x63, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4f, 0x0a, + 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x12, 0x1c, 0x2e, 0x74, + 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x6e, 0x73, + 0x6f, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x74, 0x65, 0x74, + 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x6e, 0x73, 0x6f, 0x72, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x88, 0x02, 0x01, 0x12, 0x52, + 0x0a, 0x0c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x12, 0x1d, + 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, + 0x53, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, + 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x53, + 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x88, + 0x02, 0x01, 0x12, 0x55, 0x0a, 0x0d, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x65, 0x6e, + 0x73, 0x6f, 0x72, 0x12, 0x1e, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x44, + 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x44, + 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x88, 0x02, 0x01, 0x12, 0x52, 0x0a, 0x0c, 0x52, 0x65, 0x6d, + 0x6f, 0x76, 0x65, 0x53, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x12, 0x1d, 0x2e, 0x74, 0x65, 0x74, 0x72, + 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x53, 0x65, 0x6e, 0x73, 0x6f, + 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, + 0x67, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x53, 0x65, 0x6e, 0x73, 0x6f, 0x72, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x88, 0x02, 0x01, 0x12, 0x5e, 0x0a, + 0x11, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x54, 0x72, 0x61, 0x63, 0x65, 0x54, 0x72, + 0x65, 0x65, 0x12, 0x22, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x47, 0x65, + 0x74, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x54, 0x72, 0x61, 0x63, 0x65, 0x54, 0x72, 0x65, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, + 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x54, 0x72, 0x61, 0x63, 0x65, 0x54, + 0x72, 0x65, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x49, 0x0a, + 0x0a, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x2e, 0x74, 0x65, + 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, + 0x67, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4c, 0x0a, 0x0b, 0x52, 0x75, 0x6e, 0x74, + 0x69, 0x6d, 0x65, 0x48, 0x6f, 0x6f, 0x6b, 0x12, 0x1c, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, + 0x6f, 0x6e, 0x2e, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x48, 0x6f, 0x6f, 0x6b, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, + 0x2e, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x48, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x43, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x44, 0x65, 0x62, + 0x75, 0x67, 0x12, 0x19, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x47, 0x65, + 0x74, 0x44, 0x65, 0x62, 0x75, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, + 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x65, 0x62, 0x75, + 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x43, 0x0a, 0x08, 0x53, + 0x65, 0x74, 0x44, 0x65, 0x62, 0x75, 0x67, 0x12, 0x19, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, + 0x6f, 0x6e, 0x2e, 0x53, 0x65, 0x74, 0x44, 0x65, 0x62, 0x75, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x53, 0x65, + 0x74, 0x44, 0x65, 0x62, 0x75, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -1743,40 +1811,40 @@ func file_tetragon_sensors_proto_rawDescGZIP() []byte { return file_tetragon_sensors_proto_rawDescData } -var file_tetragon_sensors_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_tetragon_sensors_proto_msgTypes = make([]protoimpl.MessageInfo, 30) +var file_tetragon_sensors_proto_enumTypes = make([]protoimpl.EnumInfo, 3) +var file_tetragon_sensors_proto_msgTypes = make([]protoimpl.MessageInfo, 28) var file_tetragon_sensors_proto_goTypes = []interface{}{ (TracingPolicyState)(0), // 0: tetragon.TracingPolicyState - (*ListSensorsRequest)(nil), // 1: tetragon.ListSensorsRequest - (*SensorStatus)(nil), // 2: tetragon.SensorStatus - (*ListSensorsResponse)(nil), // 3: tetragon.ListSensorsResponse - (*ListTracingPoliciesRequest)(nil), // 4: tetragon.ListTracingPoliciesRequest - (*TracingPolicyStatus)(nil), // 5: tetragon.TracingPolicyStatus - (*ListTracingPoliciesResponse)(nil), // 6: tetragon.ListTracingPoliciesResponse - (*AddTracingPolicyRequest)(nil), // 7: tetragon.AddTracingPolicyRequest - (*AddTracingPolicyResponse)(nil), // 8: tetragon.AddTracingPolicyResponse - (*DeleteTracingPolicyRequest)(nil), // 9: tetragon.DeleteTracingPolicyRequest - (*DeleteTracingPolicyResponse)(nil), // 10: tetragon.DeleteTracingPolicyResponse - (*EnableTracingPolicyRequest)(nil), // 11: tetragon.EnableTracingPolicyRequest - (*EnableTracingPolicyResponse)(nil), // 12: tetragon.EnableTracingPolicyResponse - (*DisableTracingPolicyRequest)(nil), // 13: tetragon.DisableTracingPolicyRequest - (*DisableTracingPolicyResponse)(nil), // 14: tetragon.DisableTracingPolicyResponse - (*RemoveSensorRequest)(nil), // 15: tetragon.RemoveSensorRequest - (*RemoveSensorResponse)(nil), // 16: tetragon.RemoveSensorResponse - (*EnableSensorRequest)(nil), // 17: tetragon.EnableSensorRequest - (*EnableSensorResponse)(nil), // 18: tetragon.EnableSensorResponse - (*DisableSensorRequest)(nil), // 19: tetragon.DisableSensorRequest - (*DisableSensorResponse)(nil), // 20: tetragon.DisableSensorResponse - (*GetStackTraceTreeRequest)(nil), // 21: tetragon.GetStackTraceTreeRequest - (*GetStackTraceTreeResponse)(nil), // 22: tetragon.GetStackTraceTreeResponse - (*GetVersionRequest)(nil), // 23: tetragon.GetVersionRequest - (*GetVersionResponse)(nil), // 24: tetragon.GetVersionResponse - (*GetLogLevelRequest)(nil), // 25: tetragon.GetLogLevelRequest - (*GetLogLevelResponse)(nil), // 26: tetragon.GetLogLevelResponse - (*SetLogLevelRequest)(nil), // 27: tetragon.SetLogLevelRequest - (*SetLogLevelResponse)(nil), // 28: tetragon.SetLogLevelResponse - (*ResetLogLevelRequest)(nil), // 29: tetragon.ResetLogLevelRequest - (*ResetLogLevelResponse)(nil), // 30: tetragon.ResetLogLevelResponse + (ConfigFlag)(0), // 1: tetragon.ConfigFlag + (LogLevel)(0), // 2: tetragon.LogLevel + (*ListSensorsRequest)(nil), // 3: tetragon.ListSensorsRequest + (*SensorStatus)(nil), // 4: tetragon.SensorStatus + (*ListSensorsResponse)(nil), // 5: tetragon.ListSensorsResponse + (*ListTracingPoliciesRequest)(nil), // 6: tetragon.ListTracingPoliciesRequest + (*TracingPolicyStatus)(nil), // 7: tetragon.TracingPolicyStatus + (*ListTracingPoliciesResponse)(nil), // 8: tetragon.ListTracingPoliciesResponse + (*AddTracingPolicyRequest)(nil), // 9: tetragon.AddTracingPolicyRequest + (*AddTracingPolicyResponse)(nil), // 10: tetragon.AddTracingPolicyResponse + (*DeleteTracingPolicyRequest)(nil), // 11: tetragon.DeleteTracingPolicyRequest + (*DeleteTracingPolicyResponse)(nil), // 12: tetragon.DeleteTracingPolicyResponse + (*EnableTracingPolicyRequest)(nil), // 13: tetragon.EnableTracingPolicyRequest + (*EnableTracingPolicyResponse)(nil), // 14: tetragon.EnableTracingPolicyResponse + (*DisableTracingPolicyRequest)(nil), // 15: tetragon.DisableTracingPolicyRequest + (*DisableTracingPolicyResponse)(nil), // 16: tetragon.DisableTracingPolicyResponse + (*RemoveSensorRequest)(nil), // 17: tetragon.RemoveSensorRequest + (*RemoveSensorResponse)(nil), // 18: tetragon.RemoveSensorResponse + (*EnableSensorRequest)(nil), // 19: tetragon.EnableSensorRequest + (*EnableSensorResponse)(nil), // 20: tetragon.EnableSensorResponse + (*DisableSensorRequest)(nil), // 21: tetragon.DisableSensorRequest + (*DisableSensorResponse)(nil), // 22: tetragon.DisableSensorResponse + (*GetStackTraceTreeRequest)(nil), // 23: tetragon.GetStackTraceTreeRequest + (*GetStackTraceTreeResponse)(nil), // 24: tetragon.GetStackTraceTreeResponse + (*GetVersionRequest)(nil), // 25: tetragon.GetVersionRequest + (*GetVersionResponse)(nil), // 26: tetragon.GetVersionResponse + (*GetDebugRequest)(nil), // 27: tetragon.GetDebugRequest + (*GetDebugResponse)(nil), // 28: tetragon.GetDebugResponse + (*SetDebugRequest)(nil), // 29: tetragon.SetDebugRequest + (*SetDebugResponse)(nil), // 30: tetragon.SetDebugResponse (*StackTraceNode)(nil), // 31: tetragon.StackTraceNode (*GetEventsRequest)(nil), // 32: tetragon.GetEventsRequest (*GetHealthStatusRequest)(nil), // 33: tetragon.GetHealthStatusRequest @@ -1786,49 +1854,54 @@ var file_tetragon_sensors_proto_goTypes = []interface{}{ (*RuntimeHookResponse)(nil), // 37: tetragon.RuntimeHookResponse } var file_tetragon_sensors_proto_depIdxs = []int32{ - 2, // 0: tetragon.ListSensorsResponse.sensors:type_name -> tetragon.SensorStatus + 4, // 0: tetragon.ListSensorsResponse.sensors:type_name -> tetragon.SensorStatus 0, // 1: tetragon.TracingPolicyStatus.state:type_name -> tetragon.TracingPolicyState - 5, // 2: tetragon.ListTracingPoliciesResponse.policies:type_name -> tetragon.TracingPolicyStatus + 7, // 2: tetragon.ListTracingPoliciesResponse.policies:type_name -> tetragon.TracingPolicyStatus 31, // 3: tetragon.GetStackTraceTreeResponse.root:type_name -> tetragon.StackTraceNode - 32, // 4: tetragon.FineGuidanceSensors.GetEvents:input_type -> tetragon.GetEventsRequest - 33, // 5: tetragon.FineGuidanceSensors.GetHealth:input_type -> tetragon.GetHealthStatusRequest - 7, // 6: tetragon.FineGuidanceSensors.AddTracingPolicy:input_type -> tetragon.AddTracingPolicyRequest - 9, // 7: tetragon.FineGuidanceSensors.DeleteTracingPolicy:input_type -> tetragon.DeleteTracingPolicyRequest - 4, // 8: tetragon.FineGuidanceSensors.ListTracingPolicies:input_type -> tetragon.ListTracingPoliciesRequest - 11, // 9: tetragon.FineGuidanceSensors.EnableTracingPolicy:input_type -> tetragon.EnableTracingPolicyRequest - 13, // 10: tetragon.FineGuidanceSensors.DisableTracingPolicy:input_type -> tetragon.DisableTracingPolicyRequest - 1, // 11: tetragon.FineGuidanceSensors.ListSensors:input_type -> tetragon.ListSensorsRequest - 17, // 12: tetragon.FineGuidanceSensors.EnableSensor:input_type -> tetragon.EnableSensorRequest - 19, // 13: tetragon.FineGuidanceSensors.DisableSensor:input_type -> tetragon.DisableSensorRequest - 15, // 14: tetragon.FineGuidanceSensors.RemoveSensor:input_type -> tetragon.RemoveSensorRequest - 21, // 15: tetragon.FineGuidanceSensors.GetStackTraceTree:input_type -> tetragon.GetStackTraceTreeRequest - 23, // 16: tetragon.FineGuidanceSensors.GetVersion:input_type -> tetragon.GetVersionRequest - 34, // 17: tetragon.FineGuidanceSensors.RuntimeHook:input_type -> tetragon.RuntimeHookRequest - 25, // 18: tetragon.FineGuidanceSensors.GetLogLevel:input_type -> tetragon.GetLogLevelRequest - 27, // 19: tetragon.FineGuidanceSensors.SetLogLevel:input_type -> tetragon.SetLogLevelRequest - 29, // 20: tetragon.FineGuidanceSensors.ResetLogLevel:input_type -> tetragon.ResetLogLevelRequest - 35, // 21: tetragon.FineGuidanceSensors.GetEvents:output_type -> tetragon.GetEventsResponse - 36, // 22: tetragon.FineGuidanceSensors.GetHealth:output_type -> tetragon.GetHealthStatusResponse - 8, // 23: tetragon.FineGuidanceSensors.AddTracingPolicy:output_type -> tetragon.AddTracingPolicyResponse - 10, // 24: tetragon.FineGuidanceSensors.DeleteTracingPolicy:output_type -> tetragon.DeleteTracingPolicyResponse - 6, // 25: tetragon.FineGuidanceSensors.ListTracingPolicies:output_type -> tetragon.ListTracingPoliciesResponse - 12, // 26: tetragon.FineGuidanceSensors.EnableTracingPolicy:output_type -> tetragon.EnableTracingPolicyResponse - 14, // 27: tetragon.FineGuidanceSensors.DisableTracingPolicy:output_type -> tetragon.DisableTracingPolicyResponse - 3, // 28: tetragon.FineGuidanceSensors.ListSensors:output_type -> tetragon.ListSensorsResponse - 18, // 29: tetragon.FineGuidanceSensors.EnableSensor:output_type -> tetragon.EnableSensorResponse - 20, // 30: tetragon.FineGuidanceSensors.DisableSensor:output_type -> tetragon.DisableSensorResponse - 16, // 31: tetragon.FineGuidanceSensors.RemoveSensor:output_type -> tetragon.RemoveSensorResponse - 22, // 32: tetragon.FineGuidanceSensors.GetStackTraceTree:output_type -> tetragon.GetStackTraceTreeResponse - 24, // 33: tetragon.FineGuidanceSensors.GetVersion:output_type -> tetragon.GetVersionResponse - 37, // 34: tetragon.FineGuidanceSensors.RuntimeHook:output_type -> tetragon.RuntimeHookResponse - 26, // 35: tetragon.FineGuidanceSensors.GetLogLevel:output_type -> tetragon.GetLogLevelResponse - 28, // 36: tetragon.FineGuidanceSensors.SetLogLevel:output_type -> tetragon.SetLogLevelResponse - 30, // 37: tetragon.FineGuidanceSensors.ResetLogLevel:output_type -> tetragon.ResetLogLevelResponse - 21, // [21:38] is the sub-list for method output_type - 4, // [4:21] is the sub-list for method input_type - 4, // [4:4] is the sub-list for extension type_name - 4, // [4:4] is the sub-list for extension extendee - 0, // [0:4] is the sub-list for field type_name + 1, // 4: tetragon.GetDebugRequest.flag:type_name -> tetragon.ConfigFlag + 1, // 5: tetragon.GetDebugResponse.flag:type_name -> tetragon.ConfigFlag + 2, // 6: tetragon.GetDebugResponse.level:type_name -> tetragon.LogLevel + 1, // 7: tetragon.SetDebugRequest.flag:type_name -> tetragon.ConfigFlag + 2, // 8: tetragon.SetDebugRequest.level:type_name -> tetragon.LogLevel + 1, // 9: tetragon.SetDebugResponse.flag:type_name -> tetragon.ConfigFlag + 2, // 10: tetragon.SetDebugResponse.level:type_name -> tetragon.LogLevel + 32, // 11: tetragon.FineGuidanceSensors.GetEvents:input_type -> tetragon.GetEventsRequest + 33, // 12: tetragon.FineGuidanceSensors.GetHealth:input_type -> tetragon.GetHealthStatusRequest + 9, // 13: tetragon.FineGuidanceSensors.AddTracingPolicy:input_type -> tetragon.AddTracingPolicyRequest + 11, // 14: tetragon.FineGuidanceSensors.DeleteTracingPolicy:input_type -> tetragon.DeleteTracingPolicyRequest + 6, // 15: tetragon.FineGuidanceSensors.ListTracingPolicies:input_type -> tetragon.ListTracingPoliciesRequest + 13, // 16: tetragon.FineGuidanceSensors.EnableTracingPolicy:input_type -> tetragon.EnableTracingPolicyRequest + 15, // 17: tetragon.FineGuidanceSensors.DisableTracingPolicy:input_type -> tetragon.DisableTracingPolicyRequest + 3, // 18: tetragon.FineGuidanceSensors.ListSensors:input_type -> tetragon.ListSensorsRequest + 19, // 19: tetragon.FineGuidanceSensors.EnableSensor:input_type -> tetragon.EnableSensorRequest + 21, // 20: tetragon.FineGuidanceSensors.DisableSensor:input_type -> tetragon.DisableSensorRequest + 17, // 21: tetragon.FineGuidanceSensors.RemoveSensor:input_type -> tetragon.RemoveSensorRequest + 23, // 22: tetragon.FineGuidanceSensors.GetStackTraceTree:input_type -> tetragon.GetStackTraceTreeRequest + 25, // 23: tetragon.FineGuidanceSensors.GetVersion:input_type -> tetragon.GetVersionRequest + 34, // 24: tetragon.FineGuidanceSensors.RuntimeHook:input_type -> tetragon.RuntimeHookRequest + 27, // 25: tetragon.FineGuidanceSensors.GetDebug:input_type -> tetragon.GetDebugRequest + 29, // 26: tetragon.FineGuidanceSensors.SetDebug:input_type -> tetragon.SetDebugRequest + 35, // 27: tetragon.FineGuidanceSensors.GetEvents:output_type -> tetragon.GetEventsResponse + 36, // 28: tetragon.FineGuidanceSensors.GetHealth:output_type -> tetragon.GetHealthStatusResponse + 10, // 29: tetragon.FineGuidanceSensors.AddTracingPolicy:output_type -> tetragon.AddTracingPolicyResponse + 12, // 30: tetragon.FineGuidanceSensors.DeleteTracingPolicy:output_type -> tetragon.DeleteTracingPolicyResponse + 8, // 31: tetragon.FineGuidanceSensors.ListTracingPolicies:output_type -> tetragon.ListTracingPoliciesResponse + 14, // 32: tetragon.FineGuidanceSensors.EnableTracingPolicy:output_type -> tetragon.EnableTracingPolicyResponse + 16, // 33: tetragon.FineGuidanceSensors.DisableTracingPolicy:output_type -> tetragon.DisableTracingPolicyResponse + 5, // 34: tetragon.FineGuidanceSensors.ListSensors:output_type -> tetragon.ListSensorsResponse + 20, // 35: tetragon.FineGuidanceSensors.EnableSensor:output_type -> tetragon.EnableSensorResponse + 22, // 36: tetragon.FineGuidanceSensors.DisableSensor:output_type -> tetragon.DisableSensorResponse + 18, // 37: tetragon.FineGuidanceSensors.RemoveSensor:output_type -> tetragon.RemoveSensorResponse + 24, // 38: tetragon.FineGuidanceSensors.GetStackTraceTree:output_type -> tetragon.GetStackTraceTreeResponse + 26, // 39: tetragon.FineGuidanceSensors.GetVersion:output_type -> tetragon.GetVersionResponse + 37, // 40: tetragon.FineGuidanceSensors.RuntimeHook:output_type -> tetragon.RuntimeHookResponse + 28, // 41: tetragon.FineGuidanceSensors.GetDebug:output_type -> tetragon.GetDebugResponse + 30, // 42: tetragon.FineGuidanceSensors.SetDebug:output_type -> tetragon.SetDebugResponse + 27, // [27:43] is the sub-list for method output_type + 11, // [11:27] is the sub-list for method input_type + 11, // [11:11] is the sub-list for extension type_name + 11, // [11:11] is the sub-list for extension extendee + 0, // [0:11] is the sub-list for field type_name } func init() { file_tetragon_sensors_proto_init() } @@ -2129,7 +2202,7 @@ func file_tetragon_sensors_proto_init() { } } file_tetragon_sensors_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetLogLevelRequest); i { + switch v := v.(*GetDebugRequest); i { case 0: return &v.state case 1: @@ -2141,7 +2214,7 @@ func file_tetragon_sensors_proto_init() { } } file_tetragon_sensors_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetLogLevelResponse); i { + switch v := v.(*GetDebugResponse); i { case 0: return &v.state case 1: @@ -2153,7 +2226,7 @@ func file_tetragon_sensors_proto_init() { } } file_tetragon_sensors_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SetLogLevelRequest); i { + switch v := v.(*SetDebugRequest); i { case 0: return &v.state case 1: @@ -2165,31 +2238,7 @@ func file_tetragon_sensors_proto_init() { } } file_tetragon_sensors_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SetLogLevelResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tetragon_sensors_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ResetLogLevelRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tetragon_sensors_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ResetLogLevelResponse); i { + switch v := v.(*SetDebugResponse); i { case 0: return &v.state case 1: @@ -2206,8 +2255,8 @@ func file_tetragon_sensors_proto_init() { File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_tetragon_sensors_proto_rawDesc, - NumEnums: 1, - NumMessages: 30, + NumEnums: 3, + NumMessages: 28, NumExtensions: 0, NumServices: 1, }, diff --git a/contrib/tetragon-rthooks/vendor/github.com/cilium/tetragon/api/v1/tetragon/sensors.pb.json.go b/contrib/tetragon-rthooks/vendor/github.com/cilium/tetragon/api/v1/tetragon/sensors.pb.json.go index 3c082681621..a9d01c00e30 100644 --- a/contrib/tetragon-rthooks/vendor/github.com/cilium/tetragon/api/v1/tetragon/sensors.pb.json.go +++ b/contrib/tetragon-rthooks/vendor/github.com/cilium/tetragon/api/v1/tetragon/sensors.pb.json.go @@ -392,7 +392,7 @@ func (msg *GetVersionResponse) UnmarshalJSON(b []byte) error { } // MarshalJSON implements json.Marshaler -func (msg *GetLogLevelRequest) MarshalJSON() ([]byte, error) { +func (msg *GetDebugRequest) MarshalJSON() ([]byte, error) { return protojson.MarshalOptions{ UseEnumNumbers: false, EmitUnpopulated: false, @@ -401,14 +401,14 @@ func (msg *GetLogLevelRequest) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements json.Unmarshaler -func (msg *GetLogLevelRequest) UnmarshalJSON(b []byte) error { +func (msg *GetDebugRequest) UnmarshalJSON(b []byte) error { return protojson.UnmarshalOptions{ DiscardUnknown: false, }.Unmarshal(b, msg) } // MarshalJSON implements json.Marshaler -func (msg *GetLogLevelResponse) MarshalJSON() ([]byte, error) { +func (msg *GetDebugResponse) MarshalJSON() ([]byte, error) { return protojson.MarshalOptions{ UseEnumNumbers: false, EmitUnpopulated: false, @@ -417,14 +417,14 @@ func (msg *GetLogLevelResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements json.Unmarshaler -func (msg *GetLogLevelResponse) UnmarshalJSON(b []byte) error { +func (msg *GetDebugResponse) UnmarshalJSON(b []byte) error { return protojson.UnmarshalOptions{ DiscardUnknown: false, }.Unmarshal(b, msg) } // MarshalJSON implements json.Marshaler -func (msg *SetLogLevelRequest) MarshalJSON() ([]byte, error) { +func (msg *SetDebugRequest) MarshalJSON() ([]byte, error) { return protojson.MarshalOptions{ UseEnumNumbers: false, EmitUnpopulated: false, @@ -433,14 +433,14 @@ func (msg *SetLogLevelRequest) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements json.Unmarshaler -func (msg *SetLogLevelRequest) UnmarshalJSON(b []byte) error { +func (msg *SetDebugRequest) UnmarshalJSON(b []byte) error { return protojson.UnmarshalOptions{ DiscardUnknown: false, }.Unmarshal(b, msg) } // MarshalJSON implements json.Marshaler -func (msg *SetLogLevelResponse) MarshalJSON() ([]byte, error) { +func (msg *SetDebugResponse) MarshalJSON() ([]byte, error) { return protojson.MarshalOptions{ UseEnumNumbers: false, EmitUnpopulated: false, @@ -449,39 +449,7 @@ func (msg *SetLogLevelResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements json.Unmarshaler -func (msg *SetLogLevelResponse) UnmarshalJSON(b []byte) error { - return protojson.UnmarshalOptions{ - DiscardUnknown: false, - }.Unmarshal(b, msg) -} - -// MarshalJSON implements json.Marshaler -func (msg *ResetLogLevelRequest) MarshalJSON() ([]byte, error) { - return protojson.MarshalOptions{ - UseEnumNumbers: false, - EmitUnpopulated: false, - UseProtoNames: true, - }.Marshal(msg) -} - -// UnmarshalJSON implements json.Unmarshaler -func (msg *ResetLogLevelRequest) UnmarshalJSON(b []byte) error { - return protojson.UnmarshalOptions{ - DiscardUnknown: false, - }.Unmarshal(b, msg) -} - -// MarshalJSON implements json.Marshaler -func (msg *ResetLogLevelResponse) MarshalJSON() ([]byte, error) { - return protojson.MarshalOptions{ - UseEnumNumbers: false, - EmitUnpopulated: false, - UseProtoNames: true, - }.Marshal(msg) -} - -// UnmarshalJSON implements json.Unmarshaler -func (msg *ResetLogLevelResponse) UnmarshalJSON(b []byte) error { +func (msg *SetDebugResponse) UnmarshalJSON(b []byte) error { return protojson.UnmarshalOptions{ DiscardUnknown: false, }.Unmarshal(b, msg) diff --git a/contrib/tetragon-rthooks/vendor/github.com/cilium/tetragon/api/v1/tetragon/sensors.proto b/contrib/tetragon-rthooks/vendor/github.com/cilium/tetragon/api/v1/tetragon/sensors.proto index 7b218ae77bb..930228dba78 100644 --- a/contrib/tetragon-rthooks/vendor/github.com/cilium/tetragon/api/v1/tetragon/sensors.proto +++ b/contrib/tetragon-rthooks/vendor/github.com/cilium/tetragon/api/v1/tetragon/sensors.proto @@ -125,21 +125,36 @@ message GetVersionResponse{ string version = 1; } -message GetLogLevelRequest{} -message GetLogLevelResponse{ - string level = 1; +// For now, we only want to support debug-related config flags to be configurable. +enum ConfigFlag { + CONFIG_FLAG_LOG_LEVEL = 0; } -message SetLogLevelRequest{ - string level = 1; +enum LogLevel { + LOG_LEVEL_PANIC = 0; + LOG_LEVEL_FATAL = 1; + LOG_LEVEL_ERROR = 2; + LOG_LEVEL_WARN = 3; + LOG_LEVEL_INFO = 4; + LOG_LEVEL_DEBUG = 5; + LOG_LEVEL_TRACE = 6; } -message SetLogLevelResponse{ - string level = 1; + +message GetDebugRequest{ + ConfigFlag flag = 1; +} +message GetDebugResponse{ + ConfigFlag flag = 1; + LogLevel level = 2; } -message ResetLogLevelRequest{} -message ResetLogLevelResponse{ - string level = 1; +message SetDebugRequest{ + ConfigFlag flag = 1; + LogLevel level = 2; +} +message SetDebugResponse{ + ConfigFlag flag = 1; + LogLevel level = 2; } service FineGuidanceSensors { @@ -171,7 +186,6 @@ service FineGuidanceSensors { rpc RuntimeHook(RuntimeHookRequest) returns (RuntimeHookResponse) {} - rpc GetLogLevel(GetLogLevelRequest) returns (GetLogLevelResponse) {} - rpc SetLogLevel(SetLogLevelRequest) returns (SetLogLevelResponse) {} - rpc ResetLogLevel(ResetLogLevelRequest) returns (ResetLogLevelResponse) {} + rpc GetDebug(GetDebugRequest) returns (GetDebugResponse) {} + rpc SetDebug(SetDebugRequest) returns (SetDebugResponse) {} } diff --git a/contrib/tetragon-rthooks/vendor/github.com/cilium/tetragon/api/v1/tetragon/sensors_grpc.pb.go b/contrib/tetragon-rthooks/vendor/github.com/cilium/tetragon/api/v1/tetragon/sensors_grpc.pb.go index f65ec9bd55f..515f905c1b2 100644 --- a/contrib/tetragon-rthooks/vendor/github.com/cilium/tetragon/api/v1/tetragon/sensors_grpc.pb.go +++ b/contrib/tetragon-rthooks/vendor/github.com/cilium/tetragon/api/v1/tetragon/sensors_grpc.pb.go @@ -36,9 +36,8 @@ const ( FineGuidanceSensors_GetStackTraceTree_FullMethodName = "/tetragon.FineGuidanceSensors/GetStackTraceTree" FineGuidanceSensors_GetVersion_FullMethodName = "/tetragon.FineGuidanceSensors/GetVersion" FineGuidanceSensors_RuntimeHook_FullMethodName = "/tetragon.FineGuidanceSensors/RuntimeHook" - FineGuidanceSensors_GetLogLevel_FullMethodName = "/tetragon.FineGuidanceSensors/GetLogLevel" - FineGuidanceSensors_SetLogLevel_FullMethodName = "/tetragon.FineGuidanceSensors/SetLogLevel" - FineGuidanceSensors_ResetLogLevel_FullMethodName = "/tetragon.FineGuidanceSensors/ResetLogLevel" + FineGuidanceSensors_GetDebug_FullMethodName = "/tetragon.FineGuidanceSensors/GetDebug" + FineGuidanceSensors_SetDebug_FullMethodName = "/tetragon.FineGuidanceSensors/SetDebug" ) // FineGuidanceSensorsClient is the client API for FineGuidanceSensors service. @@ -63,9 +62,8 @@ type FineGuidanceSensorsClient interface { GetStackTraceTree(ctx context.Context, in *GetStackTraceTreeRequest, opts ...grpc.CallOption) (*GetStackTraceTreeResponse, error) GetVersion(ctx context.Context, in *GetVersionRequest, opts ...grpc.CallOption) (*GetVersionResponse, error) RuntimeHook(ctx context.Context, in *RuntimeHookRequest, opts ...grpc.CallOption) (*RuntimeHookResponse, error) - GetLogLevel(ctx context.Context, in *GetLogLevelRequest, opts ...grpc.CallOption) (*GetLogLevelResponse, error) - SetLogLevel(ctx context.Context, in *SetLogLevelRequest, opts ...grpc.CallOption) (*SetLogLevelResponse, error) - ResetLogLevel(ctx context.Context, in *ResetLogLevelRequest, opts ...grpc.CallOption) (*ResetLogLevelResponse, error) + GetDebug(ctx context.Context, in *GetDebugRequest, opts ...grpc.CallOption) (*GetDebugResponse, error) + SetDebug(ctx context.Context, in *SetDebugRequest, opts ...grpc.CallOption) (*SetDebugResponse, error) } type fineGuidanceSensorsClient struct { @@ -229,27 +227,18 @@ func (c *fineGuidanceSensorsClient) RuntimeHook(ctx context.Context, in *Runtime return out, nil } -func (c *fineGuidanceSensorsClient) GetLogLevel(ctx context.Context, in *GetLogLevelRequest, opts ...grpc.CallOption) (*GetLogLevelResponse, error) { - out := new(GetLogLevelResponse) - err := c.cc.Invoke(ctx, FineGuidanceSensors_GetLogLevel_FullMethodName, in, out, opts...) +func (c *fineGuidanceSensorsClient) GetDebug(ctx context.Context, in *GetDebugRequest, opts ...grpc.CallOption) (*GetDebugResponse, error) { + out := new(GetDebugResponse) + err := c.cc.Invoke(ctx, FineGuidanceSensors_GetDebug_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *fineGuidanceSensorsClient) SetLogLevel(ctx context.Context, in *SetLogLevelRequest, opts ...grpc.CallOption) (*SetLogLevelResponse, error) { - out := new(SetLogLevelResponse) - err := c.cc.Invoke(ctx, FineGuidanceSensors_SetLogLevel_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *fineGuidanceSensorsClient) ResetLogLevel(ctx context.Context, in *ResetLogLevelRequest, opts ...grpc.CallOption) (*ResetLogLevelResponse, error) { - out := new(ResetLogLevelResponse) - err := c.cc.Invoke(ctx, FineGuidanceSensors_ResetLogLevel_FullMethodName, in, out, opts...) +func (c *fineGuidanceSensorsClient) SetDebug(ctx context.Context, in *SetDebugRequest, opts ...grpc.CallOption) (*SetDebugResponse, error) { + out := new(SetDebugResponse) + err := c.cc.Invoke(ctx, FineGuidanceSensors_SetDebug_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -278,9 +267,8 @@ type FineGuidanceSensorsServer interface { GetStackTraceTree(context.Context, *GetStackTraceTreeRequest) (*GetStackTraceTreeResponse, error) GetVersion(context.Context, *GetVersionRequest) (*GetVersionResponse, error) RuntimeHook(context.Context, *RuntimeHookRequest) (*RuntimeHookResponse, error) - GetLogLevel(context.Context, *GetLogLevelRequest) (*GetLogLevelResponse, error) - SetLogLevel(context.Context, *SetLogLevelRequest) (*SetLogLevelResponse, error) - ResetLogLevel(context.Context, *ResetLogLevelRequest) (*ResetLogLevelResponse, error) + GetDebug(context.Context, *GetDebugRequest) (*GetDebugResponse, error) + SetDebug(context.Context, *SetDebugRequest) (*SetDebugResponse, error) } // UnimplementedFineGuidanceSensorsServer should be embedded to have forward compatible implementations. @@ -329,14 +317,11 @@ func (UnimplementedFineGuidanceSensorsServer) GetVersion(context.Context, *GetVe func (UnimplementedFineGuidanceSensorsServer) RuntimeHook(context.Context, *RuntimeHookRequest) (*RuntimeHookResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method RuntimeHook not implemented") } -func (UnimplementedFineGuidanceSensorsServer) GetLogLevel(context.Context, *GetLogLevelRequest) (*GetLogLevelResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetLogLevel not implemented") +func (UnimplementedFineGuidanceSensorsServer) GetDebug(context.Context, *GetDebugRequest) (*GetDebugResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetDebug not implemented") } -func (UnimplementedFineGuidanceSensorsServer) SetLogLevel(context.Context, *SetLogLevelRequest) (*SetLogLevelResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SetLogLevel not implemented") -} -func (UnimplementedFineGuidanceSensorsServer) ResetLogLevel(context.Context, *ResetLogLevelRequest) (*ResetLogLevelResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ResetLogLevel not implemented") +func (UnimplementedFineGuidanceSensorsServer) SetDebug(context.Context, *SetDebugRequest) (*SetDebugResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetDebug not implemented") } // UnsafeFineGuidanceSensorsServer may be embedded to opt out of forward compatibility for this service. @@ -605,56 +590,38 @@ func _FineGuidanceSensors_RuntimeHook_Handler(srv interface{}, ctx context.Conte return interceptor(ctx, in, info, handler) } -func _FineGuidanceSensors_GetLogLevel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetLogLevelRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(FineGuidanceSensorsServer).GetLogLevel(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: FineGuidanceSensors_GetLogLevel_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(FineGuidanceSensorsServer).GetLogLevel(ctx, req.(*GetLogLevelRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _FineGuidanceSensors_SetLogLevel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SetLogLevelRequest) +func _FineGuidanceSensors_GetDebug_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetDebugRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(FineGuidanceSensorsServer).SetLogLevel(ctx, in) + return srv.(FineGuidanceSensorsServer).GetDebug(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: FineGuidanceSensors_SetLogLevel_FullMethodName, + FullMethod: FineGuidanceSensors_GetDebug_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(FineGuidanceSensorsServer).SetLogLevel(ctx, req.(*SetLogLevelRequest)) + return srv.(FineGuidanceSensorsServer).GetDebug(ctx, req.(*GetDebugRequest)) } return interceptor(ctx, in, info, handler) } -func _FineGuidanceSensors_ResetLogLevel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ResetLogLevelRequest) +func _FineGuidanceSensors_SetDebug_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SetDebugRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(FineGuidanceSensorsServer).ResetLogLevel(ctx, in) + return srv.(FineGuidanceSensorsServer).SetDebug(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: FineGuidanceSensors_ResetLogLevel_FullMethodName, + FullMethod: FineGuidanceSensors_SetDebug_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(FineGuidanceSensorsServer).ResetLogLevel(ctx, req.(*ResetLogLevelRequest)) + return srv.(FineGuidanceSensorsServer).SetDebug(ctx, req.(*SetDebugRequest)) } return interceptor(ctx, in, info, handler) } @@ -719,16 +686,12 @@ var FineGuidanceSensors_ServiceDesc = grpc.ServiceDesc{ Handler: _FineGuidanceSensors_RuntimeHook_Handler, }, { - MethodName: "GetLogLevel", - Handler: _FineGuidanceSensors_GetLogLevel_Handler, - }, - { - MethodName: "SetLogLevel", - Handler: _FineGuidanceSensors_SetLogLevel_Handler, + MethodName: "GetDebug", + Handler: _FineGuidanceSensors_GetDebug_Handler, }, { - MethodName: "ResetLogLevel", - Handler: _FineGuidanceSensors_ResetLogLevel_Handler, + MethodName: "SetDebug", + Handler: _FineGuidanceSensors_SetDebug_Handler, }, }, Streams: []grpc.StreamDesc{ diff --git a/docs/content/en/docs/reference/grpc-api.md b/docs/content/en/docs/reference/grpc-api.md index 33c5c925618..2f4a850235e 100644 --- a/docs/content/en/docs/reference/grpc-api.md +++ b/docs/content/en/docs/reference/grpc-api.md @@ -1005,17 +1005,22 @@ Determines the behavior of a field filter ### EnableTracingPolicyResponse - + -### GetLogLevelRequest +### GetDebugRequest - +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| flag | [ConfigFlag](#tetragon-ConfigFlag) | | | + + -### GetLogLevelResponse +### GetDebugResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| level | [string](#string) | | | +| flag | [ConfigFlag](#tetragon-ConfigFlag) | | | +| level | [LogLevel](#tetragon-LogLevel) | | | @@ -1081,18 +1086,6 @@ Determines the behavior of a field filter ### RemoveSensorResponse - - -### ResetLogLevelRequest - - - -### ResetLogLevelResponse - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| level | [string](#string) | | | - ### SensorStatus @@ -1103,21 +1096,23 @@ Determines the behavior of a field filter | enabled | [bool](#bool) | | enabled marks whether the sensor is enabled | | collection | [string](#string) | | collection is the collection the sensor belongs to (typically a tracing policy) | - + -### SetLogLevelRequest +### SetDebugRequest | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| level | [string](#string) | | | +| flag | [ConfigFlag](#tetragon-ConfigFlag) | | | +| level | [LogLevel](#tetragon-LogLevel) | | | - + -### SetLogLevelResponse +### SetDebugResponse | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| level | [string](#string) | | | +| flag | [ConfigFlag](#tetragon-ConfigFlag) | | | +| level | [LogLevel](#tetragon-LogLevel) | | | @@ -1135,6 +1130,29 @@ Determines the behavior of a field filter | error | [string](#string) | | potential error of the policy | | state | [TracingPolicyState](#tetragon-TracingPolicyState) | | current state of the tracing policy | + + +### ConfigFlag +For now, we only want to support debug-related config flags to be configurable. + +| Name | Number | Description | +| ---- | ------ | ----------- | +| CONFIG_FLAG_LOG_LEVEL | 0 | | + + + +### LogLevel + +| Name | Number | Description | +| ---- | ------ | ----------- | +| LOG_LEVEL_PANIC | 0 | | +| LOG_LEVEL_FATAL | 1 | | +| LOG_LEVEL_ERROR | 2 | | +| LOG_LEVEL_WARN | 3 | | +| LOG_LEVEL_INFO | 4 | | +| LOG_LEVEL_DEBUG | 5 | | +| LOG_LEVEL_TRACE | 6 | | + ### TracingPolicyState @@ -1169,9 +1187,8 @@ Determines the behavior of a field filter | GetStackTraceTree | [GetStackTraceTreeRequest](#tetragon-GetStackTraceTreeRequest) | [GetStackTraceTreeResponse](#tetragon-GetStackTraceTreeResponse) | | | GetVersion | [GetVersionRequest](#tetragon-GetVersionRequest) | [GetVersionResponse](#tetragon-GetVersionResponse) | | | RuntimeHook | [RuntimeHookRequest](#tetragon-RuntimeHookRequest) | [RuntimeHookResponse](#tetragon-RuntimeHookResponse) | | -| GetLogLevel | [GetLogLevelRequest](#tetragon-GetLogLevelRequest) | [GetLogLevelResponse](#tetragon-GetLogLevelResponse) | | -| SetLogLevel | [SetLogLevelRequest](#tetragon-SetLogLevelRequest) | [SetLogLevelResponse](#tetragon-SetLogLevelResponse) | | -| ResetLogLevel | [ResetLogLevelRequest](#tetragon-ResetLogLevelRequest) | [ResetLogLevelResponse](#tetragon-ResetLogLevelResponse) | | +| GetDebug | [GetDebugRequest](#tetragon-GetDebugRequest) | [GetDebugResponse](#tetragon-GetDebugResponse) | | +| SetDebug | [SetDebugRequest](#tetragon-SetDebugRequest) | [SetDebugResponse](#tetragon-SetDebugResponse) | | ## Scalar Value Types diff --git a/pkg/server/server.go b/pkg/server/server.go index af55e9bd979..2f4e5a655e4 100644 --- a/pkg/server/server.go +++ b/pkg/server/server.go @@ -379,29 +379,33 @@ func (s *Server) RuntimeHook(ctx context.Context, req *tetragon.RuntimeHookReque return &tetragon.RuntimeHookResponse{}, nil } -func (s *Server) GetLogLevel(_ context.Context, req *tetragon.GetLogLevelRequest) (*tetragon.GetLogLevelResponse, error) { - logger.GetLogger().WithField("request", req).Debugf("Client requested current log level: %s", logger.GetLogLevel().String()) - return &tetragon.GetLogLevelResponse{Level: logger.GetLogLevel().String()}, nil -} - -func (s *Server) SetLogLevel(_ context.Context, req *tetragon.SetLogLevelRequest) (*tetragon.SetLogLevelResponse, error) { - currentLogLevel := logger.GetLogLevel() - changedLogLevel, err := logrus.ParseLevel(req.GetLevel()) - if err != nil { - return nil, fmt.Errorf("invalid log level: %s", req.GetLevel()) +func (s *Server) GetDebug(_ context.Context, req *tetragon.GetDebugRequest) (*tetragon.GetDebugResponse, error) { + switch req.GetFlag() { + case tetragon.ConfigFlag_CONFIG_FLAG_LOG_LEVEL: + logger.GetLogger().Debugf("Client requested current log level: %s", logger.GetLogLevel().String()) + return &tetragon.GetDebugResponse{ + Flag: tetragon.ConfigFlag_CONFIG_FLAG_LOG_LEVEL, + Level: tetragon.LogLevel(logger.GetLogLevel()), + }, nil + default: + logger.GetLogger().WithField("request", req).Warnf("Client requested unknown config flag %d", req.GetFlag()) + return nil, fmt.Errorf("client requested unknown config flag %d", req.GetFlag()) } - logger.SetLogLevel(changedLogLevel) - logger.GetLogger().WithField("request", req).Warnf("Log level changed from %s to %s", currentLogLevel, changedLogLevel.String()) - return &tetragon.SetLogLevelResponse{Level: changedLogLevel.String()}, nil } -func (s *Server) ResetLogLevel(_ context.Context, req *tetragon.ResetLogLevelRequest) (*tetragon.ResetLogLevelResponse, error) { - initialLogLevelStr := option.Config.LogOpts[logger.LevelOpt] - initialLogLevel, err := logrus.ParseLevel(initialLogLevelStr) - if err != nil { - return nil, fmt.Errorf("invalid default log level: %s", initialLogLevelStr) +func (s *Server) SetDebug(_ context.Context, req *tetragon.SetDebugRequest) (*tetragon.SetDebugResponse, error) { + switch req.GetFlag() { + case tetragon.ConfigFlag_CONFIG_FLAG_LOG_LEVEL: + currentLogLevel := logger.GetLogLevel() + changedLogLevel := logrus.Level(req.GetLevel()) + logger.SetLogLevel(changedLogLevel) + logger.GetLogger().WithField("request", req).Warnf("Log level changed from %s to %s", currentLogLevel, changedLogLevel.String()) + return &tetragon.SetDebugResponse{ + Flag: tetragon.ConfigFlag_CONFIG_FLAG_LOG_LEVEL, + Level: tetragon.LogLevel(changedLogLevel), + }, nil + default: + logger.GetLogger().WithField("request", req).Warnf("Client requested change of unknown config flag %d", req.GetFlag()) + return nil, fmt.Errorf("client requested change of unknown config flag %d", req.GetFlag()) } - logger.SetLogLevel(initialLogLevel) - logger.GetLogger().WithField("request", req).Infof("Log level reset to initial level: %s", initialLogLevel.String()) - return &tetragon.ResetLogLevelResponse{Level: logger.GetLogLevel().String()}, nil } diff --git a/vendor/github.com/cilium/tetragon/api/v1/tetragon/sensors.pb.go b/vendor/github.com/cilium/tetragon/api/v1/tetragon/sensors.pb.go index 0dd37a1589f..49e4f154ccb 100644 --- a/vendor/github.com/cilium/tetragon/api/v1/tetragon/sensors.pb.go +++ b/vendor/github.com/cilium/tetragon/api/v1/tetragon/sensors.pb.go @@ -91,6 +91,111 @@ func (TracingPolicyState) EnumDescriptor() ([]byte, []int) { return file_tetragon_sensors_proto_rawDescGZIP(), []int{0} } +// For now, we only want to support debug-related config flags to be configurable. +type ConfigFlag int32 + +const ( + ConfigFlag_CONFIG_FLAG_LOG_LEVEL ConfigFlag = 0 +) + +// Enum value maps for ConfigFlag. +var ( + ConfigFlag_name = map[int32]string{ + 0: "CONFIG_FLAG_LOG_LEVEL", + } + ConfigFlag_value = map[string]int32{ + "CONFIG_FLAG_LOG_LEVEL": 0, + } +) + +func (x ConfigFlag) Enum() *ConfigFlag { + p := new(ConfigFlag) + *p = x + return p +} + +func (x ConfigFlag) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ConfigFlag) Descriptor() protoreflect.EnumDescriptor { + return file_tetragon_sensors_proto_enumTypes[1].Descriptor() +} + +func (ConfigFlag) Type() protoreflect.EnumType { + return &file_tetragon_sensors_proto_enumTypes[1] +} + +func (x ConfigFlag) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ConfigFlag.Descriptor instead. +func (ConfigFlag) EnumDescriptor() ([]byte, []int) { + return file_tetragon_sensors_proto_rawDescGZIP(), []int{1} +} + +type LogLevel int32 + +const ( + LogLevel_LOG_LEVEL_PANIC LogLevel = 0 + LogLevel_LOG_LEVEL_FATAL LogLevel = 1 + LogLevel_LOG_LEVEL_ERROR LogLevel = 2 + LogLevel_LOG_LEVEL_WARN LogLevel = 3 + LogLevel_LOG_LEVEL_INFO LogLevel = 4 + LogLevel_LOG_LEVEL_DEBUG LogLevel = 5 + LogLevel_LOG_LEVEL_TRACE LogLevel = 6 +) + +// Enum value maps for LogLevel. +var ( + LogLevel_name = map[int32]string{ + 0: "LOG_LEVEL_PANIC", + 1: "LOG_LEVEL_FATAL", + 2: "LOG_LEVEL_ERROR", + 3: "LOG_LEVEL_WARN", + 4: "LOG_LEVEL_INFO", + 5: "LOG_LEVEL_DEBUG", + 6: "LOG_LEVEL_TRACE", + } + LogLevel_value = map[string]int32{ + "LOG_LEVEL_PANIC": 0, + "LOG_LEVEL_FATAL": 1, + "LOG_LEVEL_ERROR": 2, + "LOG_LEVEL_WARN": 3, + "LOG_LEVEL_INFO": 4, + "LOG_LEVEL_DEBUG": 5, + "LOG_LEVEL_TRACE": 6, + } +) + +func (x LogLevel) Enum() *LogLevel { + p := new(LogLevel) + *p = x + return p +} + +func (x LogLevel) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (LogLevel) Descriptor() protoreflect.EnumDescriptor { + return file_tetragon_sensors_proto_enumTypes[2].Descriptor() +} + +func (LogLevel) Type() protoreflect.EnumType { + return &file_tetragon_sensors_proto_enumTypes[2] +} + +func (x LogLevel) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use LogLevel.Descriptor instead. +func (LogLevel) EnumDescriptor() ([]byte, []int) { + return file_tetragon_sensors_proto_rawDescGZIP(), []int{2} +} + type ListSensorsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1248,14 +1353,16 @@ func (x *GetVersionResponse) GetVersion() string { return "" } -type GetLogLevelRequest struct { +type GetDebugRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + + Flag ConfigFlag `protobuf:"varint,1,opt,name=flag,proto3,enum=tetragon.ConfigFlag" json:"flag,omitempty"` } -func (x *GetLogLevelRequest) Reset() { - *x = GetLogLevelRequest{} +func (x *GetDebugRequest) Reset() { + *x = GetDebugRequest{} if protoimpl.UnsafeEnabled { mi := &file_tetragon_sensors_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1263,13 +1370,13 @@ func (x *GetLogLevelRequest) Reset() { } } -func (x *GetLogLevelRequest) String() string { +func (x *GetDebugRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*GetLogLevelRequest) ProtoMessage() {} +func (*GetDebugRequest) ProtoMessage() {} -func (x *GetLogLevelRequest) ProtoReflect() protoreflect.Message { +func (x *GetDebugRequest) ProtoReflect() protoreflect.Message { mi := &file_tetragon_sensors_proto_msgTypes[24] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1281,21 +1388,29 @@ func (x *GetLogLevelRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetLogLevelRequest.ProtoReflect.Descriptor instead. -func (*GetLogLevelRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use GetDebugRequest.ProtoReflect.Descriptor instead. +func (*GetDebugRequest) Descriptor() ([]byte, []int) { return file_tetragon_sensors_proto_rawDescGZIP(), []int{24} } -type GetLogLevelResponse struct { +func (x *GetDebugRequest) GetFlag() ConfigFlag { + if x != nil { + return x.Flag + } + return ConfigFlag_CONFIG_FLAG_LOG_LEVEL +} + +type GetDebugResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Level string `protobuf:"bytes,1,opt,name=level,proto3" json:"level,omitempty"` + Flag ConfigFlag `protobuf:"varint,1,opt,name=flag,proto3,enum=tetragon.ConfigFlag" json:"flag,omitempty"` + Level LogLevel `protobuf:"varint,2,opt,name=level,proto3,enum=tetragon.LogLevel" json:"level,omitempty"` } -func (x *GetLogLevelResponse) Reset() { - *x = GetLogLevelResponse{} +func (x *GetDebugResponse) Reset() { + *x = GetDebugResponse{} if protoimpl.UnsafeEnabled { mi := &file_tetragon_sensors_proto_msgTypes[25] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1303,13 +1418,13 @@ func (x *GetLogLevelResponse) Reset() { } } -func (x *GetLogLevelResponse) String() string { +func (x *GetDebugResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*GetLogLevelResponse) ProtoMessage() {} +func (*GetDebugResponse) ProtoMessage() {} -func (x *GetLogLevelResponse) ProtoReflect() protoreflect.Message { +func (x *GetDebugResponse) ProtoReflect() protoreflect.Message { mi := &file_tetragon_sensors_proto_msgTypes[25] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1321,28 +1436,36 @@ func (x *GetLogLevelResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetLogLevelResponse.ProtoReflect.Descriptor instead. -func (*GetLogLevelResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use GetDebugResponse.ProtoReflect.Descriptor instead. +func (*GetDebugResponse) Descriptor() ([]byte, []int) { return file_tetragon_sensors_proto_rawDescGZIP(), []int{25} } -func (x *GetLogLevelResponse) GetLevel() string { +func (x *GetDebugResponse) GetFlag() ConfigFlag { + if x != nil { + return x.Flag + } + return ConfigFlag_CONFIG_FLAG_LOG_LEVEL +} + +func (x *GetDebugResponse) GetLevel() LogLevel { if x != nil { return x.Level } - return "" + return LogLevel_LOG_LEVEL_PANIC } -type SetLogLevelRequest struct { +type SetDebugRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Level string `protobuf:"bytes,1,opt,name=level,proto3" json:"level,omitempty"` + Flag ConfigFlag `protobuf:"varint,1,opt,name=flag,proto3,enum=tetragon.ConfigFlag" json:"flag,omitempty"` + Level LogLevel `protobuf:"varint,2,opt,name=level,proto3,enum=tetragon.LogLevel" json:"level,omitempty"` } -func (x *SetLogLevelRequest) Reset() { - *x = SetLogLevelRequest{} +func (x *SetDebugRequest) Reset() { + *x = SetDebugRequest{} if protoimpl.UnsafeEnabled { mi := &file_tetragon_sensors_proto_msgTypes[26] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1350,13 +1473,13 @@ func (x *SetLogLevelRequest) Reset() { } } -func (x *SetLogLevelRequest) String() string { +func (x *SetDebugRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*SetLogLevelRequest) ProtoMessage() {} +func (*SetDebugRequest) ProtoMessage() {} -func (x *SetLogLevelRequest) ProtoReflect() protoreflect.Message { +func (x *SetDebugRequest) ProtoReflect() protoreflect.Message { mi := &file_tetragon_sensors_proto_msgTypes[26] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1368,28 +1491,36 @@ func (x *SetLogLevelRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SetLogLevelRequest.ProtoReflect.Descriptor instead. -func (*SetLogLevelRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use SetDebugRequest.ProtoReflect.Descriptor instead. +func (*SetDebugRequest) Descriptor() ([]byte, []int) { return file_tetragon_sensors_proto_rawDescGZIP(), []int{26} } -func (x *SetLogLevelRequest) GetLevel() string { +func (x *SetDebugRequest) GetFlag() ConfigFlag { + if x != nil { + return x.Flag + } + return ConfigFlag_CONFIG_FLAG_LOG_LEVEL +} + +func (x *SetDebugRequest) GetLevel() LogLevel { if x != nil { return x.Level } - return "" + return LogLevel_LOG_LEVEL_PANIC } -type SetLogLevelResponse struct { +type SetDebugResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Level string `protobuf:"bytes,1,opt,name=level,proto3" json:"level,omitempty"` + Flag ConfigFlag `protobuf:"varint,1,opt,name=flag,proto3,enum=tetragon.ConfigFlag" json:"flag,omitempty"` + Level LogLevel `protobuf:"varint,2,opt,name=level,proto3,enum=tetragon.LogLevel" json:"level,omitempty"` } -func (x *SetLogLevelResponse) Reset() { - *x = SetLogLevelResponse{} +func (x *SetDebugResponse) Reset() { + *x = SetDebugResponse{} if protoimpl.UnsafeEnabled { mi := &file_tetragon_sensors_proto_msgTypes[27] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1397,13 +1528,13 @@ func (x *SetLogLevelResponse) Reset() { } } -func (x *SetLogLevelResponse) String() string { +func (x *SetDebugResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*SetLogLevelResponse) ProtoMessage() {} +func (*SetDebugResponse) ProtoMessage() {} -func (x *SetLogLevelResponse) ProtoReflect() protoreflect.Message { +func (x *SetDebugResponse) ProtoReflect() protoreflect.Message { mi := &file_tetragon_sensors_proto_msgTypes[27] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1415,101 +1546,23 @@ func (x *SetLogLevelResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SetLogLevelResponse.ProtoReflect.Descriptor instead. -func (*SetLogLevelResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use SetDebugResponse.ProtoReflect.Descriptor instead. +func (*SetDebugResponse) Descriptor() ([]byte, []int) { return file_tetragon_sensors_proto_rawDescGZIP(), []int{27} } -func (x *SetLogLevelResponse) GetLevel() string { +func (x *SetDebugResponse) GetFlag() ConfigFlag { if x != nil { - return x.Level + return x.Flag } - return "" -} - -type ResetLogLevelRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields + return ConfigFlag_CONFIG_FLAG_LOG_LEVEL } -func (x *ResetLogLevelRequest) Reset() { - *x = ResetLogLevelRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_tetragon_sensors_proto_msgTypes[28] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ResetLogLevelRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ResetLogLevelRequest) ProtoMessage() {} - -func (x *ResetLogLevelRequest) ProtoReflect() protoreflect.Message { - mi := &file_tetragon_sensors_proto_msgTypes[28] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ResetLogLevelRequest.ProtoReflect.Descriptor instead. -func (*ResetLogLevelRequest) Descriptor() ([]byte, []int) { - return file_tetragon_sensors_proto_rawDescGZIP(), []int{28} -} - -type ResetLogLevelResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Level string `protobuf:"bytes,1,opt,name=level,proto3" json:"level,omitempty"` -} - -func (x *ResetLogLevelResponse) Reset() { - *x = ResetLogLevelResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_tetragon_sensors_proto_msgTypes[29] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ResetLogLevelResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ResetLogLevelResponse) ProtoMessage() {} - -func (x *ResetLogLevelResponse) ProtoReflect() protoreflect.Message { - mi := &file_tetragon_sensors_proto_msgTypes[29] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ResetLogLevelResponse.ProtoReflect.Descriptor instead. -func (*ResetLogLevelResponse) Descriptor() ([]byte, []int) { - return file_tetragon_sensors_proto_rawDescGZIP(), []int{29} -} - -func (x *ResetLogLevelResponse) GetLevel() string { +func (x *SetDebugResponse) GetLevel() LogLevel { if x != nil { return x.Level } - return "" + return LogLevel_LOG_LEVEL_PANIC } var File_tetragon_sensors_proto protoreflect.FileDescriptor @@ -1608,127 +1661,142 @@ var file_tetragon_sensors_proto_rawDesc = []byte{ 0x2e, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, - 0x14, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x2b, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x4c, - 0x65, 0x76, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, - 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, 0x65, 0x76, - 0x65, 0x6c, 0x22, 0x2a, 0x0a, 0x12, 0x53, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, - 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, - 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x22, 0x2b, - 0x0a, 0x13, 0x53, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x22, 0x16, 0x0a, 0x14, 0x52, - 0x65, 0x73, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x22, 0x2d, 0x0a, 0x15, 0x52, 0x65, 0x73, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x4c, - 0x65, 0x76, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, - 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, 0x65, 0x76, - 0x65, 0x6c, 0x2a, 0xb2, 0x01, 0x0a, 0x12, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, 0x6f, - 0x6c, 0x69, 0x63, 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x50, 0x5f, - 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, - 0x14, 0x0a, 0x10, 0x54, 0x50, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x45, 0x4e, 0x41, 0x42, - 0x4c, 0x45, 0x44, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x54, 0x50, 0x5f, 0x53, 0x54, 0x41, 0x54, - 0x45, 0x5f, 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x02, 0x12, 0x17, 0x0a, 0x13, - 0x54, 0x50, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x4c, 0x4f, 0x41, 0x44, 0x5f, 0x45, 0x52, - 0x52, 0x4f, 0x52, 0x10, 0x03, 0x12, 0x12, 0x0a, 0x0e, 0x54, 0x50, 0x5f, 0x53, 0x54, 0x41, 0x54, - 0x45, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x04, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x50, 0x5f, - 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x4c, 0x4f, 0x41, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x05, 0x12, - 0x16, 0x0a, 0x12, 0x54, 0x50, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x4c, 0x4f, - 0x41, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x06, 0x32, 0xe4, 0x0b, 0x0a, 0x13, 0x46, 0x69, 0x6e, 0x65, - 0x47, 0x75, 0x69, 0x64, 0x61, 0x6e, 0x63, 0x65, 0x53, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x12, - 0x48, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x1a, 0x2e, 0x74, - 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, - 0x67, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x12, 0x52, 0x0a, 0x09, 0x47, 0x65, 0x74, - 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x12, 0x20, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, - 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x53, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, - 0x67, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x53, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5b, 0x0a, - 0x10, 0x41, 0x64, 0x64, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, - 0x79, 0x12, 0x21, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x41, 0x64, 0x64, - 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, - 0x41, 0x64, 0x64, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x64, 0x0a, 0x13, 0x44, 0x65, - 0x6c, 0x65, 0x74, 0x65, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, - 0x79, 0x12, 0x24, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x44, 0x65, 0x6c, - 0x65, 0x74, 0x65, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, - 0x6f, 0x6e, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, - 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, - 0x12, 0x64, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, - 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x12, 0x24, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, - 0x6f, 0x6e, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, 0x6f, - 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, - 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x72, 0x61, - 0x63, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x64, 0x0a, 0x13, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, - 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x24, 0x2e, - 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x54, + 0x3b, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x44, 0x65, 0x62, 0x75, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x28, 0x0a, 0x04, 0x66, 0x6c, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x14, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x46, 0x6c, 0x61, 0x67, 0x52, 0x04, 0x66, 0x6c, 0x61, 0x67, 0x22, 0x66, 0x0a, 0x10, + 0x47, 0x65, 0x74, 0x44, 0x65, 0x62, 0x75, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x28, 0x0a, 0x04, 0x66, 0x6c, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, + 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x46, 0x6c, 0x61, 0x67, 0x52, 0x04, 0x66, 0x6c, 0x61, 0x67, 0x12, 0x28, 0x0a, 0x05, 0x6c, 0x65, + 0x76, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x12, 0x2e, 0x74, 0x65, 0x74, 0x72, + 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x05, 0x6c, + 0x65, 0x76, 0x65, 0x6c, 0x22, 0x65, 0x0a, 0x0f, 0x53, 0x65, 0x74, 0x44, 0x65, 0x62, 0x75, 0x67, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x04, 0x66, 0x6c, 0x61, 0x67, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, + 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x46, 0x6c, 0x61, 0x67, 0x52, 0x04, 0x66, 0x6c, 0x61, + 0x67, 0x12, 0x28, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x12, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x4c, 0x6f, 0x67, 0x4c, + 0x65, 0x76, 0x65, 0x6c, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x22, 0x66, 0x0a, 0x10, 0x53, + 0x65, 0x74, 0x44, 0x65, 0x62, 0x75, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x28, 0x0a, 0x04, 0x66, 0x6c, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, + 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x46, + 0x6c, 0x61, 0x67, 0x52, 0x04, 0x66, 0x6c, 0x61, 0x67, 0x12, 0x28, 0x0a, 0x05, 0x6c, 0x65, 0x76, + 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x12, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, + 0x67, 0x6f, 0x6e, 0x2e, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x05, 0x6c, 0x65, + 0x76, 0x65, 0x6c, 0x2a, 0xb2, 0x01, 0x0a, 0x12, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, + 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x50, + 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, + 0x12, 0x14, 0x0a, 0x10, 0x54, 0x50, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x45, 0x4e, 0x41, + 0x42, 0x4c, 0x45, 0x44, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x54, 0x50, 0x5f, 0x53, 0x54, 0x41, + 0x54, 0x45, 0x5f, 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x02, 0x12, 0x17, 0x0a, + 0x13, 0x54, 0x50, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x4c, 0x4f, 0x41, 0x44, 0x5f, 0x45, + 0x52, 0x52, 0x4f, 0x52, 0x10, 0x03, 0x12, 0x12, 0x0a, 0x0e, 0x54, 0x50, 0x5f, 0x53, 0x54, 0x41, + 0x54, 0x45, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x04, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x50, + 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x4c, 0x4f, 0x41, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x05, + 0x12, 0x16, 0x0a, 0x12, 0x54, 0x50, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x4c, + 0x4f, 0x41, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x06, 0x2a, 0x27, 0x0a, 0x0a, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x46, 0x6c, 0x61, 0x67, 0x12, 0x19, 0x0a, 0x15, 0x43, 0x4f, 0x4e, 0x46, 0x49, 0x47, + 0x5f, 0x46, 0x4c, 0x41, 0x47, 0x5f, 0x4c, 0x4f, 0x47, 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x10, + 0x00, 0x2a, 0x9b, 0x01, 0x0a, 0x08, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x13, + 0x0a, 0x0f, 0x4c, 0x4f, 0x47, 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x50, 0x41, 0x4e, 0x49, + 0x43, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x4c, 0x4f, 0x47, 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, + 0x5f, 0x46, 0x41, 0x54, 0x41, 0x4c, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x4c, 0x4f, 0x47, 0x5f, + 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x02, 0x12, 0x12, 0x0a, + 0x0e, 0x4c, 0x4f, 0x47, 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x57, 0x41, 0x52, 0x4e, 0x10, + 0x03, 0x12, 0x12, 0x0a, 0x0e, 0x4c, 0x4f, 0x47, 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x49, + 0x4e, 0x46, 0x4f, 0x10, 0x04, 0x12, 0x13, 0x0a, 0x0f, 0x4c, 0x4f, 0x47, 0x5f, 0x4c, 0x45, 0x56, + 0x45, 0x4c, 0x5f, 0x44, 0x45, 0x42, 0x55, 0x47, 0x10, 0x05, 0x12, 0x13, 0x0a, 0x0f, 0x4c, 0x4f, + 0x47, 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x54, 0x52, 0x41, 0x43, 0x45, 0x10, 0x06, 0x32, + 0xfe, 0x0a, 0x0a, 0x13, 0x46, 0x69, 0x6e, 0x65, 0x47, 0x75, 0x69, 0x64, 0x61, 0x6e, 0x63, 0x65, + 0x53, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x12, 0x48, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x45, 0x76, + 0x65, 0x6e, 0x74, 0x73, 0x12, 0x1a, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, + 0x47, 0x65, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x1b, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x45, + 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, + 0x01, 0x12, 0x52, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x12, 0x20, + 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x48, 0x65, 0x61, + 0x6c, 0x74, 0x68, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x21, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x48, + 0x65, 0x61, 0x6c, 0x74, 0x68, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5b, 0x0a, 0x10, 0x41, 0x64, 0x64, 0x54, 0x72, 0x61, 0x63, + 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x21, 0x2e, 0x74, 0x65, 0x74, 0x72, + 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x41, 0x64, 0x64, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, + 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x74, + 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x41, 0x64, 0x64, 0x54, 0x72, 0x61, 0x63, 0x69, + 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x00, 0x12, 0x64, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x72, 0x61, 0x63, + 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x24, 0x2e, 0x74, 0x65, 0x74, 0x72, + 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x72, 0x61, 0x63, 0x69, + 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x25, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x64, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, + 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x12, + 0x24, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, + 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, + 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, + 0x63, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x64, + 0x0a, 0x13, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, + 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x24, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, + 0x2e, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, 0x6f, + 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x74, 0x65, + 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x72, 0x61, + 0x63, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x00, 0x12, 0x67, 0x0a, 0x14, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x54, + 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x25, 0x2e, 0x74, + 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x45, - 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, - 0x63, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x67, 0x0a, 0x14, - 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, 0x6f, - 0x6c, 0x69, 0x63, 0x79, 0x12, 0x25, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, - 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, 0x6f, - 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x74, 0x65, - 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x72, - 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4f, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x6e, - 0x73, 0x6f, 0x72, 0x73, 0x12, 0x1c, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, - 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x4c, 0x69, - 0x73, 0x74, 0x53, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x03, 0x88, 0x02, 0x01, 0x12, 0x52, 0x0a, 0x0c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, - 0x53, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x12, 0x1d, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, - 0x6e, 0x2e, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, - 0x2e, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x88, 0x02, 0x01, 0x12, 0x55, 0x0a, 0x0d, 0x44, 0x69, - 0x73, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x12, 0x1e, 0x2e, 0x74, 0x65, - 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x65, - 0x6e, 0x73, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x74, 0x65, - 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x65, - 0x6e, 0x73, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x88, 0x02, - 0x01, 0x12, 0x52, 0x0a, 0x0c, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x53, 0x65, 0x6e, 0x73, 0x6f, - 0x72, 0x12, 0x1d, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x6d, - 0x6f, 0x76, 0x65, 0x53, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x1e, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x6d, 0x6f, - 0x76, 0x65, 0x53, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x03, 0x88, 0x02, 0x01, 0x12, 0x5e, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x63, - 0x6b, 0x54, 0x72, 0x61, 0x63, 0x65, 0x54, 0x72, 0x65, 0x65, 0x12, 0x22, 0x2e, 0x74, 0x65, 0x74, - 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x54, 0x72, - 0x61, 0x63, 0x65, 0x54, 0x72, 0x65, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, - 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, - 0x63, 0x6b, 0x54, 0x72, 0x61, 0x63, 0x65, 0x54, 0x72, 0x65, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x49, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, - 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x47, - 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x1c, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x56, - 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, - 0x12, 0x4c, 0x0a, 0x0b, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x48, 0x6f, 0x6f, 0x6b, 0x12, - 0x1c, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x52, 0x75, 0x6e, 0x74, 0x69, - 0x6d, 0x65, 0x48, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, - 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, - 0x48, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4c, - 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x1c, 0x2e, - 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x4c, - 0x65, 0x76, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x74, 0x65, - 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, - 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4c, 0x0a, 0x0b, - 0x53, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x1c, 0x2e, 0x74, 0x65, - 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x53, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, - 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x74, 0x65, 0x74, 0x72, - 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x53, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x52, 0x0a, 0x0d, 0x52, 0x65, - 0x73, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x1e, 0x2e, 0x74, 0x65, - 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x73, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x4c, - 0x65, 0x76, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x74, 0x65, - 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x73, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x4c, - 0x65, 0x76, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x44, + 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, + 0x69, 0x63, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4f, 0x0a, + 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x12, 0x1c, 0x2e, 0x74, + 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x6e, 0x73, + 0x6f, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x74, 0x65, 0x74, + 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x6e, 0x73, 0x6f, 0x72, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x88, 0x02, 0x01, 0x12, 0x52, + 0x0a, 0x0c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x12, 0x1d, + 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, + 0x53, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, + 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x53, + 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x88, + 0x02, 0x01, 0x12, 0x55, 0x0a, 0x0d, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x65, 0x6e, + 0x73, 0x6f, 0x72, 0x12, 0x1e, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x44, + 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x44, + 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x88, 0x02, 0x01, 0x12, 0x52, 0x0a, 0x0c, 0x52, 0x65, 0x6d, + 0x6f, 0x76, 0x65, 0x53, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x12, 0x1d, 0x2e, 0x74, 0x65, 0x74, 0x72, + 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x53, 0x65, 0x6e, 0x73, 0x6f, + 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, + 0x67, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x53, 0x65, 0x6e, 0x73, 0x6f, 0x72, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x88, 0x02, 0x01, 0x12, 0x5e, 0x0a, + 0x11, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x54, 0x72, 0x61, 0x63, 0x65, 0x54, 0x72, + 0x65, 0x65, 0x12, 0x22, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x47, 0x65, + 0x74, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x54, 0x72, 0x61, 0x63, 0x65, 0x54, 0x72, 0x65, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, + 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x54, 0x72, 0x61, 0x63, 0x65, 0x54, + 0x72, 0x65, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x49, 0x0a, + 0x0a, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x2e, 0x74, 0x65, + 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, + 0x67, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4c, 0x0a, 0x0b, 0x52, 0x75, 0x6e, 0x74, + 0x69, 0x6d, 0x65, 0x48, 0x6f, 0x6f, 0x6b, 0x12, 0x1c, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, + 0x6f, 0x6e, 0x2e, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x48, 0x6f, 0x6f, 0x6b, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, + 0x2e, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x48, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x43, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x44, 0x65, 0x62, + 0x75, 0x67, 0x12, 0x19, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x47, 0x65, + 0x74, 0x44, 0x65, 0x62, 0x75, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, + 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x65, 0x62, 0x75, + 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x43, 0x0a, 0x08, 0x53, + 0x65, 0x74, 0x44, 0x65, 0x62, 0x75, 0x67, 0x12, 0x19, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, + 0x6f, 0x6e, 0x2e, 0x53, 0x65, 0x74, 0x44, 0x65, 0x62, 0x75, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x74, 0x65, 0x74, 0x72, 0x61, 0x67, 0x6f, 0x6e, 0x2e, 0x53, 0x65, + 0x74, 0x44, 0x65, 0x62, 0x75, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -1743,40 +1811,40 @@ func file_tetragon_sensors_proto_rawDescGZIP() []byte { return file_tetragon_sensors_proto_rawDescData } -var file_tetragon_sensors_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_tetragon_sensors_proto_msgTypes = make([]protoimpl.MessageInfo, 30) +var file_tetragon_sensors_proto_enumTypes = make([]protoimpl.EnumInfo, 3) +var file_tetragon_sensors_proto_msgTypes = make([]protoimpl.MessageInfo, 28) var file_tetragon_sensors_proto_goTypes = []interface{}{ (TracingPolicyState)(0), // 0: tetragon.TracingPolicyState - (*ListSensorsRequest)(nil), // 1: tetragon.ListSensorsRequest - (*SensorStatus)(nil), // 2: tetragon.SensorStatus - (*ListSensorsResponse)(nil), // 3: tetragon.ListSensorsResponse - (*ListTracingPoliciesRequest)(nil), // 4: tetragon.ListTracingPoliciesRequest - (*TracingPolicyStatus)(nil), // 5: tetragon.TracingPolicyStatus - (*ListTracingPoliciesResponse)(nil), // 6: tetragon.ListTracingPoliciesResponse - (*AddTracingPolicyRequest)(nil), // 7: tetragon.AddTracingPolicyRequest - (*AddTracingPolicyResponse)(nil), // 8: tetragon.AddTracingPolicyResponse - (*DeleteTracingPolicyRequest)(nil), // 9: tetragon.DeleteTracingPolicyRequest - (*DeleteTracingPolicyResponse)(nil), // 10: tetragon.DeleteTracingPolicyResponse - (*EnableTracingPolicyRequest)(nil), // 11: tetragon.EnableTracingPolicyRequest - (*EnableTracingPolicyResponse)(nil), // 12: tetragon.EnableTracingPolicyResponse - (*DisableTracingPolicyRequest)(nil), // 13: tetragon.DisableTracingPolicyRequest - (*DisableTracingPolicyResponse)(nil), // 14: tetragon.DisableTracingPolicyResponse - (*RemoveSensorRequest)(nil), // 15: tetragon.RemoveSensorRequest - (*RemoveSensorResponse)(nil), // 16: tetragon.RemoveSensorResponse - (*EnableSensorRequest)(nil), // 17: tetragon.EnableSensorRequest - (*EnableSensorResponse)(nil), // 18: tetragon.EnableSensorResponse - (*DisableSensorRequest)(nil), // 19: tetragon.DisableSensorRequest - (*DisableSensorResponse)(nil), // 20: tetragon.DisableSensorResponse - (*GetStackTraceTreeRequest)(nil), // 21: tetragon.GetStackTraceTreeRequest - (*GetStackTraceTreeResponse)(nil), // 22: tetragon.GetStackTraceTreeResponse - (*GetVersionRequest)(nil), // 23: tetragon.GetVersionRequest - (*GetVersionResponse)(nil), // 24: tetragon.GetVersionResponse - (*GetLogLevelRequest)(nil), // 25: tetragon.GetLogLevelRequest - (*GetLogLevelResponse)(nil), // 26: tetragon.GetLogLevelResponse - (*SetLogLevelRequest)(nil), // 27: tetragon.SetLogLevelRequest - (*SetLogLevelResponse)(nil), // 28: tetragon.SetLogLevelResponse - (*ResetLogLevelRequest)(nil), // 29: tetragon.ResetLogLevelRequest - (*ResetLogLevelResponse)(nil), // 30: tetragon.ResetLogLevelResponse + (ConfigFlag)(0), // 1: tetragon.ConfigFlag + (LogLevel)(0), // 2: tetragon.LogLevel + (*ListSensorsRequest)(nil), // 3: tetragon.ListSensorsRequest + (*SensorStatus)(nil), // 4: tetragon.SensorStatus + (*ListSensorsResponse)(nil), // 5: tetragon.ListSensorsResponse + (*ListTracingPoliciesRequest)(nil), // 6: tetragon.ListTracingPoliciesRequest + (*TracingPolicyStatus)(nil), // 7: tetragon.TracingPolicyStatus + (*ListTracingPoliciesResponse)(nil), // 8: tetragon.ListTracingPoliciesResponse + (*AddTracingPolicyRequest)(nil), // 9: tetragon.AddTracingPolicyRequest + (*AddTracingPolicyResponse)(nil), // 10: tetragon.AddTracingPolicyResponse + (*DeleteTracingPolicyRequest)(nil), // 11: tetragon.DeleteTracingPolicyRequest + (*DeleteTracingPolicyResponse)(nil), // 12: tetragon.DeleteTracingPolicyResponse + (*EnableTracingPolicyRequest)(nil), // 13: tetragon.EnableTracingPolicyRequest + (*EnableTracingPolicyResponse)(nil), // 14: tetragon.EnableTracingPolicyResponse + (*DisableTracingPolicyRequest)(nil), // 15: tetragon.DisableTracingPolicyRequest + (*DisableTracingPolicyResponse)(nil), // 16: tetragon.DisableTracingPolicyResponse + (*RemoveSensorRequest)(nil), // 17: tetragon.RemoveSensorRequest + (*RemoveSensorResponse)(nil), // 18: tetragon.RemoveSensorResponse + (*EnableSensorRequest)(nil), // 19: tetragon.EnableSensorRequest + (*EnableSensorResponse)(nil), // 20: tetragon.EnableSensorResponse + (*DisableSensorRequest)(nil), // 21: tetragon.DisableSensorRequest + (*DisableSensorResponse)(nil), // 22: tetragon.DisableSensorResponse + (*GetStackTraceTreeRequest)(nil), // 23: tetragon.GetStackTraceTreeRequest + (*GetStackTraceTreeResponse)(nil), // 24: tetragon.GetStackTraceTreeResponse + (*GetVersionRequest)(nil), // 25: tetragon.GetVersionRequest + (*GetVersionResponse)(nil), // 26: tetragon.GetVersionResponse + (*GetDebugRequest)(nil), // 27: tetragon.GetDebugRequest + (*GetDebugResponse)(nil), // 28: tetragon.GetDebugResponse + (*SetDebugRequest)(nil), // 29: tetragon.SetDebugRequest + (*SetDebugResponse)(nil), // 30: tetragon.SetDebugResponse (*StackTraceNode)(nil), // 31: tetragon.StackTraceNode (*GetEventsRequest)(nil), // 32: tetragon.GetEventsRequest (*GetHealthStatusRequest)(nil), // 33: tetragon.GetHealthStatusRequest @@ -1786,49 +1854,54 @@ var file_tetragon_sensors_proto_goTypes = []interface{}{ (*RuntimeHookResponse)(nil), // 37: tetragon.RuntimeHookResponse } var file_tetragon_sensors_proto_depIdxs = []int32{ - 2, // 0: tetragon.ListSensorsResponse.sensors:type_name -> tetragon.SensorStatus + 4, // 0: tetragon.ListSensorsResponse.sensors:type_name -> tetragon.SensorStatus 0, // 1: tetragon.TracingPolicyStatus.state:type_name -> tetragon.TracingPolicyState - 5, // 2: tetragon.ListTracingPoliciesResponse.policies:type_name -> tetragon.TracingPolicyStatus + 7, // 2: tetragon.ListTracingPoliciesResponse.policies:type_name -> tetragon.TracingPolicyStatus 31, // 3: tetragon.GetStackTraceTreeResponse.root:type_name -> tetragon.StackTraceNode - 32, // 4: tetragon.FineGuidanceSensors.GetEvents:input_type -> tetragon.GetEventsRequest - 33, // 5: tetragon.FineGuidanceSensors.GetHealth:input_type -> tetragon.GetHealthStatusRequest - 7, // 6: tetragon.FineGuidanceSensors.AddTracingPolicy:input_type -> tetragon.AddTracingPolicyRequest - 9, // 7: tetragon.FineGuidanceSensors.DeleteTracingPolicy:input_type -> tetragon.DeleteTracingPolicyRequest - 4, // 8: tetragon.FineGuidanceSensors.ListTracingPolicies:input_type -> tetragon.ListTracingPoliciesRequest - 11, // 9: tetragon.FineGuidanceSensors.EnableTracingPolicy:input_type -> tetragon.EnableTracingPolicyRequest - 13, // 10: tetragon.FineGuidanceSensors.DisableTracingPolicy:input_type -> tetragon.DisableTracingPolicyRequest - 1, // 11: tetragon.FineGuidanceSensors.ListSensors:input_type -> tetragon.ListSensorsRequest - 17, // 12: tetragon.FineGuidanceSensors.EnableSensor:input_type -> tetragon.EnableSensorRequest - 19, // 13: tetragon.FineGuidanceSensors.DisableSensor:input_type -> tetragon.DisableSensorRequest - 15, // 14: tetragon.FineGuidanceSensors.RemoveSensor:input_type -> tetragon.RemoveSensorRequest - 21, // 15: tetragon.FineGuidanceSensors.GetStackTraceTree:input_type -> tetragon.GetStackTraceTreeRequest - 23, // 16: tetragon.FineGuidanceSensors.GetVersion:input_type -> tetragon.GetVersionRequest - 34, // 17: tetragon.FineGuidanceSensors.RuntimeHook:input_type -> tetragon.RuntimeHookRequest - 25, // 18: tetragon.FineGuidanceSensors.GetLogLevel:input_type -> tetragon.GetLogLevelRequest - 27, // 19: tetragon.FineGuidanceSensors.SetLogLevel:input_type -> tetragon.SetLogLevelRequest - 29, // 20: tetragon.FineGuidanceSensors.ResetLogLevel:input_type -> tetragon.ResetLogLevelRequest - 35, // 21: tetragon.FineGuidanceSensors.GetEvents:output_type -> tetragon.GetEventsResponse - 36, // 22: tetragon.FineGuidanceSensors.GetHealth:output_type -> tetragon.GetHealthStatusResponse - 8, // 23: tetragon.FineGuidanceSensors.AddTracingPolicy:output_type -> tetragon.AddTracingPolicyResponse - 10, // 24: tetragon.FineGuidanceSensors.DeleteTracingPolicy:output_type -> tetragon.DeleteTracingPolicyResponse - 6, // 25: tetragon.FineGuidanceSensors.ListTracingPolicies:output_type -> tetragon.ListTracingPoliciesResponse - 12, // 26: tetragon.FineGuidanceSensors.EnableTracingPolicy:output_type -> tetragon.EnableTracingPolicyResponse - 14, // 27: tetragon.FineGuidanceSensors.DisableTracingPolicy:output_type -> tetragon.DisableTracingPolicyResponse - 3, // 28: tetragon.FineGuidanceSensors.ListSensors:output_type -> tetragon.ListSensorsResponse - 18, // 29: tetragon.FineGuidanceSensors.EnableSensor:output_type -> tetragon.EnableSensorResponse - 20, // 30: tetragon.FineGuidanceSensors.DisableSensor:output_type -> tetragon.DisableSensorResponse - 16, // 31: tetragon.FineGuidanceSensors.RemoveSensor:output_type -> tetragon.RemoveSensorResponse - 22, // 32: tetragon.FineGuidanceSensors.GetStackTraceTree:output_type -> tetragon.GetStackTraceTreeResponse - 24, // 33: tetragon.FineGuidanceSensors.GetVersion:output_type -> tetragon.GetVersionResponse - 37, // 34: tetragon.FineGuidanceSensors.RuntimeHook:output_type -> tetragon.RuntimeHookResponse - 26, // 35: tetragon.FineGuidanceSensors.GetLogLevel:output_type -> tetragon.GetLogLevelResponse - 28, // 36: tetragon.FineGuidanceSensors.SetLogLevel:output_type -> tetragon.SetLogLevelResponse - 30, // 37: tetragon.FineGuidanceSensors.ResetLogLevel:output_type -> tetragon.ResetLogLevelResponse - 21, // [21:38] is the sub-list for method output_type - 4, // [4:21] is the sub-list for method input_type - 4, // [4:4] is the sub-list for extension type_name - 4, // [4:4] is the sub-list for extension extendee - 0, // [0:4] is the sub-list for field type_name + 1, // 4: tetragon.GetDebugRequest.flag:type_name -> tetragon.ConfigFlag + 1, // 5: tetragon.GetDebugResponse.flag:type_name -> tetragon.ConfigFlag + 2, // 6: tetragon.GetDebugResponse.level:type_name -> tetragon.LogLevel + 1, // 7: tetragon.SetDebugRequest.flag:type_name -> tetragon.ConfigFlag + 2, // 8: tetragon.SetDebugRequest.level:type_name -> tetragon.LogLevel + 1, // 9: tetragon.SetDebugResponse.flag:type_name -> tetragon.ConfigFlag + 2, // 10: tetragon.SetDebugResponse.level:type_name -> tetragon.LogLevel + 32, // 11: tetragon.FineGuidanceSensors.GetEvents:input_type -> tetragon.GetEventsRequest + 33, // 12: tetragon.FineGuidanceSensors.GetHealth:input_type -> tetragon.GetHealthStatusRequest + 9, // 13: tetragon.FineGuidanceSensors.AddTracingPolicy:input_type -> tetragon.AddTracingPolicyRequest + 11, // 14: tetragon.FineGuidanceSensors.DeleteTracingPolicy:input_type -> tetragon.DeleteTracingPolicyRequest + 6, // 15: tetragon.FineGuidanceSensors.ListTracingPolicies:input_type -> tetragon.ListTracingPoliciesRequest + 13, // 16: tetragon.FineGuidanceSensors.EnableTracingPolicy:input_type -> tetragon.EnableTracingPolicyRequest + 15, // 17: tetragon.FineGuidanceSensors.DisableTracingPolicy:input_type -> tetragon.DisableTracingPolicyRequest + 3, // 18: tetragon.FineGuidanceSensors.ListSensors:input_type -> tetragon.ListSensorsRequest + 19, // 19: tetragon.FineGuidanceSensors.EnableSensor:input_type -> tetragon.EnableSensorRequest + 21, // 20: tetragon.FineGuidanceSensors.DisableSensor:input_type -> tetragon.DisableSensorRequest + 17, // 21: tetragon.FineGuidanceSensors.RemoveSensor:input_type -> tetragon.RemoveSensorRequest + 23, // 22: tetragon.FineGuidanceSensors.GetStackTraceTree:input_type -> tetragon.GetStackTraceTreeRequest + 25, // 23: tetragon.FineGuidanceSensors.GetVersion:input_type -> tetragon.GetVersionRequest + 34, // 24: tetragon.FineGuidanceSensors.RuntimeHook:input_type -> tetragon.RuntimeHookRequest + 27, // 25: tetragon.FineGuidanceSensors.GetDebug:input_type -> tetragon.GetDebugRequest + 29, // 26: tetragon.FineGuidanceSensors.SetDebug:input_type -> tetragon.SetDebugRequest + 35, // 27: tetragon.FineGuidanceSensors.GetEvents:output_type -> tetragon.GetEventsResponse + 36, // 28: tetragon.FineGuidanceSensors.GetHealth:output_type -> tetragon.GetHealthStatusResponse + 10, // 29: tetragon.FineGuidanceSensors.AddTracingPolicy:output_type -> tetragon.AddTracingPolicyResponse + 12, // 30: tetragon.FineGuidanceSensors.DeleteTracingPolicy:output_type -> tetragon.DeleteTracingPolicyResponse + 8, // 31: tetragon.FineGuidanceSensors.ListTracingPolicies:output_type -> tetragon.ListTracingPoliciesResponse + 14, // 32: tetragon.FineGuidanceSensors.EnableTracingPolicy:output_type -> tetragon.EnableTracingPolicyResponse + 16, // 33: tetragon.FineGuidanceSensors.DisableTracingPolicy:output_type -> tetragon.DisableTracingPolicyResponse + 5, // 34: tetragon.FineGuidanceSensors.ListSensors:output_type -> tetragon.ListSensorsResponse + 20, // 35: tetragon.FineGuidanceSensors.EnableSensor:output_type -> tetragon.EnableSensorResponse + 22, // 36: tetragon.FineGuidanceSensors.DisableSensor:output_type -> tetragon.DisableSensorResponse + 18, // 37: tetragon.FineGuidanceSensors.RemoveSensor:output_type -> tetragon.RemoveSensorResponse + 24, // 38: tetragon.FineGuidanceSensors.GetStackTraceTree:output_type -> tetragon.GetStackTraceTreeResponse + 26, // 39: tetragon.FineGuidanceSensors.GetVersion:output_type -> tetragon.GetVersionResponse + 37, // 40: tetragon.FineGuidanceSensors.RuntimeHook:output_type -> tetragon.RuntimeHookResponse + 28, // 41: tetragon.FineGuidanceSensors.GetDebug:output_type -> tetragon.GetDebugResponse + 30, // 42: tetragon.FineGuidanceSensors.SetDebug:output_type -> tetragon.SetDebugResponse + 27, // [27:43] is the sub-list for method output_type + 11, // [11:27] is the sub-list for method input_type + 11, // [11:11] is the sub-list for extension type_name + 11, // [11:11] is the sub-list for extension extendee + 0, // [0:11] is the sub-list for field type_name } func init() { file_tetragon_sensors_proto_init() } @@ -2129,7 +2202,7 @@ func file_tetragon_sensors_proto_init() { } } file_tetragon_sensors_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetLogLevelRequest); i { + switch v := v.(*GetDebugRequest); i { case 0: return &v.state case 1: @@ -2141,7 +2214,7 @@ func file_tetragon_sensors_proto_init() { } } file_tetragon_sensors_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetLogLevelResponse); i { + switch v := v.(*GetDebugResponse); i { case 0: return &v.state case 1: @@ -2153,7 +2226,7 @@ func file_tetragon_sensors_proto_init() { } } file_tetragon_sensors_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SetLogLevelRequest); i { + switch v := v.(*SetDebugRequest); i { case 0: return &v.state case 1: @@ -2165,31 +2238,7 @@ func file_tetragon_sensors_proto_init() { } } file_tetragon_sensors_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SetLogLevelResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tetragon_sensors_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ResetLogLevelRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tetragon_sensors_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ResetLogLevelResponse); i { + switch v := v.(*SetDebugResponse); i { case 0: return &v.state case 1: @@ -2206,8 +2255,8 @@ func file_tetragon_sensors_proto_init() { File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_tetragon_sensors_proto_rawDesc, - NumEnums: 1, - NumMessages: 30, + NumEnums: 3, + NumMessages: 28, NumExtensions: 0, NumServices: 1, }, diff --git a/vendor/github.com/cilium/tetragon/api/v1/tetragon/sensors.pb.json.go b/vendor/github.com/cilium/tetragon/api/v1/tetragon/sensors.pb.json.go index 3c082681621..a9d01c00e30 100644 --- a/vendor/github.com/cilium/tetragon/api/v1/tetragon/sensors.pb.json.go +++ b/vendor/github.com/cilium/tetragon/api/v1/tetragon/sensors.pb.json.go @@ -392,7 +392,7 @@ func (msg *GetVersionResponse) UnmarshalJSON(b []byte) error { } // MarshalJSON implements json.Marshaler -func (msg *GetLogLevelRequest) MarshalJSON() ([]byte, error) { +func (msg *GetDebugRequest) MarshalJSON() ([]byte, error) { return protojson.MarshalOptions{ UseEnumNumbers: false, EmitUnpopulated: false, @@ -401,14 +401,14 @@ func (msg *GetLogLevelRequest) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements json.Unmarshaler -func (msg *GetLogLevelRequest) UnmarshalJSON(b []byte) error { +func (msg *GetDebugRequest) UnmarshalJSON(b []byte) error { return protojson.UnmarshalOptions{ DiscardUnknown: false, }.Unmarshal(b, msg) } // MarshalJSON implements json.Marshaler -func (msg *GetLogLevelResponse) MarshalJSON() ([]byte, error) { +func (msg *GetDebugResponse) MarshalJSON() ([]byte, error) { return protojson.MarshalOptions{ UseEnumNumbers: false, EmitUnpopulated: false, @@ -417,14 +417,14 @@ func (msg *GetLogLevelResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements json.Unmarshaler -func (msg *GetLogLevelResponse) UnmarshalJSON(b []byte) error { +func (msg *GetDebugResponse) UnmarshalJSON(b []byte) error { return protojson.UnmarshalOptions{ DiscardUnknown: false, }.Unmarshal(b, msg) } // MarshalJSON implements json.Marshaler -func (msg *SetLogLevelRequest) MarshalJSON() ([]byte, error) { +func (msg *SetDebugRequest) MarshalJSON() ([]byte, error) { return protojson.MarshalOptions{ UseEnumNumbers: false, EmitUnpopulated: false, @@ -433,14 +433,14 @@ func (msg *SetLogLevelRequest) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements json.Unmarshaler -func (msg *SetLogLevelRequest) UnmarshalJSON(b []byte) error { +func (msg *SetDebugRequest) UnmarshalJSON(b []byte) error { return protojson.UnmarshalOptions{ DiscardUnknown: false, }.Unmarshal(b, msg) } // MarshalJSON implements json.Marshaler -func (msg *SetLogLevelResponse) MarshalJSON() ([]byte, error) { +func (msg *SetDebugResponse) MarshalJSON() ([]byte, error) { return protojson.MarshalOptions{ UseEnumNumbers: false, EmitUnpopulated: false, @@ -449,39 +449,7 @@ func (msg *SetLogLevelResponse) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements json.Unmarshaler -func (msg *SetLogLevelResponse) UnmarshalJSON(b []byte) error { - return protojson.UnmarshalOptions{ - DiscardUnknown: false, - }.Unmarshal(b, msg) -} - -// MarshalJSON implements json.Marshaler -func (msg *ResetLogLevelRequest) MarshalJSON() ([]byte, error) { - return protojson.MarshalOptions{ - UseEnumNumbers: false, - EmitUnpopulated: false, - UseProtoNames: true, - }.Marshal(msg) -} - -// UnmarshalJSON implements json.Unmarshaler -func (msg *ResetLogLevelRequest) UnmarshalJSON(b []byte) error { - return protojson.UnmarshalOptions{ - DiscardUnknown: false, - }.Unmarshal(b, msg) -} - -// MarshalJSON implements json.Marshaler -func (msg *ResetLogLevelResponse) MarshalJSON() ([]byte, error) { - return protojson.MarshalOptions{ - UseEnumNumbers: false, - EmitUnpopulated: false, - UseProtoNames: true, - }.Marshal(msg) -} - -// UnmarshalJSON implements json.Unmarshaler -func (msg *ResetLogLevelResponse) UnmarshalJSON(b []byte) error { +func (msg *SetDebugResponse) UnmarshalJSON(b []byte) error { return protojson.UnmarshalOptions{ DiscardUnknown: false, }.Unmarshal(b, msg) diff --git a/vendor/github.com/cilium/tetragon/api/v1/tetragon/sensors.proto b/vendor/github.com/cilium/tetragon/api/v1/tetragon/sensors.proto index 7b218ae77bb..930228dba78 100644 --- a/vendor/github.com/cilium/tetragon/api/v1/tetragon/sensors.proto +++ b/vendor/github.com/cilium/tetragon/api/v1/tetragon/sensors.proto @@ -125,21 +125,36 @@ message GetVersionResponse{ string version = 1; } -message GetLogLevelRequest{} -message GetLogLevelResponse{ - string level = 1; +// For now, we only want to support debug-related config flags to be configurable. +enum ConfigFlag { + CONFIG_FLAG_LOG_LEVEL = 0; } -message SetLogLevelRequest{ - string level = 1; +enum LogLevel { + LOG_LEVEL_PANIC = 0; + LOG_LEVEL_FATAL = 1; + LOG_LEVEL_ERROR = 2; + LOG_LEVEL_WARN = 3; + LOG_LEVEL_INFO = 4; + LOG_LEVEL_DEBUG = 5; + LOG_LEVEL_TRACE = 6; } -message SetLogLevelResponse{ - string level = 1; + +message GetDebugRequest{ + ConfigFlag flag = 1; +} +message GetDebugResponse{ + ConfigFlag flag = 1; + LogLevel level = 2; } -message ResetLogLevelRequest{} -message ResetLogLevelResponse{ - string level = 1; +message SetDebugRequest{ + ConfigFlag flag = 1; + LogLevel level = 2; +} +message SetDebugResponse{ + ConfigFlag flag = 1; + LogLevel level = 2; } service FineGuidanceSensors { @@ -171,7 +186,6 @@ service FineGuidanceSensors { rpc RuntimeHook(RuntimeHookRequest) returns (RuntimeHookResponse) {} - rpc GetLogLevel(GetLogLevelRequest) returns (GetLogLevelResponse) {} - rpc SetLogLevel(SetLogLevelRequest) returns (SetLogLevelResponse) {} - rpc ResetLogLevel(ResetLogLevelRequest) returns (ResetLogLevelResponse) {} + rpc GetDebug(GetDebugRequest) returns (GetDebugResponse) {} + rpc SetDebug(SetDebugRequest) returns (SetDebugResponse) {} } diff --git a/vendor/github.com/cilium/tetragon/api/v1/tetragon/sensors_grpc.pb.go b/vendor/github.com/cilium/tetragon/api/v1/tetragon/sensors_grpc.pb.go index f65ec9bd55f..515f905c1b2 100644 --- a/vendor/github.com/cilium/tetragon/api/v1/tetragon/sensors_grpc.pb.go +++ b/vendor/github.com/cilium/tetragon/api/v1/tetragon/sensors_grpc.pb.go @@ -36,9 +36,8 @@ const ( FineGuidanceSensors_GetStackTraceTree_FullMethodName = "/tetragon.FineGuidanceSensors/GetStackTraceTree" FineGuidanceSensors_GetVersion_FullMethodName = "/tetragon.FineGuidanceSensors/GetVersion" FineGuidanceSensors_RuntimeHook_FullMethodName = "/tetragon.FineGuidanceSensors/RuntimeHook" - FineGuidanceSensors_GetLogLevel_FullMethodName = "/tetragon.FineGuidanceSensors/GetLogLevel" - FineGuidanceSensors_SetLogLevel_FullMethodName = "/tetragon.FineGuidanceSensors/SetLogLevel" - FineGuidanceSensors_ResetLogLevel_FullMethodName = "/tetragon.FineGuidanceSensors/ResetLogLevel" + FineGuidanceSensors_GetDebug_FullMethodName = "/tetragon.FineGuidanceSensors/GetDebug" + FineGuidanceSensors_SetDebug_FullMethodName = "/tetragon.FineGuidanceSensors/SetDebug" ) // FineGuidanceSensorsClient is the client API for FineGuidanceSensors service. @@ -63,9 +62,8 @@ type FineGuidanceSensorsClient interface { GetStackTraceTree(ctx context.Context, in *GetStackTraceTreeRequest, opts ...grpc.CallOption) (*GetStackTraceTreeResponse, error) GetVersion(ctx context.Context, in *GetVersionRequest, opts ...grpc.CallOption) (*GetVersionResponse, error) RuntimeHook(ctx context.Context, in *RuntimeHookRequest, opts ...grpc.CallOption) (*RuntimeHookResponse, error) - GetLogLevel(ctx context.Context, in *GetLogLevelRequest, opts ...grpc.CallOption) (*GetLogLevelResponse, error) - SetLogLevel(ctx context.Context, in *SetLogLevelRequest, opts ...grpc.CallOption) (*SetLogLevelResponse, error) - ResetLogLevel(ctx context.Context, in *ResetLogLevelRequest, opts ...grpc.CallOption) (*ResetLogLevelResponse, error) + GetDebug(ctx context.Context, in *GetDebugRequest, opts ...grpc.CallOption) (*GetDebugResponse, error) + SetDebug(ctx context.Context, in *SetDebugRequest, opts ...grpc.CallOption) (*SetDebugResponse, error) } type fineGuidanceSensorsClient struct { @@ -229,27 +227,18 @@ func (c *fineGuidanceSensorsClient) RuntimeHook(ctx context.Context, in *Runtime return out, nil } -func (c *fineGuidanceSensorsClient) GetLogLevel(ctx context.Context, in *GetLogLevelRequest, opts ...grpc.CallOption) (*GetLogLevelResponse, error) { - out := new(GetLogLevelResponse) - err := c.cc.Invoke(ctx, FineGuidanceSensors_GetLogLevel_FullMethodName, in, out, opts...) +func (c *fineGuidanceSensorsClient) GetDebug(ctx context.Context, in *GetDebugRequest, opts ...grpc.CallOption) (*GetDebugResponse, error) { + out := new(GetDebugResponse) + err := c.cc.Invoke(ctx, FineGuidanceSensors_GetDebug_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *fineGuidanceSensorsClient) SetLogLevel(ctx context.Context, in *SetLogLevelRequest, opts ...grpc.CallOption) (*SetLogLevelResponse, error) { - out := new(SetLogLevelResponse) - err := c.cc.Invoke(ctx, FineGuidanceSensors_SetLogLevel_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *fineGuidanceSensorsClient) ResetLogLevel(ctx context.Context, in *ResetLogLevelRequest, opts ...grpc.CallOption) (*ResetLogLevelResponse, error) { - out := new(ResetLogLevelResponse) - err := c.cc.Invoke(ctx, FineGuidanceSensors_ResetLogLevel_FullMethodName, in, out, opts...) +func (c *fineGuidanceSensorsClient) SetDebug(ctx context.Context, in *SetDebugRequest, opts ...grpc.CallOption) (*SetDebugResponse, error) { + out := new(SetDebugResponse) + err := c.cc.Invoke(ctx, FineGuidanceSensors_SetDebug_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -278,9 +267,8 @@ type FineGuidanceSensorsServer interface { GetStackTraceTree(context.Context, *GetStackTraceTreeRequest) (*GetStackTraceTreeResponse, error) GetVersion(context.Context, *GetVersionRequest) (*GetVersionResponse, error) RuntimeHook(context.Context, *RuntimeHookRequest) (*RuntimeHookResponse, error) - GetLogLevel(context.Context, *GetLogLevelRequest) (*GetLogLevelResponse, error) - SetLogLevel(context.Context, *SetLogLevelRequest) (*SetLogLevelResponse, error) - ResetLogLevel(context.Context, *ResetLogLevelRequest) (*ResetLogLevelResponse, error) + GetDebug(context.Context, *GetDebugRequest) (*GetDebugResponse, error) + SetDebug(context.Context, *SetDebugRequest) (*SetDebugResponse, error) } // UnimplementedFineGuidanceSensorsServer should be embedded to have forward compatible implementations. @@ -329,14 +317,11 @@ func (UnimplementedFineGuidanceSensorsServer) GetVersion(context.Context, *GetVe func (UnimplementedFineGuidanceSensorsServer) RuntimeHook(context.Context, *RuntimeHookRequest) (*RuntimeHookResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method RuntimeHook not implemented") } -func (UnimplementedFineGuidanceSensorsServer) GetLogLevel(context.Context, *GetLogLevelRequest) (*GetLogLevelResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetLogLevel not implemented") +func (UnimplementedFineGuidanceSensorsServer) GetDebug(context.Context, *GetDebugRequest) (*GetDebugResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetDebug not implemented") } -func (UnimplementedFineGuidanceSensorsServer) SetLogLevel(context.Context, *SetLogLevelRequest) (*SetLogLevelResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SetLogLevel not implemented") -} -func (UnimplementedFineGuidanceSensorsServer) ResetLogLevel(context.Context, *ResetLogLevelRequest) (*ResetLogLevelResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ResetLogLevel not implemented") +func (UnimplementedFineGuidanceSensorsServer) SetDebug(context.Context, *SetDebugRequest) (*SetDebugResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetDebug not implemented") } // UnsafeFineGuidanceSensorsServer may be embedded to opt out of forward compatibility for this service. @@ -605,56 +590,38 @@ func _FineGuidanceSensors_RuntimeHook_Handler(srv interface{}, ctx context.Conte return interceptor(ctx, in, info, handler) } -func _FineGuidanceSensors_GetLogLevel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetLogLevelRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(FineGuidanceSensorsServer).GetLogLevel(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: FineGuidanceSensors_GetLogLevel_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(FineGuidanceSensorsServer).GetLogLevel(ctx, req.(*GetLogLevelRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _FineGuidanceSensors_SetLogLevel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SetLogLevelRequest) +func _FineGuidanceSensors_GetDebug_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetDebugRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(FineGuidanceSensorsServer).SetLogLevel(ctx, in) + return srv.(FineGuidanceSensorsServer).GetDebug(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: FineGuidanceSensors_SetLogLevel_FullMethodName, + FullMethod: FineGuidanceSensors_GetDebug_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(FineGuidanceSensorsServer).SetLogLevel(ctx, req.(*SetLogLevelRequest)) + return srv.(FineGuidanceSensorsServer).GetDebug(ctx, req.(*GetDebugRequest)) } return interceptor(ctx, in, info, handler) } -func _FineGuidanceSensors_ResetLogLevel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ResetLogLevelRequest) +func _FineGuidanceSensors_SetDebug_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SetDebugRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(FineGuidanceSensorsServer).ResetLogLevel(ctx, in) + return srv.(FineGuidanceSensorsServer).SetDebug(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: FineGuidanceSensors_ResetLogLevel_FullMethodName, + FullMethod: FineGuidanceSensors_SetDebug_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(FineGuidanceSensorsServer).ResetLogLevel(ctx, req.(*ResetLogLevelRequest)) + return srv.(FineGuidanceSensorsServer).SetDebug(ctx, req.(*SetDebugRequest)) } return interceptor(ctx, in, info, handler) } @@ -719,16 +686,12 @@ var FineGuidanceSensors_ServiceDesc = grpc.ServiceDesc{ Handler: _FineGuidanceSensors_RuntimeHook_Handler, }, { - MethodName: "GetLogLevel", - Handler: _FineGuidanceSensors_GetLogLevel_Handler, - }, - { - MethodName: "SetLogLevel", - Handler: _FineGuidanceSensors_SetLogLevel_Handler, + MethodName: "GetDebug", + Handler: _FineGuidanceSensors_GetDebug_Handler, }, { - MethodName: "ResetLogLevel", - Handler: _FineGuidanceSensors_ResetLogLevel_Handler, + MethodName: "SetDebug", + Handler: _FineGuidanceSensors_SetDebug_Handler, }, }, Streams: []grpc.StreamDesc{