mirror of
https://github.com/kemko/nomad.git
synced 2026-01-04 17:35:43 +03:00
217 lines
8.9 KiB
Go
217 lines
8.9 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// source: plugins/shared/structs/proto/stats.proto
|
|
|
|
package proto
|
|
|
|
import proto "github.com/golang/protobuf/proto"
|
|
import fmt "fmt"
|
|
import math "math"
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = fmt.Errorf
|
|
var _ = math.Inf
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the proto package it is being compiled against.
|
|
// A compilation error at this line likely means your copy of the
|
|
// proto package needs to be updated.
|
|
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
|
|
|
// StatObject is a collection of statistics either exposed at the top
|
|
// level or via nested StatObjects.
|
|
type StatObject struct {
|
|
// nested is a mapping of object name to a nested stats object.
|
|
Nested map[string]*StatObject `protobuf:"bytes,1,rep,name=nested,proto3" json:"nested,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
|
// attributes is a mapping of statistic name to its value.
|
|
Attributes map[string]*StatValue `protobuf:"bytes,2,rep,name=attributes,proto3" json:"attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *StatObject) Reset() { *m = StatObject{} }
|
|
func (m *StatObject) String() string { return proto.CompactTextString(m) }
|
|
func (*StatObject) ProtoMessage() {}
|
|
func (*StatObject) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_stats_f326973aadc74e22, []int{0}
|
|
}
|
|
func (m *StatObject) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_StatObject.Unmarshal(m, b)
|
|
}
|
|
func (m *StatObject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_StatObject.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *StatObject) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_StatObject.Merge(dst, src)
|
|
}
|
|
func (m *StatObject) XXX_Size() int {
|
|
return xxx_messageInfo_StatObject.Size(m)
|
|
}
|
|
func (m *StatObject) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_StatObject.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_StatObject proto.InternalMessageInfo
|
|
|
|
func (m *StatObject) GetNested() map[string]*StatObject {
|
|
if m != nil {
|
|
return m.Nested
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *StatObject) GetAttributes() map[string]*StatValue {
|
|
if m != nil {
|
|
return m.Attributes
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// StatValue exposes the values of a particular statistic. The value may
|
|
// be of type double, integer, string or boolean. Numeric types can be
|
|
// exposed as a single value or as a fraction.
|
|
type StatValue struct {
|
|
// float_numerator_val exposes a floating point value. If denominator
|
|
// is set it is assumed to be a fractional value, otherwise it is a
|
|
// scalar.
|
|
FloatNumeratorVal float64 `protobuf:"fixed64,1,opt,name=float_numerator_val,json=floatNumeratorVal,proto3" json:"float_numerator_val,omitempty"`
|
|
FloatDenominatorVal float64 `protobuf:"fixed64,2,opt,name=float_denominator_val,json=floatDenominatorVal,proto3" json:"float_denominator_val,omitempty"`
|
|
// int_numerator_val exposes a int value. If denominator
|
|
// is set it is assumed to be a fractional value, otherwise it is a
|
|
// scalar.
|
|
IntNumeratorVal int64 `protobuf:"varint,3,opt,name=int_numerator_val,json=intNumeratorVal,proto3" json:"int_numerator_val,omitempty"`
|
|
IntDenominatorVal int64 `protobuf:"varint,4,opt,name=int_denominator_val,json=intDenominatorVal,proto3" json:"int_denominator_val,omitempty"`
|
|
// string_val exposes a string value. These are likely annotations.
|
|
StringVal string `protobuf:"bytes,5,opt,name=string_val,json=stringVal,proto3" json:"string_val,omitempty"`
|
|
// bool_val exposes a boolean statistic.
|
|
BoolVal bool `protobuf:"varint,6,opt,name=bool_val,json=boolVal,proto3" json:"bool_val,omitempty"`
|
|
// unit gives the unit type: °F, %, MHz, MB, etc.
|
|
Unit string `protobuf:"bytes,7,opt,name=unit,proto3" json:"unit,omitempty"`
|
|
// desc provides a human readable description of the statistic.
|
|
Desc string `protobuf:"bytes,8,opt,name=desc,proto3" json:"desc,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *StatValue) Reset() { *m = StatValue{} }
|
|
func (m *StatValue) String() string { return proto.CompactTextString(m) }
|
|
func (*StatValue) ProtoMessage() {}
|
|
func (*StatValue) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_stats_f326973aadc74e22, []int{1}
|
|
}
|
|
func (m *StatValue) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_StatValue.Unmarshal(m, b)
|
|
}
|
|
func (m *StatValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_StatValue.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *StatValue) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_StatValue.Merge(dst, src)
|
|
}
|
|
func (m *StatValue) XXX_Size() int {
|
|
return xxx_messageInfo_StatValue.Size(m)
|
|
}
|
|
func (m *StatValue) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_StatValue.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_StatValue proto.InternalMessageInfo
|
|
|
|
func (m *StatValue) GetFloatNumeratorVal() float64 {
|
|
if m != nil {
|
|
return m.FloatNumeratorVal
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *StatValue) GetFloatDenominatorVal() float64 {
|
|
if m != nil {
|
|
return m.FloatDenominatorVal
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *StatValue) GetIntNumeratorVal() int64 {
|
|
if m != nil {
|
|
return m.IntNumeratorVal
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *StatValue) GetIntDenominatorVal() int64 {
|
|
if m != nil {
|
|
return m.IntDenominatorVal
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *StatValue) GetStringVal() string {
|
|
if m != nil {
|
|
return m.StringVal
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *StatValue) GetBoolVal() bool {
|
|
if m != nil {
|
|
return m.BoolVal
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *StatValue) GetUnit() string {
|
|
if m != nil {
|
|
return m.Unit
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *StatValue) GetDesc() string {
|
|
if m != nil {
|
|
return m.Desc
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*StatObject)(nil), "hashicorp.nomad.plugins.shared.structs.StatObject")
|
|
proto.RegisterMapType((map[string]*StatValue)(nil), "hashicorp.nomad.plugins.shared.structs.StatObject.AttributesEntry")
|
|
proto.RegisterMapType((map[string]*StatObject)(nil), "hashicorp.nomad.plugins.shared.structs.StatObject.NestedEntry")
|
|
proto.RegisterType((*StatValue)(nil), "hashicorp.nomad.plugins.shared.structs.StatValue")
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterFile("plugins/shared/structs/proto/stats.proto", fileDescriptor_stats_f326973aadc74e22)
|
|
}
|
|
|
|
var fileDescriptor_stats_f326973aadc74e22 = []byte{
|
|
// 388 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x93, 0x4f, 0x8b, 0xd4, 0x30,
|
|
0x18, 0xc6, 0x49, 0xbb, 0xf3, 0xef, 0x9d, 0xc3, 0xba, 0x59, 0x84, 0xba, 0x20, 0x94, 0x3d, 0x48,
|
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