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