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

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // source: moc_cloudagent_virtualmachineimage.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 VirtualMachineImageRequest struct {
    30  	VirtualMachineImages []*VirtualMachineImage `protobuf:"bytes,1,rep,name=VirtualMachineImages,proto3" json:"VirtualMachineImages,omitempty"`
    31  	OperationType        common.Operation       `protobuf:"varint,2,opt,name=OperationType,proto3,enum=moc.Operation" json:"OperationType,omitempty"`
    32  	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
    33  	XXX_unrecognized     []byte                 `json:"-"`
    34  	XXX_sizecache        int32                  `json:"-"`
    35  }
    36  
    37  func (m *VirtualMachineImageRequest) Reset()         { *m = VirtualMachineImageRequest{} }
    38  func (m *VirtualMachineImageRequest) String() string { return proto.CompactTextString(m) }
    39  func (*VirtualMachineImageRequest) ProtoMessage()    {}
    40  func (*VirtualMachineImageRequest) Descriptor() ([]byte, []int) {
    41  	return fileDescriptor_7ef669fbb27720b1, []int{0}
    42  }
    43  
    44  func (m *VirtualMachineImageRequest) XXX_Unmarshal(b []byte) error {
    45  	return xxx_messageInfo_VirtualMachineImageRequest.Unmarshal(m, b)
    46  }
    47  func (m *VirtualMachineImageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    48  	return xxx_messageInfo_VirtualMachineImageRequest.Marshal(b, m, deterministic)
    49  }
    50  func (m *VirtualMachineImageRequest) XXX_Merge(src proto.Message) {
    51  	xxx_messageInfo_VirtualMachineImageRequest.Merge(m, src)
    52  }
    53  func (m *VirtualMachineImageRequest) XXX_Size() int {
    54  	return xxx_messageInfo_VirtualMachineImageRequest.Size(m)
    55  }
    56  func (m *VirtualMachineImageRequest) XXX_DiscardUnknown() {
    57  	xxx_messageInfo_VirtualMachineImageRequest.DiscardUnknown(m)
    58  }
    59  
    60  var xxx_messageInfo_VirtualMachineImageRequest proto.InternalMessageInfo
    61  
    62  func (m *VirtualMachineImageRequest) GetVirtualMachineImages() []*VirtualMachineImage {
    63  	if m != nil {
    64  		return m.VirtualMachineImages
    65  	}
    66  	return nil
    67  }
    68  
    69  func (m *VirtualMachineImageRequest) GetOperationType() common.Operation {
    70  	if m != nil {
    71  		return m.OperationType
    72  	}
    73  	return common.Operation_GET
    74  }
    75  
    76  type VirtualMachineImageResponse struct {
    77  	VirtualMachineImages []*VirtualMachineImage `protobuf:"bytes,1,rep,name=VirtualMachineImages,proto3" json:"VirtualMachineImages,omitempty"`
    78  	Result               *wrappers.BoolValue    `protobuf:"bytes,2,opt,name=Result,proto3" json:"Result,omitempty"`
    79  	Error                string                 `protobuf:"bytes,3,opt,name=Error,proto3" json:"Error,omitempty"`
    80  	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
    81  	XXX_unrecognized     []byte                 `json:"-"`
    82  	XXX_sizecache        int32                  `json:"-"`
    83  }
    84  
    85  func (m *VirtualMachineImageResponse) Reset()         { *m = VirtualMachineImageResponse{} }
    86  func (m *VirtualMachineImageResponse) String() string { return proto.CompactTextString(m) }
    87  func (*VirtualMachineImageResponse) ProtoMessage()    {}
    88  func (*VirtualMachineImageResponse) Descriptor() ([]byte, []int) {
    89  	return fileDescriptor_7ef669fbb27720b1, []int{1}
    90  }
    91  
    92  func (m *VirtualMachineImageResponse) XXX_Unmarshal(b []byte) error {
    93  	return xxx_messageInfo_VirtualMachineImageResponse.Unmarshal(m, b)
    94  }
    95  func (m *VirtualMachineImageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    96  	return xxx_messageInfo_VirtualMachineImageResponse.Marshal(b, m, deterministic)
    97  }
    98  func (m *VirtualMachineImageResponse) XXX_Merge(src proto.Message) {
    99  	xxx_messageInfo_VirtualMachineImageResponse.Merge(m, src)
   100  }
   101  func (m *VirtualMachineImageResponse) XXX_Size() int {
   102  	return xxx_messageInfo_VirtualMachineImageResponse.Size(m)
   103  }
   104  func (m *VirtualMachineImageResponse) XXX_DiscardUnknown() {
   105  	xxx_messageInfo_VirtualMachineImageResponse.DiscardUnknown(m)
   106  }
   107  
   108  var xxx_messageInfo_VirtualMachineImageResponse proto.InternalMessageInfo
   109  
   110  func (m *VirtualMachineImageResponse) GetVirtualMachineImages() []*VirtualMachineImage {
   111  	if m != nil {
   112  		return m.VirtualMachineImages
   113  	}
   114  	return nil
   115  }
   116  
   117  func (m *VirtualMachineImageResponse) GetResult() *wrappers.BoolValue {
   118  	if m != nil {
   119  		return m.Result
   120  	}
   121  	return nil
   122  }
   123  
   124  func (m *VirtualMachineImageResponse) GetError() string {
   125  	if m != nil {
   126  		return m.Error
   127  	}
   128  	return ""
   129  }
   130  
   131  type VirtualMachineImage struct {
   132  	Name                 string                     `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
   133  	Id                   string                     `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
   134  	ImageReference       string                     `protobuf:"bytes,3,opt,name=imageReference,proto3" json:"imageReference,omitempty"`
   135  	Path                 string                     `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"`
   136  	Status               *common.Status             `protobuf:"bytes,5,opt,name=status,proto3" json:"status,omitempty"`
   137  	ContainerName        string                     `protobuf:"bytes,6,opt,name=containerName,proto3" json:"containerName,omitempty"`
   138  	GroupName            string                     `protobuf:"bytes,18,opt,name=groupName,proto3" json:"groupName,omitempty"`
   139  	LocationName         string                     `protobuf:"bytes,19,opt,name=locationName,proto3" json:"locationName,omitempty"`
   140  	Tags                 *common.Tags               `protobuf:"bytes,20,opt,name=tags,proto3" json:"tags,omitempty"`
   141  	HyperVGeneration     common.HyperVGeneration    `protobuf:"varint,21,opt,name=hyperVGeneration,proto3,enum=moc.HyperVGeneration" json:"hyperVGeneration,omitempty"`
   142  	CloudInitDataSource  common.CloudInitDataSource `protobuf:"varint,22,opt,name=cloudInitDataSource,proto3,enum=moc.CloudInitDataSource" json:"cloudInitDataSource,omitempty"`
   143  	XXX_NoUnkeyedLiteral struct{}                   `json:"-"`
   144  	XXX_unrecognized     []byte                     `json:"-"`
   145  	XXX_sizecache        int32                      `json:"-"`
   146  }
   147  
   148  func (m *VirtualMachineImage) Reset()         { *m = VirtualMachineImage{} }
   149  func (m *VirtualMachineImage) String() string { return proto.CompactTextString(m) }
   150  func (*VirtualMachineImage) ProtoMessage()    {}
   151  func (*VirtualMachineImage) Descriptor() ([]byte, []int) {
   152  	return fileDescriptor_7ef669fbb27720b1, []int{2}
   153  }
   154  
   155  func (m *VirtualMachineImage) XXX_Unmarshal(b []byte) error {
   156  	return xxx_messageInfo_VirtualMachineImage.Unmarshal(m, b)
   157  }
   158  func (m *VirtualMachineImage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   159  	return xxx_messageInfo_VirtualMachineImage.Marshal(b, m, deterministic)
   160  }
   161  func (m *VirtualMachineImage) XXX_Merge(src proto.Message) {
   162  	xxx_messageInfo_VirtualMachineImage.Merge(m, src)
   163  }
   164  func (m *VirtualMachineImage) XXX_Size() int {
   165  	return xxx_messageInfo_VirtualMachineImage.Size(m)
   166  }
   167  func (m *VirtualMachineImage) XXX_DiscardUnknown() {
   168  	xxx_messageInfo_VirtualMachineImage.DiscardUnknown(m)
   169  }
   170  
   171  var xxx_messageInfo_VirtualMachineImage proto.InternalMessageInfo
   172  
   173  func (m *VirtualMachineImage) GetName() string {
   174  	if m != nil {
   175  		return m.Name
   176  	}
   177  	return ""
   178  }
   179  
   180  func (m *VirtualMachineImage) GetId() string {
   181  	if m != nil {
   182  		return m.Id
   183  	}
   184  	return ""
   185  }
   186  
   187  func (m *VirtualMachineImage) GetImageReference() string {
   188  	if m != nil {
   189  		return m.ImageReference
   190  	}
   191  	return ""
   192  }
   193  
   194  func (m *VirtualMachineImage) GetPath() string {
   195  	if m != nil {
   196  		return m.Path
   197  	}
   198  	return ""
   199  }
   200  
   201  func (m *VirtualMachineImage) GetStatus() *common.Status {
   202  	if m != nil {
   203  		return m.Status
   204  	}
   205  	return nil
   206  }
   207  
   208  func (m *VirtualMachineImage) GetContainerName() string {
   209  	if m != nil {
   210  		return m.ContainerName
   211  	}
   212  	return ""
   213  }
   214  
   215  func (m *VirtualMachineImage) GetGroupName() string {
   216  	if m != nil {
   217  		return m.GroupName
   218  	}
   219  	return ""
   220  }
   221  
   222  func (m *VirtualMachineImage) GetLocationName() string {
   223  	if m != nil {
   224  		return m.LocationName
   225  	}
   226  	return ""
   227  }
   228  
   229  func (m *VirtualMachineImage) GetTags() *common.Tags {
   230  	if m != nil {
   231  		return m.Tags
   232  	}
   233  	return nil
   234  }
   235  
   236  func (m *VirtualMachineImage) GetHyperVGeneration() common.HyperVGeneration {
   237  	if m != nil {
   238  		return m.HyperVGeneration
   239  	}
   240  	return common.HyperVGeneration_HyperVGenerationV2
   241  }
   242  
   243  func (m *VirtualMachineImage) GetCloudInitDataSource() common.CloudInitDataSource {
   244  	if m != nil {
   245  		return m.CloudInitDataSource
   246  	}
   247  	return common.CloudInitDataSource_NoCloud
   248  }
   249  
   250  func init() {
   251  	proto.RegisterType((*VirtualMachineImageRequest)(nil), "moc.cloudagent.compute.VirtualMachineImageRequest")
   252  	proto.RegisterType((*VirtualMachineImageResponse)(nil), "moc.cloudagent.compute.VirtualMachineImageResponse")
   253  	proto.RegisterType((*VirtualMachineImage)(nil), "moc.cloudagent.compute.VirtualMachineImage")
   254  }
   255  
   256  func init() {
   257  	proto.RegisterFile("moc_cloudagent_virtualmachineimage.proto", fileDescriptor_7ef669fbb27720b1)
   258  }
   259  
   260  var fileDescriptor_7ef669fbb27720b1 = []byte{
   261  	// 526 bytes of a gzipped FileDescriptorProto
   262  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x53, 0xdd, 0x8e, 0xd2, 0x40,
   263  	0x18, 0xb5, 0xc0, 0x92, 0x30, 0xb8, 0xc4, 0x0c, 0xec, 0x3a, 0xc1, 0x9f, 0x10, 0x34, 0x86, 0xc4,
   264  	0xa4, 0x8d, 0x5d, 0x5f, 0x60, 0x51, 0xa3, 0x98, 0xa8, 0x49, 0x77, 0xc3, 0x85, 0x37, 0x64, 0x18,
   265  	0x3e, 0x4a, 0x63, 0x3b, 0x5f, 0x9d, 0x99, 0xae, 0xd9, 0x37, 0xf0, 0xce, 0x87, 0x31, 0xfa, 0x0c,
   266  	0x3e, 0x96, 0xe1, 0x6b, 0x95, 0xb0, 0xdb, 0x9b, 0xbd, 0xd8, 0x2b, 0xe8, 0x39, 0x67, 0xce, 0x39,
   267  	0xd3, 0xef, 0x2b, 0x9b, 0x64, 0xa8, 0x16, 0x2a, 0xc5, 0x62, 0x25, 0x63, 0xd0, 0x6e, 0x71, 0x91,
   268  	0x18, 0x57, 0xc8, 0x34, 0x93, 0x6a, 0x93, 0x68, 0x48, 0x32, 0x19, 0x83, 0x9f, 0x1b, 0x74, 0xc8,
   269  	0x8f, 0x33, 0x54, 0xfe, 0x4e, 0xe9, 0x2b, 0xcc, 0xf2, 0xc2, 0xc1, 0xf0, 0x71, 0x8c, 0x18, 0xa7,
   270  	0x10, 0x90, 0x6a, 0x59, 0xac, 0x83, 0x6f, 0x46, 0xe6, 0x39, 0x18, 0x5b, 0x9e, 0x1b, 0xde, 0xa7,
   271  	0x04, 0xcc, 0x32, 0xd4, 0xd5, 0x4f, 0x49, 0x8c, 0x7f, 0x7a, 0x6c, 0x38, 0x2f, 0xe3, 0x3e, 0x94,
   272  	0x71, 0xb3, 0x6d, 0x5c, 0x04, 0x5f, 0x0b, 0xb0, 0x8e, 0x2f, 0xd8, 0xa0, 0x86, 0xb5, 0xc2, 0x1b,
   273  	0x35, 0x27, 0xdd, 0xf0, 0xb9, 0x5f, 0x5f, 0xc7, 0xaf, 0x73, 0xac, 0x35, 0xe2, 0x2f, 0xd9, 0xe1,
   274  	0xa7, 0x1c, 0x8c, 0x74, 0x09, 0xea, 0xf3, 0xcb, 0x1c, 0x44, 0x63, 0xe4, 0x4d, 0x7a, 0x61, 0x8f,
   275  	0x9c, 0xff, 0x33, 0xd1, 0xbe, 0x68, 0xfc, 0xc7, 0x63, 0x0f, 0x6a, 0x5b, 0xdb, 0x1c, 0xb5, 0x85,
   276  	0xdb, 0xaf, 0x1d, 0xb2, 0x76, 0x04, 0xb6, 0x48, 0x1d, 0xf5, 0xed, 0x86, 0x43, 0xbf, 0x1c, 0x80,
   277  	0xff, 0x6f, 0x00, 0xfe, 0x14, 0x31, 0x9d, 0xcb, 0xb4, 0x80, 0xa8, 0x52, 0xf2, 0x01, 0x3b, 0x78,
   278  	0x63, 0x0c, 0x1a, 0xd1, 0x1c, 0x79, 0x93, 0x4e, 0x54, 0x3e, 0x8c, 0x7f, 0x37, 0x59, 0xbf, 0x26,
   279  	0x82, 0x73, 0xd6, 0xd2, 0x32, 0x03, 0xe1, 0x91, 0x98, 0xfe, 0xf3, 0x1e, 0x6b, 0x24, 0x2b, 0x4a,
   280  	0xec, 0x44, 0x8d, 0x64, 0xc5, 0x9f, 0xb1, 0x5e, 0x52, 0xde, 0x7b, 0x0d, 0x06, 0xb4, 0x82, 0xca,
   281  	0xfa, 0x0a, 0xca, 0x05, 0x6b, 0xe5, 0xd2, 0x6d, 0x44, 0x6b, 0xcb, 0x4e, 0x5b, 0xdf, 0x7f, 0x09,
   282  	0x2f, 0x22, 0x84, 0x3f, 0x61, 0x6d, 0xeb, 0xa4, 0x2b, 0xac, 0x38, 0xa0, 0x7b, 0x74, 0xe9, 0xd5,
   283  	0x9c, 0x11, 0x14, 0x55, 0x14, 0x7f, 0xca, 0x0e, 0x15, 0x6a, 0x27, 0x13, 0x0d, 0xe6, 0xe3, 0xb6,
   284  	0x53, 0x9b, 0x52, 0xf6, 0x41, 0xfe, 0x90, 0x75, 0x62, 0x83, 0x45, 0x4e, 0x0a, 0x4e, 0x8a, 0x1d,
   285  	0xc0, 0xc7, 0xec, 0x6e, 0x8a, 0x8a, 0x26, 0x48, 0x82, 0x3e, 0x09, 0xf6, 0x30, 0xfe, 0x88, 0xb5,
   286  	0x9c, 0x8c, 0xad, 0x18, 0x50, 0x95, 0x0e, 0x55, 0x39, 0x97, 0xb1, 0x8d, 0x08, 0xe6, 0xa7, 0xec,
   287  	0xde, 0xe6, 0x32, 0x07, 0x33, 0x7f, 0x0b, 0xba, 0x5a, 0x06, 0x71, 0x44, 0xdb, 0x72, 0x44, 0xd2,
   288  	0x77, 0x57, 0xc8, 0xe8, 0x9a, 0x9c, 0xbf, 0x67, 0x7d, 0x1a, 0xfb, 0x4c, 0x27, 0xee, 0xb5, 0x74,
   289  	0xf2, 0x0c, 0x0b, 0xa3, 0x40, 0x1c, 0x93, 0x8b, 0x20, 0x97, 0x57, 0xd7, 0xf9, 0xa8, 0xee, 0x50,
   290  	0xf8, 0xc3, 0x63, 0xa2, 0x66, 0x70, 0xa7, 0xdb, 0x8d, 0xe2, 0x96, 0xb5, 0x67, 0xfa, 0x02, 0xbf,
   291  	0x00, 0x0f, 0x6f, 0xb2, 0x6c, 0xe5, 0x57, 0x37, 0x3c, 0xb9, 0xd1, 0x99, 0x72, 0xe7, 0xc7, 0x77,
   292  	0xa6, 0x2f, 0x3e, 0x07, 0x71, 0xe2, 0x36, 0xc5, 0x72, 0xab, 0x0f, 0xb2, 0x44, 0x19, 0xb4, 0xb8,
   293  	0x76, 0x41, 0x86, 0x2a, 0x30, 0xb9, 0x0a, 0x76, 0x86, 0x41, 0x65, 0xb8, 0x6c, 0xd3, 0xbe, 0x9e,
   294  	0xfc, 0x0d, 0x00, 0x00, 0xff, 0xff, 0xf7, 0x10, 0xf3, 0x08, 0x82, 0x04, 0x00, 0x00,
   295  }
   296  
   297  // Reference imports to suppress errors if they are not otherwise used.
   298  var _ context.Context
   299  var _ grpc.ClientConn
   300  
   301  // This is a compile-time assertion to ensure that this generated file
   302  // is compatible with the grpc package it is being compiled against.
   303  const _ = grpc.SupportPackageIsVersion4
   304  
   305  // VirtualMachineImageAgentClient is the client API for VirtualMachineImageAgent service.
   306  //
   307  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   308  type VirtualMachineImageAgentClient interface {
   309  	Invoke(ctx context.Context, in *VirtualMachineImageRequest, opts ...grpc.CallOption) (*VirtualMachineImageResponse, error)
   310  }
   311  
   312  type virtualMachineImageAgentClient struct {
   313  	cc *grpc.ClientConn
   314  }
   315  
   316  func NewVirtualMachineImageAgentClient(cc *grpc.ClientConn) VirtualMachineImageAgentClient {
   317  	return &virtualMachineImageAgentClient{cc}
   318  }
   319  
   320  func (c *virtualMachineImageAgentClient) Invoke(ctx context.Context, in *VirtualMachineImageRequest, opts ...grpc.CallOption) (*VirtualMachineImageResponse, error) {
   321  	out := new(VirtualMachineImageResponse)
   322  	err := c.cc.Invoke(ctx, "/moc.cloudagent.compute.VirtualMachineImageAgent/Invoke", in, out, opts...)
   323  	if err != nil {
   324  		return nil, err
   325  	}
   326  	return out, nil
   327  }
   328  
   329  // VirtualMachineImageAgentServer is the server API for VirtualMachineImageAgent service.
   330  type VirtualMachineImageAgentServer interface {
   331  	Invoke(context.Context, *VirtualMachineImageRequest) (*VirtualMachineImageResponse, error)
   332  }
   333  
   334  // UnimplementedVirtualMachineImageAgentServer can be embedded to have forward compatible implementations.
   335  type UnimplementedVirtualMachineImageAgentServer struct {
   336  }
   337  
   338  func (*UnimplementedVirtualMachineImageAgentServer) Invoke(ctx context.Context, req *VirtualMachineImageRequest) (*VirtualMachineImageResponse, error) {
   339  	return nil, status.Errorf(codes.Unimplemented, "method Invoke not implemented")
   340  }
   341  
   342  func RegisterVirtualMachineImageAgentServer(s *grpc.Server, srv VirtualMachineImageAgentServer) {
   343  	s.RegisterService(&_VirtualMachineImageAgent_serviceDesc, srv)
   344  }
   345  
   346  func _VirtualMachineImageAgent_Invoke_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   347  	in := new(VirtualMachineImageRequest)
   348  	if err := dec(in); err != nil {
   349  		return nil, err
   350  	}
   351  	if interceptor == nil {
   352  		return srv.(VirtualMachineImageAgentServer).Invoke(ctx, in)
   353  	}
   354  	info := &grpc.UnaryServerInfo{
   355  		Server:     srv,
   356  		FullMethod: "/moc.cloudagent.compute.VirtualMachineImageAgent/Invoke",
   357  	}
   358  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   359  		return srv.(VirtualMachineImageAgentServer).Invoke(ctx, req.(*VirtualMachineImageRequest))
   360  	}
   361  	return interceptor(ctx, in, info, handler)
   362  }
   363  
   364  var _VirtualMachineImageAgent_serviceDesc = grpc.ServiceDesc{
   365  	ServiceName: "moc.cloudagent.compute.VirtualMachineImageAgent",
   366  	HandlerType: (*VirtualMachineImageAgentServer)(nil),
   367  	Methods: []grpc.MethodDesc{
   368  		{
   369  			MethodName: "Invoke",
   370  			Handler:    _VirtualMachineImageAgent_Invoke_Handler,
   371  		},
   372  	},
   373  	Streams:  []grpc.StreamDesc{},
   374  	Metadata: "moc_cloudagent_virtualmachineimage.proto",
   375  }