github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/plugins/shared/structs/proto/attribute.pb.go (about)

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