github.com/microsoft/moc@v0.17.1/rpc/cloudagent/compute/moc_cloudagent_baremetalhost.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // source: moc_cloudagent_baremetalhost.proto
     3  
     4  package compute
     5  
     6  import (
     7  	context "context"
     8  	fmt "fmt"
     9  	proto "github.com/golang/protobuf/proto"
    10  	wrappers "github.com/golang/protobuf/ptypes/wrappers"
    11  	common "github.com/microsoft/moc/rpc/common"
    12  	grpc "google.golang.org/grpc"
    13  	codes "google.golang.org/grpc/codes"
    14  	status "google.golang.org/grpc/status"
    15  	math "math"
    16  )
    17  
    18  // Reference imports to suppress errors if they are not otherwise used.
    19  var _ = proto.Marshal
    20  var _ = fmt.Errorf
    21  var _ = math.Inf
    22  
    23  // This is a compile-time assertion to ensure that this generated file
    24  // is compatible with the proto package it is being compiled against.
    25  // A compilation error at this line likely means your copy of the
    26  // proto package needs to be updated.
    27  const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
    28  
    29  type BareMetalHostPowerState int32
    30  
    31  const (
    32  	BareMetalHostPowerState_Unknown BareMetalHostPowerState = 0
    33  	BareMetalHostPowerState_Running BareMetalHostPowerState = 1
    34  	BareMetalHostPowerState_Off     BareMetalHostPowerState = 2
    35  )
    36  
    37  var BareMetalHostPowerState_name = map[int32]string{
    38  	0: "Unknown",
    39  	1: "Running",
    40  	2: "Off",
    41  }
    42  
    43  var BareMetalHostPowerState_value = map[string]int32{
    44  	"Unknown": 0,
    45  	"Running": 1,
    46  	"Off":     2,
    47  }
    48  
    49  func (x BareMetalHostPowerState) String() string {
    50  	return proto.EnumName(BareMetalHostPowerState_name, int32(x))
    51  }
    52  
    53  func (BareMetalHostPowerState) EnumDescriptor() ([]byte, []int) {
    54  	return fileDescriptor_e521bf7225d1b306, []int{0}
    55  }
    56  
    57  type BareMetalHostRequest struct {
    58  	BareMetalHosts       []*BareMetalHost `protobuf:"bytes,1,rep,name=BareMetalHosts,proto3" json:"BareMetalHosts,omitempty"`
    59  	OperationType        common.Operation `protobuf:"varint,2,opt,name=OperationType,proto3,enum=moc.Operation" json:"OperationType,omitempty"`
    60  	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
    61  	XXX_unrecognized     []byte           `json:"-"`
    62  	XXX_sizecache        int32            `json:"-"`
    63  }
    64  
    65  func (m *BareMetalHostRequest) Reset()         { *m = BareMetalHostRequest{} }
    66  func (m *BareMetalHostRequest) String() string { return proto.CompactTextString(m) }
    67  func (*BareMetalHostRequest) ProtoMessage()    {}
    68  func (*BareMetalHostRequest) Descriptor() ([]byte, []int) {
    69  	return fileDescriptor_e521bf7225d1b306, []int{0}
    70  }
    71  
    72  func (m *BareMetalHostRequest) XXX_Unmarshal(b []byte) error {
    73  	return xxx_messageInfo_BareMetalHostRequest.Unmarshal(m, b)
    74  }
    75  func (m *BareMetalHostRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    76  	return xxx_messageInfo_BareMetalHostRequest.Marshal(b, m, deterministic)
    77  }
    78  func (m *BareMetalHostRequest) XXX_Merge(src proto.Message) {
    79  	xxx_messageInfo_BareMetalHostRequest.Merge(m, src)
    80  }
    81  func (m *BareMetalHostRequest) XXX_Size() int {
    82  	return xxx_messageInfo_BareMetalHostRequest.Size(m)
    83  }
    84  func (m *BareMetalHostRequest) XXX_DiscardUnknown() {
    85  	xxx_messageInfo_BareMetalHostRequest.DiscardUnknown(m)
    86  }
    87  
    88  var xxx_messageInfo_BareMetalHostRequest proto.InternalMessageInfo
    89  
    90  func (m *BareMetalHostRequest) GetBareMetalHosts() []*BareMetalHost {
    91  	if m != nil {
    92  		return m.BareMetalHosts
    93  	}
    94  	return nil
    95  }
    96  
    97  func (m *BareMetalHostRequest) GetOperationType() common.Operation {
    98  	if m != nil {
    99  		return m.OperationType
   100  	}
   101  	return common.Operation_GET
   102  }
   103  
   104  type BareMetalHostResponse struct {
   105  	BareMetalHosts       []*BareMetalHost    `protobuf:"bytes,1,rep,name=BareMetalHosts,proto3" json:"BareMetalHosts,omitempty"`
   106  	Result               *wrappers.BoolValue `protobuf:"bytes,2,opt,name=Result,proto3" json:"Result,omitempty"`
   107  	Error                string              `protobuf:"bytes,3,opt,name=Error,proto3" json:"Error,omitempty"`
   108  	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
   109  	XXX_unrecognized     []byte              `json:"-"`
   110  	XXX_sizecache        int32               `json:"-"`
   111  }
   112  
   113  func (m *BareMetalHostResponse) Reset()         { *m = BareMetalHostResponse{} }
   114  func (m *BareMetalHostResponse) String() string { return proto.CompactTextString(m) }
   115  func (*BareMetalHostResponse) ProtoMessage()    {}
   116  func (*BareMetalHostResponse) Descriptor() ([]byte, []int) {
   117  	return fileDescriptor_e521bf7225d1b306, []int{1}
   118  }
   119  
   120  func (m *BareMetalHostResponse) XXX_Unmarshal(b []byte) error {
   121  	return xxx_messageInfo_BareMetalHostResponse.Unmarshal(m, b)
   122  }
   123  func (m *BareMetalHostResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   124  	return xxx_messageInfo_BareMetalHostResponse.Marshal(b, m, deterministic)
   125  }
   126  func (m *BareMetalHostResponse) XXX_Merge(src proto.Message) {
   127  	xxx_messageInfo_BareMetalHostResponse.Merge(m, src)
   128  }
   129  func (m *BareMetalHostResponse) XXX_Size() int {
   130  	return xxx_messageInfo_BareMetalHostResponse.Size(m)
   131  }
   132  func (m *BareMetalHostResponse) XXX_DiscardUnknown() {
   133  	xxx_messageInfo_BareMetalHostResponse.DiscardUnknown(m)
   134  }
   135  
   136  var xxx_messageInfo_BareMetalHostResponse proto.InternalMessageInfo
   137  
   138  func (m *BareMetalHostResponse) GetBareMetalHosts() []*BareMetalHost {
   139  	if m != nil {
   140  		return m.BareMetalHosts
   141  	}
   142  	return nil
   143  }
   144  
   145  func (m *BareMetalHostResponse) GetResult() *wrappers.BoolValue {
   146  	if m != nil {
   147  		return m.Result
   148  	}
   149  	return nil
   150  }
   151  
   152  func (m *BareMetalHostResponse) GetError() string {
   153  	if m != nil {
   154  		return m.Error
   155  	}
   156  	return ""
   157  }
   158  
   159  type BareMetalHostDisk struct {
   160  	DiskName             string   `protobuf:"bytes,1,opt,name=diskName,proto3" json:"diskName,omitempty"`
   161  	DiskSizeGB           uint32   `protobuf:"varint,2,opt,name=diskSizeGB,proto3" json:"diskSizeGB,omitempty"`
   162  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   163  	XXX_unrecognized     []byte   `json:"-"`
   164  	XXX_sizecache        int32    `json:"-"`
   165  }
   166  
   167  func (m *BareMetalHostDisk) Reset()         { *m = BareMetalHostDisk{} }
   168  func (m *BareMetalHostDisk) String() string { return proto.CompactTextString(m) }
   169  func (*BareMetalHostDisk) ProtoMessage()    {}
   170  func (*BareMetalHostDisk) Descriptor() ([]byte, []int) {
   171  	return fileDescriptor_e521bf7225d1b306, []int{2}
   172  }
   173  
   174  func (m *BareMetalHostDisk) XXX_Unmarshal(b []byte) error {
   175  	return xxx_messageInfo_BareMetalHostDisk.Unmarshal(m, b)
   176  }
   177  func (m *BareMetalHostDisk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   178  	return xxx_messageInfo_BareMetalHostDisk.Marshal(b, m, deterministic)
   179  }
   180  func (m *BareMetalHostDisk) XXX_Merge(src proto.Message) {
   181  	xxx_messageInfo_BareMetalHostDisk.Merge(m, src)
   182  }
   183  func (m *BareMetalHostDisk) XXX_Size() int {
   184  	return xxx_messageInfo_BareMetalHostDisk.Size(m)
   185  }
   186  func (m *BareMetalHostDisk) XXX_DiscardUnknown() {
   187  	xxx_messageInfo_BareMetalHostDisk.DiscardUnknown(m)
   188  }
   189  
   190  var xxx_messageInfo_BareMetalHostDisk proto.InternalMessageInfo
   191  
   192  func (m *BareMetalHostDisk) GetDiskName() string {
   193  	if m != nil {
   194  		return m.DiskName
   195  	}
   196  	return ""
   197  }
   198  
   199  func (m *BareMetalHostDisk) GetDiskSizeGB() uint32 {
   200  	if m != nil {
   201  		return m.DiskSizeGB
   202  	}
   203  	return 0
   204  }
   205  
   206  type BareMetalHostStorageConfiguration struct {
   207  	Disks                []*BareMetalHostDisk `protobuf:"bytes,1,rep,name=disks,proto3" json:"disks,omitempty"`
   208  	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
   209  	XXX_unrecognized     []byte               `json:"-"`
   210  	XXX_sizecache        int32                `json:"-"`
   211  }
   212  
   213  func (m *BareMetalHostStorageConfiguration) Reset()         { *m = BareMetalHostStorageConfiguration{} }
   214  func (m *BareMetalHostStorageConfiguration) String() string { return proto.CompactTextString(m) }
   215  func (*BareMetalHostStorageConfiguration) ProtoMessage()    {}
   216  func (*BareMetalHostStorageConfiguration) Descriptor() ([]byte, []int) {
   217  	return fileDescriptor_e521bf7225d1b306, []int{3}
   218  }
   219  
   220  func (m *BareMetalHostStorageConfiguration) XXX_Unmarshal(b []byte) error {
   221  	return xxx_messageInfo_BareMetalHostStorageConfiguration.Unmarshal(m, b)
   222  }
   223  func (m *BareMetalHostStorageConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   224  	return xxx_messageInfo_BareMetalHostStorageConfiguration.Marshal(b, m, deterministic)
   225  }
   226  func (m *BareMetalHostStorageConfiguration) XXX_Merge(src proto.Message) {
   227  	xxx_messageInfo_BareMetalHostStorageConfiguration.Merge(m, src)
   228  }
   229  func (m *BareMetalHostStorageConfiguration) XXX_Size() int {
   230  	return xxx_messageInfo_BareMetalHostStorageConfiguration.Size(m)
   231  }
   232  func (m *BareMetalHostStorageConfiguration) XXX_DiscardUnknown() {
   233  	xxx_messageInfo_BareMetalHostStorageConfiguration.DiscardUnknown(m)
   234  }
   235  
   236  var xxx_messageInfo_BareMetalHostStorageConfiguration proto.InternalMessageInfo
   237  
   238  func (m *BareMetalHostStorageConfiguration) GetDisks() []*BareMetalHostDisk {
   239  	if m != nil {
   240  		return m.Disks
   241  	}
   242  	return nil
   243  }
   244  
   245  type BareMetalHostNetworkInterface struct {
   246  	NetworkInterfaceName string   `protobuf:"bytes,1,opt,name=networkInterfaceName,proto3" json:"networkInterfaceName,omitempty"`
   247  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   248  	XXX_unrecognized     []byte   `json:"-"`
   249  	XXX_sizecache        int32    `json:"-"`
   250  }
   251  
   252  func (m *BareMetalHostNetworkInterface) Reset()         { *m = BareMetalHostNetworkInterface{} }
   253  func (m *BareMetalHostNetworkInterface) String() string { return proto.CompactTextString(m) }
   254  func (*BareMetalHostNetworkInterface) ProtoMessage()    {}
   255  func (*BareMetalHostNetworkInterface) Descriptor() ([]byte, []int) {
   256  	return fileDescriptor_e521bf7225d1b306, []int{4}
   257  }
   258  
   259  func (m *BareMetalHostNetworkInterface) XXX_Unmarshal(b []byte) error {
   260  	return xxx_messageInfo_BareMetalHostNetworkInterface.Unmarshal(m, b)
   261  }
   262  func (m *BareMetalHostNetworkInterface) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   263  	return xxx_messageInfo_BareMetalHostNetworkInterface.Marshal(b, m, deterministic)
   264  }
   265  func (m *BareMetalHostNetworkInterface) XXX_Merge(src proto.Message) {
   266  	xxx_messageInfo_BareMetalHostNetworkInterface.Merge(m, src)
   267  }
   268  func (m *BareMetalHostNetworkInterface) XXX_Size() int {
   269  	return xxx_messageInfo_BareMetalHostNetworkInterface.Size(m)
   270  }
   271  func (m *BareMetalHostNetworkInterface) XXX_DiscardUnknown() {
   272  	xxx_messageInfo_BareMetalHostNetworkInterface.DiscardUnknown(m)
   273  }
   274  
   275  var xxx_messageInfo_BareMetalHostNetworkInterface proto.InternalMessageInfo
   276  
   277  func (m *BareMetalHostNetworkInterface) GetNetworkInterfaceName() string {
   278  	if m != nil {
   279  		return m.NetworkInterfaceName
   280  	}
   281  	return ""
   282  }
   283  
   284  type BareMetalHostNetworkConfiguration struct {
   285  	Interfaces           []*BareMetalHostNetworkInterface `protobuf:"bytes,1,rep,name=interfaces,proto3" json:"interfaces,omitempty"`
   286  	XXX_NoUnkeyedLiteral struct{}                         `json:"-"`
   287  	XXX_unrecognized     []byte                           `json:"-"`
   288  	XXX_sizecache        int32                            `json:"-"`
   289  }
   290  
   291  func (m *BareMetalHostNetworkConfiguration) Reset()         { *m = BareMetalHostNetworkConfiguration{} }
   292  func (m *BareMetalHostNetworkConfiguration) String() string { return proto.CompactTextString(m) }
   293  func (*BareMetalHostNetworkConfiguration) ProtoMessage()    {}
   294  func (*BareMetalHostNetworkConfiguration) Descriptor() ([]byte, []int) {
   295  	return fileDescriptor_e521bf7225d1b306, []int{5}
   296  }
   297  
   298  func (m *BareMetalHostNetworkConfiguration) XXX_Unmarshal(b []byte) error {
   299  	return xxx_messageInfo_BareMetalHostNetworkConfiguration.Unmarshal(m, b)
   300  }
   301  func (m *BareMetalHostNetworkConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   302  	return xxx_messageInfo_BareMetalHostNetworkConfiguration.Marshal(b, m, deterministic)
   303  }
   304  func (m *BareMetalHostNetworkConfiguration) XXX_Merge(src proto.Message) {
   305  	xxx_messageInfo_BareMetalHostNetworkConfiguration.Merge(m, src)
   306  }
   307  func (m *BareMetalHostNetworkConfiguration) XXX_Size() int {
   308  	return xxx_messageInfo_BareMetalHostNetworkConfiguration.Size(m)
   309  }
   310  func (m *BareMetalHostNetworkConfiguration) XXX_DiscardUnknown() {
   311  	xxx_messageInfo_BareMetalHostNetworkConfiguration.DiscardUnknown(m)
   312  }
   313  
   314  var xxx_messageInfo_BareMetalHostNetworkConfiguration proto.InternalMessageInfo
   315  
   316  func (m *BareMetalHostNetworkConfiguration) GetInterfaces() []*BareMetalHostNetworkInterface {
   317  	if m != nil {
   318  		return m.Interfaces
   319  	}
   320  	return nil
   321  }
   322  
   323  type BareMetalHostSize struct {
   324  	CpuCount             uint32   `protobuf:"varint,1,opt,name=cpuCount,proto3" json:"cpuCount,omitempty"`
   325  	GpuCount             uint32   `protobuf:"varint,2,opt,name=gpuCount,proto3" json:"gpuCount,omitempty"`
   326  	MemoryMB             uint32   `protobuf:"varint,3,opt,name=memoryMB,proto3" json:"memoryMB,omitempty"`
   327  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   328  	XXX_unrecognized     []byte   `json:"-"`
   329  	XXX_sizecache        int32    `json:"-"`
   330  }
   331  
   332  func (m *BareMetalHostSize) Reset()         { *m = BareMetalHostSize{} }
   333  func (m *BareMetalHostSize) String() string { return proto.CompactTextString(m) }
   334  func (*BareMetalHostSize) ProtoMessage()    {}
   335  func (*BareMetalHostSize) Descriptor() ([]byte, []int) {
   336  	return fileDescriptor_e521bf7225d1b306, []int{6}
   337  }
   338  
   339  func (m *BareMetalHostSize) XXX_Unmarshal(b []byte) error {
   340  	return xxx_messageInfo_BareMetalHostSize.Unmarshal(m, b)
   341  }
   342  func (m *BareMetalHostSize) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   343  	return xxx_messageInfo_BareMetalHostSize.Marshal(b, m, deterministic)
   344  }
   345  func (m *BareMetalHostSize) XXX_Merge(src proto.Message) {
   346  	xxx_messageInfo_BareMetalHostSize.Merge(m, src)
   347  }
   348  func (m *BareMetalHostSize) XXX_Size() int {
   349  	return xxx_messageInfo_BareMetalHostSize.Size(m)
   350  }
   351  func (m *BareMetalHostSize) XXX_DiscardUnknown() {
   352  	xxx_messageInfo_BareMetalHostSize.DiscardUnknown(m)
   353  }
   354  
   355  var xxx_messageInfo_BareMetalHostSize proto.InternalMessageInfo
   356  
   357  func (m *BareMetalHostSize) GetCpuCount() uint32 {
   358  	if m != nil {
   359  		return m.CpuCount
   360  	}
   361  	return 0
   362  }
   363  
   364  func (m *BareMetalHostSize) GetGpuCount() uint32 {
   365  	if m != nil {
   366  		return m.GpuCount
   367  	}
   368  	return 0
   369  }
   370  
   371  func (m *BareMetalHostSize) GetMemoryMB() uint32 {
   372  	if m != nil {
   373  		return m.MemoryMB
   374  	}
   375  	return 0
   376  }
   377  
   378  type BareMetalHostHardwareConfiguration struct {
   379  	MachineSize          *BareMetalHostSize `protobuf:"bytes,1,opt,name=machineSize,proto3" json:"machineSize,omitempty"`
   380  	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
   381  	XXX_unrecognized     []byte             `json:"-"`
   382  	XXX_sizecache        int32              `json:"-"`
   383  }
   384  
   385  func (m *BareMetalHostHardwareConfiguration) Reset()         { *m = BareMetalHostHardwareConfiguration{} }
   386  func (m *BareMetalHostHardwareConfiguration) String() string { return proto.CompactTextString(m) }
   387  func (*BareMetalHostHardwareConfiguration) ProtoMessage()    {}
   388  func (*BareMetalHostHardwareConfiguration) Descriptor() ([]byte, []int) {
   389  	return fileDescriptor_e521bf7225d1b306, []int{7}
   390  }
   391  
   392  func (m *BareMetalHostHardwareConfiguration) XXX_Unmarshal(b []byte) error {
   393  	return xxx_messageInfo_BareMetalHostHardwareConfiguration.Unmarshal(m, b)
   394  }
   395  func (m *BareMetalHostHardwareConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   396  	return xxx_messageInfo_BareMetalHostHardwareConfiguration.Marshal(b, m, deterministic)
   397  }
   398  func (m *BareMetalHostHardwareConfiguration) XXX_Merge(src proto.Message) {
   399  	xxx_messageInfo_BareMetalHostHardwareConfiguration.Merge(m, src)
   400  }
   401  func (m *BareMetalHostHardwareConfiguration) XXX_Size() int {
   402  	return xxx_messageInfo_BareMetalHostHardwareConfiguration.Size(m)
   403  }
   404  func (m *BareMetalHostHardwareConfiguration) XXX_DiscardUnknown() {
   405  	xxx_messageInfo_BareMetalHostHardwareConfiguration.DiscardUnknown(m)
   406  }
   407  
   408  var xxx_messageInfo_BareMetalHostHardwareConfiguration proto.InternalMessageInfo
   409  
   410  func (m *BareMetalHostHardwareConfiguration) GetMachineSize() *BareMetalHostSize {
   411  	if m != nil {
   412  		return m.MachineSize
   413  	}
   414  	return nil
   415  }
   416  
   417  type BareMetalHost struct {
   418  	Name                 string                              `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
   419  	Id                   string                              `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
   420  	Storage              *BareMetalHostStorageConfiguration  `protobuf:"bytes,3,opt,name=storage,proto3" json:"storage,omitempty"`
   421  	Network              *BareMetalHostNetworkConfiguration  `protobuf:"bytes,4,opt,name=network,proto3" json:"network,omitempty"`
   422  	Hardware             *BareMetalHostHardwareConfiguration `protobuf:"bytes,5,opt,name=hardware,proto3" json:"hardware,omitempty"`
   423  	PowerState           BareMetalHostPowerState             `protobuf:"varint,6,opt,name=powerState,proto3,enum=moc.cloudagent.compute.BareMetalHostPowerState" json:"powerState,omitempty"`
   424  	Security             *SecurityConfiguration              `protobuf:"bytes,7,opt,name=security,proto3" json:"security,omitempty"`
   425  	Status               *common.Status                      `protobuf:"bytes,8,opt,name=status,proto3" json:"status,omitempty"`
   426  	LocationName         string                              `protobuf:"bytes,9,opt,name=locationName,proto3" json:"locationName,omitempty"`
   427  	Fqdn                 string                              `protobuf:"bytes,10,opt,name=fqdn,proto3" json:"fqdn,omitempty"`
   428  	Certificate          string                              `protobuf:"bytes,11,opt,name=certificate,proto3" json:"certificate,omitempty"`
   429  	Port                 uint32                              `protobuf:"varint,12,opt,name=port,proto3" json:"port,omitempty"`
   430  	AuthorizerPort       uint32                              `protobuf:"varint,13,opt,name=authorizerPort,proto3" json:"authorizerPort,omitempty"`
   431  	Tags                 *common.Tags                        `protobuf:"bytes,14,opt,name=tags,proto3" json:"tags,omitempty"`
   432  	XXX_NoUnkeyedLiteral struct{}                            `json:"-"`
   433  	XXX_unrecognized     []byte                              `json:"-"`
   434  	XXX_sizecache        int32                               `json:"-"`
   435  }
   436  
   437  func (m *BareMetalHost) Reset()         { *m = BareMetalHost{} }
   438  func (m *BareMetalHost) String() string { return proto.CompactTextString(m) }
   439  func (*BareMetalHost) ProtoMessage()    {}
   440  func (*BareMetalHost) Descriptor() ([]byte, []int) {
   441  	return fileDescriptor_e521bf7225d1b306, []int{8}
   442  }
   443  
   444  func (m *BareMetalHost) XXX_Unmarshal(b []byte) error {
   445  	return xxx_messageInfo_BareMetalHost.Unmarshal(m, b)
   446  }
   447  func (m *BareMetalHost) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   448  	return xxx_messageInfo_BareMetalHost.Marshal(b, m, deterministic)
   449  }
   450  func (m *BareMetalHost) XXX_Merge(src proto.Message) {
   451  	xxx_messageInfo_BareMetalHost.Merge(m, src)
   452  }
   453  func (m *BareMetalHost) XXX_Size() int {
   454  	return xxx_messageInfo_BareMetalHost.Size(m)
   455  }
   456  func (m *BareMetalHost) XXX_DiscardUnknown() {
   457  	xxx_messageInfo_BareMetalHost.DiscardUnknown(m)
   458  }
   459  
   460  var xxx_messageInfo_BareMetalHost proto.InternalMessageInfo
   461  
   462  func (m *BareMetalHost) GetName() string {
   463  	if m != nil {
   464  		return m.Name
   465  	}
   466  	return ""
   467  }
   468  
   469  func (m *BareMetalHost) GetId() string {
   470  	if m != nil {
   471  		return m.Id
   472  	}
   473  	return ""
   474  }
   475  
   476  func (m *BareMetalHost) GetStorage() *BareMetalHostStorageConfiguration {
   477  	if m != nil {
   478  		return m.Storage
   479  	}
   480  	return nil
   481  }
   482  
   483  func (m *BareMetalHost) GetNetwork() *BareMetalHostNetworkConfiguration {
   484  	if m != nil {
   485  		return m.Network
   486  	}
   487  	return nil
   488  }
   489  
   490  func (m *BareMetalHost) GetHardware() *BareMetalHostHardwareConfiguration {
   491  	if m != nil {
   492  		return m.Hardware
   493  	}
   494  	return nil
   495  }
   496  
   497  func (m *BareMetalHost) GetPowerState() BareMetalHostPowerState {
   498  	if m != nil {
   499  		return m.PowerState
   500  	}
   501  	return BareMetalHostPowerState_Unknown
   502  }
   503  
   504  func (m *BareMetalHost) GetSecurity() *SecurityConfiguration {
   505  	if m != nil {
   506  		return m.Security
   507  	}
   508  	return nil
   509  }
   510  
   511  func (m *BareMetalHost) GetStatus() *common.Status {
   512  	if m != nil {
   513  		return m.Status
   514  	}
   515  	return nil
   516  }
   517  
   518  func (m *BareMetalHost) GetLocationName() string {
   519  	if m != nil {
   520  		return m.LocationName
   521  	}
   522  	return ""
   523  }
   524  
   525  func (m *BareMetalHost) GetFqdn() string {
   526  	if m != nil {
   527  		return m.Fqdn
   528  	}
   529  	return ""
   530  }
   531  
   532  func (m *BareMetalHost) GetCertificate() string {
   533  	if m != nil {
   534  		return m.Certificate
   535  	}
   536  	return ""
   537  }
   538  
   539  func (m *BareMetalHost) GetPort() uint32 {
   540  	if m != nil {
   541  		return m.Port
   542  	}
   543  	return 0
   544  }
   545  
   546  func (m *BareMetalHost) GetAuthorizerPort() uint32 {
   547  	if m != nil {
   548  		return m.AuthorizerPort
   549  	}
   550  	return 0
   551  }
   552  
   553  func (m *BareMetalHost) GetTags() *common.Tags {
   554  	if m != nil {
   555  		return m.Tags
   556  	}
   557  	return nil
   558  }
   559  
   560  func init() {
   561  	proto.RegisterEnum("moc.cloudagent.compute.BareMetalHostPowerState", BareMetalHostPowerState_name, BareMetalHostPowerState_value)
   562  	proto.RegisterType((*BareMetalHostRequest)(nil), "moc.cloudagent.compute.BareMetalHostRequest")
   563  	proto.RegisterType((*BareMetalHostResponse)(nil), "moc.cloudagent.compute.BareMetalHostResponse")
   564  	proto.RegisterType((*BareMetalHostDisk)(nil), "moc.cloudagent.compute.BareMetalHostDisk")
   565  	proto.RegisterType((*BareMetalHostStorageConfiguration)(nil), "moc.cloudagent.compute.BareMetalHostStorageConfiguration")
   566  	proto.RegisterType((*BareMetalHostNetworkInterface)(nil), "moc.cloudagent.compute.BareMetalHostNetworkInterface")
   567  	proto.RegisterType((*BareMetalHostNetworkConfiguration)(nil), "moc.cloudagent.compute.BareMetalHostNetworkConfiguration")
   568  	proto.RegisterType((*BareMetalHostSize)(nil), "moc.cloudagent.compute.BareMetalHostSize")
   569  	proto.RegisterType((*BareMetalHostHardwareConfiguration)(nil), "moc.cloudagent.compute.BareMetalHostHardwareConfiguration")
   570  	proto.RegisterType((*BareMetalHost)(nil), "moc.cloudagent.compute.BareMetalHost")
   571  }
   572  
   573  func init() {
   574  	proto.RegisterFile("moc_cloudagent_baremetalhost.proto", fileDescriptor_e521bf7225d1b306)
   575  }
   576  
   577  var fileDescriptor_e521bf7225d1b306 = []byte{
   578  	// 799 bytes of a gzipped FileDescriptorProto
   579  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0x5d, 0x8f, 0xdb, 0x44,
   580  	0x14, 0x6d, 0x76, 0x37, 0x5f, 0xd7, 0x4d, 0xb4, 0x8c, 0x16, 0x6a, 0x45, 0x6a, 0x15, 0x5c, 0x81,
   581  	0x16, 0x44, 0x6d, 0x11, 0xe0, 0x01, 0x84, 0x84, 0x48, 0x41, 0x74, 0x85, 0xb6, 0xa9, 0x26, 0x6d,
   582  	0x1f, 0x78, 0xa9, 0x26, 0xce, 0xd8, 0x19, 0xc5, 0x9e, 0xf1, 0xce, 0x8c, 0x1b, 0xed, 0x4a, 0xfc,
   583  	0x12, 0x7e, 0x02, 0x2f, 0xfc, 0x44, 0x34, 0x63, 0x3b, 0x1b, 0x5b, 0xa9, 0x64, 0x24, 0x9e, 0x32,
   584  	0x73, 0xcf, 0x3d, 0x67, 0xce, 0xdc, 0x7b, 0xe3, 0x01, 0x2f, 0x15, 0xe1, 0xbb, 0x30, 0x11, 0xf9,
   585  	0x9a, 0xc4, 0x94, 0xeb, 0x77, 0x2b, 0x22, 0x69, 0x4a, 0x35, 0x49, 0x36, 0x42, 0x69, 0x3f, 0x93,
   586  	0x42, 0x0b, 0xf4, 0x49, 0x2a, 0x42, 0xff, 0x3e, 0xc7, 0x0f, 0x45, 0x9a, 0xe5, 0x9a, 0x4e, 0x9e,
   587  	0xc4, 0x42, 0xc4, 0x09, 0x0d, 0x6c, 0xd6, 0x2a, 0x8f, 0x82, 0x9d, 0x24, 0x59, 0x46, 0xa5, 0x2a,
   588  	0x78, 0x93, 0x47, 0x56, 0x5b, 0xa4, 0xa9, 0xe0, 0xe5, 0x4f, 0x09, 0x3c, 0x6d, 0x1c, 0xfa, 0x9e,
   589  	0x49, 0x9d, 0x93, 0x24, 0x25, 0xe1, 0x86, 0x71, 0x5a, 0x24, 0x79, 0x7f, 0x75, 0xe0, 0x62, 0x4e,
   590  	0x24, 0xbd, 0x36, 0x6e, 0x5e, 0x08, 0xa5, 0x31, 0xbd, 0xc9, 0xa9, 0xd2, 0xe8, 0x1a, 0xc6, 0xb5,
   591  	0xb8, 0x72, 0x3b, 0xd3, 0xd3, 0x4b, 0x67, 0xf6, 0x99, 0x7f, 0xdc, 0xa7, 0x5f, 0x57, 0x69, 0x90,
   592  	0xd1, 0xb7, 0x30, 0x5a, 0x64, 0x54, 0x12, 0xcd, 0x04, 0x7f, 0x7d, 0x9b, 0x51, 0xf7, 0x64, 0xda,
   593  	0xb9, 0x1c, 0xcf, 0xc6, 0x56, 0x6d, 0x8f, 0xe0, 0x7a, 0x92, 0xf7, 0x4f, 0x07, 0x3e, 0x6e, 0xb8,
   594  	0x53, 0x99, 0xe0, 0x8a, 0xfe, 0xdf, 0xf6, 0x66, 0xd0, 0xc3, 0x54, 0xe5, 0x89, 0xb6, 0xbe, 0x9c,
   595  	0xd9, 0xc4, 0x2f, 0xaa, 0xee, 0x57, 0x55, 0xf7, 0xe7, 0x42, 0x24, 0x6f, 0x49, 0x92, 0x53, 0x5c,
   596  	0x66, 0xa2, 0x0b, 0xe8, 0xfe, 0x2a, 0xa5, 0x90, 0xee, 0xe9, 0xb4, 0x73, 0x39, 0xc4, 0xc5, 0xc6,
   597  	0x5b, 0xc0, 0x47, 0x35, 0xed, 0x5f, 0x98, 0xda, 0xa2, 0x09, 0x0c, 0xd6, 0x4c, 0x6d, 0x5f, 0x92,
   598  	0x94, 0xba, 0x1d, 0x9b, 0xbd, 0xdf, 0xa3, 0x27, 0x00, 0x66, 0xbd, 0x64, 0x77, 0xf4, 0xb7, 0xb9,
   599  	0x3d, 0x7e, 0x84, 0x0f, 0x22, 0xde, 0x1a, 0x3e, 0xad, 0x09, 0x2e, 0xb5, 0x90, 0x24, 0xa6, 0xcf,
   600  	0x05, 0x8f, 0x58, 0x9c, 0x17, 0xc5, 0x42, 0x3f, 0x41, 0xd7, 0x50, 0xaa, 0x2a, 0x7c, 0xd1, 0xaa,
   601  	0x0a, 0xc6, 0x1a, 0x2e, 0x78, 0xde, 0x12, 0x1e, 0xd7, 0xb0, 0x97, 0x54, 0xef, 0x84, 0xdc, 0x5e,
   602  	0x71, 0x4d, 0x65, 0x44, 0x42, 0x8a, 0x66, 0x70, 0xc1, 0x1b, 0xb1, 0x83, 0xeb, 0x1c, 0xc5, 0xbc,
   603  	0xbb, 0x86, 0xf5, 0x52, 0xb4, 0x6e, 0xfd, 0x0d, 0x00, 0xab, 0x58, 0x95, 0xff, 0xef, 0x5a, 0xf9,
   604  	0x6f, 0x7a, 0xc4, 0x07, 0x42, 0x5e, 0xdc, 0xe8, 0x83, 0xa9, 0xa6, 0xe9, 0x43, 0x98, 0xe5, 0xcf,
   605  	0x45, 0xce, 0xb5, 0x35, 0x3e, 0xc2, 0xfb, 0xbd, 0xc1, 0xe2, 0x0a, 0x2b, 0xba, 0xb0, 0xdf, 0x1b,
   606  	0x2c, 0xa5, 0xa9, 0x90, 0xb7, 0xd7, 0x73, 0xdb, 0xed, 0x11, 0xde, 0xef, 0xbd, 0x1b, 0xf0, 0x6a,
   607  	0x07, 0xbd, 0x20, 0x72, 0xbd, 0x23, 0xb2, 0xd1, 0xa0, 0xdf, 0xc1, 0x29, 0xff, 0x78, 0xc6, 0x88,
   608  	0x3d, 0xbc, 0x6d, 0x9b, 0x0c, 0x01, 0x1f, 0xb2, 0xbd, 0xbf, 0xbb, 0x30, 0xaa, 0xa5, 0x20, 0x04,
   609  	0x67, 0xfc, 0xbe, 0x1b, 0x76, 0x8d, 0xc6, 0x70, 0xc2, 0xd6, 0xf6, 0x2a, 0x43, 0x7c, 0xc2, 0xd6,
   610  	0x68, 0x09, 0x7d, 0x55, 0xcc, 0x8e, 0xbd, 0x83, 0x33, 0xfb, 0xbe, 0xdd, 0xf1, 0x47, 0xe6, 0x0d,
   611  	0x57, 0x4a, 0x46, 0xb4, 0x6c, 0xbd, 0x7b, 0xf6, 0x1f, 0x44, 0x8f, 0x4d, 0x02, 0xae, 0x94, 0xd0,
   612  	0x5b, 0x18, 0x6c, 0xca, 0x2a, 0xba, 0x5d, 0xab, 0xfa, 0x43, 0x2b, 0xd5, 0xa3, 0xa5, 0xc7, 0x7b,
   613  	0x2d, 0xb4, 0x00, 0xc8, 0xc4, 0x8e, 0xca, 0xa5, 0x26, 0x9a, 0xba, 0x3d, 0xfb, 0x05, 0x0a, 0x5a,
   614  	0x29, 0xbf, 0xda, 0xd3, 0xf0, 0x81, 0x04, 0xba, 0x82, 0x81, 0xa2, 0x61, 0x2e, 0x99, 0xbe, 0x75,
   615  	0xfb, 0xd6, 0xe8, 0xb3, 0x0f, 0xc9, 0x2d, 0xcb, 0xbc, 0x86, 0xb7, 0x8a, 0x8e, 0x9e, 0x42, 0x4f,
   616  	0x69, 0xa2, 0x73, 0xe5, 0x0e, 0xac, 0x90, 0x63, 0x85, 0x96, 0x36, 0x84, 0x4b, 0x08, 0x79, 0xf0,
   617  	0x30, 0x11, 0xa1, 0xa5, 0xda, 0x3f, 0xdf, 0xd0, 0x36, 0xb7, 0x16, 0x33, 0xa3, 0x10, 0xdd, 0xac,
   618  	0xb9, 0x0b, 0xc5, 0x28, 0x98, 0x35, 0x9a, 0x82, 0x13, 0x52, 0xa9, 0x59, 0xc4, 0x42, 0x73, 0x73,
   619  	0xc7, 0x42, 0x87, 0x21, 0xc3, 0xca, 0x84, 0xd4, 0xee, 0x43, 0x3b, 0xdd, 0x76, 0x8d, 0x3e, 0x87,
   620  	0x31, 0xc9, 0xf5, 0x46, 0x48, 0x76, 0x47, 0xe5, 0x2b, 0x83, 0x8e, 0x2c, 0xda, 0x88, 0xa2, 0xc7,
   621  	0x70, 0xa6, 0x49, 0xac, 0xdc, 0xb1, 0x35, 0x3e, 0xb4, 0xc6, 0x5f, 0x93, 0x58, 0x61, 0x1b, 0xfe,
   622  	0xf2, 0x47, 0x78, 0xf4, 0x81, 0x5a, 0x22, 0x07, 0xfa, 0x6f, 0xf8, 0x96, 0x8b, 0x1d, 0x3f, 0x7f,
   623  	0x60, 0x36, 0x38, 0xe7, 0x9c, 0xf1, 0xf8, 0xbc, 0x83, 0xfa, 0x70, 0xba, 0x88, 0xa2, 0xf3, 0x93,
   624  	0xd9, 0x9f, 0x80, 0x6a, 0xec, 0x9f, 0x4d, 0x55, 0x51, 0x0c, 0xbd, 0x2b, 0xfe, 0x5e, 0x6c, 0x29,
   625  	0xfa, 0xaa, 0xdd, 0x07, 0xbf, 0x78, 0xd5, 0x26, 0xcf, 0x5a, 0x66, 0x17, 0xaf, 0x8c, 0xf7, 0x60,
   626  	0xfe, 0xf5, 0x1f, 0x41, 0xcc, 0xf4, 0x26, 0x5f, 0x99, 0xcc, 0x20, 0x65, 0xa1, 0x14, 0x4a, 0x44,
   627  	0x3a, 0x48, 0x45, 0x18, 0xc8, 0x2c, 0x0c, 0xee, 0xa5, 0x82, 0x52, 0x6a, 0xd5, 0xb3, 0x6f, 0xc6,
   628  	0x37, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, 0x79, 0xe5, 0x17, 0xbf, 0xf5, 0x07, 0x00, 0x00,
   629  }
   630  
   631  // Reference imports to suppress errors if they are not otherwise used.
   632  var _ context.Context
   633  var _ grpc.ClientConn
   634  
   635  // This is a compile-time assertion to ensure that this generated file
   636  // is compatible with the grpc package it is being compiled against.
   637  const _ = grpc.SupportPackageIsVersion4
   638  
   639  // BareMetalHostAgentClient is the client API for BareMetalHostAgent service.
   640  //
   641  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   642  type BareMetalHostAgentClient interface {
   643  	Invoke(ctx context.Context, in *BareMetalHostRequest, opts ...grpc.CallOption) (*BareMetalHostResponse, error)
   644  }
   645  
   646  type bareMetalHostAgentClient struct {
   647  	cc *grpc.ClientConn
   648  }
   649  
   650  func NewBareMetalHostAgentClient(cc *grpc.ClientConn) BareMetalHostAgentClient {
   651  	return &bareMetalHostAgentClient{cc}
   652  }
   653  
   654  func (c *bareMetalHostAgentClient) Invoke(ctx context.Context, in *BareMetalHostRequest, opts ...grpc.CallOption) (*BareMetalHostResponse, error) {
   655  	out := new(BareMetalHostResponse)
   656  	err := c.cc.Invoke(ctx, "/moc.cloudagent.compute.BareMetalHostAgent/Invoke", in, out, opts...)
   657  	if err != nil {
   658  		return nil, err
   659  	}
   660  	return out, nil
   661  }
   662  
   663  // BareMetalHostAgentServer is the server API for BareMetalHostAgent service.
   664  type BareMetalHostAgentServer interface {
   665  	Invoke(context.Context, *BareMetalHostRequest) (*BareMetalHostResponse, error)
   666  }
   667  
   668  // UnimplementedBareMetalHostAgentServer can be embedded to have forward compatible implementations.
   669  type UnimplementedBareMetalHostAgentServer struct {
   670  }
   671  
   672  func (*UnimplementedBareMetalHostAgentServer) Invoke(ctx context.Context, req *BareMetalHostRequest) (*BareMetalHostResponse, error) {
   673  	return nil, status.Errorf(codes.Unimplemented, "method Invoke not implemented")
   674  }
   675  
   676  func RegisterBareMetalHostAgentServer(s *grpc.Server, srv BareMetalHostAgentServer) {
   677  	s.RegisterService(&_BareMetalHostAgent_serviceDesc, srv)
   678  }
   679  
   680  func _BareMetalHostAgent_Invoke_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   681  	in := new(BareMetalHostRequest)
   682  	if err := dec(in); err != nil {
   683  		return nil, err
   684  	}
   685  	if interceptor == nil {
   686  		return srv.(BareMetalHostAgentServer).Invoke(ctx, in)
   687  	}
   688  	info := &grpc.UnaryServerInfo{
   689  		Server:     srv,
   690  		FullMethod: "/moc.cloudagent.compute.BareMetalHostAgent/Invoke",
   691  	}
   692  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   693  		return srv.(BareMetalHostAgentServer).Invoke(ctx, req.(*BareMetalHostRequest))
   694  	}
   695  	return interceptor(ctx, in, info, handler)
   696  }
   697  
   698  var _BareMetalHostAgent_serviceDesc = grpc.ServiceDesc{
   699  	ServiceName: "moc.cloudagent.compute.BareMetalHostAgent",
   700  	HandlerType: (*BareMetalHostAgentServer)(nil),
   701  	Methods: []grpc.MethodDesc{
   702  		{
   703  			MethodName: "Invoke",
   704  			Handler:    _BareMetalHostAgent_Invoke_Handler,
   705  		},
   706  	},
   707  	Streams:  []grpc.StreamDesc{},
   708  	Metadata: "moc_cloudagent_baremetalhost.proto",
   709  }