github.com/microsoft/moc@v0.17.1/rpc/nodeagent/storage/moc_nodeagent_virtualharddisk.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // source: moc_nodeagent_virtualharddisk.proto
     3  
     4  package storage
     5  
     6  import (
     7  	context "context"
     8  	fmt "fmt"
     9  	proto "github.com/golang/protobuf/proto"
    10  	empty "github.com/golang/protobuf/ptypes/empty"
    11  	wrappers "github.com/golang/protobuf/ptypes/wrappers"
    12  	common "github.com/microsoft/moc/rpc/common"
    13  	grpc "google.golang.org/grpc"
    14  	codes "google.golang.org/grpc/codes"
    15  	status "google.golang.org/grpc/status"
    16  	math "math"
    17  )
    18  
    19  // Reference imports to suppress errors if they are not otherwise used.
    20  var _ = proto.Marshal
    21  var _ = fmt.Errorf
    22  var _ = math.Inf
    23  
    24  // This is a compile-time assertion to ensure that this generated file
    25  // is compatible with the proto package it is being compiled against.
    26  // A compilation error at this line likely means your copy of the
    27  // proto package needs to be updated.
    28  const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
    29  
    30  type VirtualHardDiskType int32
    31  
    32  const (
    33  	VirtualHardDiskType_OS_VIRTUALHARDDISK       VirtualHardDiskType = 0
    34  	VirtualHardDiskType_DATADISK_VIRTUALHARDDISK VirtualHardDiskType = 1
    35  )
    36  
    37  var VirtualHardDiskType_name = map[int32]string{
    38  	0: "OS_VIRTUALHARDDISK",
    39  	1: "DATADISK_VIRTUALHARDDISK",
    40  }
    41  
    42  var VirtualHardDiskType_value = map[string]int32{
    43  	"OS_VIRTUALHARDDISK":       0,
    44  	"DATADISK_VIRTUALHARDDISK": 1,
    45  }
    46  
    47  func (x VirtualHardDiskType) String() string {
    48  	return proto.EnumName(VirtualHardDiskType_name, int32(x))
    49  }
    50  
    51  func (VirtualHardDiskType) EnumDescriptor() ([]byte, []int) {
    52  	return fileDescriptor_c1f33a566472b7b7, []int{0}
    53  }
    54  
    55  type VirtualHardDiskRequest struct {
    56  	VirtualHardDiskSystems []*VirtualHardDisk `protobuf:"bytes,1,rep,name=VirtualHardDiskSystems,proto3" json:"VirtualHardDiskSystems,omitempty"`
    57  	OperationType          common.Operation   `protobuf:"varint,2,opt,name=OperationType,proto3,enum=moc.Operation" json:"OperationType,omitempty"`
    58  	XXX_NoUnkeyedLiteral   struct{}           `json:"-"`
    59  	XXX_unrecognized       []byte             `json:"-"`
    60  	XXX_sizecache          int32              `json:"-"`
    61  }
    62  
    63  func (m *VirtualHardDiskRequest) Reset()         { *m = VirtualHardDiskRequest{} }
    64  func (m *VirtualHardDiskRequest) String() string { return proto.CompactTextString(m) }
    65  func (*VirtualHardDiskRequest) ProtoMessage()    {}
    66  func (*VirtualHardDiskRequest) Descriptor() ([]byte, []int) {
    67  	return fileDescriptor_c1f33a566472b7b7, []int{0}
    68  }
    69  
    70  func (m *VirtualHardDiskRequest) XXX_Unmarshal(b []byte) error {
    71  	return xxx_messageInfo_VirtualHardDiskRequest.Unmarshal(m, b)
    72  }
    73  func (m *VirtualHardDiskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    74  	return xxx_messageInfo_VirtualHardDiskRequest.Marshal(b, m, deterministic)
    75  }
    76  func (m *VirtualHardDiskRequest) XXX_Merge(src proto.Message) {
    77  	xxx_messageInfo_VirtualHardDiskRequest.Merge(m, src)
    78  }
    79  func (m *VirtualHardDiskRequest) XXX_Size() int {
    80  	return xxx_messageInfo_VirtualHardDiskRequest.Size(m)
    81  }
    82  func (m *VirtualHardDiskRequest) XXX_DiscardUnknown() {
    83  	xxx_messageInfo_VirtualHardDiskRequest.DiscardUnknown(m)
    84  }
    85  
    86  var xxx_messageInfo_VirtualHardDiskRequest proto.InternalMessageInfo
    87  
    88  func (m *VirtualHardDiskRequest) GetVirtualHardDiskSystems() []*VirtualHardDisk {
    89  	if m != nil {
    90  		return m.VirtualHardDiskSystems
    91  	}
    92  	return nil
    93  }
    94  
    95  func (m *VirtualHardDiskRequest) GetOperationType() common.Operation {
    96  	if m != nil {
    97  		return m.OperationType
    98  	}
    99  	return common.Operation_GET
   100  }
   101  
   102  type VirtualHardDiskResponse struct {
   103  	VirtualHardDiskSystems []*VirtualHardDisk  `protobuf:"bytes,1,rep,name=VirtualHardDiskSystems,proto3" json:"VirtualHardDiskSystems,omitempty"`
   104  	Result                 *wrappers.BoolValue `protobuf:"bytes,2,opt,name=Result,proto3" json:"Result,omitempty"`
   105  	Error                  string              `protobuf:"bytes,3,opt,name=Error,proto3" json:"Error,omitempty"`
   106  	XXX_NoUnkeyedLiteral   struct{}            `json:"-"`
   107  	XXX_unrecognized       []byte              `json:"-"`
   108  	XXX_sizecache          int32               `json:"-"`
   109  }
   110  
   111  func (m *VirtualHardDiskResponse) Reset()         { *m = VirtualHardDiskResponse{} }
   112  func (m *VirtualHardDiskResponse) String() string { return proto.CompactTextString(m) }
   113  func (*VirtualHardDiskResponse) ProtoMessage()    {}
   114  func (*VirtualHardDiskResponse) Descriptor() ([]byte, []int) {
   115  	return fileDescriptor_c1f33a566472b7b7, []int{1}
   116  }
   117  
   118  func (m *VirtualHardDiskResponse) XXX_Unmarshal(b []byte) error {
   119  	return xxx_messageInfo_VirtualHardDiskResponse.Unmarshal(m, b)
   120  }
   121  func (m *VirtualHardDiskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   122  	return xxx_messageInfo_VirtualHardDiskResponse.Marshal(b, m, deterministic)
   123  }
   124  func (m *VirtualHardDiskResponse) XXX_Merge(src proto.Message) {
   125  	xxx_messageInfo_VirtualHardDiskResponse.Merge(m, src)
   126  }
   127  func (m *VirtualHardDiskResponse) XXX_Size() int {
   128  	return xxx_messageInfo_VirtualHardDiskResponse.Size(m)
   129  }
   130  func (m *VirtualHardDiskResponse) XXX_DiscardUnknown() {
   131  	xxx_messageInfo_VirtualHardDiskResponse.DiscardUnknown(m)
   132  }
   133  
   134  var xxx_messageInfo_VirtualHardDiskResponse proto.InternalMessageInfo
   135  
   136  func (m *VirtualHardDiskResponse) GetVirtualHardDiskSystems() []*VirtualHardDisk {
   137  	if m != nil {
   138  		return m.VirtualHardDiskSystems
   139  	}
   140  	return nil
   141  }
   142  
   143  func (m *VirtualHardDiskResponse) GetResult() *wrappers.BoolValue {
   144  	if m != nil {
   145  		return m.Result
   146  	}
   147  	return nil
   148  }
   149  
   150  func (m *VirtualHardDiskResponse) GetError() string {
   151  	if m != nil {
   152  		return m.Error
   153  	}
   154  	return ""
   155  }
   156  
   157  type SFSImageProperties struct {
   158  	CatalogName          string   `protobuf:"bytes,1,opt,name=catalogName,proto3" json:"catalogName,omitempty"`
   159  	Audience             string   `protobuf:"bytes,2,opt,name=audience,proto3" json:"audience,omitempty"`
   160  	Version              string   `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
   161  	ReleaseName          string   `protobuf:"bytes,4,opt,name=releaseName,proto3" json:"releaseName,omitempty"`
   162  	Parts                uint32   `protobuf:"varint,5,opt,name=parts,proto3" json:"parts,omitempty"`
   163  	DestinationDir       string   `protobuf:"bytes,6,opt,name=destinationDir,proto3" json:"destinationDir,omitempty"`
   164  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   165  	XXX_unrecognized     []byte   `json:"-"`
   166  	XXX_sizecache        int32    `json:"-"`
   167  }
   168  
   169  func (m *SFSImageProperties) Reset()         { *m = SFSImageProperties{} }
   170  func (m *SFSImageProperties) String() string { return proto.CompactTextString(m) }
   171  func (*SFSImageProperties) ProtoMessage()    {}
   172  func (*SFSImageProperties) Descriptor() ([]byte, []int) {
   173  	return fileDescriptor_c1f33a566472b7b7, []int{2}
   174  }
   175  
   176  func (m *SFSImageProperties) XXX_Unmarshal(b []byte) error {
   177  	return xxx_messageInfo_SFSImageProperties.Unmarshal(m, b)
   178  }
   179  func (m *SFSImageProperties) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   180  	return xxx_messageInfo_SFSImageProperties.Marshal(b, m, deterministic)
   181  }
   182  func (m *SFSImageProperties) XXX_Merge(src proto.Message) {
   183  	xxx_messageInfo_SFSImageProperties.Merge(m, src)
   184  }
   185  func (m *SFSImageProperties) XXX_Size() int {
   186  	return xxx_messageInfo_SFSImageProperties.Size(m)
   187  }
   188  func (m *SFSImageProperties) XXX_DiscardUnknown() {
   189  	xxx_messageInfo_SFSImageProperties.DiscardUnknown(m)
   190  }
   191  
   192  var xxx_messageInfo_SFSImageProperties proto.InternalMessageInfo
   193  
   194  func (m *SFSImageProperties) GetCatalogName() string {
   195  	if m != nil {
   196  		return m.CatalogName
   197  	}
   198  	return ""
   199  }
   200  
   201  func (m *SFSImageProperties) GetAudience() string {
   202  	if m != nil {
   203  		return m.Audience
   204  	}
   205  	return ""
   206  }
   207  
   208  func (m *SFSImageProperties) GetVersion() string {
   209  	if m != nil {
   210  		return m.Version
   211  	}
   212  	return ""
   213  }
   214  
   215  func (m *SFSImageProperties) GetReleaseName() string {
   216  	if m != nil {
   217  		return m.ReleaseName
   218  	}
   219  	return ""
   220  }
   221  
   222  func (m *SFSImageProperties) GetParts() uint32 {
   223  	if m != nil {
   224  		return m.Parts
   225  	}
   226  	return 0
   227  }
   228  
   229  func (m *SFSImageProperties) GetDestinationDir() string {
   230  	if m != nil {
   231  		return m.DestinationDir
   232  	}
   233  	return ""
   234  }
   235  
   236  type LocalImageProperties struct {
   237  	Path                 string   `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
   238  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   239  	XXX_unrecognized     []byte   `json:"-"`
   240  	XXX_sizecache        int32    `json:"-"`
   241  }
   242  
   243  func (m *LocalImageProperties) Reset()         { *m = LocalImageProperties{} }
   244  func (m *LocalImageProperties) String() string { return proto.CompactTextString(m) }
   245  func (*LocalImageProperties) ProtoMessage()    {}
   246  func (*LocalImageProperties) Descriptor() ([]byte, []int) {
   247  	return fileDescriptor_c1f33a566472b7b7, []int{3}
   248  }
   249  
   250  func (m *LocalImageProperties) XXX_Unmarshal(b []byte) error {
   251  	return xxx_messageInfo_LocalImageProperties.Unmarshal(m, b)
   252  }
   253  func (m *LocalImageProperties) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   254  	return xxx_messageInfo_LocalImageProperties.Marshal(b, m, deterministic)
   255  }
   256  func (m *LocalImageProperties) XXX_Merge(src proto.Message) {
   257  	xxx_messageInfo_LocalImageProperties.Merge(m, src)
   258  }
   259  func (m *LocalImageProperties) XXX_Size() int {
   260  	return xxx_messageInfo_LocalImageProperties.Size(m)
   261  }
   262  func (m *LocalImageProperties) XXX_DiscardUnknown() {
   263  	xxx_messageInfo_LocalImageProperties.DiscardUnknown(m)
   264  }
   265  
   266  var xxx_messageInfo_LocalImageProperties proto.InternalMessageInfo
   267  
   268  func (m *LocalImageProperties) GetPath() string {
   269  	if m != nil {
   270  		return m.Path
   271  	}
   272  	return ""
   273  }
   274  
   275  type CloneImageProperties struct {
   276  	CloneSource          string   `protobuf:"bytes,1,opt,name=cloneSource,proto3" json:"cloneSource,omitempty"`
   277  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   278  	XXX_unrecognized     []byte   `json:"-"`
   279  	XXX_sizecache        int32    `json:"-"`
   280  }
   281  
   282  func (m *CloneImageProperties) Reset()         { *m = CloneImageProperties{} }
   283  func (m *CloneImageProperties) String() string { return proto.CompactTextString(m) }
   284  func (*CloneImageProperties) ProtoMessage()    {}
   285  func (*CloneImageProperties) Descriptor() ([]byte, []int) {
   286  	return fileDescriptor_c1f33a566472b7b7, []int{4}
   287  }
   288  
   289  func (m *CloneImageProperties) XXX_Unmarshal(b []byte) error {
   290  	return xxx_messageInfo_CloneImageProperties.Unmarshal(m, b)
   291  }
   292  func (m *CloneImageProperties) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   293  	return xxx_messageInfo_CloneImageProperties.Marshal(b, m, deterministic)
   294  }
   295  func (m *CloneImageProperties) XXX_Merge(src proto.Message) {
   296  	xxx_messageInfo_CloneImageProperties.Merge(m, src)
   297  }
   298  func (m *CloneImageProperties) XXX_Size() int {
   299  	return xxx_messageInfo_CloneImageProperties.Size(m)
   300  }
   301  func (m *CloneImageProperties) XXX_DiscardUnknown() {
   302  	xxx_messageInfo_CloneImageProperties.DiscardUnknown(m)
   303  }
   304  
   305  var xxx_messageInfo_CloneImageProperties proto.InternalMessageInfo
   306  
   307  func (m *CloneImageProperties) GetCloneSource() string {
   308  	if m != nil {
   309  		return m.CloneSource
   310  	}
   311  	return ""
   312  }
   313  
   314  type HttpImageProperties struct {
   315  	HttpURL              string   `protobuf:"bytes,1,opt,name=httpURL,proto3" json:"httpURL,omitempty"`
   316  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   317  	XXX_unrecognized     []byte   `json:"-"`
   318  	XXX_sizecache        int32    `json:"-"`
   319  }
   320  
   321  func (m *HttpImageProperties) Reset()         { *m = HttpImageProperties{} }
   322  func (m *HttpImageProperties) String() string { return proto.CompactTextString(m) }
   323  func (*HttpImageProperties) ProtoMessage()    {}
   324  func (*HttpImageProperties) Descriptor() ([]byte, []int) {
   325  	return fileDescriptor_c1f33a566472b7b7, []int{5}
   326  }
   327  
   328  func (m *HttpImageProperties) XXX_Unmarshal(b []byte) error {
   329  	return xxx_messageInfo_HttpImageProperties.Unmarshal(m, b)
   330  }
   331  func (m *HttpImageProperties) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   332  	return xxx_messageInfo_HttpImageProperties.Marshal(b, m, deterministic)
   333  }
   334  func (m *HttpImageProperties) XXX_Merge(src proto.Message) {
   335  	xxx_messageInfo_HttpImageProperties.Merge(m, src)
   336  }
   337  func (m *HttpImageProperties) XXX_Size() int {
   338  	return xxx_messageInfo_HttpImageProperties.Size(m)
   339  }
   340  func (m *HttpImageProperties) XXX_DiscardUnknown() {
   341  	xxx_messageInfo_HttpImageProperties.DiscardUnknown(m)
   342  }
   343  
   344  var xxx_messageInfo_HttpImageProperties proto.InternalMessageInfo
   345  
   346  func (m *HttpImageProperties) GetHttpURL() string {
   347  	if m != nil {
   348  		return m.HttpURL
   349  	}
   350  	return ""
   351  }
   352  
   353  type AzureGalleryImageProperties struct {
   354  	SasURI               string   `protobuf:"bytes,1,opt,name=sasURI,proto3" json:"sasURI,omitempty"`
   355  	Version              string   `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
   356  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   357  	XXX_unrecognized     []byte   `json:"-"`
   358  	XXX_sizecache        int32    `json:"-"`
   359  }
   360  
   361  func (m *AzureGalleryImageProperties) Reset()         { *m = AzureGalleryImageProperties{} }
   362  func (m *AzureGalleryImageProperties) String() string { return proto.CompactTextString(m) }
   363  func (*AzureGalleryImageProperties) ProtoMessage()    {}
   364  func (*AzureGalleryImageProperties) Descriptor() ([]byte, []int) {
   365  	return fileDescriptor_c1f33a566472b7b7, []int{6}
   366  }
   367  
   368  func (m *AzureGalleryImageProperties) XXX_Unmarshal(b []byte) error {
   369  	return xxx_messageInfo_AzureGalleryImageProperties.Unmarshal(m, b)
   370  }
   371  func (m *AzureGalleryImageProperties) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   372  	return xxx_messageInfo_AzureGalleryImageProperties.Marshal(b, m, deterministic)
   373  }
   374  func (m *AzureGalleryImageProperties) XXX_Merge(src proto.Message) {
   375  	xxx_messageInfo_AzureGalleryImageProperties.Merge(m, src)
   376  }
   377  func (m *AzureGalleryImageProperties) XXX_Size() int {
   378  	return xxx_messageInfo_AzureGalleryImageProperties.Size(m)
   379  }
   380  func (m *AzureGalleryImageProperties) XXX_DiscardUnknown() {
   381  	xxx_messageInfo_AzureGalleryImageProperties.DiscardUnknown(m)
   382  }
   383  
   384  var xxx_messageInfo_AzureGalleryImageProperties proto.InternalMessageInfo
   385  
   386  func (m *AzureGalleryImageProperties) GetSasURI() string {
   387  	if m != nil {
   388  		return m.SasURI
   389  	}
   390  	return ""
   391  }
   392  
   393  func (m *AzureGalleryImageProperties) GetVersion() string {
   394  	if m != nil {
   395  		return m.Version
   396  	}
   397  	return ""
   398  }
   399  
   400  type VirtualHardDisk struct {
   401  	Name   string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
   402  	Id     string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
   403  	Source string `protobuf:"bytes,3,opt,name=source,proto3" json:"source,omitempty"`
   404  	Path   string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"`
   405  	// Storage container name to hold this vhd
   406  	ContainerName        string                     `protobuf:"bytes,5,opt,name=containerName,proto3" json:"containerName,omitempty"`
   407  	Status               *common.Status             `protobuf:"bytes,6,opt,name=status,proto3" json:"status,omitempty"`
   408  	Size                 int64                      `protobuf:"varint,7,opt,name=size,proto3" json:"size,omitempty"`
   409  	Dynamic              bool                       `protobuf:"varint,8,opt,name=dynamic,proto3" json:"dynamic,omitempty"`
   410  	Blocksizebytes       int32                      `protobuf:"varint,9,opt,name=blocksizebytes,proto3" json:"blocksizebytes,omitempty"`
   411  	Logicalsectorbytes   int32                      `protobuf:"varint,10,opt,name=logicalsectorbytes,proto3" json:"logicalsectorbytes,omitempty"`
   412  	Physicalsectorbytes  int32                      `protobuf:"varint,11,opt,name=physicalsectorbytes,proto3" json:"physicalsectorbytes,omitempty"`
   413  	Controllernumber     int64                      `protobuf:"varint,12,opt,name=controllernumber,proto3" json:"controllernumber,omitempty"`
   414  	Controllerlocation   int64                      `protobuf:"varint,13,opt,name=controllerlocation,proto3" json:"controllerlocation,omitempty"`
   415  	Disknumber           int64                      `protobuf:"varint,14,opt,name=disknumber,proto3" json:"disknumber,omitempty"`
   416  	VirtualmachineName   string                     `protobuf:"bytes,15,opt,name=virtualmachineName,proto3" json:"virtualmachineName,omitempty"`
   417  	Scsipath             string                     `protobuf:"bytes,16,opt,name=scsipath,proto3" json:"scsipath,omitempty"`
   418  	Virtualharddisktype  VirtualHardDiskType        `protobuf:"varint,17,opt,name=virtualharddisktype,proto3,enum=moc.nodeagent.storage.VirtualHardDiskType" json:"virtualharddisktype,omitempty"`
   419  	Entity               *common.Entity             `protobuf:"bytes,18,opt,name=entity,proto3" json:"entity,omitempty"`
   420  	Tags                 *common.Tags               `protobuf:"bytes,19,opt,name=tags,proto3" json:"tags,omitempty"`
   421  	SourceType           common.ImageSource         `protobuf:"varint,20,opt,name=sourceType,proto3,enum=moc.ImageSource" json:"sourceType,omitempty"`
   422  	HyperVGeneration     common.HyperVGeneration    `protobuf:"varint,21,opt,name=hyperVGeneration,proto3,enum=moc.HyperVGeneration" json:"hyperVGeneration,omitempty"`
   423  	CloudInitDataSource  common.CloudInitDataSource `protobuf:"varint,22,opt,name=cloudInitDataSource,proto3,enum=moc.CloudInitDataSource" json:"cloudInitDataSource,omitempty"`
   424  	DiskFileFormat       common.DiskFileFormat      `protobuf:"varint,23,opt,name=diskFileFormat,proto3,enum=moc.DiskFileFormat" json:"diskFileFormat,omitempty"`
   425  	XXX_NoUnkeyedLiteral struct{}                   `json:"-"`
   426  	XXX_unrecognized     []byte                     `json:"-"`
   427  	XXX_sizecache        int32                      `json:"-"`
   428  }
   429  
   430  func (m *VirtualHardDisk) Reset()         { *m = VirtualHardDisk{} }
   431  func (m *VirtualHardDisk) String() string { return proto.CompactTextString(m) }
   432  func (*VirtualHardDisk) ProtoMessage()    {}
   433  func (*VirtualHardDisk) Descriptor() ([]byte, []int) {
   434  	return fileDescriptor_c1f33a566472b7b7, []int{7}
   435  }
   436  
   437  func (m *VirtualHardDisk) XXX_Unmarshal(b []byte) error {
   438  	return xxx_messageInfo_VirtualHardDisk.Unmarshal(m, b)
   439  }
   440  func (m *VirtualHardDisk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   441  	return xxx_messageInfo_VirtualHardDisk.Marshal(b, m, deterministic)
   442  }
   443  func (m *VirtualHardDisk) XXX_Merge(src proto.Message) {
   444  	xxx_messageInfo_VirtualHardDisk.Merge(m, src)
   445  }
   446  func (m *VirtualHardDisk) XXX_Size() int {
   447  	return xxx_messageInfo_VirtualHardDisk.Size(m)
   448  }
   449  func (m *VirtualHardDisk) XXX_DiscardUnknown() {
   450  	xxx_messageInfo_VirtualHardDisk.DiscardUnknown(m)
   451  }
   452  
   453  var xxx_messageInfo_VirtualHardDisk proto.InternalMessageInfo
   454  
   455  func (m *VirtualHardDisk) GetName() string {
   456  	if m != nil {
   457  		return m.Name
   458  	}
   459  	return ""
   460  }
   461  
   462  func (m *VirtualHardDisk) GetId() string {
   463  	if m != nil {
   464  		return m.Id
   465  	}
   466  	return ""
   467  }
   468  
   469  func (m *VirtualHardDisk) GetSource() string {
   470  	if m != nil {
   471  		return m.Source
   472  	}
   473  	return ""
   474  }
   475  
   476  func (m *VirtualHardDisk) GetPath() string {
   477  	if m != nil {
   478  		return m.Path
   479  	}
   480  	return ""
   481  }
   482  
   483  func (m *VirtualHardDisk) GetContainerName() string {
   484  	if m != nil {
   485  		return m.ContainerName
   486  	}
   487  	return ""
   488  }
   489  
   490  func (m *VirtualHardDisk) GetStatus() *common.Status {
   491  	if m != nil {
   492  		return m.Status
   493  	}
   494  	return nil
   495  }
   496  
   497  func (m *VirtualHardDisk) GetSize() int64 {
   498  	if m != nil {
   499  		return m.Size
   500  	}
   501  	return 0
   502  }
   503  
   504  func (m *VirtualHardDisk) GetDynamic() bool {
   505  	if m != nil {
   506  		return m.Dynamic
   507  	}
   508  	return false
   509  }
   510  
   511  func (m *VirtualHardDisk) GetBlocksizebytes() int32 {
   512  	if m != nil {
   513  		return m.Blocksizebytes
   514  	}
   515  	return 0
   516  }
   517  
   518  func (m *VirtualHardDisk) GetLogicalsectorbytes() int32 {
   519  	if m != nil {
   520  		return m.Logicalsectorbytes
   521  	}
   522  	return 0
   523  }
   524  
   525  func (m *VirtualHardDisk) GetPhysicalsectorbytes() int32 {
   526  	if m != nil {
   527  		return m.Physicalsectorbytes
   528  	}
   529  	return 0
   530  }
   531  
   532  func (m *VirtualHardDisk) GetControllernumber() int64 {
   533  	if m != nil {
   534  		return m.Controllernumber
   535  	}
   536  	return 0
   537  }
   538  
   539  func (m *VirtualHardDisk) GetControllerlocation() int64 {
   540  	if m != nil {
   541  		return m.Controllerlocation
   542  	}
   543  	return 0
   544  }
   545  
   546  func (m *VirtualHardDisk) GetDisknumber() int64 {
   547  	if m != nil {
   548  		return m.Disknumber
   549  	}
   550  	return 0
   551  }
   552  
   553  func (m *VirtualHardDisk) GetVirtualmachineName() string {
   554  	if m != nil {
   555  		return m.VirtualmachineName
   556  	}
   557  	return ""
   558  }
   559  
   560  func (m *VirtualHardDisk) GetScsipath() string {
   561  	if m != nil {
   562  		return m.Scsipath
   563  	}
   564  	return ""
   565  }
   566  
   567  func (m *VirtualHardDisk) GetVirtualharddisktype() VirtualHardDiskType {
   568  	if m != nil {
   569  		return m.Virtualharddisktype
   570  	}
   571  	return VirtualHardDiskType_OS_VIRTUALHARDDISK
   572  }
   573  
   574  func (m *VirtualHardDisk) GetEntity() *common.Entity {
   575  	if m != nil {
   576  		return m.Entity
   577  	}
   578  	return nil
   579  }
   580  
   581  func (m *VirtualHardDisk) GetTags() *common.Tags {
   582  	if m != nil {
   583  		return m.Tags
   584  	}
   585  	return nil
   586  }
   587  
   588  func (m *VirtualHardDisk) GetSourceType() common.ImageSource {
   589  	if m != nil {
   590  		return m.SourceType
   591  	}
   592  	return common.ImageSource_LOCAL_SOURCE
   593  }
   594  
   595  func (m *VirtualHardDisk) GetHyperVGeneration() common.HyperVGeneration {
   596  	if m != nil {
   597  		return m.HyperVGeneration
   598  	}
   599  	return common.HyperVGeneration_HyperVGenerationV2
   600  }
   601  
   602  func (m *VirtualHardDisk) GetCloudInitDataSource() common.CloudInitDataSource {
   603  	if m != nil {
   604  		return m.CloudInitDataSource
   605  	}
   606  	return common.CloudInitDataSource_NoCloud
   607  }
   608  
   609  func (m *VirtualHardDisk) GetDiskFileFormat() common.DiskFileFormat {
   610  	if m != nil {
   611  		return m.DiskFileFormat
   612  	}
   613  	return common.DiskFileFormat_DiskFileFormatVHDX
   614  }
   615  
   616  func init() {
   617  	proto.RegisterEnum("moc.nodeagent.storage.VirtualHardDiskType", VirtualHardDiskType_name, VirtualHardDiskType_value)
   618  	proto.RegisterType((*VirtualHardDiskRequest)(nil), "moc.nodeagent.storage.VirtualHardDiskRequest")
   619  	proto.RegisterType((*VirtualHardDiskResponse)(nil), "moc.nodeagent.storage.VirtualHardDiskResponse")
   620  	proto.RegisterType((*SFSImageProperties)(nil), "moc.nodeagent.storage.SFSImageProperties")
   621  	proto.RegisterType((*LocalImageProperties)(nil), "moc.nodeagent.storage.LocalImageProperties")
   622  	proto.RegisterType((*CloneImageProperties)(nil), "moc.nodeagent.storage.CloneImageProperties")
   623  	proto.RegisterType((*HttpImageProperties)(nil), "moc.nodeagent.storage.HttpImageProperties")
   624  	proto.RegisterType((*AzureGalleryImageProperties)(nil), "moc.nodeagent.storage.AzureGalleryImageProperties")
   625  	proto.RegisterType((*VirtualHardDisk)(nil), "moc.nodeagent.storage.VirtualHardDisk")
   626  }
   627  
   628  func init() {
   629  	proto.RegisterFile("moc_nodeagent_virtualharddisk.proto", fileDescriptor_c1f33a566472b7b7)
   630  }
   631  
   632  var fileDescriptor_c1f33a566472b7b7 = []byte{
   633  	// 1000 bytes of a gzipped FileDescriptorProto
   634  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0xdf, 0x4e, 0x23, 0xb7,
   635  	0x17, 0xde, 0x81, 0x10, 0x96, 0x93, 0x1f, 0x59, 0xd6, 0x61, 0x61, 0x7e, 0xd9, 0x3f, 0x8a, 0xb2,
   636  	0xd5, 0x2a, 0x42, 0xea, 0x04, 0xa5, 0xbd, 0xa8, 0xd4, 0xab, 0x40, 0x60, 0x49, 0x17, 0xed, 0x56,
   637  	0x0e, 0x70, 0x51, 0x55, 0x45, 0x8e, 0x63, 0x12, 0x8b, 0x99, 0xf1, 0xd4, 0xf6, 0x50, 0x65, 0x9f,
   638  	0xa0, 0x4f, 0xd3, 0xbb, 0x3e, 0x41, 0x2f, 0xdb, 0x07, 0xe8, 0xe3, 0x54, 0x3e, 0x33, 0x84, 0x64,
   639  	0x92, 0x4a, 0xdc, 0xf4, 0x2a, 0xf1, 0xf7, 0x7d, 0xe7, 0xf3, 0xf1, 0xb1, 0x7d, 0x3c, 0xf0, 0x36,
   640  	0x52, 0xfc, 0x3a, 0x56, 0x23, 0xc1, 0xc6, 0x22, 0xb6, 0xd7, 0x77, 0x52, 0xdb, 0x94, 0x85, 0x13,
   641  	0xa6, 0x47, 0x23, 0x69, 0x6e, 0x83, 0x44, 0x2b, 0xab, 0xc8, 0x8b, 0x48, 0xf1, 0x60, 0x26, 0x0a,
   642  	0x8c, 0x55, 0x9a, 0x8d, 0x45, 0xfd, 0xcd, 0x58, 0xa9, 0x71, 0x28, 0xda, 0x28, 0x1a, 0xa6, 0x37,
   643  	0xed, 0x5f, 0x34, 0x4b, 0x12, 0xa1, 0x4d, 0x16, 0x56, 0xdf, 0x77, 0xde, 0x5c, 0x45, 0x91, 0x8a,
   644  	0xf3, 0x9f, 0x9c, 0x78, 0x3d, 0x47, 0xc4, 0xca, 0xca, 0x1b, 0xc9, 0x99, 0x95, 0x33, 0xfa, 0x65,
   645  	0xd1, 0x57, 0x44, 0x89, 0x9d, 0x66, 0x64, 0xf3, 0x37, 0x0f, 0xf6, 0xae, 0xb2, 0x2c, 0xcf, 0x98,
   646  	0x1e, 0xf5, 0xa4, 0xb9, 0xa5, 0xe2, 0xe7, 0x54, 0x18, 0x4b, 0x7e, 0x5a, 0x62, 0x06, 0x53, 0x63,
   647  	0x45, 0x64, 0x7c, 0xaf, 0xb1, 0xde, 0xaa, 0x74, 0xde, 0x05, 0x2b, 0xd7, 0x11, 0x14, 0xed, 0xfe,
   648  	0xc5, 0x85, 0x7c, 0x0d, 0xdb, 0x9f, 0x12, 0xa1, 0x31, 0xd5, 0x8b, 0x69, 0x22, 0xfc, 0xb5, 0x86,
   649  	0xd7, 0xaa, 0x76, 0xaa, 0x68, 0x3b, 0x63, 0xe8, 0xa2, 0xa8, 0xf9, 0x87, 0x07, 0xfb, 0x4b, 0x09,
   650  	0x9b, 0x44, 0xc5, 0x46, 0xfc, 0xe7, 0x19, 0x77, 0xa0, 0x4c, 0x85, 0x49, 0x43, 0x8b, 0xa9, 0x56,
   651  	0x3a, 0xf5, 0x20, 0x2b, 0x6d, 0x70, 0x5f, 0xda, 0xe0, 0x48, 0xa9, 0xf0, 0x8a, 0x85, 0xa9, 0xa0,
   652  	0xb9, 0x92, 0xec, 0xc2, 0xc6, 0x89, 0xd6, 0x4a, 0xfb, 0xeb, 0x0d, 0xaf, 0xb5, 0x45, 0xb3, 0x41,
   653  	0xf3, 0x2f, 0x0f, 0xc8, 0xe0, 0x74, 0xd0, 0x8f, 0xd8, 0x58, 0x7c, 0xaf, 0x55, 0x22, 0xb4, 0x95,
   654  	0xc2, 0x90, 0x06, 0x54, 0x38, 0xb3, 0x2c, 0x54, 0xe3, 0x8f, 0x2c, 0x12, 0xbe, 0x87, 0x21, 0xf3,
   655  	0x10, 0xa9, 0xc3, 0x53, 0x96, 0x8e, 0xa4, 0x88, 0x79, 0x56, 0xaf, 0x2d, 0x3a, 0x1b, 0x13, 0x1f,
   656  	0x36, 0xef, 0x84, 0x36, 0x52, 0xc5, 0xf9, 0x64, 0xf7, 0x43, 0xe7, 0xab, 0x45, 0x28, 0x98, 0x11,
   657  	0xe8, 0x5b, 0xca, 0x7c, 0xe7, 0x20, 0x97, 0x66, 0xc2, 0xb4, 0x35, 0xfe, 0x46, 0xc3, 0x6b, 0x6d,
   658  	0xd3, 0x6c, 0x40, 0xde, 0x41, 0x75, 0x24, 0x8c, 0x95, 0x31, 0xd6, 0xbf, 0x27, 0xb5, 0x5f, 0xc6,
   659  	0xd0, 0x02, 0xda, 0x3c, 0x84, 0xdd, 0x73, 0xc5, 0x59, 0x58, 0x5c, 0x8f, 0x0f, 0xa5, 0x84, 0xd9,
   660  	0x49, 0xb6, 0x90, 0xa3, 0xd2, 0xaf, 0xbf, 0xfb, 0x1e, 0x45, 0xa4, 0xf9, 0x0d, 0xec, 0x1e, 0x87,
   661  	0x2a, 0x16, 0xab, 0x2a, 0xe0, 0xf0, 0x81, 0x4a, 0x35, 0x7f, 0xa8, 0xc0, 0x03, 0xd4, 0x6c, 0x43,
   662  	0xed, 0xcc, 0xda, 0x64, 0x79, 0xaa, 0xcd, 0x89, 0xb5, 0xc9, 0x25, 0x3d, 0xcf, 0x83, 0xee, 0x87,
   663  	0xcd, 0x4b, 0x78, 0xd9, 0xfd, 0x9c, 0x6a, 0xf1, 0x9e, 0x85, 0xa1, 0xd0, 0xd3, 0x62, 0xe0, 0x2b,
   664  	0x28, 0x1b, 0x66, 0x2e, 0x69, 0x7f, 0x21, 0xcb, 0x1c, 0x9b, 0xaf, 0xe9, 0xda, 0x42, 0x4d, 0x9b,
   665  	0x7f, 0x6f, 0xc2, 0xb3, 0xc2, 0x39, 0x21, 0x04, 0x4a, 0xf1, 0xc3, 0xc6, 0xe1, 0x7f, 0x52, 0x85,
   666  	0x35, 0x39, 0xca, 0x83, 0xd7, 0xe4, 0x08, 0xe7, 0xcb, 0x16, 0xb7, 0xbe, 0x30, 0x1f, 0x62, 0xb3,
   667  	0x8a, 0x95, 0x8a, 0x15, 0x23, 0x5f, 0xc0, 0x36, 0x57, 0xb1, 0x65, 0x32, 0x16, 0x1a, 0x77, 0x71,
   668  	0x03, 0x2d, 0x17, 0x41, 0xf2, 0x16, 0xca, 0xc6, 0x32, 0x9b, 0x1a, 0xdc, 0xa9, 0x4a, 0xa7, 0x82,
   669  	0x47, 0x7e, 0x80, 0x10, 0xcd, 0x29, 0x97, 0xa6, 0x91, 0x9f, 0x85, 0xbf, 0xd9, 0xf0, 0x5a, 0xeb,
   670  	0x14, 0xff, 0xbb, 0x85, 0x8e, 0xa6, 0x31, 0x8b, 0x24, 0xf7, 0x9f, 0x36, 0xbc, 0xd6, 0x53, 0x7a,
   671  	0x3f, 0x74, 0x87, 0x60, 0x18, 0x2a, 0x7e, 0xeb, 0x64, 0xc3, 0xa9, 0x15, 0xc6, 0xdf, 0x6a, 0x78,
   672  	0xad, 0x0d, 0x5a, 0x40, 0x49, 0x00, 0x24, 0x54, 0x63, 0xc9, 0x59, 0x68, 0x04, 0xb7, 0x4a, 0x67,
   673  	0x5a, 0x40, 0xed, 0x0a, 0x86, 0x1c, 0x42, 0x2d, 0x99, 0x4c, 0x4d, 0x31, 0xa0, 0x82, 0x01, 0xab,
   674  	0x28, 0x72, 0x00, 0x3b, 0x6e, 0xb5, 0x5a, 0xb9, 0x8d, 0x8c, 0xd3, 0x68, 0x28, 0xb4, 0xff, 0x3f,
   675  	0x5c, 0xc3, 0x12, 0xee, 0xb2, 0x79, 0xc0, 0x42, 0x95, 0x75, 0x44, 0x7f, 0x1b, 0xd5, 0x2b, 0x18,
   676  	0xf2, 0x06, 0xc0, 0xb5, 0xe8, 0xdc, 0xb5, 0x8a, 0xba, 0x39, 0xc4, 0xf9, 0xe5, 0xdd, 0x3c, 0x62,
   677  	0x7c, 0x22, 0xe3, 0xec, 0x26, 0x3d, 0xc3, 0x3d, 0x58, 0xc1, 0xb8, 0x8b, 0x6a, 0xb8, 0x91, 0xb8,
   678  	0x99, 0x3b, 0xd9, 0x45, 0xbd, 0x1f, 0x93, 0x1f, 0xa1, 0x56, 0x78, 0x19, 0xac, 0xeb, 0x7f, 0xcf,
   679  	0xb1, 0xff, 0x1d, 0x3c, 0xae, 0x49, 0xb9, 0x66, 0x48, 0x57, 0xd9, 0xb8, 0x23, 0x20, 0x62, 0x2b,
   680  	0xed, 0xd4, 0x27, 0x73, 0x47, 0xe0, 0x04, 0x21, 0x9a, 0x53, 0xe4, 0x35, 0x94, 0x2c, 0x1b, 0x1b,
   681  	0xbf, 0x86, 0x92, 0x2d, 0x94, 0x5c, 0xb0, 0xb1, 0xa1, 0x08, 0x93, 0x43, 0x80, 0xec, 0x40, 0x62,
   682  	0x63, 0xde, 0xc5, 0xc4, 0x76, 0x50, 0x84, 0xd7, 0x27, 0xbb, 0x8a, 0x74, 0x4e, 0x43, 0xba, 0xb0,
   683  	0x33, 0x99, 0x26, 0x42, 0x5f, 0xbd, 0x17, 0x71, 0xde, 0xaf, 0xfd, 0x17, 0x18, 0xf7, 0x02, 0xe3,
   684  	0xce, 0x0a, 0x24, 0x5d, 0x92, 0x93, 0xef, 0xa0, 0xc6, 0x43, 0x95, 0x8e, 0xfa, 0xb1, 0xb4, 0x3d,
   685  	0x66, 0x59, 0xde, 0x03, 0xf6, 0xd0, 0xc5, 0x47, 0x97, 0xe3, 0x65, 0x9e, 0xae, 0x0a, 0x22, 0xdf,
   686  	0x42, 0xd5, 0x15, 0xe4, 0x54, 0x86, 0xe2, 0x54, 0xe9, 0x88, 0x59, 0x7f, 0x1f, 0x6d, 0x6a, 0x68,
   687  	0xd3, 0x5b, 0xa0, 0x68, 0x41, 0x7a, 0xf0, 0x01, 0x6a, 0x2b, 0xaa, 0x4d, 0xf6, 0x80, 0x7c, 0x1a,
   688  	0x5c, 0x5f, 0xf5, 0xe9, 0xc5, 0x65, 0xf7, 0xfc, 0xac, 0x4b, 0x7b, 0xbd, 0xfe, 0xe0, 0xc3, 0xce,
   689  	0x13, 0xf2, 0x0a, 0xfc, 0x5e, 0xf7, 0xa2, 0xeb, 0x46, 0x4b, 0xac, 0xd7, 0xf9, 0xd3, 0x83, 0xdd,
   690  	0x82, 0x5b, 0xd7, 0x6d, 0x2c, 0x91, 0x50, 0xee, 0xc7, 0x77, 0xea, 0x56, 0x90, 0x2f, 0x1f, 0xf9,
   691  	0x2e, 0x65, 0x0f, 0x73, 0x3d, 0x78, 0xac, 0x3c, 0x7b, 0x16, 0x9b, 0x4f, 0xc8, 0x19, 0x3c, 0x3f,
   692  	0x9e, 0x08, 0x7e, 0xfb, 0x71, 0xee, 0xeb, 0x80, 0xec, 0x2d, 0xbd, 0x5e, 0x27, 0xee, 0xc3, 0xa0,
   693  	0xfe, 0x7f, 0xb4, 0x9f, 0x97, 0x3e, 0x38, 0x1d, 0x1d, 0xfe, 0x10, 0x8c, 0xa5, 0x9d, 0xa4, 0xc3,
   694  	0x80, 0xab, 0xa8, 0x1d, 0x49, 0xae, 0x95, 0x51, 0x37, 0xb6, 0x1d, 0x29, 0xde, 0xd6, 0x09, 0x6f,
   695  	0xcf, 0xb2, 0x6a, 0xe7, 0x59, 0x0d, 0xcb, 0x68, 0xff, 0xd5, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff,
   696  	0xd0, 0x17, 0x92, 0x64, 0x1b, 0x09, 0x00, 0x00,
   697  }
   698  
   699  // Reference imports to suppress errors if they are not otherwise used.
   700  var _ context.Context
   701  var _ grpc.ClientConn
   702  
   703  // This is a compile-time assertion to ensure that this generated file
   704  // is compatible with the grpc package it is being compiled against.
   705  const _ = grpc.SupportPackageIsVersion4
   706  
   707  // VirtualHardDiskAgentClient is the client API for VirtualHardDiskAgent service.
   708  //
   709  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   710  type VirtualHardDiskAgentClient interface {
   711  	Invoke(ctx context.Context, in *VirtualHardDiskRequest, opts ...grpc.CallOption) (*VirtualHardDiskResponse, error)
   712  	CheckNotification(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*common.NotificationResponse, error)
   713  }
   714  
   715  type virtualHardDiskAgentClient struct {
   716  	cc *grpc.ClientConn
   717  }
   718  
   719  func NewVirtualHardDiskAgentClient(cc *grpc.ClientConn) VirtualHardDiskAgentClient {
   720  	return &virtualHardDiskAgentClient{cc}
   721  }
   722  
   723  func (c *virtualHardDiskAgentClient) Invoke(ctx context.Context, in *VirtualHardDiskRequest, opts ...grpc.CallOption) (*VirtualHardDiskResponse, error) {
   724  	out := new(VirtualHardDiskResponse)
   725  	err := c.cc.Invoke(ctx, "/moc.nodeagent.storage.VirtualHardDiskAgent/Invoke", in, out, opts...)
   726  	if err != nil {
   727  		return nil, err
   728  	}
   729  	return out, nil
   730  }
   731  
   732  func (c *virtualHardDiskAgentClient) CheckNotification(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*common.NotificationResponse, error) {
   733  	out := new(common.NotificationResponse)
   734  	err := c.cc.Invoke(ctx, "/moc.nodeagent.storage.VirtualHardDiskAgent/CheckNotification", in, out, opts...)
   735  	if err != nil {
   736  		return nil, err
   737  	}
   738  	return out, nil
   739  }
   740  
   741  // VirtualHardDiskAgentServer is the server API for VirtualHardDiskAgent service.
   742  type VirtualHardDiskAgentServer interface {
   743  	Invoke(context.Context, *VirtualHardDiskRequest) (*VirtualHardDiskResponse, error)
   744  	CheckNotification(context.Context, *empty.Empty) (*common.NotificationResponse, error)
   745  }
   746  
   747  // UnimplementedVirtualHardDiskAgentServer can be embedded to have forward compatible implementations.
   748  type UnimplementedVirtualHardDiskAgentServer struct {
   749  }
   750  
   751  func (*UnimplementedVirtualHardDiskAgentServer) Invoke(ctx context.Context, req *VirtualHardDiskRequest) (*VirtualHardDiskResponse, error) {
   752  	return nil, status.Errorf(codes.Unimplemented, "method Invoke not implemented")
   753  }
   754  func (*UnimplementedVirtualHardDiskAgentServer) CheckNotification(ctx context.Context, req *empty.Empty) (*common.NotificationResponse, error) {
   755  	return nil, status.Errorf(codes.Unimplemented, "method CheckNotification not implemented")
   756  }
   757  
   758  func RegisterVirtualHardDiskAgentServer(s *grpc.Server, srv VirtualHardDiskAgentServer) {
   759  	s.RegisterService(&_VirtualHardDiskAgent_serviceDesc, srv)
   760  }
   761  
   762  func _VirtualHardDiskAgent_Invoke_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   763  	in := new(VirtualHardDiskRequest)
   764  	if err := dec(in); err != nil {
   765  		return nil, err
   766  	}
   767  	if interceptor == nil {
   768  		return srv.(VirtualHardDiskAgentServer).Invoke(ctx, in)
   769  	}
   770  	info := &grpc.UnaryServerInfo{
   771  		Server:     srv,
   772  		FullMethod: "/moc.nodeagent.storage.VirtualHardDiskAgent/Invoke",
   773  	}
   774  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   775  		return srv.(VirtualHardDiskAgentServer).Invoke(ctx, req.(*VirtualHardDiskRequest))
   776  	}
   777  	return interceptor(ctx, in, info, handler)
   778  }
   779  
   780  func _VirtualHardDiskAgent_CheckNotification_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   781  	in := new(empty.Empty)
   782  	if err := dec(in); err != nil {
   783  		return nil, err
   784  	}
   785  	if interceptor == nil {
   786  		return srv.(VirtualHardDiskAgentServer).CheckNotification(ctx, in)
   787  	}
   788  	info := &grpc.UnaryServerInfo{
   789  		Server:     srv,
   790  		FullMethod: "/moc.nodeagent.storage.VirtualHardDiskAgent/CheckNotification",
   791  	}
   792  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   793  		return srv.(VirtualHardDiskAgentServer).CheckNotification(ctx, req.(*empty.Empty))
   794  	}
   795  	return interceptor(ctx, in, info, handler)
   796  }
   797  
   798  var _VirtualHardDiskAgent_serviceDesc = grpc.ServiceDesc{
   799  	ServiceName: "moc.nodeagent.storage.VirtualHardDiskAgent",
   800  	HandlerType: (*VirtualHardDiskAgentServer)(nil),
   801  	Methods: []grpc.MethodDesc{
   802  		{
   803  			MethodName: "Invoke",
   804  			Handler:    _VirtualHardDiskAgent_Invoke_Handler,
   805  		},
   806  		{
   807  			MethodName: "CheckNotification",
   808  			Handler:    _VirtualHardDiskAgent_CheckNotification_Handler,
   809  		},
   810  	},
   811  	Streams:  []grpc.StreamDesc{},
   812  	Metadata: "moc_nodeagent_virtualharddisk.proto",
   813  }