github.com/ferranbt/nomad@v0.9.3-0.20190607002617-85c449b7667c/plugins/shared/structs/proto/stats.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // source: plugins/shared/structs/proto/stats.proto 3 4 package proto 5 6 import proto "github.com/golang/protobuf/proto" 7 import fmt "fmt" 8 import math "math" 9 import wrappers "github.com/golang/protobuf/ptypes/wrappers" 10 11 // Reference imports to suppress errors if they are not otherwise used. 12 var _ = proto.Marshal 13 var _ = fmt.Errorf 14 var _ = math.Inf 15 16 // This is a compile-time assertion to ensure that this generated file 17 // is compatible with the proto package it is being compiled against. 18 // A compilation error at this line likely means your copy of the 19 // proto package needs to be updated. 20 const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package 21 22 // StatObject is a collection of statistics either exposed at the top 23 // level or via nested StatObjects. 24 type StatObject struct { 25 // nested is a mapping of object name to a nested stats object. 26 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"` 27 // attributes is a mapping of statistic name to its value. 28 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"` 29 XXX_NoUnkeyedLiteral struct{} `json:"-"` 30 XXX_unrecognized []byte `json:"-"` 31 XXX_sizecache int32 `json:"-"` 32 } 33 34 func (m *StatObject) Reset() { *m = StatObject{} } 35 func (m *StatObject) String() string { return proto.CompactTextString(m) } 36 func (*StatObject) ProtoMessage() {} 37 func (*StatObject) Descriptor() ([]byte, []int) { 38 return fileDescriptor_stats_73a5e405c9cf442c, []int{0} 39 } 40 func (m *StatObject) XXX_Unmarshal(b []byte) error { 41 return xxx_messageInfo_StatObject.Unmarshal(m, b) 42 } 43 func (m *StatObject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 44 return xxx_messageInfo_StatObject.Marshal(b, m, deterministic) 45 } 46 func (dst *StatObject) XXX_Merge(src proto.Message) { 47 xxx_messageInfo_StatObject.Merge(dst, src) 48 } 49 func (m *StatObject) XXX_Size() int { 50 return xxx_messageInfo_StatObject.Size(m) 51 } 52 func (m *StatObject) XXX_DiscardUnknown() { 53 xxx_messageInfo_StatObject.DiscardUnknown(m) 54 } 55 56 var xxx_messageInfo_StatObject proto.InternalMessageInfo 57 58 func (m *StatObject) GetNested() map[string]*StatObject { 59 if m != nil { 60 return m.Nested 61 } 62 return nil 63 } 64 65 func (m *StatObject) GetAttributes() map[string]*StatValue { 66 if m != nil { 67 return m.Attributes 68 } 69 return nil 70 } 71 72 // StatValue exposes the values of a particular statistic. The value may 73 // be of type double, integer, string or boolean. Numeric types can be 74 // exposed as a single value or as a fraction. 75 type StatValue struct { 76 // float_numerator_val exposes a floating point value. If denominator 77 // is set it is assumed to be a fractional value, otherwise it is a 78 // scalar. 79 FloatNumeratorVal *wrappers.DoubleValue `protobuf:"bytes,1,opt,name=float_numerator_val,json=floatNumeratorVal,proto3" json:"float_numerator_val,omitempty"` 80 FloatDenominatorVal *wrappers.DoubleValue `protobuf:"bytes,2,opt,name=float_denominator_val,json=floatDenominatorVal,proto3" json:"float_denominator_val,omitempty"` 81 // int_numerator_val exposes a int value. If denominator 82 // is set it is assumed to be a fractional value, otherwise it is a 83 // scalar. 84 IntNumeratorVal *wrappers.Int64Value `protobuf:"bytes,3,opt,name=int_numerator_val,json=intNumeratorVal,proto3" json:"int_numerator_val,omitempty"` 85 IntDenominatorVal *wrappers.Int64Value `protobuf:"bytes,4,opt,name=int_denominator_val,json=intDenominatorVal,proto3" json:"int_denominator_val,omitempty"` 86 // string_val exposes a string value. These are likely annotations. 87 StringVal *wrappers.StringValue `protobuf:"bytes,5,opt,name=string_val,json=stringVal,proto3" json:"string_val,omitempty"` 88 // bool_val exposes a boolean statistic. 89 BoolVal *wrappers.BoolValue `protobuf:"bytes,6,opt,name=bool_val,json=boolVal,proto3" json:"bool_val,omitempty"` 90 // unit gives the unit type: °F, %, MHz, MB, etc. 91 Unit string `protobuf:"bytes,7,opt,name=unit,proto3" json:"unit,omitempty"` 92 // desc provides a human readable description of the statistic. 93 Desc string `protobuf:"bytes,8,opt,name=desc,proto3" json:"desc,omitempty"` 94 XXX_NoUnkeyedLiteral struct{} `json:"-"` 95 XXX_unrecognized []byte `json:"-"` 96 XXX_sizecache int32 `json:"-"` 97 } 98 99 func (m *StatValue) Reset() { *m = StatValue{} } 100 func (m *StatValue) String() string { return proto.CompactTextString(m) } 101 func (*StatValue) ProtoMessage() {} 102 func (*StatValue) Descriptor() ([]byte, []int) { 103 return fileDescriptor_stats_73a5e405c9cf442c, []int{1} 104 } 105 func (m *StatValue) XXX_Unmarshal(b []byte) error { 106 return xxx_messageInfo_StatValue.Unmarshal(m, b) 107 } 108 func (m *StatValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 109 return xxx_messageInfo_StatValue.Marshal(b, m, deterministic) 110 } 111 func (dst *StatValue) XXX_Merge(src proto.Message) { 112 xxx_messageInfo_StatValue.Merge(dst, src) 113 } 114 func (m *StatValue) XXX_Size() int { 115 return xxx_messageInfo_StatValue.Size(m) 116 } 117 func (m *StatValue) XXX_DiscardUnknown() { 118 xxx_messageInfo_StatValue.DiscardUnknown(m) 119 } 120 121 var xxx_messageInfo_StatValue proto.InternalMessageInfo 122 123 func (m *StatValue) GetFloatNumeratorVal() *wrappers.DoubleValue { 124 if m != nil { 125 return m.FloatNumeratorVal 126 } 127 return nil 128 } 129 130 func (m *StatValue) GetFloatDenominatorVal() *wrappers.DoubleValue { 131 if m != nil { 132 return m.FloatDenominatorVal 133 } 134 return nil 135 } 136 137 func (m *StatValue) GetIntNumeratorVal() *wrappers.Int64Value { 138 if m != nil { 139 return m.IntNumeratorVal 140 } 141 return nil 142 } 143 144 func (m *StatValue) GetIntDenominatorVal() *wrappers.Int64Value { 145 if m != nil { 146 return m.IntDenominatorVal 147 } 148 return nil 149 } 150 151 func (m *StatValue) GetStringVal() *wrappers.StringValue { 152 if m != nil { 153 return m.StringVal 154 } 155 return nil 156 } 157 158 func (m *StatValue) GetBoolVal() *wrappers.BoolValue { 159 if m != nil { 160 return m.BoolVal 161 } 162 return nil 163 } 164 165 func (m *StatValue) GetUnit() string { 166 if m != nil { 167 return m.Unit 168 } 169 return "" 170 } 171 172 func (m *StatValue) GetDesc() string { 173 if m != nil { 174 return m.Desc 175 } 176 return "" 177 } 178 179 func init() { 180 proto.RegisterType((*StatObject)(nil), "hashicorp.nomad.plugins.shared.structs.StatObject") 181 proto.RegisterMapType((map[string]*StatValue)(nil), "hashicorp.nomad.plugins.shared.structs.StatObject.AttributesEntry") 182 proto.RegisterMapType((map[string]*StatObject)(nil), "hashicorp.nomad.plugins.shared.structs.StatObject.NestedEntry") 183 proto.RegisterType((*StatValue)(nil), "hashicorp.nomad.plugins.shared.structs.StatValue") 184 } 185 186 func init() { 187 proto.RegisterFile("plugins/shared/structs/proto/stats.proto", fileDescriptor_stats_73a5e405c9cf442c) 188 } 189 190 var fileDescriptor_stats_73a5e405c9cf442c = []byte{ 191 // 444 bytes of a gzipped FileDescriptorProto 192 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0xd2, 0xdf, 0x6a, 0x13, 0x41, 193 0x14, 0x06, 0x70, 0x36, 0xdb, 0x24, 0xcd, 0xc9, 0x45, 0xed, 0x14, 0x61, 0x89, 0x22, 0xa1, 0x17, 194 0x92, 0xab, 0x59, 0x8c, 0x7f, 0x10, 0x05, 0xc1, 0x50, 0xa9, 0xa2, 0x54, 0x49, 0x21, 0x17, 0xde, 195 0x94, 0xd9, 0xec, 0x74, 0x33, 0x3a, 0x3b, 0xb3, 0xcc, 0x9c, 0xa9, 0xf4, 0x91, 0x7c, 0x28, 0xdf, 196 0x45, 0x76, 0x66, 0x93, 0xa6, 0x5b, 0xc5, 0xd6, 0xab, 0x9c, 0x4c, 0xf2, 0xfd, 0xbe, 0xb3, 0xcc, 197 0xc2, 0xa4, 0x92, 0xae, 0x10, 0xca, 0xa6, 0x76, 0xc5, 0x0c, 0xcf, 0x53, 0x8b, 0xc6, 0x2d, 0xd1, 198 0xa6, 0x95, 0xd1, 0xa8, 0x53, 0x8b, 0x0c, 0x2d, 0xf5, 0x33, 0x79, 0xbc, 0x62, 0x76, 0x25, 0x96, 199 0xda, 0x54, 0x54, 0xe9, 0x92, 0xe5, 0xb4, 0x49, 0xd2, 0x90, 0xa4, 0x4d, 0x72, 0xf4, 0xa8, 0xd0, 200 0xba, 0x90, 0x3c, 0x08, 0x99, 0x3b, 0x4f, 0x7f, 0x18, 0x56, 0x55, 0xdc, 0x34, 0xce, 0xe1, 0xcf, 201 0x18, 0xe0, 0x14, 0x19, 0x7e, 0xce, 0xbe, 0xf1, 0x25, 0x92, 0x05, 0xf4, 0x14, 0xb7, 0xc8, 0xf3, 202 0x24, 0x1a, 0xc7, 0x93, 0xe1, 0xf4, 0x0d, 0xbd, 0x5d, 0x0f, 0xbd, 0x32, 0xe8, 0x89, 0x07, 0xde, 203 0x29, 0x34, 0x97, 0xf3, 0x46, 0x23, 0x19, 0x00, 0x43, 0x34, 0x22, 0x73, 0xc8, 0x6d, 0xd2, 0xf1, 204 0xf6, 0xec, 0x3f, 0xec, 0xb7, 0x1b, 0x24, 0xf8, 0x5b, 0xea, 0xa8, 0x84, 0xe1, 0x56, 0x35, 0xb9, 205 0x07, 0xf1, 0x77, 0x7e, 0x99, 0x44, 0xe3, 0x68, 0x32, 0x98, 0xd7, 0x23, 0x79, 0x0f, 0xdd, 0x0b, 206 0x26, 0x1d, 0x4f, 0x3a, 0xe3, 0x68, 0x32, 0x9c, 0x4e, 0xef, 0xde, 0x3f, 0x0f, 0xc0, 0xab, 0xce, 207 0xcb, 0x68, 0x54, 0xc1, 0x5e, 0x6b, 0x9b, 0x3f, 0x54, 0x1e, 0x5f, 0xaf, 0x7c, 0x72, 0x97, 0xca, 208 0x45, 0x1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