github.com/ferranbt/nomad@v0.9.3-0.20190607002617-85c449b7667c/plugins/shared/structs/proto/attribute.proto (about) 1 syntax = "proto3"; 2 package hashicorp.nomad.plugins.shared.structs; 3 option go_package = "proto"; 4 5 // Attribute is used to describe the value of an attribute, optionally 6 // specifying units 7 message Attribute { 8 oneof value { 9 // float_val exposes a floating point value. 10 double float_val = 1; 11 12 // int_numerator_val exposes a int value. 13 int64 int_val = 2; 14 15 // string_val exposes a string value. 16 string string_val = 3; 17 18 // bool_val exposes a boolean statistic. 19 bool bool_val = 4; 20 } 21 22 // unit gives the unit type: MHz, MB, etc. 23 string unit = 5; 24 } 25