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{ |
Amit Ghosh | 704462f | 2020-06-24 16:44:56 +0100 | [diff] [blame] | 351 | // 487 bytes of a gzipped FileDescriptorProto |
| 352 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x54, 0xd1, 0x8a, 0xd3, 0x40, |
| 353 | 0x14, 0x25, 0xad, 0xac, 0xf4, 0xd6, 0x2d, 0x38, 0xfa, 0x90, 0x46, 0x74, 0x97, 0x88, 0x20, 0xca, |
| 354 | 0x36, 0xa5, 0xfb, 0x24, 0xbe, 0xa9, 0x6c, 0xbb, 0x0f, 0x5d, 0x24, 0x61, 0x29, 0xf8, 0x52, 0xa6, |
| 355 | 0x99, 0xdb, 0x74, 0x60, 0x67, 0xa6, 0x66, 0x26, 0x5d, 0xf6, 0x37, 0xf4, 0x07, 0xfc, 0x28, 0x3f, |
| 356 | 0xc2, 0xcf, 0x90, 0xcc, 0x6c, 0xd3, 0xd2, 0x6d, 0x44, 0x44, 0xc1, 0xb7, 0xe4, 0x9e, 0x73, 0x0f, |
| 357 | 0xe7, 0xce, 0x9d, 0x33, 0x70, 0xc4, 0x04, 0x8f, 0x16, 0xd7, 0x53, 0x41, 0x25, 0xcd, 0x50, 0xa0, |
| 358 | 0x34, 0x53, 0x8d, 0xf9, 0x8a, 0xa7, 0xd8, 0x5b, 0xe6, 0xca, 0x28, 0xd2, 0x64, 0x82, 0x07, 0x0f, |
| 359 | 0x4b, 0x56, 0xaa, 0x84, 0x50, 0x52, 0xbb, 0x7a, 0xf0, 0xc0, 0x35, 0xba, 0xbf, 0xf0, 0x0c, 0xfc, |
| 360 | 0x8f, 0x8b, 0x1b, 0xcd, 0x53, 0x7a, 0x75, 0x2e, 0x57, 0x28, 0x8d, 0xca, 0x6f, 0x62, 0xfc, 0x5c, |
| 361 | 0xa0, 0x36, 0xe4, 0x15, 0xb4, 0x19, 0x96, 0x8a, 0xd3, 0xa2, 0xe0, 0xcc, 0xf7, 0x8e, 0xbd, 0x97, |
| 362 | 0xed, 0x41, 0xab, 0xc7, 0x04, 0xef, 0x5d, 0x16, 0x9c, 0xc5, 0xe0, 0xd0, 0xf2, 0x3b, 0xfc, 0xe2, |
| 363 | 0x41, 0x77, 0x8f, 0x90, 0x5e, 0x2a, 0xa9, 0x91, 0x3c, 0x87, 0x03, 0x6d, 0xa8, 0x29, 0xb4, 0x15, |
| 364 | 0xe9, 0x0c, 0xda, 0x56, 0x24, 0xb1, 0xa5, 0xf8, 0x16, 0x2a, 0x49, 0x39, 0x52, 0xad, 0xa4, 0xdf, |
| 365 | 0xd8, 0x22, 0xc5, 0xb6, 0x14, 0xdf, 0x42, 0xe4, 0x35, 0xb4, 0xf8, 0x5a, 0xde, 0x6f, 0x5a, 0x47, |
| 366 | 0x87, 0x96, 0x37, 0xa2, 0x39, 0xbb, 0xa6, 0x39, 0xc6, 0x1b, 0x3c, 0xfc, 0xe6, 0x41, 0x77, 0x34, |
| 367 | 0x79, 0xaf, 0xc4, 0x52, 0x49, 0x94, 0xe6, 0x5c, 0xce, 0xd5, 0x10, 0xcd, 0x1f, 0x8c, 0x47, 0xfa, |
| 368 | 0xd0, 0x49, 0xd7, 0x32, 0x8e, 0xde, 0xd8, 0xa5, 0x1f, 0x56, 0x04, 0xdb, 0xf1, 0x62, 0xbb, 0x43, |
| 369 | 0x52, 0x81, 0xd6, 0x6d, 0x6b, 0x8b, 0x76, 0x41, 0x05, 0x86, 0xdf, 0xef, 0x5a, 0x4c, 0xfe, 0x2f, |
| 370 | 0x8b, 0x64, 0x00, 0xf7, 0xd3, 0x05, 0x95, 0x19, 0x6a, 0xff, 0x9e, 0x55, 0xf4, 0xad, 0xe2, 0x58, |
| 371 | 0x31, 0x3e, 0xe7, 0x74, 0x76, 0x85, 0x95, 0xfb, 0x78, 0x4d, 0x0c, 0xe7, 0x10, 0xec, 0x9b, 0xea, |
| 372 | 0x6f, 0x5f, 0x87, 0xf0, 0xab, 0x07, 0x4f, 0x12, 0x43, 0x73, 0x33, 0x2e, 0x63, 0xc0, 0x65, 0xf6, |
| 373 | 0xc1, 0x1e, 0xc8, 0x3f, 0xb8, 0x78, 0x3b, 0xab, 0x68, 0xfe, 0x62, 0x15, 0x83, 0x1f, 0x0d, 0xe8, |
| 374 | 0x5e, 0x50, 0xc3, 0x57, 0x38, 0x9a, 0x8c, 0xab, 0x7c, 0x26, 0x2e, 0x9e, 0x24, 0x81, 0x47, 0x7b, |
| 375 | 0x2c, 0x93, 0xda, 0x53, 0x0d, 0x8e, 0xd7, 0xa6, 0xeb, 0xc6, 0xec, 0x7b, 0x64, 0x02, 0x8f, 0x87, |
| 376 | 0x68, 0xee, 0x24, 0x90, 0x3c, 0xb5, 0xbd, 0x75, 0x11, 0x0f, 0x9e, 0xd5, 0xc1, 0x95, 0xf0, 0x19, |
| 377 | 0x90, 0x21, 0x9a, 0x9d, 0x65, 0x12, 0xd7, 0x57, 0x9b, 0xad, 0xa0, 0x63, 0xf1, 0x0a, 0xed, 0x7b, |
| 378 | 0xe4, 0x12, 0x48, 0xf2, 0x9b, 0x3a, 0x9b, 0x00, 0x04, 0x47, 0xb5, 0xb8, 0x33, 0xf8, 0xee, 0xed, |
| 379 | 0xa7, 0x37, 0x19, 0x37, 0x8b, 0x62, 0xd6, 0x4b, 0x95, 0x88, 0xd4, 0x12, 0x65, 0xaa, 0x72, 0x16, |
| 380 | 0xb9, 0x65, 0x9c, 0x6c, 0x1e, 0xc7, 0x13, 0x2e, 0x0d, 0xe6, 0x73, 0x9a, 0x62, 0xb4, 0x3a, 0x8d, |
| 381 | 0x32, 0x15, 0x31, 0xc1, 0x67, 0x07, 0xf6, 0x0d, 0x3c, 0xfd, 0x19, 0x00, 0x00, 0xff, 0xff, 0xd3, |
| 382 | 0x67, 0x56, 0xf0, 0x4c, 0x05, 0x00, 0x00, |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 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 |
Amit Ghosh | 704462f | 2020-06-24 16:44:56 +0100 | [diff] [blame] | 398 | // In the call to StartManagingDevice, the fields of ModifiableComponent which are relevant |
| 399 | // and their meanings in this context is mentioned below: |
| 400 | // name = The unique name that needs to be assigned to this hardware; |
| 401 | // class = COMPONENT_TYPE_UNDEFINED; |
| 402 | // parent = nil; |
| 403 | // alias = Optional; |
| 404 | // asset_id = Optional; |
| 405 | // uri = IP Address of the Hardware; |
| 406 | StartManagingDevice(ctx context.Context, in *ModifiableComponent, opts ...grpc.CallOption) (NativeHWManagementService_StartManagingDeviceClient, error) |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 407 | // Get the HW inventory details of the Device |
| 408 | GetPhysicalInventory(ctx context.Context, in *PhysicalInventoryRequest, opts ...grpc.CallOption) (NativeHWManagementService_GetPhysicalInventoryClient, error) |
| 409 | // Get the details of a particular HW component |
| 410 | GetHWComponentInfo(ctx context.Context, in *HWComponentInfoGetRequest, opts ...grpc.CallOption) (NativeHWManagementService_GetHWComponentInfoClient, error) |
| 411 | // Sets the permissible attributes of a HW component |
| 412 | SetHWComponentInfo(ctx context.Context, in *HWComponentInfoSetRequest, opts ...grpc.CallOption) (*HWComponentInfoSetResponse, error) |
| 413 | } |
| 414 | |
| 415 | type nativeHWManagementServiceClient struct { |
| 416 | cc *grpc.ClientConn |
| 417 | } |
| 418 | |
| 419 | func NewNativeHWManagementServiceClient(cc *grpc.ClientConn) NativeHWManagementServiceClient { |
| 420 | return &nativeHWManagementServiceClient{cc} |
| 421 | } |
| 422 | |
Amit Ghosh | 704462f | 2020-06-24 16:44:56 +0100 | [diff] [blame] | 423 | func (c *nativeHWManagementServiceClient) StartManagingDevice(ctx context.Context, in *ModifiableComponent, opts ...grpc.CallOption) (NativeHWManagementService_StartManagingDeviceClient, error) { |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 424 | stream, err := c.cc.NewStream(ctx, &_NativeHWManagementService_serviceDesc.Streams[0], "/dmi.NativeHWManagementService/StartManagingDevice", opts...) |
| 425 | if err != nil { |
| 426 | return nil, err |
| 427 | } |
| 428 | x := &nativeHWManagementServiceStartManagingDeviceClient{stream} |
| 429 | if err := x.ClientStream.SendMsg(in); err != nil { |
| 430 | return nil, err |
| 431 | } |
| 432 | if err := x.ClientStream.CloseSend(); err != nil { |
| 433 | return nil, err |
| 434 | } |
| 435 | return x, nil |
| 436 | } |
| 437 | |
| 438 | type NativeHWManagementService_StartManagingDeviceClient interface { |
| 439 | Recv() (*StartManagingDeviceResponse, error) |
| 440 | grpc.ClientStream |
| 441 | } |
| 442 | |
| 443 | type nativeHWManagementServiceStartManagingDeviceClient struct { |
| 444 | grpc.ClientStream |
| 445 | } |
| 446 | |
| 447 | func (x *nativeHWManagementServiceStartManagingDeviceClient) Recv() (*StartManagingDeviceResponse, error) { |
| 448 | m := new(StartManagingDeviceResponse) |
| 449 | if err := x.ClientStream.RecvMsg(m); err != nil { |
| 450 | return nil, err |
| 451 | } |
| 452 | return m, nil |
| 453 | } |
| 454 | |
| 455 | func (c *nativeHWManagementServiceClient) GetPhysicalInventory(ctx context.Context, in *PhysicalInventoryRequest, opts ...grpc.CallOption) (NativeHWManagementService_GetPhysicalInventoryClient, error) { |
| 456 | stream, err := c.cc.NewStream(ctx, &_NativeHWManagementService_serviceDesc.Streams[1], "/dmi.NativeHWManagementService/GetPhysicalInventory", opts...) |
| 457 | if err != nil { |
| 458 | return nil, err |
| 459 | } |
| 460 | x := &nativeHWManagementServiceGetPhysicalInventoryClient{stream} |
| 461 | if err := x.ClientStream.SendMsg(in); err != nil { |
| 462 | return nil, err |
| 463 | } |
| 464 | if err := x.ClientStream.CloseSend(); err != nil { |
| 465 | return nil, err |
| 466 | } |
| 467 | return x, nil |
| 468 | } |
| 469 | |
| 470 | type NativeHWManagementService_GetPhysicalInventoryClient interface { |
| 471 | Recv() (*PhysicalInventoryResponse, error) |
| 472 | grpc.ClientStream |
| 473 | } |
| 474 | |
| 475 | type nativeHWManagementServiceGetPhysicalInventoryClient struct { |
| 476 | grpc.ClientStream |
| 477 | } |
| 478 | |
| 479 | func (x *nativeHWManagementServiceGetPhysicalInventoryClient) Recv() (*PhysicalInventoryResponse, error) { |
| 480 | m := new(PhysicalInventoryResponse) |
| 481 | if err := x.ClientStream.RecvMsg(m); err != nil { |
| 482 | return nil, err |
| 483 | } |
| 484 | return m, nil |
| 485 | } |
| 486 | |
| 487 | func (c *nativeHWManagementServiceClient) GetHWComponentInfo(ctx context.Context, in *HWComponentInfoGetRequest, opts ...grpc.CallOption) (NativeHWManagementService_GetHWComponentInfoClient, error) { |
| 488 | stream, err := c.cc.NewStream(ctx, &_NativeHWManagementService_serviceDesc.Streams[2], "/dmi.NativeHWManagementService/GetHWComponentInfo", opts...) |
| 489 | if err != nil { |
| 490 | return nil, err |
| 491 | } |
| 492 | x := &nativeHWManagementServiceGetHWComponentInfoClient{stream} |
| 493 | if err := x.ClientStream.SendMsg(in); err != nil { |
| 494 | return nil, err |
| 495 | } |
| 496 | if err := x.ClientStream.CloseSend(); err != nil { |
| 497 | return nil, err |
| 498 | } |
| 499 | return x, nil |
| 500 | } |
| 501 | |
| 502 | type NativeHWManagementService_GetHWComponentInfoClient interface { |
| 503 | Recv() (*Component, error) |
| 504 | grpc.ClientStream |
| 505 | } |
| 506 | |
| 507 | type nativeHWManagementServiceGetHWComponentInfoClient struct { |
| 508 | grpc.ClientStream |
| 509 | } |
| 510 | |
| 511 | func (x *nativeHWManagementServiceGetHWComponentInfoClient) Recv() (*Component, error) { |
| 512 | m := new(Component) |
| 513 | if err := x.ClientStream.RecvMsg(m); err != nil { |
| 514 | return nil, err |
| 515 | } |
| 516 | return m, nil |
| 517 | } |
| 518 | |
| 519 | func (c *nativeHWManagementServiceClient) SetHWComponentInfo(ctx context.Context, in *HWComponentInfoSetRequest, opts ...grpc.CallOption) (*HWComponentInfoSetResponse, error) { |
| 520 | out := new(HWComponentInfoSetResponse) |
| 521 | err := c.cc.Invoke(ctx, "/dmi.NativeHWManagementService/SetHWComponentInfo", in, out, opts...) |
| 522 | if err != nil { |
| 523 | return nil, err |
| 524 | } |
| 525 | return out, nil |
| 526 | } |
| 527 | |
| 528 | // NativeHWManagementServiceServer is the server API for NativeHWManagementService service. |
| 529 | type NativeHWManagementServiceServer interface { |
| 530 | // Initializes context for a device and sets up required states |
Amit Ghosh | 704462f | 2020-06-24 16:44:56 +0100 | [diff] [blame] | 531 | // In the call to StartManagingDevice, the fields of ModifiableComponent which are relevant |
| 532 | // and their meanings in this context is mentioned below: |
| 533 | // name = The unique name that needs to be assigned to this hardware; |
| 534 | // class = COMPONENT_TYPE_UNDEFINED; |
| 535 | // parent = nil; |
| 536 | // alias = Optional; |
| 537 | // asset_id = Optional; |
| 538 | // uri = IP Address of the Hardware; |
| 539 | StartManagingDevice(*ModifiableComponent, NativeHWManagementService_StartManagingDeviceServer) error |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 540 | // Get the HW inventory details of the Device |
| 541 | GetPhysicalInventory(*PhysicalInventoryRequest, NativeHWManagementService_GetPhysicalInventoryServer) error |
| 542 | // Get the details of a particular HW component |
| 543 | GetHWComponentInfo(*HWComponentInfoGetRequest, NativeHWManagementService_GetHWComponentInfoServer) error |
| 544 | // Sets the permissible attributes of a HW component |
| 545 | SetHWComponentInfo(context.Context, *HWComponentInfoSetRequest) (*HWComponentInfoSetResponse, error) |
| 546 | } |
| 547 | |
| 548 | func RegisterNativeHWManagementServiceServer(s *grpc.Server, srv NativeHWManagementServiceServer) { |
| 549 | s.RegisterService(&_NativeHWManagementService_serviceDesc, srv) |
| 550 | } |
| 551 | |
| 552 | func _NativeHWManagementService_StartManagingDevice_Handler(srv interface{}, stream grpc.ServerStream) error { |
Amit Ghosh | 704462f | 2020-06-24 16:44:56 +0100 | [diff] [blame] | 553 | m := new(ModifiableComponent) |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 554 | if err := stream.RecvMsg(m); err != nil { |
| 555 | return err |
| 556 | } |
| 557 | return srv.(NativeHWManagementServiceServer).StartManagingDevice(m, &nativeHWManagementServiceStartManagingDeviceServer{stream}) |
| 558 | } |
| 559 | |
| 560 | type NativeHWManagementService_StartManagingDeviceServer interface { |
| 561 | Send(*StartManagingDeviceResponse) error |
| 562 | grpc.ServerStream |
| 563 | } |
| 564 | |
| 565 | type nativeHWManagementServiceStartManagingDeviceServer struct { |
| 566 | grpc.ServerStream |
| 567 | } |
| 568 | |
| 569 | func (x *nativeHWManagementServiceStartManagingDeviceServer) Send(m *StartManagingDeviceResponse) error { |
| 570 | return x.ServerStream.SendMsg(m) |
| 571 | } |
| 572 | |
| 573 | func _NativeHWManagementService_GetPhysicalInventory_Handler(srv interface{}, stream grpc.ServerStream) error { |
| 574 | m := new(PhysicalInventoryRequest) |
| 575 | if err := stream.RecvMsg(m); err != nil { |
| 576 | return err |
| 577 | } |
| 578 | return srv.(NativeHWManagementServiceServer).GetPhysicalInventory(m, &nativeHWManagementServiceGetPhysicalInventoryServer{stream}) |
| 579 | } |
| 580 | |
| 581 | type NativeHWManagementService_GetPhysicalInventoryServer interface { |
| 582 | Send(*PhysicalInventoryResponse) error |
| 583 | grpc.ServerStream |
| 584 | } |
| 585 | |
| 586 | type nativeHWManagementServiceGetPhysicalInventoryServer struct { |
| 587 | grpc.ServerStream |
| 588 | } |
| 589 | |
| 590 | func (x *nativeHWManagementServiceGetPhysicalInventoryServer) Send(m *PhysicalInventoryResponse) error { |
| 591 | return x.ServerStream.SendMsg(m) |
| 592 | } |
| 593 | |
| 594 | func _NativeHWManagementService_GetHWComponentInfo_Handler(srv interface{}, stream grpc.ServerStream) error { |
| 595 | m := new(HWComponentInfoGetRequest) |
| 596 | if err := stream.RecvMsg(m); err != nil { |
| 597 | return err |
| 598 | } |
| 599 | return srv.(NativeHWManagementServiceServer).GetHWComponentInfo(m, &nativeHWManagementServiceGetHWComponentInfoServer{stream}) |
| 600 | } |
| 601 | |
| 602 | type NativeHWManagementService_GetHWComponentInfoServer interface { |
| 603 | Send(*Component) error |
| 604 | grpc.ServerStream |
| 605 | } |
| 606 | |
| 607 | type nativeHWManagementServiceGetHWComponentInfoServer struct { |
| 608 | grpc.ServerStream |
| 609 | } |
| 610 | |
| 611 | func (x *nativeHWManagementServiceGetHWComponentInfoServer) Send(m *Component) error { |
| 612 | return x.ServerStream.SendMsg(m) |
| 613 | } |
| 614 | |
| 615 | func _NativeHWManagementService_SetHWComponentInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 616 | in := new(HWComponentInfoSetRequest) |
| 617 | if err := dec(in); err != nil { |
| 618 | return nil, err |
| 619 | } |
| 620 | if interceptor == nil { |
| 621 | return srv.(NativeHWManagementServiceServer).SetHWComponentInfo(ctx, in) |
| 622 | } |
| 623 | info := &grpc.UnaryServerInfo{ |
| 624 | Server: srv, |
| 625 | FullMethod: "/dmi.NativeHWManagementService/SetHWComponentInfo", |
| 626 | } |
| 627 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 628 | return srv.(NativeHWManagementServiceServer).SetHWComponentInfo(ctx, req.(*HWComponentInfoSetRequest)) |
| 629 | } |
| 630 | return interceptor(ctx, in, info, handler) |
| 631 | } |
| 632 | |
| 633 | var _NativeHWManagementService_serviceDesc = grpc.ServiceDesc{ |
| 634 | ServiceName: "dmi.NativeHWManagementService", |
| 635 | HandlerType: (*NativeHWManagementServiceServer)(nil), |
| 636 | Methods: []grpc.MethodDesc{ |
| 637 | { |
| 638 | MethodName: "SetHWComponentInfo", |
| 639 | Handler: _NativeHWManagementService_SetHWComponentInfo_Handler, |
| 640 | }, |
| 641 | }, |
| 642 | Streams: []grpc.StreamDesc{ |
| 643 | { |
| 644 | StreamName: "StartManagingDevice", |
| 645 | Handler: _NativeHWManagementService_StartManagingDevice_Handler, |
| 646 | ServerStreams: true, |
| 647 | }, |
| 648 | { |
| 649 | StreamName: "GetPhysicalInventory", |
| 650 | Handler: _NativeHWManagementService_GetPhysicalInventory_Handler, |
| 651 | ServerStreams: true, |
| 652 | }, |
| 653 | { |
| 654 | StreamName: "GetHWComponentInfo", |
| 655 | Handler: _NativeHWManagementService_GetHWComponentInfo_Handler, |
| 656 | ServerStreams: true, |
| 657 | }, |
| 658 | }, |
| 659 | Metadata: "dmi/hw_management_service.proto", |
| 660 | } |