github.com/iqoqo/nomad@v0.11.3-0.20200911112621-d7021c74d101/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  	//	*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  
    39  func (m *Attribute) Reset()         { *m = Attribute{} }
    40  func (m *Attribute) String() string { return proto.CompactTextString(m) }
    41  func (*Attribute) ProtoMessage()    {}
    42  func (*Attribute) Descriptor() ([]byte, []int) {
    43  	return fileDescriptor_5b30c64b64565493, []int{0}
    44  }
    45  
    46  func (m *Attribute) XXX_Unmarshal(b []byte) error {
    47  	return xxx_messageInfo_Attribute.Unmarshal(m, b)
    48  }
    49  func (m *Attribute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    50  	return xxx_messageInfo_Attribute.Marshal(b, m, deterministic)
    51  }
    52  func (m *Attribute) XXX_Merge(src proto.Message) {
    53  	xxx_messageInfo_Attribute.Merge(m, src)
    54  }
    55  func (m *Attribute) XXX_Size() int {
    56  	return xxx_messageInfo_Attribute.Size(m)
    57  }
    58  func (m *Attribute) XXX_DiscardUnknown() {
    59  	xxx_messageInfo_Attribute.DiscardUnknown(m)
    60  }
    61  
    62  var xxx_messageInfo_Attribute proto.InternalMessageInfo
    63  
    64  type isAttribute_Value interface {
    65  	isAttribute_Value()
    66  }
    67  
    68  type Attribute_FloatVal struct {
    69  	FloatVal float64 `protobuf:"fixed64,1,opt,name=float_val,json=floatVal,proto3,oneof"`
    70  }
    71  
    72  type Attribute_IntVal struct {
    73  	IntVal int64 `protobuf:"varint,2,opt,name=int_val,json=intVal,proto3,oneof"`
    74  }
    75  
    76  type Attribute_StringVal struct {
    77  	StringVal string `protobuf:"bytes,3,opt,name=string_val,json=stringVal,proto3,oneof"`
    78  }
    79  
    80  type Attribute_BoolVal struct {
    81  	BoolVal bool `protobuf:"varint,4,opt,name=bool_val,json=boolVal,proto3,oneof"`
    82  }
    83  
    84  func (*Attribute_FloatVal) isAttribute_Value() {}
    85  
    86  func (*Attribute_IntVal) isAttribute_Value() {}
    87  
    88  func (*Attribute_StringVal) isAttribute_Value() {}
    89  
    90  func (*Attribute_BoolVal) isAttribute_Value() {}
    91  
    92  func (m *Attribute) GetValue() isAttribute_Value {
    93  	if m != nil {
    94  		return m.Value
    95  	}
    96  	return nil
    97  }
    98  
    99  func (m *Attribute) GetFloatVal() float64 {
   100  	if x, ok := m.GetValue().(*Attribute_FloatVal); ok {
   101  		return x.FloatVal
   102  	}
   103  	return 0
   104  }
   105  
   106  func (m *Attribute) GetIntVal() int64 {
   107  	if x, ok := m.GetValue().(*Attribute_IntVal); ok {
   108  		return x.IntVal
   109  	}
   110  	return 0
   111  }
   112  
   113  func (m *Attribute) GetStringVal() string {
   114  	if x, ok := m.GetValue().(*Attribute_StringVal); ok {
   115  		return x.StringVal
   116  	}
   117  	return ""
   118  }
   119  
   120  func (m *Attribute) GetBoolVal() bool {
   121  	if x, ok := m.GetValue().(*Attribute_BoolVal); ok {
   122  		return x.BoolVal
   123  	}
   124  	return false
   125  }
   126  
   127  func (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.
   135  func (*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  
   144  func init() {
   145  	proto.RegisterType((*Attribute)(nil), "hashicorp.nomad.plugins.shared.structs.Attribute")
   146  }
   147  
   148  func init() {
   149  	proto.RegisterFile("plugins/shared/structs/proto/attribute.proto", fileDescriptor_5b30c64b64565493)
   150  }
   151  
   152  var 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  }