Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 1 | // Code generated by protoc-gen-go. DO NOT EDIT. |
| 2 | // source: dmi/hw_management_service.proto |
| 3 | |
| 4 | package dmi |
| 5 | |
| 6 | import ( |
| 7 | context "context" |
| 8 | fmt "fmt" |
| 9 | proto "github.com/golang/protobuf/proto" |
| 10 | grpc "google.golang.org/grpc" |
| 11 | math "math" |
| 12 | ) |
| 13 | |
| 14 | // Reference imports to suppress errors if they are not otherwise used. |
| 15 | var _ = proto.Marshal |
| 16 | var _ = fmt.Errorf |
| 17 | var _ = math.Inf |
| 18 | |
| 19 | // This is a compile-time assertion to ensure that this generated file |
| 20 | // is compatible with the proto package it is being compiled against. |
| 21 | // A compilation error at this line likely means your copy of the |
| 22 | // proto package needs to be updated. |
| 23 | const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package |
| 24 | |
| 25 | type PhysicalInventoryRequest struct { |
| 26 | DeviceUuid *Uuid `protobuf:"bytes,1,opt,name=device_uuid,json=deviceUuid,proto3" json:"device_uuid,omitempty"` |
| 27 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 28 | XXX_unrecognized []byte `json:"-"` |
| 29 | XXX_sizecache int32 `json:"-"` |
| 30 | } |
| 31 | |
| 32 | func (m *PhysicalInventoryRequest) Reset() { *m = PhysicalInventoryRequest{} } |
| 33 | func (m *PhysicalInventoryRequest) String() string { return proto.CompactTextString(m) } |
| 34 | func (*PhysicalInventoryRequest) ProtoMessage() {} |
| 35 | func (*PhysicalInventoryRequest) Descriptor() ([]byte, []int) { |
| 36 | return fileDescriptor_eae902e73066286d, []int{0} |
| 37 | } |
| 38 | |
| 39 | func (m *PhysicalInventoryRequest) XXX_Unmarshal(b []byte) error { |
| 40 | return xxx_messageInfo_PhysicalInventoryRequest.Unmarshal(m, b) |
| 41 | } |
| 42 | func (m *PhysicalInventoryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 43 | return xxx_messageInfo_PhysicalInventoryRequest.Marshal(b, m, deterministic) |
| 44 | } |
| 45 | func (m *PhysicalInventoryRequest) XXX_Merge(src proto.Message) { |
| 46 | xxx_messageInfo_PhysicalInventoryRequest.Merge(m, src) |
| 47 | } |
| 48 | func (m *PhysicalInventoryRequest) XXX_Size() int { |
| 49 | return xxx_messageInfo_PhysicalInventoryRequest.Size(m) |
| 50 | } |
| 51 | func (m *PhysicalInventoryRequest) XXX_DiscardUnknown() { |
| 52 | xxx_messageInfo_PhysicalInventoryRequest.DiscardUnknown(m) |
| 53 | } |
| 54 | |
| 55 | var xxx_messageInfo_PhysicalInventoryRequest proto.InternalMessageInfo |
| 56 | |
| 57 | func (m *PhysicalInventoryRequest) GetDeviceUuid() *Uuid { |
| 58 | if m != nil { |
| 59 | return m.DeviceUuid |
| 60 | } |
| 61 | return nil |
| 62 | } |
| 63 | |
| 64 | type PhysicalInventoryResponse struct { |
| 65 | Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=dmi.Status" json:"status,omitempty"` |
| 66 | Reason Reason `protobuf:"varint,2,opt,name=reason,proto3,enum=dmi.Reason" json:"reason,omitempty"` |
| 67 | Inventory *Hardware `protobuf:"bytes,3,opt,name=inventory,proto3" json:"inventory,omitempty"` |
| 68 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 69 | XXX_unrecognized []byte `json:"-"` |
| 70 | XXX_sizecache int32 `json:"-"` |
| 71 | } |
| 72 | |
| 73 | func (m *PhysicalInventoryResponse) Reset() { *m = PhysicalInventoryResponse{} } |
| 74 | func (m *PhysicalInventoryResponse) String() string { return proto.CompactTextString(m) } |
| 75 | func (*PhysicalInventoryResponse) ProtoMessage() {} |
| 76 | func (*PhysicalInventoryResponse) Descriptor() ([]byte, []int) { |
| 77 | return fileDescriptor_eae902e73066286d, []int{1} |
| 78 | } |
| 79 | |
| 80 | func (m *PhysicalInventoryResponse) XXX_Unmarshal(b []byte) error { |
| 81 | return xxx_messageInfo_PhysicalInventoryResponse.Unmarshal(m, b) |
| 82 | } |
| 83 | func (m *PhysicalInventoryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 84 | return xxx_messageInfo_PhysicalInventoryResponse.Marshal(b, m, deterministic) |
| 85 | } |
| 86 | func (m *PhysicalInventoryResponse) XXX_Merge(src proto.Message) { |
| 87 | xxx_messageInfo_PhysicalInventoryResponse.Merge(m, src) |
| 88 | } |
| 89 | func (m *PhysicalInventoryResponse) XXX_Size() int { |
| 90 | return xxx_messageInfo_PhysicalInventoryResponse.Size(m) |
| 91 | } |
| 92 | func (m *PhysicalInventoryResponse) XXX_DiscardUnknown() { |
| 93 | xxx_messageInfo_PhysicalInventoryResponse.DiscardUnknown(m) |
| 94 | } |
| 95 | |
| 96 | var xxx_messageInfo_PhysicalInventoryResponse proto.InternalMessageInfo |
| 97 | |
| 98 | func (m *PhysicalInventoryResponse) GetStatus() Status { |
| 99 | if m != nil { |
| 100 | return m.Status |
| 101 | } |
| 102 | return Status_UNDEFINED_STATUS |
| 103 | } |
| 104 | |
| 105 | func (m *PhysicalInventoryResponse) GetReason() Reason { |
| 106 | if m != nil { |
| 107 | return m.Reason |
| 108 | } |
| 109 | return Reason_UNDEFINED_REASON |
| 110 | } |
| 111 | |
| 112 | func (m *PhysicalInventoryResponse) GetInventory() *Hardware { |
| 113 | if m != nil { |
| 114 | return m.Inventory |
| 115 | } |
| 116 | return nil |
| 117 | } |
| 118 | |
| 119 | type HWComponentInfoGetRequest struct { |
| 120 | DeviceUuid *Uuid `protobuf:"bytes,1,opt,name=device_uuid,json=deviceUuid,proto3" json:"device_uuid,omitempty"` |
| 121 | ComponentUuid *Uuid `protobuf:"bytes,2,opt,name=component_uuid,json=componentUuid,proto3" json:"component_uuid,omitempty"` |
| 122 | ComponentName string `protobuf:"bytes,3,opt,name=component_name,json=componentName,proto3" json:"component_name,omitempty"` |
| 123 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 124 | XXX_unrecognized []byte `json:"-"` |
| 125 | XXX_sizecache int32 `json:"-"` |
| 126 | } |
| 127 | |
| 128 | func (m *HWComponentInfoGetRequest) Reset() { *m = HWComponentInfoGetRequest{} } |
| 129 | func (m *HWComponentInfoGetRequest) String() string { return proto.CompactTextString(m) } |
| 130 | func (*HWComponentInfoGetRequest) ProtoMessage() {} |
| 131 | func (*HWComponentInfoGetRequest) Descriptor() ([]byte, []int) { |
| 132 | return fileDescriptor_eae902e73066286d, []int{2} |
| 133 | } |
| 134 | |
| 135 | func (m *HWComponentInfoGetRequest) XXX_Unmarshal(b []byte) error { |
| 136 | return xxx_messageInfo_HWComponentInfoGetRequest.Unmarshal(m, b) |
| 137 | } |
| 138 | func (m *HWComponentInfoGetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 139 | return xxx_messageInfo_HWComponentInfoGetRequest.Marshal(b, m, deterministic) |
| 140 | } |
| 141 | func (m *HWComponentInfoGetRequest) XXX_Merge(src proto.Message) { |
| 142 | xxx_messageInfo_HWComponentInfoGetRequest.Merge(m, src) |
| 143 | } |
| 144 | func (m *HWComponentInfoGetRequest) XXX_Size() int { |
| 145 | return xxx_messageInfo_HWComponentInfoGetRequest.Size(m) |
| 146 | } |
| 147 | func (m *HWComponentInfoGetRequest) XXX_DiscardUnknown() { |
| 148 | xxx_messageInfo_HWComponentInfoGetRequest.DiscardUnknown(m) |
| 149 | } |
| 150 | |
| 151 | var xxx_messageInfo_HWComponentInfoGetRequest proto.InternalMessageInfo |
| 152 | |
| 153 | func (m *HWComponentInfoGetRequest) GetDeviceUuid() *Uuid { |
| 154 | if m != nil { |
| 155 | return m.DeviceUuid |
| 156 | } |
| 157 | return nil |
| 158 | } |
| 159 | |
| 160 | func (m *HWComponentInfoGetRequest) GetComponentUuid() *Uuid { |
| 161 | if m != nil { |
| 162 | return m.ComponentUuid |
| 163 | } |
| 164 | return nil |
| 165 | } |
| 166 | |
| 167 | func (m *HWComponentInfoGetRequest) GetComponentName() string { |
| 168 | if m != nil { |
| 169 | return m.ComponentName |
| 170 | } |
| 171 | return "" |
| 172 | } |
| 173 | |
| 174 | type HWComponentInfoSetRequest struct { |
| 175 | DeviceUuid *Uuid `protobuf:"bytes,1,opt,name=device_uuid,json=deviceUuid,proto3" json:"device_uuid,omitempty"` |
| 176 | ComponentUuid *Uuid `protobuf:"bytes,2,opt,name=component_uuid,json=componentUuid,proto3" json:"component_uuid,omitempty"` |
| 177 | ComponentName string `protobuf:"bytes,3,opt,name=component_name,json=componentName,proto3" json:"component_name,omitempty"` |
| 178 | Changes *ModifiableComponent `protobuf:"bytes,4,opt,name=changes,proto3" json:"changes,omitempty"` |
| 179 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 180 | XXX_unrecognized []byte `json:"-"` |
| 181 | XXX_sizecache int32 `json:"-"` |
| 182 | } |
| 183 | |
| 184 | func (m *HWComponentInfoSetRequest) Reset() { *m = HWComponentInfoSetRequest{} } |
| 185 | func (m *HWComponentInfoSetRequest) String() string { return proto.CompactTextString(m) } |
| 186 | func (*HWComponentInfoSetRequest) ProtoMessage() {} |
| 187 | func (*HWComponentInfoSetRequest) Descriptor() ([]byte, []int) { |
| 188 | return fileDescriptor_eae902e73066286d, []int{3} |
| 189 | } |
| 190 | |
| 191 | func (m *HWComponentInfoSetRequest) XXX_Unmarshal(b []byte) error { |
| 192 | return xxx_messageInfo_HWComponentInfoSetRequest.Unmarshal(m, b) |
| 193 | } |
| 194 | func (m *HWComponentInfoSetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 195 | return xxx_messageInfo_HWComponentInfoSetRequest.Marshal(b, m, deterministic) |
| 196 | } |
| 197 | func (m *HWComponentInfoSetRequest) XXX_Merge(src proto.Message) { |
| 198 | xxx_messageInfo_HWComponentInfoSetRequest.Merge(m, src) |
| 199 | } |
| 200 | func (m *HWComponentInfoSetRequest) XXX_Size() int { |
| 201 | return xxx_messageInfo_HWComponentInfoSetRequest.Size(m) |
| 202 | } |
| 203 | func (m *HWComponentInfoSetRequest) XXX_DiscardUnknown() { |
| 204 | xxx_messageInfo_HWComponentInfoSetRequest.DiscardUnknown(m) |
| 205 | } |
| 206 | |
| 207 | var xxx_messageInfo_HWComponentInfoSetRequest proto.InternalMessageInfo |
| 208 | |
| 209 | func (m *HWComponentInfoSetRequest) GetDeviceUuid() *Uuid { |
| 210 | if m != nil { |
| 211 | return m.DeviceUuid |
| 212 | } |
| 213 | return nil |
| 214 | } |
| 215 | |
| 216 | func (m *HWComponentInfoSetRequest) GetComponentUuid() *Uuid { |
| 217 | if m != nil { |
| 218 | return m.ComponentUuid |
| 219 | } |
| 220 | return nil |
| 221 | } |
| 222 | |
| 223 | func (m *HWComponentInfoSetRequest) GetComponentName() string { |
| 224 | if m != nil { |
| 225 | return m.ComponentName |
| 226 | } |
| 227 | return "" |
| 228 | } |
| 229 | |
| 230 | func (m *HWComponentInfoSetRequest) GetChanges() *ModifiableComponent { |
| 231 | if m != nil { |
| 232 | return m.Changes |
| 233 | } |
| 234 | return nil |
| 235 | } |
| 236 | |
| 237 | type HWComponentInfoSetResponse struct { |
| 238 | Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=dmi.Status" json:"status,omitempty"` |
| 239 | Reason Reason `protobuf:"varint,2,opt,name=reason,proto3,enum=dmi.Reason" json:"reason,omitempty"` |
| 240 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 241 | XXX_unrecognized []byte `json:"-"` |
| 242 | XXX_sizecache int32 `json:"-"` |
| 243 | } |
| 244 | |
| 245 | func (m *HWComponentInfoSetResponse) Reset() { *m = HWComponentInfoSetResponse{} } |
| 246 | func (m *HWComponentInfoSetResponse) String() string { return proto.CompactTextString(m) } |
| 247 | func (*HWComponentInfoSetResponse) ProtoMessage() {} |
| 248 | func (*HWComponentInfoSetResponse) Descriptor() ([]byte, []int) { |
| 249 | return fileDescriptor_eae902e73066286d, []int{4} |
| 250 | } |
| 251 | |
| 252 | func (m *HWComponentInfoSetResponse) XXX_Unmarshal(b []byte) error { |
| 253 | return xxx_messageInfo_HWComponentInfoSetResponse.Unmarshal(m, b) |
| 254 | } |
| 255 | func (m *HWComponentInfoSetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 256 | return xxx_messageInfo_HWComponentInfoSetResponse.Marshal(b, m, deterministic) |
| 257 | } |
| 258 | func (m *HWComponentInfoSetResponse) XXX_Merge(src proto.Message) { |
| 259 | xxx_messageInfo_HWComponentInfoSetResponse.Merge(m, src) |
| 260 | } |
| 261 | func (m *HWComponentInfoSetResponse) XXX_Size() int { |
| 262 | return xxx_messageInfo_HWComponentInfoSetResponse.Size(m) |
| 263 | } |
| 264 | func (m *HWComponentInfoSetResponse) XXX_DiscardUnknown() { |
| 265 | xxx_messageInfo_HWComponentInfoSetResponse.DiscardUnknown(m) |
| 266 | } |
| 267 | |
| 268 | var xxx_messageInfo_HWComponentInfoSetResponse proto.InternalMessageInfo |
| 269 | |
| 270 | func (m *HWComponentInfoSetResponse) GetStatus() Status { |
| 271 | if m != nil { |
| 272 | return m.Status |
| 273 | } |
| 274 | return Status_UNDEFINED_STATUS |
| 275 | } |
| 276 | |
| 277 | func (m *HWComponentInfoSetResponse) GetReason() Reason { |
| 278 | if m != nil { |
| 279 | return m.Reason |
| 280 | } |
| 281 | return Reason_UNDEFINED_REASON |
| 282 | } |
| 283 | |
| 284 | type StartManagingDeviceResponse struct { |
| 285 | Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=dmi.Status" json:"status,omitempty"` |
| 286 | Reason Reason `protobuf:"varint,2,opt,name=reason,proto3,enum=dmi.Reason" json:"reason,omitempty"` |
| 287 | DeviceUuid *Uuid `protobuf:"bytes,3,opt,name=device_uuid,json=deviceUuid,proto3" json:"device_uuid,omitempty"` |
| 288 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 289 | XXX_unrecognized []byte `json:"-"` |
| 290 | XXX_sizecache int32 `json:"-"` |
| 291 | } |
| 292 | |
| 293 | func (m *StartManagingDeviceResponse) Reset() { *m = StartManagingDeviceResponse{} } |
| 294 | func (m *StartManagingDeviceResponse) String() string { return proto.CompactTextString(m) } |
| 295 | func (*StartManagingDeviceResponse) ProtoMessage() {} |
| 296 | func (*StartManagingDeviceResponse) Descriptor() ([]byte, []int) { |
| 297 | return fileDescriptor_eae902e73066286d, []int{5} |
| 298 | } |
| 299 | |
| 300 | func (m *StartManagingDeviceResponse) XXX_Unmarshal(b []byte) error { |
| 301 | return xxx_messageInfo_StartManagingDeviceResponse.Unmarshal(m, b) |
| 302 | } |
| 303 | func (m *StartManagingDeviceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 304 | return xxx_messageInfo_StartManagingDeviceResponse.Marshal(b, m, deterministic) |
| 305 | } |
| 306 | func (m *StartManagingDeviceResponse) XXX_Merge(src proto.Message) { |
| 307 | xxx_messageInfo_StartManagingDeviceResponse.Merge(m, src) |
| 308 | } |
| 309 | func (m *StartManagingDeviceResponse) XXX_Size() int { |
| 310 | return xxx_messageInfo_StartManagingDeviceResponse.Size(m) |
| 311 | } |
| 312 | func (m *StartManagingDeviceResponse) XXX_DiscardUnknown() { |
| 313 | xxx_messageInfo_StartManagingDeviceResponse.DiscardUnknown(m) |
| 314 | } |
| 315 | |
| 316 | var xxx_messageInfo_StartManagingDeviceResponse proto.InternalMessageInfo |
| 317 | |
| 318 | func (m *StartManagingDeviceResponse) GetStatus() Status { |
| 319 | if m != nil { |
| 320 | return m.Status |
| 321 | } |
| 322 | return Status_UNDEFINED_STATUS |
| 323 | } |
| 324 | |
| 325 | func (m *StartManagingDeviceResponse) GetReason() Reason { |
| 326 | if m != nil { |
| 327 | return m.Reason |
| 328 | } |
| 329 | return Reason_UNDEFINED_REASON |
| 330 | } |
| 331 | |
| 332 | func (m *StartManagingDeviceResponse) GetDeviceUuid() *Uuid { |
| 333 | if m != nil { |
| 334 | return m.DeviceUuid |
| 335 | } |
| 336 | return nil |
| 337 | } |
| 338 | |
| 339 | func init() { |
| 340 | proto.RegisterType((*PhysicalInventoryRequest)(nil), "dmi.PhysicalInventoryRequest") |
| 341 | proto.RegisterType((*PhysicalInventoryResponse)(nil), "dmi.PhysicalInventoryResponse") |
| 342 | proto.RegisterType((*HWComponentInfoGetRequest)(nil), "dmi.HWComponentInfoGetRequest") |
| 343 | proto.RegisterType((*HWComponentInfoSetRequest)(nil), "dmi.HWComponentInfoSetRequest") |
| 344 | proto.RegisterType((*HWComponentInfoSetResponse)(nil), "dmi.HWComponentInfoSetResponse") |
| 345 | proto.RegisterType((*StartManagingDeviceResponse)(nil), "dmi.StartManagingDeviceResponse") |
| 346 | } |
| 347 | |
| 348 | func init() { proto.RegisterFile("dmi/hw_management_service.proto", fileDescriptor_eae902e73066286d) } |
| 349 | |
| 350 | var fileDescriptor_eae902e73066286d = []byte{ |
| 351 | // 488 bytes of a gzipped FileDescriptorProto |
| 352 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x54, 0xd1, 0x6a, 0x13, 0x41, |
| 353 | 0x14, 0x65, 0x13, 0xa9, 0x64, 0x62, 0x03, 0x8e, 0x3e, 0x6c, 0x56, 0xb4, 0x65, 0x45, 0x10, 0xa5, |
| 354 | 0xd9, 0x90, 0x3e, 0x89, 0x6f, 0x2a, 0x4d, 0xfa, 0x90, 0x22, 0xbb, 0x94, 0x80, 0x2f, 0x61, 0xb2, |
| 355 | 0x73, 0xb3, 0x19, 0xe8, 0xcc, 0xc4, 0x99, 0xd9, 0x94, 0xfe, 0x86, 0xfe, 0x80, 0x1f, 0xe5, 0xab, |
| 356 | 0xff, 0x22, 0x3b, 0xd3, 0xdd, 0xc4, 0x24, 0x2b, 0x22, 0x0a, 0x7d, 0x4b, 0xee, 0x39, 0xf7, 0x70, |
| 357 | 0xee, 0xde, 0x7b, 0x06, 0x1d, 0x51, 0xce, 0xa2, 0xc5, 0xf5, 0x94, 0x13, 0x41, 0x32, 0xe0, 0x20, |
| 358 | 0xcc, 0x54, 0x83, 0x5a, 0xb1, 0x14, 0x7a, 0x4b, 0x25, 0x8d, 0xc4, 0x4d, 0xca, 0x59, 0xf0, 0xb0, |
| 359 | 0x60, 0xa5, 0x92, 0x73, 0x29, 0xb4, 0xab, 0x07, 0x0f, 0x5c, 0xa3, 0xfb, 0x17, 0x9e, 0x21, 0xff, |
| 360 | 0xe3, 0xe2, 0x46, 0xb3, 0x94, 0x5c, 0x9d, 0x8b, 0x15, 0x08, 0x23, 0xd5, 0x4d, 0x0c, 0x9f, 0x73, |
| 361 | 0xd0, 0x06, 0xbf, 0x42, 0x6d, 0x0a, 0x85, 0xe2, 0x34, 0xcf, 0x19, 0xf5, 0xbd, 0x63, 0xef, 0x65, |
| 362 | 0x7b, 0xd0, 0xea, 0x51, 0xce, 0x7a, 0x97, 0x39, 0xa3, 0x31, 0x72, 0x68, 0xf1, 0x3b, 0xfc, 0xe2, |
| 363 | 0xa1, 0xee, 0x1e, 0x21, 0xbd, 0x94, 0x42, 0x03, 0x7e, 0x8e, 0x0e, 0xb4, 0x21, 0x26, 0xd7, 0x56, |
| 364 | 0xa4, 0x33, 0x68, 0x5b, 0x91, 0xc4, 0x96, 0xe2, 0x5b, 0xa8, 0x20, 0x29, 0x20, 0x5a, 0x0a, 0xbf, |
| 365 | 0xb1, 0x41, 0x8a, 0x6d, 0x29, 0xbe, 0x85, 0xf0, 0x6b, 0xd4, 0x62, 0xa5, 0xbc, 0xdf, 0xb4, 0x8e, |
| 366 | 0x0e, 0x2d, 0x6f, 0x44, 0x14, 0xbd, 0x26, 0x0a, 0xe2, 0x35, 0x1e, 0x7e, 0xf3, 0x50, 0x77, 0x34, |
| 367 | 0x79, 0x2f, 0xf9, 0x52, 0x0a, 0x10, 0xe6, 0x5c, 0xcc, 0xe5, 0x10, 0xcc, 0x5f, 0x8c, 0x87, 0xfb, |
| 368 | 0xa8, 0x93, 0x96, 0x32, 0x8e, 0xde, 0xd8, 0xa6, 0x1f, 0x56, 0x04, 0xdb, 0xf1, 0x62, 0xb3, 0x43, |
| 369 | 0x10, 0x0e, 0xd6, 0x6d, 0x6b, 0x83, 0x76, 0x41, 0x38, 0x84, 0xdf, 0x77, 0x2d, 0x26, 0x77, 0xcb, |
| 370 | 0x22, 0x1e, 0xa0, 0xfb, 0xe9, 0x82, 0x88, 0x0c, 0xb4, 0x7f, 0xcf, 0x2a, 0xfa, 0x56, 0x71, 0x2c, |
| 371 | 0x29, 0x9b, 0x33, 0x32, 0xbb, 0x82, 0xca, 0x7d, 0x5c, 0x12, 0xc3, 0x39, 0x0a, 0xf6, 0x4d, 0xf5, |
| 372 | 0xaf, 0xcf, 0x21, 0xfc, 0xea, 0xa1, 0x27, 0x89, 0x21, 0xca, 0x8c, 0x8b, 0x18, 0x30, 0x91, 0x7d, |
| 373 | 0xb0, 0x1f, 0xe4, 0x3f, 0x1c, 0xde, 0xd6, 0x2a, 0x9a, 0xbf, 0x59, 0xc5, 0xe0, 0x47, 0x03, 0x75, |
| 374 | 0x2f, 0x88, 0x61, 0x2b, 0x18, 0x4d, 0xc6, 0x55, 0x3e, 0x13, 0x17, 0x4f, 0x3c, 0x42, 0x8f, 0xf6, |
| 375 | 0x58, 0xc6, 0xbf, 0x9e, 0x71, 0x70, 0x5c, 0x3a, 0xad, 0x9b, 0xad, 0xef, 0xe1, 0x09, 0x7a, 0x3c, |
| 376 | 0x04, 0xb3, 0x13, 0x3b, 0xfc, 0xd4, 0xf6, 0xd6, 0xe5, 0x3a, 0x78, 0x56, 0x07, 0x57, 0xc2, 0x67, |
| 377 | 0x08, 0x0f, 0xc1, 0x6c, 0x6d, 0x10, 0xbb, 0xbe, 0xda, 0x40, 0x05, 0x1d, 0x8b, 0x57, 0x68, 0xdf, |
| 378 | 0xc3, 0x97, 0x08, 0x27, 0x7f, 0xa8, 0xb3, 0xbe, 0xfa, 0xe0, 0xa8, 0x16, 0x77, 0x06, 0xdf, 0xbd, |
| 379 | 0xfd, 0xf4, 0x26, 0x63, 0x66, 0x91, 0xcf, 0x7a, 0xa9, 0xe4, 0x91, 0x5c, 0x82, 0x48, 0xa5, 0xa2, |
| 380 | 0x91, 0xdb, 0xc0, 0xc9, 0xfa, 0x45, 0x3c, 0x61, 0xc2, 0x80, 0x9a, 0x93, 0x14, 0xa2, 0xd5, 0x69, |
| 381 | 0x94, 0xc9, 0x88, 0x72, 0x36, 0x3b, 0xb0, 0x0f, 0xdf, 0xe9, 0xcf, 0x00, 0x00, 0x00, 0xff, 0xff, |
| 382 | 0x23, 0x94, 0xd9, 0x06, 0x41, 0x05, 0x00, 0x00, |
| 383 | } |
| 384 | |
| 385 | // Reference imports to suppress errors if they are not otherwise used. |
| 386 | var _ context.Context |
| 387 | var _ grpc.ClientConn |
| 388 | |
| 389 | // This is a compile-time assertion to ensure that this generated file |
| 390 | // is compatible with the grpc package it is being compiled against. |
| 391 | const _ = grpc.SupportPackageIsVersion4 |
| 392 | |
| 393 | // NativeHWManagementServiceClient is the client API for NativeHWManagementService service. |
| 394 | // |
| 395 | // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| 396 | type NativeHWManagementServiceClient interface { |
| 397 | // Initializes context for a device and sets up required states |
| 398 | StartManagingDevice(ctx context.Context, in *Hardware, opts ...grpc.CallOption) (NativeHWManagementService_StartManagingDeviceClient, error) |
| 399 | // Get the HW inventory details of the Device |
| 400 | GetPhysicalInventory(ctx context.Context, in *PhysicalInventoryRequest, opts ...grpc.CallOption) (NativeHWManagementService_GetPhysicalInventoryClient, error) |
| 401 | // Get the details of a particular HW component |
| 402 | GetHWComponentInfo(ctx context.Context, in *HWComponentInfoGetRequest, opts ...grpc.CallOption) (NativeHWManagementService_GetHWComponentInfoClient, error) |
| 403 | // Sets the permissible attributes of a HW component |
| 404 | SetHWComponentInfo(ctx context.Context, in *HWComponentInfoSetRequest, opts ...grpc.CallOption) (*HWComponentInfoSetResponse, error) |
| 405 | } |
| 406 | |
| 407 | type nativeHWManagementServiceClient struct { |
| 408 | cc *grpc.ClientConn |
| 409 | } |
| 410 | |
| 411 | func NewNativeHWManagementServiceClient(cc *grpc.ClientConn) NativeHWManagementServiceClient { |
| 412 | return &nativeHWManagementServiceClient{cc} |
| 413 | } |
| 414 | |
| 415 | func (c *nativeHWManagementServiceClient) StartManagingDevice(ctx context.Context, in *Hardware, opts ...grpc.CallOption) (NativeHWManagementService_StartManagingDeviceClient, error) { |
| 416 | stream, err := c.cc.NewStream(ctx, &_NativeHWManagementService_serviceDesc.Streams[0], "/dmi.NativeHWManagementService/StartManagingDevice", opts...) |
| 417 | if err != nil { |
| 418 | return nil, err |
| 419 | } |
| 420 | x := &nativeHWManagementServiceStartManagingDeviceClient{stream} |
| 421 | if err := x.ClientStream.SendMsg(in); err != nil { |
| 422 | return nil, err |
| 423 | } |
| 424 | if err := x.ClientStream.CloseSend(); err != nil { |
| 425 | return nil, err |
| 426 | } |
| 427 | return x, nil |
| 428 | } |
| 429 | |
| 430 | type NativeHWManagementService_StartManagingDeviceClient interface { |
| 431 | Recv() (*StartManagingDeviceResponse, error) |
| 432 | grpc.ClientStream |
| 433 | } |
| 434 | |
| 435 | type nativeHWManagementServiceStartManagingDeviceClient struct { |
| 436 | grpc.ClientStream |
| 437 | } |
| 438 | |
| 439 | func (x *nativeHWManagementServiceStartManagingDeviceClient) Recv() (*StartManagingDeviceResponse, error) { |
| 440 | m := new(StartManagingDeviceResponse) |
| 441 | if err := x.ClientStream.RecvMsg(m); err != nil { |
| 442 | return nil, err |
| 443 | } |
| 444 | return m, nil |
| 445 | } |
| 446 | |
| 447 | func (c *nativeHWManagementServiceClient) GetPhysicalInventory(ctx context.Context, in *PhysicalInventoryRequest, opts ...grpc.CallOption) (NativeHWManagementService_GetPhysicalInventoryClient, error) { |
| 448 | stream, err := c.cc.NewStream(ctx, &_NativeHWManagementService_serviceDesc.Streams[1], "/dmi.NativeHWManagementService/GetPhysicalInventory", opts...) |
| 449 | if err != nil { |
| 450 | return nil, err |
| 451 | } |
| 452 | x := &nativeHWManagementServiceGetPhysicalInventoryClient{stream} |
| 453 | if err := x.ClientStream.SendMsg(in); err != nil { |
| 454 | return nil, err |
| 455 | } |
| 456 | if err := x.ClientStream.CloseSend(); err != nil { |
| 457 | return nil, err |
| 458 | } |
| 459 | return x, nil |
| 460 | } |
| 461 | |
| 462 | type NativeHWManagementService_GetPhysicalInventoryClient interface { |
| 463 | Recv() (*PhysicalInventoryResponse, error) |
| 464 | grpc.ClientStream |
| 465 | } |
| 466 | |
| 467 | type nativeHWManagementServiceGetPhysicalInventoryClient struct { |
| 468 | grpc.ClientStream |
| 469 | } |
| 470 | |
| 471 | func (x *nativeHWManagementServiceGetPhysicalInventoryClient) Recv() (*PhysicalInventoryResponse, error) { |
| 472 | m := new(PhysicalInventoryResponse) |
| 473 | if err := x.ClientStream.RecvMsg(m); err != nil { |
| 474 | return nil, err |
| 475 | } |
| 476 | return m, nil |
| 477 | } |
| 478 | |
| 479 | func (c *nativeHWManagementServiceClient) GetHWComponentInfo(ctx context.Context, in *HWComponentInfoGetRequest, opts ...grpc.CallOption) (NativeHWManagementService_GetHWComponentInfoClient, error) { |
| 480 | stream, err := c.cc.NewStream(ctx, &_NativeHWManagementService_serviceDesc.Streams[2], "/dmi.NativeHWManagementService/GetHWComponentInfo", opts...) |
| 481 | if err != nil { |
| 482 | return nil, err |
| 483 | } |
| 484 | x := &nativeHWManagementServiceGetHWComponentInfoClient{stream} |
| 485 | if err := x.ClientStream.SendMsg(in); err != nil { |
| 486 | return nil, err |
| 487 | } |
| 488 | if err := x.ClientStream.CloseSend(); err != nil { |
| 489 | return nil, err |
| 490 | } |
| 491 | return x, nil |
| 492 | } |
| 493 | |
| 494 | type NativeHWManagementService_GetHWComponentInfoClient interface { |
| 495 | Recv() (*Component, error) |
| 496 | grpc.ClientStream |
| 497 | } |
| 498 | |
| 499 | type nativeHWManagementServiceGetHWComponentInfoClient struct { |
| 500 | grpc.ClientStream |
| 501 | } |
| 502 | |
| 503 | func (x *nativeHWManagementServiceGetHWComponentInfoClient) Recv() (*Component, error) { |
| 504 | m := new(Component) |
| 505 | if err := x.ClientStream.RecvMsg(m); err != nil { |
| 506 | return nil, err |
| 507 | } |
| 508 | return m, nil |
| 509 | } |
| 510 | |
| 511 | func (c *nativeHWManagementServiceClient) SetHWComponentInfo(ctx context.Context, in *HWComponentInfoSetRequest, opts ...grpc.CallOption) (*HWComponentInfoSetResponse, error) { |
| 512 | out := new(HWComponentInfoSetResponse) |
| 513 | err := c.cc.Invoke(ctx, "/dmi.NativeHWManagementService/SetHWComponentInfo", in, out, opts...) |
| 514 | if err != nil { |
| 515 | return nil, err |
| 516 | } |
| 517 | return out, nil |
| 518 | } |
| 519 | |
| 520 | // NativeHWManagementServiceServer is the server API for NativeHWManagementService service. |
| 521 | type NativeHWManagementServiceServer interface { |
| 522 | // Initializes context for a device and sets up required states |
| 523 | StartManagingDevice(*Hardware, NativeHWManagementService_StartManagingDeviceServer) error |
| 524 | // Get the HW inventory details of the Device |
| 525 | GetPhysicalInventory(*PhysicalInventoryRequest, NativeHWManagementService_GetPhysicalInventoryServer) error |
| 526 | // Get the details of a particular HW component |
| 527 | GetHWComponentInfo(*HWComponentInfoGetRequest, NativeHWManagementService_GetHWComponentInfoServer) error |
| 528 | // Sets the permissible attributes of a HW component |
| 529 | SetHWComponentInfo(context.Context, *HWComponentInfoSetRequest) (*HWComponentInfoSetResponse, error) |
| 530 | } |
| 531 | |
| 532 | func RegisterNativeHWManagementServiceServer(s *grpc.Server, srv NativeHWManagementServiceServer) { |
| 533 | s.RegisterService(&_NativeHWManagementService_serviceDesc, srv) |
| 534 | } |
| 535 | |
| 536 | func _NativeHWManagementService_StartManagingDevice_Handler(srv interface{}, stream grpc.ServerStream) error { |
| 537 | m := new(Hardware) |
| 538 | if err := stream.RecvMsg(m); err != nil { |
| 539 | return err |
| 540 | } |
| 541 | return srv.(NativeHWManagementServiceServer).StartManagingDevice(m, &nativeHWManagementServiceStartManagingDeviceServer{stream}) |
| 542 | } |
| 543 | |
| 544 | type NativeHWManagementService_StartManagingDeviceServer interface { |
| 545 | Send(*StartManagingDeviceResponse) error |
| 546 | grpc.ServerStream |
| 547 | } |
| 548 | |
| 549 | type nativeHWManagementServiceStartManagingDeviceServer struct { |
| 550 | grpc.ServerStream |
| 551 | } |
| 552 | |
| 553 | func (x *nativeHWManagementServiceStartManagingDeviceServer) Send(m *StartManagingDeviceResponse) error { |
| 554 | return x.ServerStream.SendMsg(m) |
| 555 | } |
| 556 | |
| 557 | func _NativeHWManagementService_GetPhysicalInventory_Handler(srv interface{}, stream grpc.ServerStream) error { |
| 558 | m := new(PhysicalInventoryRequest) |
| 559 | if err := stream.RecvMsg(m); err != nil { |
| 560 | return err |
| 561 | } |
| 562 | return srv.(NativeHWManagementServiceServer).GetPhysicalInventory(m, &nativeHWManagementServiceGetPhysicalInventoryServer{stream}) |
| 563 | } |
| 564 | |
| 565 | type NativeHWManagementService_GetPhysicalInventoryServer interface { |
| 566 | Send(*PhysicalInventoryResponse) error |
| 567 | grpc.ServerStream |
| 568 | } |
| 569 | |
| 570 | type nativeHWManagementServiceGetPhysicalInventoryServer struct { |
| 571 | grpc.ServerStream |
| 572 | } |
| 573 | |
| 574 | func (x *nativeHWManagementServiceGetPhysicalInventoryServer) Send(m *PhysicalInventoryResponse) error { |
| 575 | return x.ServerStream.SendMsg(m) |
| 576 | } |
| 577 | |
| 578 | func _NativeHWManagementService_GetHWComponentInfo_Handler(srv interface{}, stream grpc.ServerStream) error { |
| 579 | m := new(HWComponentInfoGetRequest) |
| 580 | if err := stream.RecvMsg(m); err != nil { |
| 581 | return err |
| 582 | } |
| 583 | return srv.(NativeHWManagementServiceServer).GetHWComponentInfo(m, &nativeHWManagementServiceGetHWComponentInfoServer{stream}) |
| 584 | } |
| 585 | |
| 586 | type NativeHWManagementService_GetHWComponentInfoServer interface { |
| 587 | Send(*Component) error |
| 588 | grpc.ServerStream |
| 589 | } |
| 590 | |
| 591 | type nativeHWManagementServiceGetHWComponentInfoServer struct { |
| 592 | grpc.ServerStream |
| 593 | } |
| 594 | |
| 595 | func (x *nativeHWManagementServiceGetHWComponentInfoServer) Send(m *Component) error { |
| 596 | return x.ServerStream.SendMsg(m) |
| 597 | } |
| 598 | |
| 599 | func _NativeHWManagementService_SetHWComponentInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 600 | in := new(HWComponentInfoSetRequest) |
| 601 | if err := dec(in); err != nil { |
| 602 | return nil, err |
| 603 | } |
| 604 | if interceptor == nil { |
| 605 | return srv.(NativeHWManagementServiceServer).SetHWComponentInfo(ctx, in) |
| 606 | } |
| 607 | info := &grpc.UnaryServerInfo{ |
| 608 | Server: srv, |
| 609 | FullMethod: "/dmi.NativeHWManagementService/SetHWComponentInfo", |
| 610 | } |
| 611 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 612 | return srv.(NativeHWManagementServiceServer).SetHWComponentInfo(ctx, req.(*HWComponentInfoSetRequest)) |
| 613 | } |
| 614 | return interceptor(ctx, in, info, handler) |
| 615 | } |
| 616 | |
| 617 | var _NativeHWManagementService_serviceDesc = grpc.ServiceDesc{ |
| 618 | ServiceName: "dmi.NativeHWManagementService", |
| 619 | HandlerType: (*NativeHWManagementServiceServer)(nil), |
| 620 | Methods: []grpc.MethodDesc{ |
| 621 | { |
| 622 | MethodName: "SetHWComponentInfo", |
| 623 | Handler: _NativeHWManagementService_SetHWComponentInfo_Handler, |
| 624 | }, |
| 625 | }, |
| 626 | Streams: []grpc.StreamDesc{ |
| 627 | { |
| 628 | StreamName: "StartManagingDevice", |
| 629 | Handler: _NativeHWManagementService_StartManagingDevice_Handler, |
| 630 | ServerStreams: true, |
| 631 | }, |
| 632 | { |
| 633 | StreamName: "GetPhysicalInventory", |
| 634 | Handler: _NativeHWManagementService_GetPhysicalInventory_Handler, |
| 635 | ServerStreams: true, |
| 636 | }, |
| 637 | { |
| 638 | StreamName: "GetHWComponentInfo", |
| 639 | Handler: _NativeHWManagementService_GetHWComponentInfo_Handler, |
| 640 | ServerStreams: true, |
| 641 | }, |
| 642 | }, |
| 643 | Metadata: "dmi/hw_management_service.proto", |
| 644 | } |