1// Code generated by protoc-gen-go. DO NOT EDIT. 2// source: plugins/shared/structs/proto/attribute.proto 3 4package proto 5 6import ( 7 fmt "fmt" 8 proto "github.com/golang/protobuf/proto" 9 math "math" 10) 11 12// Reference imports to suppress errors if they are not otherwise used. 13var _ = proto.Marshal 14var _ = fmt.Errorf 15var _ = math.Inf 16 17// This is a compile-time assertion to ensure that this generated file 18// is compatible with the proto package it is being compiled against. 19// A compilation error at this line likely means your copy of the 20// proto package needs to be updated. 21const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 22 23// Attribute is used to describe the value of an attribute, optionally 24// specifying units 25type Attribute struct { 26 // Types that are valid to be assigned to Value: 27 // *Attribute_FloatVal 28 // *Attribute_IntVal 29 // *Attribute_StringVal 30 // *Attribute_BoolVal 31 Value isAttribute_Value `protobuf_oneof:"value"` 32 // unit gives the unit type: MHz, MB, etc. 33 Unit string `protobuf:"bytes,5,opt,name=unit,proto3" json:"unit,omitempty"` 34 XXX_NoUnkeyedLiteral struct{} `json:"-"` 35 XXX_unrecognized []byte `json:"-"` 36 XXX_sizecache int32 `json:"-"` 37} 38 39func (m *Attribute) Reset() { *m = Attribute{} } 40func (m *Attribute) String() string { return proto.CompactTextString(m) } 41func (*Attribute) ProtoMessage() {} 42func (*Attribute) Descriptor() ([]byte, []int) { 43 return fileDescriptor_5b30c64b64565493, []int{0} 44} 45 46func (m *Attribute) XXX_Unmarshal(b []byte) error { 47 return xxx_messageInfo_Attribute.Unmarshal(m, b) 48} 49func (m *Attribute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 50 return xxx_messageInfo_Attribute.Marshal(b, m, deterministic) 51} 52func (m *Attribute) XXX_Merge(src proto.Message) { 53 xxx_messageInfo_Attribute.Merge(m, src) 54} 55func (m *Attribute) XXX_Size() int { 56 return xxx_messageInfo_Attribute.Size(m) 57} 58func (m *Attribute) XXX_DiscardUnknown() { 59 xxx_messageInfo_Attribute.DiscardUnknown(m) 60} 61 62var xxx_messageInfo_Attribute proto.InternalMessageInfo 63 64type isAttribute_Value interface { 65 isAttribute_Value() 66} 67 68type Attribute_FloatVal struct { 69 FloatVal float64 `protobuf:"fixed64,1,opt,name=float_val,json=floatVal,proto3,oneof"` 70} 71 72type Attribute_IntVal struct { 73 IntVal int64 `protobuf:"varint,2,opt,name=int_val,json=intVal,proto3,oneof"` 74} 75 76type Attribute_StringVal struct { 77 StringVal string `protobuf:"bytes,3,opt,name=string_val,json=stringVal,proto3,oneof"` 78} 79 80type Attribute_BoolVal struct { 81 BoolVal bool `protobuf:"varint,4,opt,name=bool_val,json=boolVal,proto3,oneof"` 82} 83 84func (*Attribute_FloatVal) isAttribute_Value() {} 85 86func (*Attribute_IntVal) isAttribute_Value() {} 87 88func (*Attribute_StringVal) isAttribute_Value() {} 89 90func (*Attribute_BoolVal) isAttribute_Value() {} 91 92func (m *Attribute) GetValue() isAttribute_Value { 93 if m != nil { 94 return m.Value 95 } 96 return nil 97} 98 99func (m *Attribute) GetFloatVal() float64 { 100 if x, ok := m.GetValue().(*Attribute_FloatVal); ok { 101 return x.FloatVal 102 } 103 return 0 104} 105 106func (m *Attribute) GetIntVal() int64 { 107 if x, ok := m.GetValue().(*Attribute_IntVal); ok { 108 return x.IntVal 109 } 110 return 0 111} 112 113func (m *Attribute) GetStringVal() string { 114 if x, ok := m.GetValue().(*Attribute_StringVal); ok { 115 return x.StringVal 116 } 117 return "" 118} 119 120func (m *Attribute) GetBoolVal() bool { 121 if x, ok := m.GetValue().(*Attribute_BoolVal); ok { 122 return x.BoolVal 123 } 124 return false 125} 126 127func (m *Attribute) GetUnit() string { 128 if m != nil { 129 return m.Unit 130 } 131 return "" 132} 133 134// XXX_OneofWrappers is for the internal use of the proto package. 135func (*Attribute) XXX_OneofWrappers() []interface{} { 136 return []interface{}{ 137 (*Attribute_FloatVal)(nil), 138 (*Attribute_IntVal)(nil), 139 (*Attribute_StringVal)(nil), 140 (*Attribute_BoolVal)(nil), 141 } 142} 143 144func init() { 145 proto.RegisterType((*Attribute)(nil), "hashicorp.nomad.plugins.shared.structs.Attribute") 146} 147 148func init() { 149 proto.RegisterFile("plugins/shared/structs/proto/attribute.proto", fileDescriptor_5b30c64b64565493) 150} 151 152var fileDescriptor_5b30c64b64565493 = []byte{ 153 // 218 bytes of a gzipped FileDescriptorProto 154 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x34, 0x8f, 0xb1, 0x4e, 0xc3, 0x30, 155 0x10, 0x40, 0x63, 0xda, 0x34, 0xc9, 0x8d, 0x99, 0x8a, 0x10, 0x22, 0x62, 0x40, 0x19, 0x90, 0x33, 156 0xf0, 0x05, 0x74, 0xf2, 0xec, 0x81, 0x81, 0x05, 0x5d, 0xda, 0xd0, 0x58, 0x32, 0x76, 0x64, 0x9f, 157 0xfb, 0x3d, 0x7c, 0x2a, 0xf2, 0x25, 0x4c, 0xf6, 0xbd, 0x77, 0x6f, 0x38, 0x78, 0x5d, 0x6c, 0xba, 158 0x1a, 0x17, 0x87, 0x38, 0x63, 0x98, 0x2e, 0x43, 0xa4, 0x90, 0xce, 0x14, 0x87, 0x25, 0x78, 0xf2, 159 0x03, 0x12, 0x05, 0x33, 0x26, 0x9a, 0x24, 0xcf, 0xed, 0xcb, 0x8c, 0x71, 0x36, 0x67, 0x1f, 0x16, 160 0xe9, 0xfc, 0x0f, 0x5e, 0xe4, 0x56, 0xcb, 0xb5, 0x96, 0x5b, 0xfd, 0xfc, 0x2b, 0xa0, 0x79, 0xff, 161 0x6f, 0xdb, 0x47, 0x68, 0xbe, 0xad, 0x47, 0xfa, 0xba, 0xa1, 0x3d, 0x8a, 0x4e, 0xf4, 0x42, 0x15, 162 0xba, 0x66, 0xf4, 0x81, 0xb6, 0xbd, 0x87, 0xca, 0xb8, 0x55, 0xde, 0x75, 0xa2, 0xdf, 0xa9, 0x42, 163 0x1f, 0x8c, 0x63, 0xf5, 0x04, 0x10, 0x29, 0x18, 0x77, 0x65, 0xbb, 0xeb, 0x44, 0xdf, 0xa8, 0x42, 164 0x37, 0x2b, 0xcb, 0x0b, 0x0f, 0x50, 0x8f, 0xde, 0x5b, 0xd6, 0xfb, 0x4e, 0xf4, 0xb5, 0x2a, 0x74, 165 0x95, 0x49, 0x96, 0x2d, 0xec, 0x93, 0x33, 0x74, 0x2c, 0x73, 0xa7, 0xf9, 0x7f, 0xaa, 0xa0, 0xbc, 166 0xa1, 0x4d, 0xd3, 0xa9, 0xfa, 0x2c, 0xf9, 0xa6, 0xf1, 0xc0, 0xcf, 0xdb, 0x5f, 0x00, 0x00, 0x00, 167 0xff, 0xff, 0x77, 0x2b, 0x7a, 0x7c, 0x0a, 0x01, 0x00, 0x00, 168} 169