From d8fedfbad14d53ff48462e5e6f0ffa2e22e92617 Mon Sep 17 00:00:00 2001 From: Hamza El-Saawy <84944216+helsaawy@users.noreply.github.com> Date: Mon, 10 Jul 2023 11:25:50 -0400 Subject: [PATCH] Updated containerd1.7; google.golang.org/protobuf (#1706) * Update containerd1.7; google.golang.org/protobuf Update to containerd 1.7 and move to `google.golang.org/protobuf` from `github.com/gogo/protobuf/gogoproto`. These two changes are intertwined, since containerd 1.7 changes its ttrpc task server definitions and protobuff generation (as well as some other API changes). Additionally, the task server gRPC code is imported from containerd directly, rather than being generated here, and that code now explicitly imports `google.golang.org/protobuf` instead of `github.com/gogo/protobuf/gogoproto`. Upgrading to `google.golang.org/protobuf` also requires updating the `containerd/cgroups` dependency to v3 (`github.com/containerd/cgroups/v3/cgroup1/stats/`). The new `protoc-gen-go-grpc` generators do not allow directives such as `gogoproto.customname`, so the `go-fix-acronym` command is used to update acronym customization (which is what containerd does). Updated `Protobuild.toml` to specify new generators. Added an `Update-Proto.ps1` script to re-generate protobuf files locally and in GitHub CI. Add `protobuild` and protobuff `grpc` and `ttrpc` generators to `tools.go` so they are tracked and vendored, and can be trivially installed via `go install`. Signed-off-by: Hamza El-Saawy * Vendor protobuf import changes Signed-off-by: Hamza El-Saawy --------- Signed-off-by: Hamza El-Saawy --- computeagent/computeagent.pb.go | 3176 ++--- computeagent/computeagent.proto | 5 +- computeagent/computeagent_ttrpc.pb.go | 108 + computeagent/doc.go | 2 +- computeagent/mock/computeagent_mock.pb.go | 42 +- extendedtask/extendedtask.pb.go | 674 +- extendedtask/extendedtask.proto | 6 +- extendedtask/extendedtask_ttrpc.pb.go | 44 + guest/prot/protocol.go | 2 +- guest/runtime/hcsv2/container.go | 6 +- hcs/schema2/properties.go | 2 +- ncproxyttrpc/networkconfigproxy.pb.go | 1591 +-- ncproxyttrpc/networkconfigproxy.proto | 8 +- ncproxyttrpc/networkconfigproxy_ttrpc.pb.go | 76 + shimdiag/shimdiag.pb.go | 3314 ++---- shimdiag/shimdiag_ttrpc.pb.go | 108 + tools/networkagent/defs.go | 8 +- tools/networkagent/main.go | 8 +- uvm/computeagent.go | 2 +- uvm/computeagent_test.go | 17 +- vm/remotevm/builder.go | 11 +- vm/remotevm/remotevm.go | 15 +- vmservice/vmservice.pb.go | 10922 ++++-------------- vmservice/vmservice_ttrpc.pb.go | 205 + 24 files changed, 5129 insertions(+), 15223 deletions(-) create mode 100644 computeagent/computeagent_ttrpc.pb.go create mode 100644 extendedtask/extendedtask_ttrpc.pb.go create mode 100644 ncproxyttrpc/networkconfigproxy_ttrpc.pb.go create mode 100644 shimdiag/shimdiag_ttrpc.pb.go create mode 100644 vmservice/vmservice_ttrpc.pb.go diff --git a/computeagent/computeagent.pb.go b/computeagent/computeagent.pb.go index 5ec5e514a1..0514384a2b 100644 --- a/computeagent/computeagent.pb.go +++ b/computeagent/computeagent.pb.go @@ -1,2673 +1,921 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc v4.23.2 // source: github.com/Microsoft/hcsshim/internal/computeagent/computeagent.proto package computeagent import ( - context "context" - fmt "fmt" - github_com_containerd_ttrpc "github.com/containerd/ttrpc" - proto "github.com/gogo/protobuf/proto" - types "github.com/gogo/protobuf/types" - io "io" - math "math" - math_bits "math/bits" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + anypb "google.golang.org/protobuf/types/known/anypb" reflect "reflect" - strings "strings" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type AssignPCIInternalRequest struct { - ContainerID string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` - DeviceID string `protobuf:"bytes,2,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` - VirtualFunctionIndex uint32 `protobuf:"varint,3,opt,name=virtual_function_index,json=virtualFunctionIndex,proto3" json:"virtual_function_index,omitempty"` - NicID string `protobuf:"bytes,4,opt,name=nic_id,json=nicId,proto3" json:"nic_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ContainerID string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` + DeviceID string `protobuf:"bytes,2,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` + VirtualFunctionIndex uint32 `protobuf:"varint,3,opt,name=virtual_function_index,json=virtualFunctionIndex,proto3" json:"virtual_function_index,omitempty"` + NicID string `protobuf:"bytes,4,opt,name=nic_id,json=nicId,proto3" json:"nic_id,omitempty"` } -func (m *AssignPCIInternalRequest) Reset() { *m = AssignPCIInternalRequest{} } -func (*AssignPCIInternalRequest) ProtoMessage() {} -func (*AssignPCIInternalRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_7f2f03dc308add4c, []int{0} -} -func (m *AssignPCIInternalRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AssignPCIInternalRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AssignPCIInternalRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *AssignPCIInternalRequest) Reset() { + *x = AssignPCIInternalRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *AssignPCIInternalRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_AssignPCIInternalRequest.Merge(m, src) -} -func (m *AssignPCIInternalRequest) XXX_Size() int { - return m.Size() -} -func (m *AssignPCIInternalRequest) XXX_DiscardUnknown() { - xxx_messageInfo_AssignPCIInternalRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_AssignPCIInternalRequest proto.InternalMessageInfo -type AssignPCIInternalResponse struct { - ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *AssignPCIInternalRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *AssignPCIInternalResponse) Reset() { *m = AssignPCIInternalResponse{} } -func (*AssignPCIInternalResponse) ProtoMessage() {} -func (*AssignPCIInternalResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_7f2f03dc308add4c, []int{1} -} -func (m *AssignPCIInternalResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AssignPCIInternalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AssignPCIInternalResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (*AssignPCIInternalRequest) ProtoMessage() {} + +func (x *AssignPCIInternalRequest) ProtoReflect() protoreflect.Message { + mi := &file_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *AssignPCIInternalResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_AssignPCIInternalResponse.Merge(m, src) -} -func (m *AssignPCIInternalResponse) XXX_Size() int { - return m.Size() -} -func (m *AssignPCIInternalResponse) XXX_DiscardUnknown() { - xxx_messageInfo_AssignPCIInternalResponse.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_AssignPCIInternalResponse proto.InternalMessageInfo - -type RemovePCIInternalRequest struct { - ContainerID string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` - DeviceID string `protobuf:"bytes,2,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` - VirtualFunctionIndex uint32 `protobuf:"varint,3,opt,name=virtual_function_index,json=virtualFunctionIndex,proto3" json:"virtual_function_index,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// Deprecated: Use AssignPCIInternalRequest.ProtoReflect.Descriptor instead. +func (*AssignPCIInternalRequest) Descriptor() ([]byte, []int) { + return file_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto_rawDescGZIP(), []int{0} } -func (m *RemovePCIInternalRequest) Reset() { *m = RemovePCIInternalRequest{} } -func (*RemovePCIInternalRequest) ProtoMessage() {} -func (*RemovePCIInternalRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_7f2f03dc308add4c, []int{2} -} -func (m *RemovePCIInternalRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RemovePCIInternalRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RemovePCIInternalRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *AssignPCIInternalRequest) GetContainerID() string { + if x != nil { + return x.ContainerID } + return "" } -func (m *RemovePCIInternalRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RemovePCIInternalRequest.Merge(m, src) -} -func (m *RemovePCIInternalRequest) XXX_Size() int { - return m.Size() -} -func (m *RemovePCIInternalRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RemovePCIInternalRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RemovePCIInternalRequest proto.InternalMessageInfo -type RemovePCIInternalResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RemovePCIInternalResponse) Reset() { *m = RemovePCIInternalResponse{} } -func (*RemovePCIInternalResponse) ProtoMessage() {} -func (*RemovePCIInternalResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_7f2f03dc308add4c, []int{3} -} -func (m *RemovePCIInternalResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RemovePCIInternalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RemovePCIInternalResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *AssignPCIInternalRequest) GetDeviceID() string { + if x != nil { + return x.DeviceID } + return "" } -func (m *RemovePCIInternalResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RemovePCIInternalResponse.Merge(m, src) -} -func (m *RemovePCIInternalResponse) XXX_Size() int { - return m.Size() -} -func (m *RemovePCIInternalResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RemovePCIInternalResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RemovePCIInternalResponse proto.InternalMessageInfo -type AddNICInternalRequest struct { - ContainerID string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` - NicID string `protobuf:"bytes,2,opt,name=nic_id,json=nicId,proto3" json:"nic_id,omitempty"` - Endpoint *types.Any `protobuf:"bytes,3,opt,name=endpoint,proto3" json:"endpoint,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *AssignPCIInternalRequest) GetVirtualFunctionIndex() uint32 { + if x != nil { + return x.VirtualFunctionIndex + } + return 0 } -func (m *AddNICInternalRequest) Reset() { *m = AddNICInternalRequest{} } -func (*AddNICInternalRequest) ProtoMessage() {} -func (*AddNICInternalRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_7f2f03dc308add4c, []int{4} -} -func (m *AddNICInternalRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AddNICInternalRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AddNICInternalRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *AssignPCIInternalRequest) GetNicID() string { + if x != nil { + return x.NicID } -} -func (m *AddNICInternalRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_AddNICInternalRequest.Merge(m, src) -} -func (m *AddNICInternalRequest) XXX_Size() int { - return m.Size() -} -func (m *AddNICInternalRequest) XXX_DiscardUnknown() { - xxx_messageInfo_AddNICInternalRequest.DiscardUnknown(m) + return "" } -var xxx_messageInfo_AddNICInternalRequest proto.InternalMessageInfo +type AssignPCIInternalResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type AddNICInternalResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` } -func (m *AddNICInternalResponse) Reset() { *m = AddNICInternalResponse{} } -func (*AddNICInternalResponse) ProtoMessage() {} -func (*AddNICInternalResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_7f2f03dc308add4c, []int{5} -} -func (m *AddNICInternalResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AddNICInternalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AddNICInternalResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *AssignPCIInternalResponse) Reset() { + *x = AssignPCIInternalResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *AddNICInternalResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_AddNICInternalResponse.Merge(m, src) -} -func (m *AddNICInternalResponse) XXX_Size() int { - return m.Size() -} -func (m *AddNICInternalResponse) XXX_DiscardUnknown() { - xxx_messageInfo_AddNICInternalResponse.DiscardUnknown(m) -} -var xxx_messageInfo_AddNICInternalResponse proto.InternalMessageInfo - -type ModifyNICInternalRequest struct { - NicID string `protobuf:"bytes,1,opt,name=nic_id,json=nicId,proto3" json:"nic_id,omitempty"` - Endpoint *types.Any `protobuf:"bytes,2,opt,name=endpoint,proto3" json:"endpoint,omitempty"` - IovPolicySettings *IovSettings `protobuf:"bytes,3,opt,name=iov_policy_settings,json=iovPolicySettings,proto3" json:"iov_policy_settings,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *AssignPCIInternalResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ModifyNICInternalRequest) Reset() { *m = ModifyNICInternalRequest{} } -func (*ModifyNICInternalRequest) ProtoMessage() {} -func (*ModifyNICInternalRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_7f2f03dc308add4c, []int{6} -} -func (m *ModifyNICInternalRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ModifyNICInternalRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ModifyNICInternalRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (*AssignPCIInternalResponse) ProtoMessage() {} + +func (x *AssignPCIInternalResponse) ProtoReflect() protoreflect.Message { + mi := &file_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *ModifyNICInternalRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ModifyNICInternalRequest.Merge(m, src) -} -func (m *ModifyNICInternalRequest) XXX_Size() int { - return m.Size() -} -func (m *ModifyNICInternalRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ModifyNICInternalRequest.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_ModifyNICInternalRequest proto.InternalMessageInfo - -type ModifyNICInternalResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// Deprecated: Use AssignPCIInternalResponse.ProtoReflect.Descriptor instead. +func (*AssignPCIInternalResponse) Descriptor() ([]byte, []int) { + return file_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto_rawDescGZIP(), []int{1} } -func (m *ModifyNICInternalResponse) Reset() { *m = ModifyNICInternalResponse{} } -func (*ModifyNICInternalResponse) ProtoMessage() {} -func (*ModifyNICInternalResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_7f2f03dc308add4c, []int{7} -} -func (m *ModifyNICInternalResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ModifyNICInternalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ModifyNICInternalResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *AssignPCIInternalResponse) GetID() string { + if x != nil { + return x.ID } -} -func (m *ModifyNICInternalResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ModifyNICInternalResponse.Merge(m, src) -} -func (m *ModifyNICInternalResponse) XXX_Size() int { - return m.Size() -} -func (m *ModifyNICInternalResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ModifyNICInternalResponse.DiscardUnknown(m) + return "" } -var xxx_messageInfo_ModifyNICInternalResponse proto.InternalMessageInfo +type RemovePCIInternalRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type DeleteNICInternalRequest struct { - ContainerID string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` - NicID string `protobuf:"bytes,2,opt,name=nic_id,json=nicId,proto3" json:"nic_id,omitempty"` - Endpoint *types.Any `protobuf:"bytes,3,opt,name=endpoint,proto3" json:"endpoint,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ContainerID string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` + DeviceID string `protobuf:"bytes,2,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` + VirtualFunctionIndex uint32 `protobuf:"varint,3,opt,name=virtual_function_index,json=virtualFunctionIndex,proto3" json:"virtual_function_index,omitempty"` } -func (m *DeleteNICInternalRequest) Reset() { *m = DeleteNICInternalRequest{} } -func (*DeleteNICInternalRequest) ProtoMessage() {} -func (*DeleteNICInternalRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_7f2f03dc308add4c, []int{8} -} -func (m *DeleteNICInternalRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DeleteNICInternalRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DeleteNICInternalRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *RemovePCIInternalRequest) Reset() { + *x = RemovePCIInternalRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *DeleteNICInternalRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeleteNICInternalRequest.Merge(m, src) -} -func (m *DeleteNICInternalRequest) XXX_Size() int { - return m.Size() -} -func (m *DeleteNICInternalRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DeleteNICInternalRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_DeleteNICInternalRequest proto.InternalMessageInfo -type DeleteNICInternalResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *RemovePCIInternalRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DeleteNICInternalResponse) Reset() { *m = DeleteNICInternalResponse{} } -func (*DeleteNICInternalResponse) ProtoMessage() {} -func (*DeleteNICInternalResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_7f2f03dc308add4c, []int{9} -} -func (m *DeleteNICInternalResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DeleteNICInternalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DeleteNICInternalResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (*RemovePCIInternalRequest) ProtoMessage() {} + +func (x *RemovePCIInternalRequest) ProtoReflect() protoreflect.Message { + mi := &file_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *DeleteNICInternalResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeleteNICInternalResponse.Merge(m, src) -} -func (m *DeleteNICInternalResponse) XXX_Size() int { - return m.Size() -} -func (m *DeleteNICInternalResponse) XXX_DiscardUnknown() { - xxx_messageInfo_DeleteNICInternalResponse.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_DeleteNICInternalResponse proto.InternalMessageInfo - -type IovSettings struct { - IovOffloadWeight uint32 `protobuf:"varint,1,opt,name=IovOffloadWeight,proto3" json:"IovOffloadWeight,omitempty"` - QueuePairsRequested uint32 `protobuf:"varint,2,opt,name=QueuePairsRequested,proto3" json:"QueuePairsRequested,omitempty"` - InterruptModeration uint32 `protobuf:"varint,3,opt,name=InterruptModeration,proto3" json:"InterruptModeration,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// Deprecated: Use RemovePCIInternalRequest.ProtoReflect.Descriptor instead. +func (*RemovePCIInternalRequest) Descriptor() ([]byte, []int) { + return file_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto_rawDescGZIP(), []int{2} } -func (m *IovSettings) Reset() { *m = IovSettings{} } -func (*IovSettings) ProtoMessage() {} -func (*IovSettings) Descriptor() ([]byte, []int) { - return fileDescriptor_7f2f03dc308add4c, []int{10} -} -func (m *IovSettings) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *IovSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_IovSettings.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *IovSettings) XXX_Merge(src proto.Message) { - xxx_messageInfo_IovSettings.Merge(m, src) -} -func (m *IovSettings) XXX_Size() int { - return m.Size() -} -func (m *IovSettings) XXX_DiscardUnknown() { - xxx_messageInfo_IovSettings.DiscardUnknown(m) -} - -var xxx_messageInfo_IovSettings proto.InternalMessageInfo - -func init() { - proto.RegisterType((*AssignPCIInternalRequest)(nil), "AssignPCIInternalRequest") - proto.RegisterType((*AssignPCIInternalResponse)(nil), "AssignPCIInternalResponse") - proto.RegisterType((*RemovePCIInternalRequest)(nil), "RemovePCIInternalRequest") - proto.RegisterType((*RemovePCIInternalResponse)(nil), "RemovePCIInternalResponse") - proto.RegisterType((*AddNICInternalRequest)(nil), "AddNICInternalRequest") - proto.RegisterType((*AddNICInternalResponse)(nil), "AddNICInternalResponse") - proto.RegisterType((*ModifyNICInternalRequest)(nil), "ModifyNICInternalRequest") - proto.RegisterType((*ModifyNICInternalResponse)(nil), "ModifyNICInternalResponse") - proto.RegisterType((*DeleteNICInternalRequest)(nil), "DeleteNICInternalRequest") - proto.RegisterType((*DeleteNICInternalResponse)(nil), "DeleteNICInternalResponse") - proto.RegisterType((*IovSettings)(nil), "IovSettings") -} - -func init() { - proto.RegisterFile("github.com/Microsoft/hcsshim/internal/computeagent/computeagent.proto", fileDescriptor_7f2f03dc308add4c) -} - -var fileDescriptor_7f2f03dc308add4c = []byte{ - // 655 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x55, 0xcf, 0x6f, 0xd3, 0x30, - 0x14, 0xae, 0x0b, 0xab, 0x56, 0xb7, 0x13, 0xe0, 0x8d, 0x92, 0x64, 0x52, 0x3b, 0xf5, 0x34, 0x38, - 0x38, 0xd3, 0xc6, 0x6d, 0x48, 0xa8, 0x6b, 0x40, 0xf2, 0x61, 0x63, 0x84, 0x03, 0x3f, 0x2e, 0x55, - 0x16, 0xbb, 0xa9, 0xa5, 0xd6, 0x2e, 0x89, 0x13, 0xd1, 0x1b, 0xff, 0x08, 0x42, 0xe2, 0x8c, 0xc4, - 0xbf, 0xb1, 0x23, 0xdc, 0x38, 0x55, 0x2c, 0xfc, 0x23, 0x28, 0x3f, 0x96, 0x0d, 0x48, 0xa4, 0x21, - 0x71, 0x80, 0x9b, 0xfd, 0x9e, 0xfd, 0xf2, 0x7d, 0xef, 0x7d, 0xfe, 0x02, 0x1f, 0x79, 0x5c, 0x4d, - 0xc2, 0x13, 0xec, 0xca, 0x99, 0x79, 0xc8, 0x5d, 0x5f, 0x06, 0x72, 0xac, 0xcc, 0x89, 0x1b, 0x04, - 0x13, 0x3e, 0x33, 0xb9, 0x50, 0xcc, 0x17, 0xce, 0xd4, 0x74, 0xe5, 0x6c, 0x1e, 0x2a, 0xe6, 0x78, - 0x4c, 0xa8, 0x9f, 0x36, 0x78, 0xee, 0x4b, 0x25, 0x8d, 0x0d, 0x4f, 0x7a, 0x32, 0x5d, 0x9a, 0xc9, - 0x2a, 0x8f, 0xea, 0x9e, 0x94, 0xde, 0x94, 0x99, 0xe9, 0xee, 0x24, 0x1c, 0x9b, 0x8e, 0x58, 0x64, - 0xa9, 0xfe, 0x17, 0x00, 0xb5, 0x41, 0x10, 0x70, 0x4f, 0x1c, 0x0f, 0x09, 0xc9, 0x3f, 0x63, 0xb3, - 0xd7, 0x21, 0x0b, 0x14, 0xda, 0x85, 0x6d, 0x57, 0x0a, 0xe5, 0x70, 0xc1, 0xfc, 0x11, 0xa7, 0x1a, - 0xd8, 0x02, 0xdb, 0xcd, 0x83, 0x1b, 0xf1, 0xb2, 0xd7, 0x1a, 0x9e, 0xc7, 0x89, 0x65, 0xb7, 0x8a, - 0x43, 0x84, 0xa2, 0xbb, 0xb0, 0x49, 0x59, 0xc4, 0x5d, 0x96, 0x5c, 0xa8, 0xa7, 0x17, 0xda, 0xf1, - 0xb2, 0xb7, 0x6a, 0xa5, 0x41, 0x62, 0xd9, 0xab, 0x59, 0x9a, 0x50, 0x74, 0x1f, 0x76, 0x22, 0xee, - 0xab, 0xd0, 0x99, 0x8e, 0xc6, 0xa1, 0x70, 0x15, 0x97, 0x62, 0xc4, 0x05, 0x65, 0x6f, 0xb4, 0x6b, - 0x5b, 0x60, 0x7b, 0xcd, 0xde, 0xc8, 0xb3, 0x8f, 0xf3, 0x24, 0x49, 0x72, 0x68, 0x0b, 0x36, 0x04, - 0x77, 0x93, 0xea, 0xd7, 0xd3, 0xea, 0xcd, 0x78, 0xd9, 0x5b, 0x39, 0xe2, 0x2e, 0xb1, 0xec, 0x15, - 0xc1, 0x5d, 0x42, 0xfb, 0x7b, 0x50, 0x2f, 0xa1, 0x14, 0xcc, 0xa5, 0x08, 0x18, 0xea, 0xc0, 0x7a, - 0xc1, 0xa4, 0x11, 0x2f, 0x7b, 0x75, 0x62, 0xd9, 0x75, 0x4e, 0xfb, 0x9f, 0x00, 0xd4, 0x6c, 0x36, - 0x93, 0x11, 0xfb, 0x4f, 0x1a, 0xd1, 0xdf, 0x84, 0x7a, 0x09, 0xe0, 0x8c, 0x66, 0xff, 0x3d, 0x80, - 0xb7, 0x07, 0x94, 0x1e, 0x91, 0xe1, 0xdf, 0xe0, 0x72, 0xd1, 0xf3, 0x7a, 0x79, 0xcf, 0xd1, 0x0e, - 0x5c, 0x65, 0x82, 0xce, 0x25, 0x17, 0x2a, 0x05, 0xdd, 0xda, 0xdd, 0xc0, 0x99, 0xea, 0xf0, 0xb9, - 0xea, 0xf0, 0x40, 0x2c, 0xec, 0xe2, 0x54, 0x5f, 0x83, 0x9d, 0x5f, 0x01, 0xe6, 0xd8, 0x3f, 0x02, - 0xa8, 0x1d, 0x4a, 0xca, 0xc7, 0x8b, 0x12, 0xf8, 0x17, 0x50, 0xc0, 0x15, 0xa0, 0xd4, 0xaf, 0x02, - 0x05, 0x3d, 0x80, 0xeb, 0x5c, 0x46, 0xa3, 0xb9, 0x9c, 0x72, 0x77, 0x31, 0x0a, 0x98, 0x52, 0x5c, - 0x78, 0x41, 0xce, 0xa3, 0x8d, 0x89, 0x8c, 0x9e, 0xe5, 0x31, 0xfb, 0x16, 0x97, 0xd1, 0x71, 0x7a, - 0xee, 0x3c, 0x94, 0xcc, 0xa1, 0x04, 0x6d, 0xce, 0xe5, 0x03, 0x80, 0x9a, 0xc5, 0xa6, 0x4c, 0xb1, - 0x7f, 0x78, 0x14, 0x9b, 0x50, 0x2f, 0xc1, 0x98, 0x33, 0x78, 0x07, 0x60, 0xeb, 0x52, 0x07, 0xd0, - 0x3d, 0x78, 0x93, 0xc8, 0xe8, 0xc9, 0x78, 0x3c, 0x95, 0x0e, 0x7d, 0xce, 0xb8, 0x37, 0x51, 0x29, - 0xf0, 0x35, 0xfb, 0xb7, 0x38, 0xda, 0x81, 0xeb, 0x4f, 0x43, 0x16, 0xb2, 0x63, 0x87, 0xfb, 0x41, - 0xce, 0x9a, 0x65, 0xc8, 0xd7, 0xec, 0xb2, 0x54, 0x72, 0x23, 0x45, 0xe0, 0x87, 0x73, 0x75, 0x28, - 0x29, 0xf3, 0x9d, 0x44, 0xf0, 0xf9, 0x3b, 0x28, 0x4b, 0xed, 0x7e, 0xaf, 0xc3, 0xf6, 0x30, 0x73, - 0xc2, 0x41, 0xe2, 0x84, 0x68, 0x1f, 0x36, 0x32, 0x61, 0xa1, 0x0e, 0x2e, 0x7d, 0x02, 0xc6, 0x1d, - 0x5c, 0xa1, 0xbc, 0x1a, 0xb2, 0x60, 0xb3, 0x18, 0x26, 0xd2, 0x71, 0x95, 0x0c, 0x0d, 0x03, 0x57, - 0xcf, 0x3c, 0xad, 0x52, 0x34, 0x14, 0xe9, 0xb8, 0x4a, 0x00, 0x86, 0x81, 0xab, 0xfb, 0x9e, 0x56, - 0x29, 0x7c, 0x0c, 0xe9, 0xb8, 0xca, 0xa6, 0x0d, 0x03, 0x57, 0xda, 0x5d, 0x56, 0xa5, 0xb0, 0x09, - 0xa4, 0xe3, 0x2a, 0x8f, 0x33, 0x0c, 0x5c, 0xed, 0x26, 0xb5, 0x83, 0x97, 0xa7, 0x67, 0xdd, 0xda, - 0xd7, 0xb3, 0x6e, 0xed, 0x6d, 0xdc, 0x05, 0xa7, 0x71, 0x17, 0x7c, 0x8e, 0xbb, 0xe0, 0x5b, 0xdc, - 0x05, 0xaf, 0x1e, 0xfe, 0xf9, 0x9f, 0x6b, 0xff, 0xf2, 0xe6, 0x45, 0xed, 0xa4, 0x91, 0xea, 0x72, - 0xef, 0x47, 0x00, 0x00, 0x00, 0xff, 0xff, 0xe4, 0x25, 0x88, 0x14, 0x05, 0x07, 0x00, 0x00, -} - -func (m *AssignPCIInternalRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *RemovePCIInternalRequest) GetContainerID() string { + if x != nil { + return x.ContainerID } - return dAtA[:n], nil -} - -func (m *AssignPCIInternalRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return "" } -func (m *AssignPCIInternalRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.NicID) > 0 { - i -= len(m.NicID) - copy(dAtA[i:], m.NicID) - i = encodeVarintComputeagent(dAtA, i, uint64(len(m.NicID))) - i-- - dAtA[i] = 0x22 - } - if m.VirtualFunctionIndex != 0 { - i = encodeVarintComputeagent(dAtA, i, uint64(m.VirtualFunctionIndex)) - i-- - dAtA[i] = 0x18 - } - if len(m.DeviceID) > 0 { - i -= len(m.DeviceID) - copy(dAtA[i:], m.DeviceID) - i = encodeVarintComputeagent(dAtA, i, uint64(len(m.DeviceID))) - i-- - dAtA[i] = 0x12 +func (x *RemovePCIInternalRequest) GetDeviceID() string { + if x != nil { + return x.DeviceID } - if len(m.ContainerID) > 0 { - i -= len(m.ContainerID) - copy(dAtA[i:], m.ContainerID) - i = encodeVarintComputeagent(dAtA, i, uint64(len(m.ContainerID))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return "" } -func (m *AssignPCIInternalResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *RemovePCIInternalRequest) GetVirtualFunctionIndex() uint32 { + if x != nil { + return x.VirtualFunctionIndex } - return dAtA[:n], nil + return 0 } -func (m *AssignPCIInternalResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +type RemovePCIInternalResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *AssignPCIInternalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) +func (x *RemovePCIInternalResponse) Reset() { + *x = RemovePCIInternalResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - if len(m.ID) > 0 { - i -= len(m.ID) - copy(dAtA[i:], m.ID) - i = encodeVarintComputeagent(dAtA, i, uint64(len(m.ID))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil } -func (m *RemovePCIInternalRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +func (x *RemovePCIInternalResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RemovePCIInternalRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +func (*RemovePCIInternalResponse) ProtoMessage() {} -func (m *RemovePCIInternalRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.VirtualFunctionIndex != 0 { - i = encodeVarintComputeagent(dAtA, i, uint64(m.VirtualFunctionIndex)) - i-- - dAtA[i] = 0x18 - } - if len(m.DeviceID) > 0 { - i -= len(m.DeviceID) - copy(dAtA[i:], m.DeviceID) - i = encodeVarintComputeagent(dAtA, i, uint64(len(m.DeviceID))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContainerID) > 0 { - i -= len(m.ContainerID) - copy(dAtA[i:], m.ContainerID) - i = encodeVarintComputeagent(dAtA, i, uint64(len(m.ContainerID))) - i-- - dAtA[i] = 0xa +func (x *RemovePCIInternalResponse) ProtoReflect() protoreflect.Message { + mi := &file_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return len(dAtA) - i, nil + return mi.MessageOf(x) } -func (m *RemovePCIInternalResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +// Deprecated: Use RemovePCIInternalResponse.ProtoReflect.Descriptor instead. +func (*RemovePCIInternalResponse) Descriptor() ([]byte, []int) { + return file_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto_rawDescGZIP(), []int{3} } -func (m *RemovePCIInternalResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +type AddNICInternalRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *RemovePCIInternalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + ContainerID string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` + NicID string `protobuf:"bytes,2,opt,name=nic_id,json=nicId,proto3" json:"nic_id,omitempty"` + Endpoint *anypb.Any `protobuf:"bytes,3,opt,name=endpoint,proto3" json:"endpoint,omitempty"` } -func (m *AddNICInternalRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *AddNICInternalRequest) Reset() { + *x = AddNICInternalRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return dAtA[:n], nil } -func (m *AddNICInternalRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (x *AddNICInternalRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *AddNICInternalRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Endpoint != nil { - { - size, err := m.Endpoint.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintComputeagent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.NicID) > 0 { - i -= len(m.NicID) - copy(dAtA[i:], m.NicID) - i = encodeVarintComputeagent(dAtA, i, uint64(len(m.NicID))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContainerID) > 0 { - i -= len(m.ContainerID) - copy(dAtA[i:], m.ContainerID) - i = encodeVarintComputeagent(dAtA, i, uint64(len(m.ContainerID))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} +func (*AddNICInternalRequest) ProtoMessage() {} -func (m *AddNICInternalResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *AddNICInternalRequest) ProtoReflect() protoreflect.Message { + mi := &file_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return dAtA[:n], nil -} - -func (m *AddNICInternalResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return mi.MessageOf(x) } -func (m *AddNICInternalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil +// Deprecated: Use AddNICInternalRequest.ProtoReflect.Descriptor instead. +func (*AddNICInternalRequest) Descriptor() ([]byte, []int) { + return file_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto_rawDescGZIP(), []int{4} } -func (m *ModifyNICInternalRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *AddNICInternalRequest) GetContainerID() string { + if x != nil { + return x.ContainerID } - return dAtA[:n], nil -} - -func (m *ModifyNICInternalRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return "" } -func (m *ModifyNICInternalRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.IovPolicySettings != nil { - { - size, err := m.IovPolicySettings.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintComputeagent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.Endpoint != nil { - { - size, err := m.Endpoint.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintComputeagent(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.NicID) > 0 { - i -= len(m.NicID) - copy(dAtA[i:], m.NicID) - i = encodeVarintComputeagent(dAtA, i, uint64(len(m.NicID))) - i-- - dAtA[i] = 0xa +func (x *AddNICInternalRequest) GetNicID() string { + if x != nil { + return x.NicID } - return len(dAtA) - i, nil + return "" } -func (m *ModifyNICInternalResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *AddNICInternalRequest) GetEndpoint() *anypb.Any { + if x != nil { + return x.Endpoint } - return dAtA[:n], nil + return nil } -func (m *ModifyNICInternalResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +type AddNICInternalResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *ModifyNICInternalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) +func (x *AddNICInternalResponse) Reset() { + *x = AddNICInternalResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return len(dAtA) - i, nil } -func (m *DeleteNICInternalRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +func (x *AddNICInternalResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DeleteNICInternalRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +func (*AddNICInternalResponse) ProtoMessage() {} -func (m *DeleteNICInternalRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Endpoint != nil { - { - size, err := m.Endpoint.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintComputeagent(dAtA, i, uint64(size)) +func (x *AddNICInternalResponse) ProtoReflect() protoreflect.Message { + mi := &file_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - i-- - dAtA[i] = 0x1a - } - if len(m.NicID) > 0 { - i -= len(m.NicID) - copy(dAtA[i:], m.NicID) - i = encodeVarintComputeagent(dAtA, i, uint64(len(m.NicID))) - i-- - dAtA[i] = 0x12 + return ms } - if len(m.ContainerID) > 0 { - i -= len(m.ContainerID) - copy(dAtA[i:], m.ContainerID) - i = encodeVarintComputeagent(dAtA, i, uint64(len(m.ContainerID))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return mi.MessageOf(x) } -func (m *DeleteNICInternalResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +// Deprecated: Use AddNICInternalResponse.ProtoReflect.Descriptor instead. +func (*AddNICInternalResponse) Descriptor() ([]byte, []int) { + return file_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto_rawDescGZIP(), []int{5} } -func (m *DeleteNICInternalResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +type ModifyNICInternalRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *DeleteNICInternalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + NicID string `protobuf:"bytes,1,opt,name=nic_id,json=nicId,proto3" json:"nic_id,omitempty"` + Endpoint *anypb.Any `protobuf:"bytes,2,opt,name=endpoint,proto3" json:"endpoint,omitempty"` + IovPolicySettings *IovSettings `protobuf:"bytes,3,opt,name=iov_policy_settings,json=iovPolicySettings,proto3" json:"iov_policy_settings,omitempty"` } -func (m *IovSettings) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *ModifyNICInternalRequest) Reset() { + *x = ModifyNICInternalRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return dAtA[:n], nil } -func (m *IovSettings) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (x *ModifyNICInternalRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *IovSettings) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.InterruptModeration != 0 { - i = encodeVarintComputeagent(dAtA, i, uint64(m.InterruptModeration)) - i-- - dAtA[i] = 0x18 - } - if m.QueuePairsRequested != 0 { - i = encodeVarintComputeagent(dAtA, i, uint64(m.QueuePairsRequested)) - i-- - dAtA[i] = 0x10 - } - if m.IovOffloadWeight != 0 { - i = encodeVarintComputeagent(dAtA, i, uint64(m.IovOffloadWeight)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} +func (*ModifyNICInternalRequest) ProtoMessage() {} -func encodeVarintComputeagent(dAtA []byte, offset int, v uint64) int { - offset -= sovComputeagent(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *AssignPCIInternalRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContainerID) - if l > 0 { - n += 1 + l + sovComputeagent(uint64(l)) - } - l = len(m.DeviceID) - if l > 0 { - n += 1 + l + sovComputeagent(uint64(l)) - } - if m.VirtualFunctionIndex != 0 { - n += 1 + sovComputeagent(uint64(m.VirtualFunctionIndex)) - } - l = len(m.NicID) - if l > 0 { - n += 1 + l + sovComputeagent(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) +func (x *ModifyNICInternalRequest) ProtoReflect() protoreflect.Message { + mi := &file_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return n + return mi.MessageOf(x) } -func (m *AssignPCIInternalResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ID) - if l > 0 { - n += 1 + l + sovComputeagent(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n +// Deprecated: Use ModifyNICInternalRequest.ProtoReflect.Descriptor instead. +func (*ModifyNICInternalRequest) Descriptor() ([]byte, []int) { + return file_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto_rawDescGZIP(), []int{6} } -func (m *RemovePCIInternalRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContainerID) - if l > 0 { - n += 1 + l + sovComputeagent(uint64(l)) - } - l = len(m.DeviceID) - if l > 0 { - n += 1 + l + sovComputeagent(uint64(l)) +func (x *ModifyNICInternalRequest) GetNicID() string { + if x != nil { + return x.NicID } - if m.VirtualFunctionIndex != 0 { - n += 1 + sovComputeagent(uint64(m.VirtualFunctionIndex)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n + return "" } -func (m *RemovePCIInternalResponse) Size() (n int) { - if m == nil { - return 0 +func (x *ModifyNICInternalRequest) GetEndpoint() *anypb.Any { + if x != nil { + return x.Endpoint } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n + return nil } -func (m *AddNICInternalRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContainerID) - if l > 0 { - n += 1 + l + sovComputeagent(uint64(l)) - } - l = len(m.NicID) - if l > 0 { - n += 1 + l + sovComputeagent(uint64(l)) - } - if m.Endpoint != nil { - l = m.Endpoint.Size() - n += 1 + l + sovComputeagent(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) +func (x *ModifyNICInternalRequest) GetIovPolicySettings() *IovSettings { + if x != nil { + return x.IovPolicySettings } - return n + return nil } -func (m *AddNICInternalResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n +type ModifyNICInternalResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *ModifyNICInternalRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.NicID) - if l > 0 { - n += 1 + l + sovComputeagent(uint64(l)) - } - if m.Endpoint != nil { - l = m.Endpoint.Size() - n += 1 + l + sovComputeagent(uint64(l)) - } - if m.IovPolicySettings != nil { - l = m.IovPolicySettings.Size() - n += 1 + l + sovComputeagent(uint64(l)) +func (x *ModifyNICInternalResponse) Reset() { + *x = ModifyNICInternalResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n } -func (m *ModifyNICInternalResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n +func (x *ModifyNICInternalResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DeleteNICInternalRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContainerID) - if l > 0 { - n += 1 + l + sovComputeagent(uint64(l)) - } - l = len(m.NicID) - if l > 0 { - n += 1 + l + sovComputeagent(uint64(l)) - } - if m.Endpoint != nil { - l = m.Endpoint.Size() - n += 1 + l + sovComputeagent(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} +func (*ModifyNICInternalResponse) ProtoMessage() {} -func (m *DeleteNICInternalResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) +func (x *ModifyNICInternalResponse) ProtoReflect() protoreflect.Message { + mi := &file_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return n + return mi.MessageOf(x) } -func (m *IovSettings) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.IovOffloadWeight != 0 { - n += 1 + sovComputeagent(uint64(m.IovOffloadWeight)) - } - if m.QueuePairsRequested != 0 { - n += 1 + sovComputeagent(uint64(m.QueuePairsRequested)) - } - if m.InterruptModeration != 0 { - n += 1 + sovComputeagent(uint64(m.InterruptModeration)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n +// Deprecated: Use ModifyNICInternalResponse.ProtoReflect.Descriptor instead. +func (*ModifyNICInternalResponse) Descriptor() ([]byte, []int) { + return file_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto_rawDescGZIP(), []int{7} } -func sovComputeagent(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozComputeagent(x uint64) (n int) { - return sovComputeagent(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *AssignPCIInternalRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&AssignPCIInternalRequest{`, - `ContainerID:` + fmt.Sprintf("%v", this.ContainerID) + `,`, - `DeviceID:` + fmt.Sprintf("%v", this.DeviceID) + `,`, - `VirtualFunctionIndex:` + fmt.Sprintf("%v", this.VirtualFunctionIndex) + `,`, - `NicID:` + fmt.Sprintf("%v", this.NicID) + `,`, - `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, - `}`, - }, "") - return s -} -func (this *AssignPCIInternalResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&AssignPCIInternalResponse{`, - `ID:` + fmt.Sprintf("%v", this.ID) + `,`, - `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, - `}`, - }, "") - return s -} -func (this *RemovePCIInternalRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RemovePCIInternalRequest{`, - `ContainerID:` + fmt.Sprintf("%v", this.ContainerID) + `,`, - `DeviceID:` + fmt.Sprintf("%v", this.DeviceID) + `,`, - `VirtualFunctionIndex:` + fmt.Sprintf("%v", this.VirtualFunctionIndex) + `,`, - `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, - `}`, - }, "") - return s -} -func (this *RemovePCIInternalResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RemovePCIInternalResponse{`, - `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, - `}`, - }, "") - return s -} -func (this *AddNICInternalRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&AddNICInternalRequest{`, - `ContainerID:` + fmt.Sprintf("%v", this.ContainerID) + `,`, - `NicID:` + fmt.Sprintf("%v", this.NicID) + `,`, - `Endpoint:` + strings.Replace(fmt.Sprintf("%v", this.Endpoint), "Any", "types.Any", 1) + `,`, - `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, - `}`, - }, "") - return s -} -func (this *AddNICInternalResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&AddNICInternalResponse{`, - `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, - `}`, - }, "") - return s -} -func (this *ModifyNICInternalRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ModifyNICInternalRequest{`, - `NicID:` + fmt.Sprintf("%v", this.NicID) + `,`, - `Endpoint:` + strings.Replace(fmt.Sprintf("%v", this.Endpoint), "Any", "types.Any", 1) + `,`, - `IovPolicySettings:` + strings.Replace(this.IovPolicySettings.String(), "IovSettings", "IovSettings", 1) + `,`, - `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, - `}`, - }, "") - return s -} -func (this *ModifyNICInternalResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ModifyNICInternalResponse{`, - `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, - `}`, - }, "") - return s -} -func (this *DeleteNICInternalRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DeleteNICInternalRequest{`, - `ContainerID:` + fmt.Sprintf("%v", this.ContainerID) + `,`, - `NicID:` + fmt.Sprintf("%v", this.NicID) + `,`, - `Endpoint:` + strings.Replace(fmt.Sprintf("%v", this.Endpoint), "Any", "types.Any", 1) + `,`, - `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, - `}`, - }, "") - return s -} -func (this *DeleteNICInternalResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DeleteNICInternalResponse{`, - `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, - `}`, - }, "") - return s -} -func (this *IovSettings) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&IovSettings{`, - `IovOffloadWeight:` + fmt.Sprintf("%v", this.IovOffloadWeight) + `,`, - `QueuePairsRequested:` + fmt.Sprintf("%v", this.QueuePairsRequested) + `,`, - `InterruptModeration:` + fmt.Sprintf("%v", this.InterruptModeration) + `,`, - `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, - `}`, - }, "") - return s -} -func valueToStringComputeagent(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} +type DeleteNICInternalRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type ComputeAgentService interface { - AddNIC(ctx context.Context, req *AddNICInternalRequest) (*AddNICInternalResponse, error) - ModifyNIC(ctx context.Context, req *ModifyNICInternalRequest) (*ModifyNICInternalResponse, error) - DeleteNIC(ctx context.Context, req *DeleteNICInternalRequest) (*DeleteNICInternalResponse, error) - AssignPCI(ctx context.Context, req *AssignPCIInternalRequest) (*AssignPCIInternalResponse, error) - RemovePCI(ctx context.Context, req *RemovePCIInternalRequest) (*RemovePCIInternalResponse, error) + ContainerID string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` + NicID string `protobuf:"bytes,2,opt,name=nic_id,json=nicId,proto3" json:"nic_id,omitempty"` + Endpoint *anypb.Any `protobuf:"bytes,3,opt,name=endpoint,proto3" json:"endpoint,omitempty"` } -func RegisterComputeAgentService(srv *github_com_containerd_ttrpc.Server, svc ComputeAgentService) { - srv.Register("ComputeAgent", map[string]github_com_containerd_ttrpc.Method{ - "AddNIC": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { - var req AddNICInternalRequest - if err := unmarshal(&req); err != nil { - return nil, err - } - return svc.AddNIC(ctx, &req) - }, - "ModifyNIC": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { - var req ModifyNICInternalRequest - if err := unmarshal(&req); err != nil { - return nil, err - } - return svc.ModifyNIC(ctx, &req) - }, - "DeleteNIC": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { - var req DeleteNICInternalRequest - if err := unmarshal(&req); err != nil { - return nil, err - } - return svc.DeleteNIC(ctx, &req) - }, - "AssignPCI": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { - var req AssignPCIInternalRequest - if err := unmarshal(&req); err != nil { - return nil, err - } - return svc.AssignPCI(ctx, &req) - }, - "RemovePCI": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { - var req RemovePCIInternalRequest - if err := unmarshal(&req); err != nil { - return nil, err - } - return svc.RemovePCI(ctx, &req) - }, - }) +func (x *DeleteNICInternalRequest) Reset() { + *x = DeleteNICInternalRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -type computeAgentClient struct { - client *github_com_containerd_ttrpc.Client +func (x *DeleteNICInternalRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func NewComputeAgentClient(client *github_com_containerd_ttrpc.Client) ComputeAgentService { - return &computeAgentClient{ - client: client, - } -} +func (*DeleteNICInternalRequest) ProtoMessage() {} -func (c *computeAgentClient) AddNIC(ctx context.Context, req *AddNICInternalRequest) (*AddNICInternalResponse, error) { - var resp AddNICInternalResponse - if err := c.client.Call(ctx, "ComputeAgent", "AddNIC", req, &resp); err != nil { - return nil, err +func (x *DeleteNICInternalRequest) ProtoReflect() protoreflect.Message { + mi := &file_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return &resp, nil + return mi.MessageOf(x) } -func (c *computeAgentClient) ModifyNIC(ctx context.Context, req *ModifyNICInternalRequest) (*ModifyNICInternalResponse, error) { - var resp ModifyNICInternalResponse - if err := c.client.Call(ctx, "ComputeAgent", "ModifyNIC", req, &resp); err != nil { - return nil, err - } - return &resp, nil +// Deprecated: Use DeleteNICInternalRequest.ProtoReflect.Descriptor instead. +func (*DeleteNICInternalRequest) Descriptor() ([]byte, []int) { + return file_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto_rawDescGZIP(), []int{8} } -func (c *computeAgentClient) DeleteNIC(ctx context.Context, req *DeleteNICInternalRequest) (*DeleteNICInternalResponse, error) { - var resp DeleteNICInternalResponse - if err := c.client.Call(ctx, "ComputeAgent", "DeleteNIC", req, &resp); err != nil { - return nil, err +func (x *DeleteNICInternalRequest) GetContainerID() string { + if x != nil { + return x.ContainerID } - return &resp, nil + return "" } -func (c *computeAgentClient) AssignPCI(ctx context.Context, req *AssignPCIInternalRequest) (*AssignPCIInternalResponse, error) { - var resp AssignPCIInternalResponse - if err := c.client.Call(ctx, "ComputeAgent", "AssignPCI", req, &resp); err != nil { - return nil, err +func (x *DeleteNICInternalRequest) GetNicID() string { + if x != nil { + return x.NicID } - return &resp, nil + return "" } -func (c *computeAgentClient) RemovePCI(ctx context.Context, req *RemovePCIInternalRequest) (*RemovePCIInternalResponse, error) { - var resp RemovePCIInternalResponse - if err := c.client.Call(ctx, "ComputeAgent", "RemovePCI", req, &resp); err != nil { - return nil, err - } - return &resp, nil -} -func (m *AssignPCIInternalRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowComputeagent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AssignPCIInternalRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AssignPCIInternalRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContainerID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowComputeagent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthComputeagent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthComputeagent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ContainerID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DeviceID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowComputeagent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthComputeagent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthComputeagent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DeviceID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field VirtualFunctionIndex", wireType) - } - m.VirtualFunctionIndex = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowComputeagent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.VirtualFunctionIndex |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NicID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowComputeagent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthComputeagent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthComputeagent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NicID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipComputeagent(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthComputeagent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *DeleteNICInternalRequest) GetEndpoint() *anypb.Any { + if x != nil { + return x.Endpoint } return nil } -func (m *AssignPCIInternalResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowComputeagent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AssignPCIInternalResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AssignPCIInternalResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowComputeagent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthComputeagent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthComputeagent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipComputeagent(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthComputeagent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil +type DeleteNICInternalResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *RemovePCIInternalRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowComputeagent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RemovePCIInternalRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RemovePCIInternalRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContainerID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowComputeagent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthComputeagent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthComputeagent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ContainerID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DeviceID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowComputeagent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthComputeagent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthComputeagent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DeviceID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field VirtualFunctionIndex", wireType) - } - m.VirtualFunctionIndex = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowComputeagent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.VirtualFunctionIndex |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipComputeagent(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthComputeagent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *DeleteNICInternalResponse) Reset() { + *x = DeleteNICInternalResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -func (m *RemovePCIInternalResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowComputeagent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RemovePCIInternalResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RemovePCIInternalResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipComputeagent(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthComputeagent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil +func (x *DeleteNICInternalResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *AddNICInternalRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowComputeagent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AddNICInternalRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AddNICInternalRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContainerID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowComputeagent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthComputeagent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthComputeagent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ContainerID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NicID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowComputeagent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthComputeagent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthComputeagent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NicID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Endpoint", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowComputeagent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthComputeagent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthComputeagent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Endpoint == nil { - m.Endpoint = &types.Any{} - } - if err := m.Endpoint.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipComputeagent(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthComputeagent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AddNICInternalResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowComputeagent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AddNICInternalResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AddNICInternalResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipComputeagent(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthComputeagent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } +func (*DeleteNICInternalResponse) ProtoMessage() {} - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ModifyNICInternalRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowComputeagent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } +func (x *DeleteNICInternalResponse) ProtoReflect() protoreflect.Message { + mi := &file_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ModifyNICInternalRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ModifyNICInternalRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NicID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowComputeagent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthComputeagent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthComputeagent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NicID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Endpoint", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowComputeagent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthComputeagent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthComputeagent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Endpoint == nil { - m.Endpoint = &types.Any{} - } - if err := m.Endpoint.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IovPolicySettings", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowComputeagent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthComputeagent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthComputeagent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.IovPolicySettings == nil { - m.IovPolicySettings = &IovSettings{} - } - if err := m.IovPolicySettings.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipComputeagent(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthComputeagent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF + return ms } - return nil + return mi.MessageOf(x) } -func (m *ModifyNICInternalResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowComputeagent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ModifyNICInternalResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ModifyNICInternalResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipComputeagent(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthComputeagent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil +// Deprecated: Use DeleteNICInternalResponse.ProtoReflect.Descriptor instead. +func (*DeleteNICInternalResponse) Descriptor() ([]byte, []int) { + return file_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto_rawDescGZIP(), []int{9} } -func (m *DeleteNICInternalRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowComputeagent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DeleteNICInternalRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeleteNICInternalRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContainerID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowComputeagent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthComputeagent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthComputeagent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ContainerID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NicID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowComputeagent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthComputeagent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthComputeagent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NicID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Endpoint", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowComputeagent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthComputeagent - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthComputeagent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Endpoint == nil { - m.Endpoint = &types.Any{} - } - if err := m.Endpoint.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipComputeagent(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthComputeagent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil +type IovSettings struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + IovOffloadWeight uint32 `protobuf:"varint,1,opt,name=IovOffloadWeight,proto3" json:"IovOffloadWeight,omitempty"` + QueuePairsRequested uint32 `protobuf:"varint,2,opt,name=QueuePairsRequested,proto3" json:"QueuePairsRequested,omitempty"` + InterruptModeration uint32 `protobuf:"varint,3,opt,name=InterruptModeration,proto3" json:"InterruptModeration,omitempty"` } -func (m *DeleteNICInternalResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowComputeagent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DeleteNICInternalResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeleteNICInternalResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipComputeagent(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthComputeagent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *IovSettings) Reset() { + *x = IovSettings{} + if protoimpl.UnsafeEnabled { + mi := &file_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -func (m *IovSettings) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowComputeagent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: IovSettings: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: IovSettings: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IovOffloadWeight", wireType) - } - m.IovOffloadWeight = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowComputeagent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.IovOffloadWeight |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field QueuePairsRequested", wireType) - } - m.QueuePairsRequested = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowComputeagent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.QueuePairsRequested |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field InterruptModeration", wireType) - } - m.InterruptModeration = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowComputeagent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.InterruptModeration |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipComputeagent(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthComputeagent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil +func (x *IovSettings) String() string { + return protoimpl.X.MessageStringOf(x) } -func skipComputeagent(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowComputeagent - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowComputeagent - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowComputeagent - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthComputeagent - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupComputeagent - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthComputeagent - } - if depth == 0 { - return iNdEx, nil + +func (*IovSettings) ProtoMessage() {} + +func (x *IovSettings) ProtoReflect() protoreflect.Message { + mi := &file_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - return 0, io.ErrUnexpectedEOF + return mi.MessageOf(x) +} + +// Deprecated: Use IovSettings.ProtoReflect.Descriptor instead. +func (*IovSettings) Descriptor() ([]byte, []int) { + return file_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto_rawDescGZIP(), []int{10} +} + +func (x *IovSettings) GetIovOffloadWeight() uint32 { + if x != nil { + return x.IovOffloadWeight + } + return 0 +} + +func (x *IovSettings) GetQueuePairsRequested() uint32 { + if x != nil { + return x.QueuePairsRequested + } + return 0 +} + +func (x *IovSettings) GetInterruptModeration() uint32 { + if x != nil { + return x.InterruptModeration + } + return 0 +} + +var File_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto protoreflect.FileDescriptor + +var file_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto_rawDesc = []byte{ + 0x0a, 0x45, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4d, 0x69, 0x63, + 0x72, 0x6f, 0x73, 0x6f, 0x66, 0x74, 0x2f, 0x68, 0x63, 0x73, 0x73, 0x68, 0x69, 0x6d, 0x2f, 0x69, + 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x61, 0x67, 0x65, 0x6e, + 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x22, 0xa7, 0x01, 0x0a, 0x18, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x50, 0x43, 0x49, + 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, + 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x12, + 0x34, 0x0a, 0x16, 0x76, 0x69, 0x72, 0x74, 0x75, 0x61, 0x6c, 0x5f, 0x66, 0x75, 0x6e, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, + 0x14, 0x76, 0x69, 0x72, 0x74, 0x75, 0x61, 0x6c, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x15, 0x0a, 0x06, 0x6e, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6e, 0x69, 0x63, 0x49, 0x64, 0x22, 0x2b, 0x0a, 0x19, + 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x50, 0x43, 0x49, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, + 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x90, 0x01, 0x0a, 0x18, 0x52, 0x65, + 0x6d, 0x6f, 0x76, 0x65, 0x50, 0x43, 0x49, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, + 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, + 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x65, 0x76, + 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x65, + 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x12, 0x34, 0x0a, 0x16, 0x76, 0x69, 0x72, 0x74, 0x75, 0x61, + 0x6c, 0x5f, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x14, 0x76, 0x69, 0x72, 0x74, 0x75, 0x61, 0x6c, 0x46, + 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x22, 0x1b, 0x0a, 0x19, + 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x50, 0x43, 0x49, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, + 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x83, 0x01, 0x0a, 0x15, 0x41, 0x64, + 0x64, 0x4e, 0x49, 0x43, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, + 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x61, + 0x69, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x6e, 0x69, 0x63, 0x5f, 0x69, 0x64, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6e, 0x69, 0x63, 0x49, 0x64, 0x12, 0x30, 0x0a, + 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x22, + 0x18, 0x0a, 0x16, 0x41, 0x64, 0x64, 0x4e, 0x49, 0x43, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, + 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xa1, 0x01, 0x0a, 0x18, 0x4d, 0x6f, + 0x64, 0x69, 0x66, 0x79, 0x4e, 0x49, 0x43, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x15, 0x0a, 0x06, 0x6e, 0x69, 0x63, 0x5f, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6e, 0x69, 0x63, 0x49, 0x64, 0x12, 0x30, 0x0a, + 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, + 0x3c, 0x0a, 0x13, 0x69, 0x6f, 0x76, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, 0x73, 0x65, + 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x49, + 0x6f, 0x76, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x11, 0x69, 0x6f, 0x76, 0x50, + 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x22, 0x1b, 0x0a, + 0x19, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x4e, 0x49, 0x43, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, + 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x86, 0x01, 0x0a, 0x18, 0x44, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x49, 0x43, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x61, + 0x69, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, + 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x6e, 0x69, + 0x63, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6e, 0x69, 0x63, 0x49, + 0x64, 0x12, 0x30, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, + 0x69, 0x6e, 0x74, 0x22, 0x1b, 0x0a, 0x19, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x49, 0x43, + 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x9d, 0x01, 0x0a, 0x0b, 0x49, 0x6f, 0x76, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, + 0x12, 0x2a, 0x0a, 0x10, 0x49, 0x6f, 0x76, 0x4f, 0x66, 0x66, 0x6c, 0x6f, 0x61, 0x64, 0x57, 0x65, + 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x10, 0x49, 0x6f, 0x76, 0x4f, + 0x66, 0x66, 0x6c, 0x6f, 0x61, 0x64, 0x57, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x30, 0x0a, 0x13, + 0x51, 0x75, 0x65, 0x75, 0x65, 0x50, 0x61, 0x69, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x13, 0x51, 0x75, 0x65, 0x75, 0x65, + 0x50, 0x61, 0x69, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, 0x12, 0x30, + 0x0a, 0x13, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x13, 0x49, 0x6e, 0x74, + 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x32, 0xe3, 0x02, 0x0a, 0x0c, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x41, 0x67, 0x65, 0x6e, + 0x74, 0x12, 0x3b, 0x0a, 0x06, 0x41, 0x64, 0x64, 0x4e, 0x49, 0x43, 0x12, 0x16, 0x2e, 0x41, 0x64, + 0x64, 0x4e, 0x49, 0x43, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x41, 0x64, 0x64, 0x4e, 0x49, 0x43, 0x49, 0x6e, 0x74, 0x65, + 0x72, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x44, + 0x0a, 0x09, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x4e, 0x49, 0x43, 0x12, 0x19, 0x2e, 0x4d, 0x6f, + 0x64, 0x69, 0x66, 0x79, 0x4e, 0x49, 0x43, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x4e, + 0x49, 0x43, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x00, 0x12, 0x44, 0x0a, 0x09, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x49, + 0x43, 0x12, 0x19, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x49, 0x43, 0x49, 0x6e, 0x74, + 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x44, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x49, 0x43, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x44, 0x0a, 0x09, 0x41, 0x73, + 0x73, 0x69, 0x67, 0x6e, 0x50, 0x43, 0x49, 0x12, 0x19, 0x2e, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, + 0x50, 0x43, 0x49, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x50, 0x43, 0x49, 0x49, 0x6e, + 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, + 0x12, 0x44, 0x0a, 0x09, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x50, 0x43, 0x49, 0x12, 0x19, 0x2e, + 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x50, 0x43, 0x49, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, + 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, + 0x65, 0x50, 0x43, 0x49, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x41, 0x5a, 0x3f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x6f, 0x66, 0x74, 0x2f, 0x68, + 0x63, 0x73, 0x73, 0x68, 0x69, 0x6d, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, + 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x3b, 0x63, 0x6f, 0x6d, + 0x70, 0x75, 0x74, 0x65, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, } var ( - ErrInvalidLengthComputeagent = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowComputeagent = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupComputeagent = fmt.Errorf("proto: unexpected end of group") + file_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto_rawDescOnce sync.Once + file_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto_rawDescData = file_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto_rawDesc ) + +func file_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto_rawDescGZIP() []byte { + file_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto_rawDescOnce.Do(func() { + file_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto_rawDescData = protoimpl.X.CompressGZIP(file_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto_rawDescData) + }) + return file_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto_rawDescData +} + +var file_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto_msgTypes = make([]protoimpl.MessageInfo, 11) +var file_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto_goTypes = []interface{}{ + (*AssignPCIInternalRequest)(nil), // 0: AssignPCIInternalRequest + (*AssignPCIInternalResponse)(nil), // 1: AssignPCIInternalResponse + (*RemovePCIInternalRequest)(nil), // 2: RemovePCIInternalRequest + (*RemovePCIInternalResponse)(nil), // 3: RemovePCIInternalResponse + (*AddNICInternalRequest)(nil), // 4: AddNICInternalRequest + (*AddNICInternalResponse)(nil), // 5: AddNICInternalResponse + (*ModifyNICInternalRequest)(nil), // 6: ModifyNICInternalRequest + (*ModifyNICInternalResponse)(nil), // 7: ModifyNICInternalResponse + (*DeleteNICInternalRequest)(nil), // 8: DeleteNICInternalRequest + (*DeleteNICInternalResponse)(nil), // 9: DeleteNICInternalResponse + (*IovSettings)(nil), // 10: IovSettings + (*anypb.Any)(nil), // 11: google.protobuf.Any +} +var file_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto_depIdxs = []int32{ + 11, // 0: AddNICInternalRequest.endpoint:type_name -> google.protobuf.Any + 11, // 1: ModifyNICInternalRequest.endpoint:type_name -> google.protobuf.Any + 10, // 2: ModifyNICInternalRequest.iov_policy_settings:type_name -> IovSettings + 11, // 3: DeleteNICInternalRequest.endpoint:type_name -> google.protobuf.Any + 4, // 4: ComputeAgent.AddNIC:input_type -> AddNICInternalRequest + 6, // 5: ComputeAgent.ModifyNIC:input_type -> ModifyNICInternalRequest + 8, // 6: ComputeAgent.DeleteNIC:input_type -> DeleteNICInternalRequest + 0, // 7: ComputeAgent.AssignPCI:input_type -> AssignPCIInternalRequest + 2, // 8: ComputeAgent.RemovePCI:input_type -> RemovePCIInternalRequest + 5, // 9: ComputeAgent.AddNIC:output_type -> AddNICInternalResponse + 7, // 10: ComputeAgent.ModifyNIC:output_type -> ModifyNICInternalResponse + 9, // 11: ComputeAgent.DeleteNIC:output_type -> DeleteNICInternalResponse + 1, // 12: ComputeAgent.AssignPCI:output_type -> AssignPCIInternalResponse + 3, // 13: ComputeAgent.RemovePCI:output_type -> RemovePCIInternalResponse + 9, // [9:14] is the sub-list for method output_type + 4, // [4:9] is the sub-list for method input_type + 4, // [4:4] is the sub-list for extension type_name + 4, // [4:4] is the sub-list for extension extendee + 0, // [0:4] is the sub-list for field type_name +} + +func init() { file_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto_init() } +func file_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto_init() { + if File_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AssignPCIInternalRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AssignPCIInternalResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RemovePCIInternalRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RemovePCIInternalResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AddNICInternalRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AddNICInternalResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ModifyNICInternalRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ModifyNICInternalResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteNICInternalRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteNICInternalResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*IovSettings); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto_rawDesc, + NumEnums: 0, + NumMessages: 11, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto_goTypes, + DependencyIndexes: file_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto_depIdxs, + MessageInfos: file_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto_msgTypes, + }.Build() + File_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto = out.File + file_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto_rawDesc = nil + file_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto_goTypes = nil + file_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto_depIdxs = nil +} diff --git a/computeagent/computeagent.proto b/computeagent/computeagent.proto index 51127ffd01..9dd251d090 100644 --- a/computeagent/computeagent.proto +++ b/computeagent/computeagent.proto @@ -2,7 +2,6 @@ syntax = "proto3"; option go_package = "github.com/Microsoft/hcsshim/internal/computeagent;computeagent"; -import weak "gogoproto/gogo.proto"; import "google/protobuf/any.proto"; service ComputeAgent{ @@ -17,7 +16,7 @@ message AssignPCIInternalRequest { string container_id = 1; string device_id = 2; uint32 virtual_function_index = 3; - string nic_id = 4; + string nic_id = 4; } message AssignPCIInternalResponse { @@ -58,6 +57,6 @@ message DeleteNICInternalResponse {} message IovSettings { uint32 IovOffloadWeight = 1; - uint32 QueuePairsRequested = 2; + uint32 QueuePairsRequested = 2; uint32 InterruptModeration = 3; } diff --git a/computeagent/computeagent_ttrpc.pb.go b/computeagent/computeagent_ttrpc.pb.go new file mode 100644 index 0000000000..17c0717d7b --- /dev/null +++ b/computeagent/computeagent_ttrpc.pb.go @@ -0,0 +1,108 @@ +// Code generated by protoc-gen-go-ttrpc. DO NOT EDIT. +// source: github.com/Microsoft/hcsshim/internal/computeagent/computeagent.proto +package computeagent + +import ( + context "context" + ttrpc "github.com/containerd/ttrpc" +) + +type ComputeAgentService interface { + AddNIC(context.Context, *AddNICInternalRequest) (*AddNICInternalResponse, error) + ModifyNIC(context.Context, *ModifyNICInternalRequest) (*ModifyNICInternalResponse, error) + DeleteNIC(context.Context, *DeleteNICInternalRequest) (*DeleteNICInternalResponse, error) + AssignPCI(context.Context, *AssignPCIInternalRequest) (*AssignPCIInternalResponse, error) + RemovePCI(context.Context, *RemovePCIInternalRequest) (*RemovePCIInternalResponse, error) +} + +func RegisterComputeAgentService(srv *ttrpc.Server, svc ComputeAgentService) { + srv.RegisterService("ComputeAgent", &ttrpc.ServiceDesc{ + Methods: map[string]ttrpc.Method{ + "AddNIC": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { + var req AddNICInternalRequest + if err := unmarshal(&req); err != nil { + return nil, err + } + return svc.AddNIC(ctx, &req) + }, + "ModifyNIC": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { + var req ModifyNICInternalRequest + if err := unmarshal(&req); err != nil { + return nil, err + } + return svc.ModifyNIC(ctx, &req) + }, + "DeleteNIC": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { + var req DeleteNICInternalRequest + if err := unmarshal(&req); err != nil { + return nil, err + } + return svc.DeleteNIC(ctx, &req) + }, + "AssignPCI": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { + var req AssignPCIInternalRequest + if err := unmarshal(&req); err != nil { + return nil, err + } + return svc.AssignPCI(ctx, &req) + }, + "RemovePCI": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { + var req RemovePCIInternalRequest + if err := unmarshal(&req); err != nil { + return nil, err + } + return svc.RemovePCI(ctx, &req) + }, + }, + }) +} + +type computeagentClient struct { + client *ttrpc.Client +} + +func NewComputeAgentClient(client *ttrpc.Client) ComputeAgentService { + return &computeagentClient{ + client: client, + } +} + +func (c *computeagentClient) AddNIC(ctx context.Context, req *AddNICInternalRequest) (*AddNICInternalResponse, error) { + var resp AddNICInternalResponse + if err := c.client.Call(ctx, "ComputeAgent", "AddNIC", req, &resp); err != nil { + return nil, err + } + return &resp, nil +} + +func (c *computeagentClient) ModifyNIC(ctx context.Context, req *ModifyNICInternalRequest) (*ModifyNICInternalResponse, error) { + var resp ModifyNICInternalResponse + if err := c.client.Call(ctx, "ComputeAgent", "ModifyNIC", req, &resp); err != nil { + return nil, err + } + return &resp, nil +} + +func (c *computeagentClient) DeleteNIC(ctx context.Context, req *DeleteNICInternalRequest) (*DeleteNICInternalResponse, error) { + var resp DeleteNICInternalResponse + if err := c.client.Call(ctx, "ComputeAgent", "DeleteNIC", req, &resp); err != nil { + return nil, err + } + return &resp, nil +} + +func (c *computeagentClient) AssignPCI(ctx context.Context, req *AssignPCIInternalRequest) (*AssignPCIInternalResponse, error) { + var resp AssignPCIInternalResponse + if err := c.client.Call(ctx, "ComputeAgent", "AssignPCI", req, &resp); err != nil { + return nil, err + } + return &resp, nil +} + +func (c *computeagentClient) RemovePCI(ctx context.Context, req *RemovePCIInternalRequest) (*RemovePCIInternalResponse, error) { + var resp RemovePCIInternalResponse + if err := c.client.Call(ctx, "ComputeAgent", "RemovePCI", req, &resp); err != nil { + return nil, err + } + return &resp, nil +} diff --git a/computeagent/doc.go b/computeagent/doc.go index 7887c5b346..5a23c79345 100644 --- a/computeagent/doc.go +++ b/computeagent/doc.go @@ -5,4 +5,4 @@ // used for ncproxy. package computeagent -//go:generate go run github.com/golang/mock/mockgen -source=computeagent.pb.go -package=computeagent_mock -destination=mock\computeagent_mock.pb.go +//go:generate go run github.com/golang/mock/mockgen -source=computeagent_ttrpc.pb.go -package=computeagent_mock -destination=mock\computeagent_mock.pb.go diff --git a/computeagent/mock/computeagent_mock.pb.go b/computeagent/mock/computeagent_mock.pb.go index 8ea0507796..55d7b1019b 100644 --- a/computeagent/mock/computeagent_mock.pb.go +++ b/computeagent/mock/computeagent_mock.pb.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: computeagent.pb.go +// Source: computeagent_ttrpc.pb.go // Package computeagent_mock is a generated GoMock package. package computeagent_mock @@ -36,76 +36,76 @@ func (m *MockComputeAgentService) EXPECT() *MockComputeAgentServiceMockRecorder } // AddNIC mocks base method. -func (m *MockComputeAgentService) AddNIC(ctx context.Context, req *computeagent.AddNICInternalRequest) (*computeagent.AddNICInternalResponse, error) { +func (m *MockComputeAgentService) AddNIC(arg0 context.Context, arg1 *computeagent.AddNICInternalRequest) (*computeagent.AddNICInternalResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AddNIC", ctx, req) + ret := m.ctrl.Call(m, "AddNIC", arg0, arg1) ret0, _ := ret[0].(*computeagent.AddNICInternalResponse) ret1, _ := ret[1].(error) return ret0, ret1 } // AddNIC indicates an expected call of AddNIC. -func (mr *MockComputeAgentServiceMockRecorder) AddNIC(ctx, req interface{}) *gomock.Call { +func (mr *MockComputeAgentServiceMockRecorder) AddNIC(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddNIC", reflect.TypeOf((*MockComputeAgentService)(nil).AddNIC), ctx, req) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddNIC", reflect.TypeOf((*MockComputeAgentService)(nil).AddNIC), arg0, arg1) } // AssignPCI mocks base method. -func (m *MockComputeAgentService) AssignPCI(ctx context.Context, req *computeagent.AssignPCIInternalRequest) (*computeagent.AssignPCIInternalResponse, error) { +func (m *MockComputeAgentService) AssignPCI(arg0 context.Context, arg1 *computeagent.AssignPCIInternalRequest) (*computeagent.AssignPCIInternalResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AssignPCI", ctx, req) + ret := m.ctrl.Call(m, "AssignPCI", arg0, arg1) ret0, _ := ret[0].(*computeagent.AssignPCIInternalResponse) ret1, _ := ret[1].(error) return ret0, ret1 } // AssignPCI indicates an expected call of AssignPCI. -func (mr *MockComputeAgentServiceMockRecorder) AssignPCI(ctx, req interface{}) *gomock.Call { +func (mr *MockComputeAgentServiceMockRecorder) AssignPCI(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AssignPCI", reflect.TypeOf((*MockComputeAgentService)(nil).AssignPCI), ctx, req) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AssignPCI", reflect.TypeOf((*MockComputeAgentService)(nil).AssignPCI), arg0, arg1) } // DeleteNIC mocks base method. -func (m *MockComputeAgentService) DeleteNIC(ctx context.Context, req *computeagent.DeleteNICInternalRequest) (*computeagent.DeleteNICInternalResponse, error) { +func (m *MockComputeAgentService) DeleteNIC(arg0 context.Context, arg1 *computeagent.DeleteNICInternalRequest) (*computeagent.DeleteNICInternalResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "DeleteNIC", ctx, req) + ret := m.ctrl.Call(m, "DeleteNIC", arg0, arg1) ret0, _ := ret[0].(*computeagent.DeleteNICInternalResponse) ret1, _ := ret[1].(error) return ret0, ret1 } // DeleteNIC indicates an expected call of DeleteNIC. -func (mr *MockComputeAgentServiceMockRecorder) DeleteNIC(ctx, req interface{}) *gomock.Call { +func (mr *MockComputeAgentServiceMockRecorder) DeleteNIC(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteNIC", reflect.TypeOf((*MockComputeAgentService)(nil).DeleteNIC), ctx, req) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteNIC", reflect.TypeOf((*MockComputeAgentService)(nil).DeleteNIC), arg0, arg1) } // ModifyNIC mocks base method. -func (m *MockComputeAgentService) ModifyNIC(ctx context.Context, req *computeagent.ModifyNICInternalRequest) (*computeagent.ModifyNICInternalResponse, error) { +func (m *MockComputeAgentService) ModifyNIC(arg0 context.Context, arg1 *computeagent.ModifyNICInternalRequest) (*computeagent.ModifyNICInternalResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ModifyNIC", ctx, req) + ret := m.ctrl.Call(m, "ModifyNIC", arg0, arg1) ret0, _ := ret[0].(*computeagent.ModifyNICInternalResponse) ret1, _ := ret[1].(error) return ret0, ret1 } // ModifyNIC indicates an expected call of ModifyNIC. -func (mr *MockComputeAgentServiceMockRecorder) ModifyNIC(ctx, req interface{}) *gomock.Call { +func (mr *MockComputeAgentServiceMockRecorder) ModifyNIC(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ModifyNIC", reflect.TypeOf((*MockComputeAgentService)(nil).ModifyNIC), ctx, req) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ModifyNIC", reflect.TypeOf((*MockComputeAgentService)(nil).ModifyNIC), arg0, arg1) } // RemovePCI mocks base method. -func (m *MockComputeAgentService) RemovePCI(ctx context.Context, req *computeagent.RemovePCIInternalRequest) (*computeagent.RemovePCIInternalResponse, error) { +func (m *MockComputeAgentService) RemovePCI(arg0 context.Context, arg1 *computeagent.RemovePCIInternalRequest) (*computeagent.RemovePCIInternalResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "RemovePCI", ctx, req) + ret := m.ctrl.Call(m, "RemovePCI", arg0, arg1) ret0, _ := ret[0].(*computeagent.RemovePCIInternalResponse) ret1, _ := ret[1].(error) return ret0, ret1 } // RemovePCI indicates an expected call of RemovePCI. -func (mr *MockComputeAgentServiceMockRecorder) RemovePCI(ctx, req interface{}) *gomock.Call { +func (mr *MockComputeAgentServiceMockRecorder) RemovePCI(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemovePCI", reflect.TypeOf((*MockComputeAgentService)(nil).RemovePCI), ctx, req) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemovePCI", reflect.TypeOf((*MockComputeAgentService)(nil).RemovePCI), arg0, arg1) } diff --git a/extendedtask/extendedtask.pb.go b/extendedtask/extendedtask.pb.go index c13f92defb..5eb06219d3 100644 --- a/extendedtask/extendedtask.pb.go +++ b/extendedtask/extendedtask.pb.go @@ -1,550 +1,220 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc v4.23.2 // source: github.com/Microsoft/hcsshim/internal/extendedtask/extendedtask.proto package extendedtask import ( - context "context" - fmt "fmt" - github_com_containerd_ttrpc "github.com/containerd/ttrpc" - proto "github.com/gogo/protobuf/proto" - io "io" - math "math" - math_bits "math/bits" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" - strings "strings" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type ComputeProcessorInfoRequest struct { - ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ComputeProcessorInfoRequest) Reset() { *m = ComputeProcessorInfoRequest{} } -func (*ComputeProcessorInfoRequest) ProtoMessage() {} -func (*ComputeProcessorInfoRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c90988f6b70b2a29, []int{0} -} -func (m *ComputeProcessorInfoRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ComputeProcessorInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ComputeProcessorInfoRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ComputeProcessorInfoRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ComputeProcessorInfoRequest.Merge(m, src) -} -func (m *ComputeProcessorInfoRequest) XXX_Size() int { - return m.Size() -} -func (m *ComputeProcessorInfoRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ComputeProcessorInfoRequest.DiscardUnknown(m) + ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` } -var xxx_messageInfo_ComputeProcessorInfoRequest proto.InternalMessageInfo - -type ComputeProcessorInfoResponse struct { - Count int32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ComputeProcessorInfoResponse) Reset() { *m = ComputeProcessorInfoResponse{} } -func (*ComputeProcessorInfoResponse) ProtoMessage() {} -func (*ComputeProcessorInfoResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c90988f6b70b2a29, []int{1} -} -func (m *ComputeProcessorInfoResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ComputeProcessorInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ComputeProcessorInfoResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *ComputeProcessorInfoRequest) Reset() { + *x = ComputeProcessorInfoRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_github_com_Microsoft_hcsshim_internal_extendedtask_extendedtask_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ComputeProcessorInfoResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ComputeProcessorInfoResponse.Merge(m, src) -} -func (m *ComputeProcessorInfoResponse) XXX_Size() int { - return m.Size() -} -func (m *ComputeProcessorInfoResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ComputeProcessorInfoResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ComputeProcessorInfoResponse proto.InternalMessageInfo - -func init() { - proto.RegisterType((*ComputeProcessorInfoRequest)(nil), "ComputeProcessorInfoRequest") - proto.RegisterType((*ComputeProcessorInfoResponse)(nil), "ComputeProcessorInfoResponse") -} - -func init() { - proto.RegisterFile("github.com/Microsoft/hcsshim/internal/extendedtask/extendedtask.proto", fileDescriptor_c90988f6b70b2a29) -} -var fileDescriptor_c90988f6b70b2a29 = []byte{ - // 249 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x72, 0x4d, 0xcf, 0x2c, 0xc9, - 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0xf7, 0xcd, 0x4c, 0x2e, 0xca, 0x2f, 0xce, 0x4f, 0x2b, - 0xd1, 0xcf, 0x48, 0x2e, 0x2e, 0xce, 0xc8, 0xcc, 0xd5, 0xcf, 0xcc, 0x2b, 0x49, 0x2d, 0xca, 0x4b, - 0xcc, 0xd1, 0x4f, 0xad, 0x28, 0x49, 0xcd, 0x4b, 0x49, 0x4d, 0x29, 0x49, 0x2c, 0xce, 0x46, 0xe1, - 0xe8, 0x15, 0x14, 0xe5, 0x97, 0xe4, 0x4b, 0x89, 0xa4, 0xe7, 0xa7, 0xe7, 0x83, 0x99, 0xfa, 0x20, - 0x16, 0x44, 0x54, 0xc9, 0x94, 0x4b, 0xda, 0x39, 0x3f, 0xb7, 0xa0, 0xb4, 0x24, 0x35, 0xa0, 0x28, - 0x3f, 0x39, 0xb5, 0xb8, 0x38, 0xbf, 0xc8, 0x33, 0x2f, 0x2d, 0x3f, 0x28, 0xb5, 0xb0, 0x34, 0xb5, - 0xb8, 0x44, 0x48, 0x8c, 0x8b, 0x29, 0x33, 0x45, 0x82, 0x51, 0x81, 0x51, 0x83, 0xd3, 0x89, 0xed, - 0xd1, 0x3d, 0x79, 0x26, 0x4f, 0x97, 0x20, 0xa6, 0xcc, 0x14, 0x25, 0x13, 0x2e, 0x19, 0xec, 0xda, - 0x8a, 0x0b, 0xf2, 0xf3, 0x8a, 0x53, 0x85, 0x44, 0xb8, 0x58, 0x93, 0xf3, 0x4b, 0xf3, 0x4a, 0xc0, - 0x5a, 0x59, 0x83, 0x20, 0x1c, 0xa3, 0x64, 0x2e, 0x1e, 0x57, 0xa8, 0xc3, 0x42, 0x12, 0x8b, 0xb3, - 0x85, 0x82, 0xb9, 0x44, 0xb0, 0x99, 0x22, 0x24, 0xa3, 0x87, 0xc7, 0x4d, 0x52, 0xb2, 0x7a, 0xf8, - 0xac, 0x76, 0x8a, 0x3c, 0xf1, 0x50, 0x8e, 0xe1, 0xc6, 0x43, 0x39, 0x86, 0x86, 0x47, 0x72, 0x8c, - 0x27, 0x1e, 0xc9, 0x31, 0x5e, 0x78, 0x24, 0xc7, 0xf8, 0xe0, 0x91, 0x1c, 0x63, 0x94, 0x3d, 0xe9, - 0x01, 0x69, 0x8d, 0xcc, 0x89, 0x60, 0x48, 0x62, 0x03, 0x87, 0x9a, 0x31, 0x20, 0x00, 0x00, 0xff, - 0xff, 0x1d, 0x33, 0xbb, 0x33, 0x94, 0x01, 0x00, 0x00, +func (x *ComputeProcessorInfoRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ComputeProcessorInfoRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ComputeProcessorInfoRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ComputeProcessorInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.ID) > 0 { - i -= len(m.ID) - copy(dAtA[i:], m.ID) - i = encodeVarintExtendedtask(dAtA, i, uint64(len(m.ID))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} +func (*ComputeProcessorInfoRequest) ProtoMessage() {} -func (m *ComputeProcessorInfoResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *ComputeProcessorInfoRequest) ProtoReflect() protoreflect.Message { + mi := &file_github_com_Microsoft_hcsshim_internal_extendedtask_extendedtask_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return dAtA[:n], nil + return mi.MessageOf(x) } -func (m *ComputeProcessorInfoResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +// Deprecated: Use ComputeProcessorInfoRequest.ProtoReflect.Descriptor instead. +func (*ComputeProcessorInfoRequest) Descriptor() ([]byte, []int) { + return file_github_com_Microsoft_hcsshim_internal_extendedtask_extendedtask_proto_rawDescGZIP(), []int{0} } -func (m *ComputeProcessorInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) +func (x *ComputeProcessorInfoRequest) GetID() string { + if x != nil { + return x.ID } - if m.Count != 0 { - i = encodeVarintExtendedtask(dAtA, i, uint64(m.Count)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return "" } -func encodeVarintExtendedtask(dAtA []byte, offset int, v uint64) int { - offset -= sovExtendedtask(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *ComputeProcessorInfoRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ID) - if l > 0 { - n += 1 + l + sovExtendedtask(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} +type ComputeProcessorInfoResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ComputeProcessorInfoResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Count != 0 { - n += 1 + sovExtendedtask(uint64(m.Count)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n + Count int32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` } -func sovExtendedtask(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozExtendedtask(x uint64) (n int) { - return sovExtendedtask(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *ComputeProcessorInfoRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ComputeProcessorInfoRequest{`, - `ID:` + fmt.Sprintf("%v", this.ID) + `,`, - `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, - `}`, - }, "") - return s -} -func (this *ComputeProcessorInfoResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ComputeProcessorInfoResponse{`, - `Count:` + fmt.Sprintf("%v", this.Count) + `,`, - `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, - `}`, - }, "") - return s -} -func valueToStringExtendedtask(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" +func (x *ComputeProcessorInfoResponse) Reset() { + *x = ComputeProcessorInfoResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_github_com_Microsoft_hcsshim_internal_extendedtask_extendedtask_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) } -type ExtendedTaskService interface { - ComputeProcessorInfo(ctx context.Context, req *ComputeProcessorInfoRequest) (*ComputeProcessorInfoResponse, error) +func (x *ComputeProcessorInfoResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func RegisterExtendedTaskService(srv *github_com_containerd_ttrpc.Server, svc ExtendedTaskService) { - srv.Register("ExtendedTask", map[string]github_com_containerd_ttrpc.Method{ - "ComputeProcessorInfo": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { - var req ComputeProcessorInfoRequest - if err := unmarshal(&req); err != nil { - return nil, err - } - return svc.ComputeProcessorInfo(ctx, &req) - }, - }) -} - -type extendedTaskClient struct { - client *github_com_containerd_ttrpc.Client -} +func (*ComputeProcessorInfoResponse) ProtoMessage() {} -func NewExtendedTaskClient(client *github_com_containerd_ttrpc.Client) ExtendedTaskService { - return &extendedTaskClient{ - client: client, +func (x *ComputeProcessorInfoResponse) ProtoReflect() protoreflect.Message { + mi := &file_github_com_Microsoft_hcsshim_internal_extendedtask_extendedtask_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } + return mi.MessageOf(x) } -func (c *extendedTaskClient) ComputeProcessorInfo(ctx context.Context, req *ComputeProcessorInfoRequest) (*ComputeProcessorInfoResponse, error) { - var resp ComputeProcessorInfoResponse - if err := c.client.Call(ctx, "ExtendedTask", "ComputeProcessorInfo", req, &resp); err != nil { - return nil, err - } - return &resp, nil +// Deprecated: Use ComputeProcessorInfoResponse.ProtoReflect.Descriptor instead. +func (*ComputeProcessorInfoResponse) Descriptor() ([]byte, []int) { + return file_github_com_Microsoft_hcsshim_internal_extendedtask_extendedtask_proto_rawDescGZIP(), []int{1} +} + +func (x *ComputeProcessorInfoResponse) GetCount() int32 { + if x != nil { + return x.Count + } + return 0 +} + +var File_github_com_Microsoft_hcsshim_internal_extendedtask_extendedtask_proto protoreflect.FileDescriptor + +var file_github_com_Microsoft_hcsshim_internal_extendedtask_extendedtask_proto_rawDesc = []byte{ + 0x0a, 0x45, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4d, 0x69, 0x63, + 0x72, 0x6f, 0x73, 0x6f, 0x66, 0x74, 0x2f, 0x68, 0x63, 0x73, 0x73, 0x68, 0x69, 0x6d, 0x2f, 0x69, + 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x64, + 0x74, 0x61, 0x73, 0x6b, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x74, 0x61, 0x73, + 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x2d, 0x0a, 0x1b, 0x43, 0x6f, 0x6d, 0x70, 0x75, + 0x74, 0x65, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x34, 0x0a, 0x1c, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, + 0x65, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x32, 0x63, 0x0a, 0x0c, + 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x53, 0x0a, 0x14, + 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, + 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1c, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x50, 0x72, + 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x63, + 0x65, 0x73, 0x73, 0x6f, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x42, 0x41, 0x5a, 0x3f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, + 0x4d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x6f, 0x66, 0x74, 0x2f, 0x68, 0x63, 0x73, 0x73, 0x68, 0x69, + 0x6d, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, + 0x64, 0x65, 0x64, 0x74, 0x61, 0x73, 0x6b, 0x3b, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x64, + 0x74, 0x61, 0x73, 0x6b, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -func (m *ComputeProcessorInfoRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExtendedtask - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ComputeProcessorInfoRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ComputeProcessorInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExtendedtask - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthExtendedtask - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthExtendedtask - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipExtendedtask(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthExtendedtask - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ComputeProcessorInfoResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExtendedtask - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ComputeProcessorInfoResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ComputeProcessorInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Count", wireType) - } - m.Count = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExtendedtask - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Count |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipExtendedtask(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthExtendedtask - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } +var ( + file_github_com_Microsoft_hcsshim_internal_extendedtask_extendedtask_proto_rawDescOnce sync.Once + file_github_com_Microsoft_hcsshim_internal_extendedtask_extendedtask_proto_rawDescData = file_github_com_Microsoft_hcsshim_internal_extendedtask_extendedtask_proto_rawDesc +) - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipExtendedtask(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowExtendedtask - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break +func file_github_com_Microsoft_hcsshim_internal_extendedtask_extendedtask_proto_rawDescGZIP() []byte { + file_github_com_Microsoft_hcsshim_internal_extendedtask_extendedtask_proto_rawDescOnce.Do(func() { + file_github_com_Microsoft_hcsshim_internal_extendedtask_extendedtask_proto_rawDescData = protoimpl.X.CompressGZIP(file_github_com_Microsoft_hcsshim_internal_extendedtask_extendedtask_proto_rawDescData) + }) + return file_github_com_Microsoft_hcsshim_internal_extendedtask_extendedtask_proto_rawDescData +} + +var file_github_com_Microsoft_hcsshim_internal_extendedtask_extendedtask_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_github_com_Microsoft_hcsshim_internal_extendedtask_extendedtask_proto_goTypes = []interface{}{ + (*ComputeProcessorInfoRequest)(nil), // 0: ComputeProcessorInfoRequest + (*ComputeProcessorInfoResponse)(nil), // 1: ComputeProcessorInfoResponse +} +var file_github_com_Microsoft_hcsshim_internal_extendedtask_extendedtask_proto_depIdxs = []int32{ + 0, // 0: ExtendedTask.ComputeProcessorInfo:input_type -> ComputeProcessorInfoRequest + 1, // 1: ExtendedTask.ComputeProcessorInfo:output_type -> ComputeProcessorInfoResponse + 1, // [1:2] is the sub-list for method output_type + 0, // [0:1] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_github_com_Microsoft_hcsshim_internal_extendedtask_extendedtask_proto_init() } +func file_github_com_Microsoft_hcsshim_internal_extendedtask_extendedtask_proto_init() { + if File_github_com_Microsoft_hcsshim_internal_extendedtask_extendedtask_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_github_com_Microsoft_hcsshim_internal_extendedtask_extendedtask_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ComputeProcessorInfoRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil } } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowExtendedtask - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowExtendedtask - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthExtendedtask + file_github_com_Microsoft_hcsshim_internal_extendedtask_extendedtask_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ComputeProcessorInfoResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupExtendedtask - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthExtendedtask - } - if depth == 0 { - return iNdEx, nil } } - return 0, io.ErrUnexpectedEOF + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_github_com_Microsoft_hcsshim_internal_extendedtask_extendedtask_proto_rawDesc, + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_github_com_Microsoft_hcsshim_internal_extendedtask_extendedtask_proto_goTypes, + DependencyIndexes: file_github_com_Microsoft_hcsshim_internal_extendedtask_extendedtask_proto_depIdxs, + MessageInfos: file_github_com_Microsoft_hcsshim_internal_extendedtask_extendedtask_proto_msgTypes, + }.Build() + File_github_com_Microsoft_hcsshim_internal_extendedtask_extendedtask_proto = out.File + file_github_com_Microsoft_hcsshim_internal_extendedtask_extendedtask_proto_rawDesc = nil + file_github_com_Microsoft_hcsshim_internal_extendedtask_extendedtask_proto_goTypes = nil + file_github_com_Microsoft_hcsshim_internal_extendedtask_extendedtask_proto_depIdxs = nil } - -var ( - ErrInvalidLengthExtendedtask = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowExtendedtask = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupExtendedtask = fmt.Errorf("proto: unexpected end of group") -) diff --git a/extendedtask/extendedtask.proto b/extendedtask/extendedtask.proto index eaa1fff7a6..d060dc4974 100644 --- a/extendedtask/extendedtask.proto +++ b/extendedtask/extendedtask.proto @@ -2,16 +2,14 @@ syntax = "proto3"; option go_package = "github.com/Microsoft/hcsshim/internal/extendedtask;extendedtask"; -import weak "gogoproto/gogo.proto"; - service ExtendedTask { rpc ComputeProcessorInfo(ComputeProcessorInfoRequest) returns (ComputeProcessorInfoResponse); } message ComputeProcessorInfoRequest { - string id = 1; + string id = 1; } message ComputeProcessorInfoResponse { - int32 count = 1; + int32 count = 1; } diff --git a/extendedtask/extendedtask_ttrpc.pb.go b/extendedtask/extendedtask_ttrpc.pb.go new file mode 100644 index 0000000000..1bd4ebb5ff --- /dev/null +++ b/extendedtask/extendedtask_ttrpc.pb.go @@ -0,0 +1,44 @@ +// Code generated by protoc-gen-go-ttrpc. DO NOT EDIT. +// source: github.com/Microsoft/hcsshim/internal/extendedtask/extendedtask.proto +package extendedtask + +import ( + context "context" + ttrpc "github.com/containerd/ttrpc" +) + +type ExtendedTaskService interface { + ComputeProcessorInfo(context.Context, *ComputeProcessorInfoRequest) (*ComputeProcessorInfoResponse, error) +} + +func RegisterExtendedTaskService(srv *ttrpc.Server, svc ExtendedTaskService) { + srv.RegisterService("ExtendedTask", &ttrpc.ServiceDesc{ + Methods: map[string]ttrpc.Method{ + "ComputeProcessorInfo": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { + var req ComputeProcessorInfoRequest + if err := unmarshal(&req); err != nil { + return nil, err + } + return svc.ComputeProcessorInfo(ctx, &req) + }, + }, + }) +} + +type extendedtaskClient struct { + client *ttrpc.Client +} + +func NewExtendedTaskClient(client *ttrpc.Client) ExtendedTaskService { + return &extendedtaskClient{ + client: client, + } +} + +func (c *extendedtaskClient) ComputeProcessorInfo(ctx context.Context, req *ComputeProcessorInfoRequest) (*ComputeProcessorInfoResponse, error) { + var resp ComputeProcessorInfoResponse + if err := c.client.Call(ctx, "ExtendedTask", "ComputeProcessorInfo", req, &resp); err != nil { + return nil, err + } + return &resp, nil +} diff --git a/guest/prot/protocol.go b/guest/prot/protocol.go index c371cef334..891891d510 100644 --- a/guest/prot/protocol.go +++ b/guest/prot/protocol.go @@ -7,7 +7,7 @@ import ( "encoding/json" "strconv" - v1 "github.com/containerd/cgroups/stats/v1" + v1 "github.com/containerd/cgroups/v3/cgroup1/stats" oci "github.com/opencontainers/runtime-spec/specs-go" "github.com/pkg/errors" diff --git a/guest/runtime/hcsv2/container.go b/guest/runtime/hcsv2/container.go index 571a04158f..d0a10f4006 100644 --- a/guest/runtime/hcsv2/container.go +++ b/guest/runtime/hcsv2/container.go @@ -11,8 +11,8 @@ import ( "sync/atomic" "syscall" - "github.com/containerd/cgroups" - v1 "github.com/containerd/cgroups/stats/v1" + cgroups "github.com/containerd/cgroups/v3/cgroup1" + v1 "github.com/containerd/cgroups/v3/cgroup1/stats" oci "github.com/opencontainers/runtime-spec/specs-go" "github.com/pkg/errors" "github.com/sirupsen/logrus" @@ -260,7 +260,7 @@ func (c *Container) GetStats(ctx context.Context) (*v1.Metrics, error) { span.AddAttributes(trace.StringAttribute("cid", c.id)) cgroupPath := c.spec.Linux.CgroupsPath - cg, err := cgroups.Load(cgroups.V1, cgroups.StaticPath(cgroupPath)) + cg, err := cgroups.Load(cgroups.StaticPath(cgroupPath)) if err != nil { return nil, errors.Errorf("failed to get container stats for %v: %v", c.id, err) } diff --git a/hcs/schema2/properties.go b/hcs/schema2/properties.go index 17558cba0f..0c7efe8d40 100644 --- a/hcs/schema2/properties.go +++ b/hcs/schema2/properties.go @@ -10,7 +10,7 @@ package hcsschema import ( - v1 "github.com/containerd/cgroups/stats/v1" + v1 "github.com/containerd/cgroups/v3/cgroup1/stats" ) type Properties struct { diff --git a/ncproxyttrpc/networkconfigproxy.pb.go b/ncproxyttrpc/networkconfigproxy.pb.go index 39ac60ed87..15da67a9ad 100644 --- a/ncproxyttrpc/networkconfigproxy.pb.go +++ b/ncproxyttrpc/networkconfigproxy.pb.go @@ -1,30 +1,24 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc v4.23.2 // source: github.com/Microsoft/hcsshim/internal/ncproxyttrpc/networkconfigproxy.proto package ncproxyttrpc import ( - context "context" - fmt "fmt" - github_com_containerd_ttrpc "github.com/containerd/ttrpc" - proto "github.com/gogo/protobuf/proto" - io "io" - math "math" - math_bits "math/bits" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" - strings "strings" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type RequestTypeInternal int32 @@ -33,1279 +27,512 @@ const ( RequestTypeInternal_Teardown RequestTypeInternal = 1 ) -var RequestTypeInternal_name = map[int32]string{ - 0: "Setup", - 1: "Teardown", -} +// Enum value maps for RequestTypeInternal. +var ( + RequestTypeInternal_name = map[int32]string{ + 0: "Setup", + 1: "Teardown", + } + RequestTypeInternal_value = map[string]int32{ + "Setup": 0, + "Teardown": 1, + } +) -var RequestTypeInternal_value = map[string]int32{ - "Setup": 0, - "Teardown": 1, +func (x RequestTypeInternal) Enum() *RequestTypeInternal { + p := new(RequestTypeInternal) + *p = x + return p } func (x RequestTypeInternal) String() string { - return proto.EnumName(RequestTypeInternal_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (RequestTypeInternal) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_11f9efc6dfbf9b45, []int{0} +func (RequestTypeInternal) Descriptor() protoreflect.EnumDescriptor { + return file_github_com_Microsoft_hcsshim_internal_ncproxyttrpc_networkconfigproxy_proto_enumTypes[0].Descriptor() } -type RegisterComputeAgentRequest struct { - AgentAddress string `protobuf:"bytes,1,opt,name=agent_address,json=agentAddress,proto3" json:"agent_address,omitempty"` - ContainerID string `protobuf:"bytes,2,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (RequestTypeInternal) Type() protoreflect.EnumType { + return &file_github_com_Microsoft_hcsshim_internal_ncproxyttrpc_networkconfigproxy_proto_enumTypes[0] } -func (m *RegisterComputeAgentRequest) Reset() { *m = RegisterComputeAgentRequest{} } -func (*RegisterComputeAgentRequest) ProtoMessage() {} -func (*RegisterComputeAgentRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_11f9efc6dfbf9b45, []int{0} -} -func (m *RegisterComputeAgentRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RegisterComputeAgentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RegisterComputeAgentRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RegisterComputeAgentRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RegisterComputeAgentRequest.Merge(m, src) -} -func (m *RegisterComputeAgentRequest) XXX_Size() int { - return m.Size() -} -func (m *RegisterComputeAgentRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RegisterComputeAgentRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RegisterComputeAgentRequest proto.InternalMessageInfo - -type RegisterComputeAgentResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x RequestTypeInternal) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } -func (m *RegisterComputeAgentResponse) Reset() { *m = RegisterComputeAgentResponse{} } -func (*RegisterComputeAgentResponse) ProtoMessage() {} -func (*RegisterComputeAgentResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_11f9efc6dfbf9b45, []int{1} -} -func (m *RegisterComputeAgentResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RegisterComputeAgentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RegisterComputeAgentResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RegisterComputeAgentResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RegisterComputeAgentResponse.Merge(m, src) -} -func (m *RegisterComputeAgentResponse) XXX_Size() int { - return m.Size() -} -func (m *RegisterComputeAgentResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RegisterComputeAgentResponse.DiscardUnknown(m) +// Deprecated: Use RequestTypeInternal.Descriptor instead. +func (RequestTypeInternal) EnumDescriptor() ([]byte, []int) { + return file_github_com_Microsoft_hcsshim_internal_ncproxyttrpc_networkconfigproxy_proto_rawDescGZIP(), []int{0} } -var xxx_messageInfo_RegisterComputeAgentResponse proto.InternalMessageInfo +type RegisterComputeAgentRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type UnregisterComputeAgentRequest struct { - ContainerID string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + AgentAddress string `protobuf:"bytes,1,opt,name=agent_address,json=agentAddress,proto3" json:"agent_address,omitempty"` + ContainerID string `protobuf:"bytes,2,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` } -func (m *UnregisterComputeAgentRequest) Reset() { *m = UnregisterComputeAgentRequest{} } -func (*UnregisterComputeAgentRequest) ProtoMessage() {} -func (*UnregisterComputeAgentRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_11f9efc6dfbf9b45, []int{2} -} -func (m *UnregisterComputeAgentRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *UnregisterComputeAgentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_UnregisterComputeAgentRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *RegisterComputeAgentRequest) Reset() { + *x = RegisterComputeAgentRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_github_com_Microsoft_hcsshim_internal_ncproxyttrpc_networkconfigproxy_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *UnregisterComputeAgentRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_UnregisterComputeAgentRequest.Merge(m, src) -} -func (m *UnregisterComputeAgentRequest) XXX_Size() int { - return m.Size() -} -func (m *UnregisterComputeAgentRequest) XXX_DiscardUnknown() { - xxx_messageInfo_UnregisterComputeAgentRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_UnregisterComputeAgentRequest proto.InternalMessageInfo -type UnregisterComputeAgentResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UnregisterComputeAgentResponse) Reset() { *m = UnregisterComputeAgentResponse{} } -func (*UnregisterComputeAgentResponse) ProtoMessage() {} -func (*UnregisterComputeAgentResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_11f9efc6dfbf9b45, []int{3} -} -func (m *UnregisterComputeAgentResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *UnregisterComputeAgentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_UnregisterComputeAgentResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *UnregisterComputeAgentResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_UnregisterComputeAgentResponse.Merge(m, src) -} -func (m *UnregisterComputeAgentResponse) XXX_Size() int { - return m.Size() +func (x *RegisterComputeAgentRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *UnregisterComputeAgentResponse) XXX_DiscardUnknown() { - xxx_messageInfo_UnregisterComputeAgentResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_UnregisterComputeAgentResponse proto.InternalMessageInfo -type ConfigureNetworkingInternalRequest struct { - ContainerID string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` - RequestType RequestTypeInternal `protobuf:"varint,2,opt,name=request_type,json=requestType,proto3,enum=RequestTypeInternal" json:"request_type,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +func (*RegisterComputeAgentRequest) ProtoMessage() {} -func (m *ConfigureNetworkingInternalRequest) Reset() { *m = ConfigureNetworkingInternalRequest{} } -func (*ConfigureNetworkingInternalRequest) ProtoMessage() {} -func (*ConfigureNetworkingInternalRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_11f9efc6dfbf9b45, []int{4} -} -func (m *ConfigureNetworkingInternalRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ConfigureNetworkingInternalRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ConfigureNetworkingInternalRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *RegisterComputeAgentRequest) ProtoReflect() protoreflect.Message { + mi := &file_github_com_Microsoft_hcsshim_internal_ncproxyttrpc_networkconfigproxy_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *ConfigureNetworkingInternalRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ConfigureNetworkingInternalRequest.Merge(m, src) -} -func (m *ConfigureNetworkingInternalRequest) XXX_Size() int { - return m.Size() -} -func (m *ConfigureNetworkingInternalRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ConfigureNetworkingInternalRequest.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_ConfigureNetworkingInternalRequest proto.InternalMessageInfo - -type ConfigureNetworkingInternalResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// Deprecated: Use RegisterComputeAgentRequest.ProtoReflect.Descriptor instead. +func (*RegisterComputeAgentRequest) Descriptor() ([]byte, []int) { + return file_github_com_Microsoft_hcsshim_internal_ncproxyttrpc_networkconfigproxy_proto_rawDescGZIP(), []int{0} } -func (m *ConfigureNetworkingInternalResponse) Reset() { *m = ConfigureNetworkingInternalResponse{} } -func (*ConfigureNetworkingInternalResponse) ProtoMessage() {} -func (*ConfigureNetworkingInternalResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_11f9efc6dfbf9b45, []int{5} -} -func (m *ConfigureNetworkingInternalResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ConfigureNetworkingInternalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ConfigureNetworkingInternalResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *RegisterComputeAgentRequest) GetAgentAddress() string { + if x != nil { + return x.AgentAddress } -} -func (m *ConfigureNetworkingInternalResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ConfigureNetworkingInternalResponse.Merge(m, src) -} -func (m *ConfigureNetworkingInternalResponse) XXX_Size() int { - return m.Size() -} -func (m *ConfigureNetworkingInternalResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ConfigureNetworkingInternalResponse.DiscardUnknown(m) + return "" } -var xxx_messageInfo_ConfigureNetworkingInternalResponse proto.InternalMessageInfo - -func init() { - proto.RegisterEnum("RequestTypeInternal", RequestTypeInternal_name, RequestTypeInternal_value) - proto.RegisterType((*RegisterComputeAgentRequest)(nil), "RegisterComputeAgentRequest") - proto.RegisterType((*RegisterComputeAgentResponse)(nil), "RegisterComputeAgentResponse") - proto.RegisterType((*UnregisterComputeAgentRequest)(nil), "UnregisterComputeAgentRequest") - proto.RegisterType((*UnregisterComputeAgentResponse)(nil), "UnregisterComputeAgentResponse") - proto.RegisterType((*ConfigureNetworkingInternalRequest)(nil), "ConfigureNetworkingInternalRequest") - proto.RegisterType((*ConfigureNetworkingInternalResponse)(nil), "ConfigureNetworkingInternalResponse") -} - -func init() { - proto.RegisterFile("github.com/Microsoft/hcsshim/internal/ncproxyttrpc/networkconfigproxy.proto", fileDescriptor_11f9efc6dfbf9b45) -} - -var fileDescriptor_11f9efc6dfbf9b45 = []byte{ - // 436 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x53, 0x4d, 0x6b, 0x14, 0x41, - 0x10, 0x9d, 0x0e, 0x28, 0xa6, 0x76, 0xd5, 0xd0, 0x59, 0x24, 0x8c, 0x49, 0x27, 0xcc, 0x2a, 0x88, - 0x87, 0x1e, 0x58, 0x0f, 0x1e, 0xbc, 0x98, 0xac, 0x97, 0x45, 0x14, 0x99, 0x24, 0x20, 0xf1, 0xb0, - 0xcc, 0xce, 0x54, 0x66, 0x1b, 0xdd, 0xee, 0xb6, 0xbb, 0xc7, 0xb8, 0x37, 0xff, 0x82, 0xff, 0xc3, - 0x1f, 0x92, 0xa3, 0x47, 0x4f, 0x62, 0xe6, 0x97, 0xc8, 0x7c, 0x18, 0x45, 0xc6, 0x49, 0x30, 0xb7, - 0xae, 0x47, 0xf5, 0x7b, 0xc5, 0x7b, 0x55, 0xf0, 0x3c, 0x13, 0x6e, 0x9e, 0xcf, 0x78, 0xa2, 0x16, - 0xe1, 0x0b, 0x91, 0x18, 0x65, 0xd5, 0xb1, 0x0b, 0xe7, 0x89, 0xb5, 0x73, 0xb1, 0x08, 0x85, 0x74, - 0x68, 0x64, 0xfc, 0x2e, 0x94, 0x89, 0x36, 0xea, 0xe3, 0xd2, 0x39, 0xa3, 0x93, 0x50, 0xa2, 0x3b, - 0x51, 0xe6, 0x6d, 0xa2, 0xe4, 0xb1, 0xc8, 0x2a, 0x9c, 0x6b, 0xa3, 0x9c, 0xf2, 0x07, 0x99, 0xca, - 0x54, 0xf5, 0x0c, 0xcb, 0x57, 0x8d, 0x06, 0x1f, 0xe0, 0x6e, 0x84, 0x99, 0xb0, 0x0e, 0xcd, 0x58, - 0x2d, 0x74, 0xee, 0x70, 0x37, 0x43, 0xe9, 0x22, 0x7c, 0x9f, 0xa3, 0x75, 0x74, 0x08, 0x37, 0xe3, - 0xb2, 0x9e, 0xc6, 0x69, 0x6a, 0xd0, 0xda, 0x0d, 0xb2, 0x43, 0x1e, 0xac, 0x46, 0xfd, 0x0a, 0xdc, - 0xad, 0x31, 0x3a, 0x82, 0x7e, 0xa2, 0xa4, 0x8b, 0x85, 0x44, 0x33, 0x15, 0xe9, 0xc6, 0x4a, 0xd9, - 0xb3, 0x77, 0xbb, 0xf8, 0xbe, 0xdd, 0x1b, 0xff, 0xc2, 0x27, 0xcf, 0xa2, 0xde, 0x79, 0xd3, 0x24, - 0x0d, 0x18, 0x6c, 0xb6, 0xeb, 0x5a, 0xad, 0xa4, 0xc5, 0x60, 0x1f, 0xb6, 0x0e, 0xa5, 0xe9, 0x98, - 0xec, 0x6f, 0x51, 0x72, 0x09, 0xd1, 0x1d, 0x60, 0xff, 0x22, 0x6d, 0x64, 0x3f, 0x13, 0x08, 0xc6, - 0x95, 0x75, 0xb9, 0xc1, 0x97, 0xb5, 0x95, 0x42, 0x66, 0x93, 0xc6, 0xea, 0x2b, 0x88, 0xd3, 0xc7, - 0xd0, 0x37, 0xf5, 0xf7, 0xa9, 0x5b, 0x6a, 0xac, 0x5c, 0xba, 0x35, 0x1a, 0xf0, 0x86, 0xf3, 0x60, - 0xa9, 0xf1, 0x5c, 0xa6, 0x67, 0x7e, 0x83, 0xc1, 0x7d, 0x18, 0x76, 0x8e, 0x54, 0x8f, 0xfe, 0x90, - 0xc3, 0x7a, 0x0b, 0x15, 0x5d, 0x85, 0x6b, 0xfb, 0xe8, 0x72, 0xbd, 0xe6, 0xd1, 0x3e, 0xdc, 0x38, - 0xc0, 0xd8, 0xa4, 0xea, 0x44, 0xae, 0x91, 0xd1, 0x97, 0x15, 0xa0, 0x0d, 0x5d, 0x4d, 0xff, 0xaa, - 0x5c, 0x16, 0x7a, 0x08, 0x83, 0xb6, 0x60, 0xe8, 0x26, 0xef, 0xd8, 0x13, 0x7f, 0x8b, 0x77, 0xa6, - 0xe9, 0xd1, 0x37, 0x70, 0xa7, 0xdd, 0x7a, 0xca, 0x78, 0x67, 0xd0, 0xfe, 0x36, 0xbf, 0x20, 0x33, - 0x8f, 0xce, 0x60, 0xbd, 0xc5, 0x21, 0x3a, 0xe4, 0x17, 0x47, 0xe9, 0xdf, 0xe3, 0x97, 0x30, 0x37, - 0xf0, 0xf6, 0x8e, 0x4e, 0xcf, 0x98, 0xf7, 0xed, 0x8c, 0x79, 0x9f, 0x0a, 0x46, 0x4e, 0x0b, 0x46, - 0xbe, 0x16, 0x8c, 0xfc, 0x28, 0x18, 0x39, 0x7a, 0xfa, 0x1f, 0x57, 0xfa, 0xe4, 0xcf, 0xea, 0xb5, - 0x37, 0xbb, 0x5e, 0x5d, 0xe3, 0xa3, 0x9f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x95, 0xb3, 0x11, 0xd8, - 0xf2, 0x03, 0x00, 0x00, -} - -func (m *RegisterComputeAgentRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *RegisterComputeAgentRequest) GetContainerID() string { + if x != nil { + return x.ContainerID } - return dAtA[:n], nil + return "" } -func (m *RegisterComputeAgentRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +type RegisterComputeAgentResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *RegisterComputeAgentRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.ContainerID) > 0 { - i -= len(m.ContainerID) - copy(dAtA[i:], m.ContainerID) - i = encodeVarintNetworkconfigproxy(dAtA, i, uint64(len(m.ContainerID))) - i-- - dAtA[i] = 0x12 +func (x *RegisterComputeAgentResponse) Reset() { + *x = RegisterComputeAgentResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_github_com_Microsoft_hcsshim_internal_ncproxyttrpc_networkconfigproxy_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - if len(m.AgentAddress) > 0 { - i -= len(m.AgentAddress) - copy(dAtA[i:], m.AgentAddress) - i = encodeVarintNetworkconfigproxy(dAtA, i, uint64(len(m.AgentAddress))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil } -func (m *RegisterComputeAgentResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +func (x *RegisterComputeAgentResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RegisterComputeAgentResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +func (*RegisterComputeAgentResponse) ProtoMessage() {} -func (m *RegisterComputeAgentResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) +func (x *RegisterComputeAgentResponse) ProtoReflect() protoreflect.Message { + mi := &file_github_com_Microsoft_hcsshim_internal_ncproxyttrpc_networkconfigproxy_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return len(dAtA) - i, nil + return mi.MessageOf(x) } -func (m *UnregisterComputeAgentRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +// Deprecated: Use RegisterComputeAgentResponse.ProtoReflect.Descriptor instead. +func (*RegisterComputeAgentResponse) Descriptor() ([]byte, []int) { + return file_github_com_Microsoft_hcsshim_internal_ncproxyttrpc_networkconfigproxy_proto_rawDescGZIP(), []int{1} } -func (m *UnregisterComputeAgentRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +type UnregisterComputeAgentRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *UnregisterComputeAgentRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.ContainerID) > 0 { - i -= len(m.ContainerID) - copy(dAtA[i:], m.ContainerID) - i = encodeVarintNetworkconfigproxy(dAtA, i, uint64(len(m.ContainerID))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + ContainerID string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` } -func (m *UnregisterComputeAgentResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *UnregisterComputeAgentRequest) Reset() { + *x = UnregisterComputeAgentRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_github_com_Microsoft_hcsshim_internal_ncproxyttrpc_networkconfigproxy_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return dAtA[:n], nil } -func (m *UnregisterComputeAgentResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (x *UnregisterComputeAgentRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *UnregisterComputeAgentResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil -} +func (*UnregisterComputeAgentRequest) ProtoMessage() {} -func (m *ConfigureNetworkingInternalRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *UnregisterComputeAgentRequest) ProtoReflect() protoreflect.Message { + mi := &file_github_com_Microsoft_hcsshim_internal_ncproxyttrpc_networkconfigproxy_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return dAtA[:n], nil -} - -func (m *ConfigureNetworkingInternalRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return mi.MessageOf(x) } -func (m *ConfigureNetworkingInternalRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.RequestType != 0 { - i = encodeVarintNetworkconfigproxy(dAtA, i, uint64(m.RequestType)) - i-- - dAtA[i] = 0x10 - } - if len(m.ContainerID) > 0 { - i -= len(m.ContainerID) - copy(dAtA[i:], m.ContainerID) - i = encodeVarintNetworkconfigproxy(dAtA, i, uint64(len(m.ContainerID))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +// Deprecated: Use UnregisterComputeAgentRequest.ProtoReflect.Descriptor instead. +func (*UnregisterComputeAgentRequest) Descriptor() ([]byte, []int) { + return file_github_com_Microsoft_hcsshim_internal_ncproxyttrpc_networkconfigproxy_proto_rawDescGZIP(), []int{2} } -func (m *ConfigureNetworkingInternalResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *UnregisterComputeAgentRequest) GetContainerID() string { + if x != nil { + return x.ContainerID } - return dAtA[:n], nil + return "" } -func (m *ConfigureNetworkingInternalResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +type UnregisterComputeAgentResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *ConfigureNetworkingInternalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) +func (x *UnregisterComputeAgentResponse) Reset() { + *x = UnregisterComputeAgentResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_github_com_Microsoft_hcsshim_internal_ncproxyttrpc_networkconfigproxy_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return len(dAtA) - i, nil } -func encodeVarintNetworkconfigproxy(dAtA []byte, offset int, v uint64) int { - offset -= sovNetworkconfigproxy(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *RegisterComputeAgentRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.AgentAddress) - if l > 0 { - n += 1 + l + sovNetworkconfigproxy(uint64(l)) - } - l = len(m.ContainerID) - if l > 0 { - n += 1 + l + sovNetworkconfigproxy(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n +func (x *UnregisterComputeAgentResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RegisterComputeAgentResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} +func (*UnregisterComputeAgentResponse) ProtoMessage() {} -func (m *UnregisterComputeAgentRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContainerID) - if l > 0 { - n += 1 + l + sovNetworkconfigproxy(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) +func (x *UnregisterComputeAgentResponse) ProtoReflect() protoreflect.Message { + mi := &file_github_com_Microsoft_hcsshim_internal_ncproxyttrpc_networkconfigproxy_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return n + return mi.MessageOf(x) } -func (m *UnregisterComputeAgentResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n +// Deprecated: Use UnregisterComputeAgentResponse.ProtoReflect.Descriptor instead. +func (*UnregisterComputeAgentResponse) Descriptor() ([]byte, []int) { + return file_github_com_Microsoft_hcsshim_internal_ncproxyttrpc_networkconfigproxy_proto_rawDescGZIP(), []int{3} } -func (m *ConfigureNetworkingInternalRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContainerID) - if l > 0 { - n += 1 + l + sovNetworkconfigproxy(uint64(l)) - } - if m.RequestType != 0 { - n += 1 + sovNetworkconfigproxy(uint64(m.RequestType)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} +type ConfigureNetworkingInternalRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ConfigureNetworkingInternalResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n + ContainerID string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` + RequestType RequestTypeInternal `protobuf:"varint,2,opt,name=request_type,json=requestType,proto3,enum=RequestTypeInternal" json:"request_type,omitempty"` } -func sovNetworkconfigproxy(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozNetworkconfigproxy(x uint64) (n int) { - return sovNetworkconfigproxy(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *RegisterComputeAgentRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RegisterComputeAgentRequest{`, - `AgentAddress:` + fmt.Sprintf("%v", this.AgentAddress) + `,`, - `ContainerID:` + fmt.Sprintf("%v", this.ContainerID) + `,`, - `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, - `}`, - }, "") - return s -} -func (this *RegisterComputeAgentResponse) String() string { - if this == nil { - return "nil" +func (x *ConfigureNetworkingInternalRequest) Reset() { + *x = ConfigureNetworkingInternalRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_github_com_Microsoft_hcsshim_internal_ncproxyttrpc_networkconfigproxy_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - s := strings.Join([]string{`&RegisterComputeAgentResponse{`, - `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, - `}`, - }, "") - return s -} -func (this *UnregisterComputeAgentRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&UnregisterComputeAgentRequest{`, - `ContainerID:` + fmt.Sprintf("%v", this.ContainerID) + `,`, - `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, - `}`, - }, "") - return s -} -func (this *UnregisterComputeAgentResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&UnregisterComputeAgentResponse{`, - `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, - `}`, - }, "") - return s -} -func (this *ConfigureNetworkingInternalRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ConfigureNetworkingInternalRequest{`, - `ContainerID:` + fmt.Sprintf("%v", this.ContainerID) + `,`, - `RequestType:` + fmt.Sprintf("%v", this.RequestType) + `,`, - `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, - `}`, - }, "") - return s -} -func (this *ConfigureNetworkingInternalResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ConfigureNetworkingInternalResponse{`, - `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, - `}`, - }, "") - return s -} -func valueToStringNetworkconfigproxy(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) } -type NetworkConfigProxyService interface { - RegisterComputeAgent(ctx context.Context, req *RegisterComputeAgentRequest) (*RegisterComputeAgentResponse, error) - UnregisterComputeAgent(ctx context.Context, req *UnregisterComputeAgentRequest) (*UnregisterComputeAgentResponse, error) - ConfigureNetworking(ctx context.Context, req *ConfigureNetworkingInternalRequest) (*ConfigureNetworkingInternalResponse, error) -} - -func RegisterNetworkConfigProxyService(srv *github_com_containerd_ttrpc.Server, svc NetworkConfigProxyService) { - srv.Register("NetworkConfigProxy", map[string]github_com_containerd_ttrpc.Method{ - "RegisterComputeAgent": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { - var req RegisterComputeAgentRequest - if err := unmarshal(&req); err != nil { - return nil, err - } - return svc.RegisterComputeAgent(ctx, &req) - }, - "UnregisterComputeAgent": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { - var req UnregisterComputeAgentRequest - if err := unmarshal(&req); err != nil { - return nil, err - } - return svc.UnregisterComputeAgent(ctx, &req) - }, - "ConfigureNetworking": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { - var req ConfigureNetworkingInternalRequest - if err := unmarshal(&req); err != nil { - return nil, err - } - return svc.ConfigureNetworking(ctx, &req) - }, - }) +func (x *ConfigureNetworkingInternalRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -type networkConfigProxyClient struct { - client *github_com_containerd_ttrpc.Client -} +func (*ConfigureNetworkingInternalRequest) ProtoMessage() {} -func NewNetworkConfigProxyClient(client *github_com_containerd_ttrpc.Client) NetworkConfigProxyService { - return &networkConfigProxyClient{ - client: client, +func (x *ConfigureNetworkingInternalRequest) ProtoReflect() protoreflect.Message { + mi := &file_github_com_Microsoft_hcsshim_internal_ncproxyttrpc_networkconfigproxy_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } + return mi.MessageOf(x) } -func (c *networkConfigProxyClient) RegisterComputeAgent(ctx context.Context, req *RegisterComputeAgentRequest) (*RegisterComputeAgentResponse, error) { - var resp RegisterComputeAgentResponse - if err := c.client.Call(ctx, "NetworkConfigProxy", "RegisterComputeAgent", req, &resp); err != nil { - return nil, err - } - return &resp, nil +// Deprecated: Use ConfigureNetworkingInternalRequest.ProtoReflect.Descriptor instead. +func (*ConfigureNetworkingInternalRequest) Descriptor() ([]byte, []int) { + return file_github_com_Microsoft_hcsshim_internal_ncproxyttrpc_networkconfigproxy_proto_rawDescGZIP(), []int{4} } -func (c *networkConfigProxyClient) UnregisterComputeAgent(ctx context.Context, req *UnregisterComputeAgentRequest) (*UnregisterComputeAgentResponse, error) { - var resp UnregisterComputeAgentResponse - if err := c.client.Call(ctx, "NetworkConfigProxy", "UnregisterComputeAgent", req, &resp); err != nil { - return nil, err +func (x *ConfigureNetworkingInternalRequest) GetContainerID() string { + if x != nil { + return x.ContainerID } - return &resp, nil + return "" } -func (c *networkConfigProxyClient) ConfigureNetworking(ctx context.Context, req *ConfigureNetworkingInternalRequest) (*ConfigureNetworkingInternalResponse, error) { - var resp ConfigureNetworkingInternalResponse - if err := c.client.Call(ctx, "NetworkConfigProxy", "ConfigureNetworking", req, &resp); err != nil { - return nil, err +func (x *ConfigureNetworkingInternalRequest) GetRequestType() RequestTypeInternal { + if x != nil { + return x.RequestType } - return &resp, nil + return RequestTypeInternal_Setup } -func (m *RegisterComputeAgentRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowNetworkconfigproxy - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RegisterComputeAgentRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RegisterComputeAgentRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AgentAddress", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowNetworkconfigproxy - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthNetworkconfigproxy - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthNetworkconfigproxy - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AgentAddress = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContainerID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowNetworkconfigproxy - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthNetworkconfigproxy - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthNetworkconfigproxy - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ContainerID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipNetworkconfigproxy(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthNetworkconfigproxy - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil +type ConfigureNetworkingInternalResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *RegisterComputeAgentResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowNetworkconfigproxy - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RegisterComputeAgentResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RegisterComputeAgentResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipNetworkconfigproxy(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthNetworkconfigproxy - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *ConfigureNetworkingInternalResponse) Reset() { + *x = ConfigureNetworkingInternalResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_github_com_Microsoft_hcsshim_internal_ncproxyttrpc_networkconfigproxy_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -func (m *UnregisterComputeAgentRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowNetworkconfigproxy - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: UnregisterComputeAgentRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: UnregisterComputeAgentRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContainerID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowNetworkconfigproxy - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthNetworkconfigproxy - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthNetworkconfigproxy - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ContainerID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipNetworkconfigproxy(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthNetworkconfigproxy - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil +func (x *ConfigureNetworkingInternalResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *UnregisterComputeAgentResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowNetworkconfigproxy - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: UnregisterComputeAgentResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: UnregisterComputeAgentResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipNetworkconfigproxy(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthNetworkconfigproxy - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ConfigureNetworkingInternalRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowNetworkconfigproxy - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ConfigureNetworkingInternalRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ConfigureNetworkingInternalRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContainerID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowNetworkconfigproxy - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthNetworkconfigproxy - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthNetworkconfigproxy - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ContainerID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RequestType", wireType) - } - m.RequestType = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowNetworkconfigproxy - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.RequestType |= RequestTypeInternal(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipNetworkconfigproxy(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthNetworkconfigproxy - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } +func (*ConfigureNetworkingInternalResponse) ProtoMessage() {} - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ConfigureNetworkingInternalResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowNetworkconfigproxy - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ConfigureNetworkingInternalResponse: wiretype end group for non-group") +func (x *ConfigureNetworkingInternalResponse) ProtoReflect() protoreflect.Message { + mi := &file_github_com_Microsoft_hcsshim_internal_ncproxyttrpc_networkconfigproxy_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - if fieldNum <= 0 { - return fmt.Errorf("proto: ConfigureNetworkingInternalResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipNetworkconfigproxy(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthNetworkconfigproxy - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF + return ms } - return nil + return mi.MessageOf(x) } -func skipNetworkconfigproxy(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowNetworkconfigproxy - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowNetworkconfigproxy - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowNetworkconfigproxy - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthNetworkconfigproxy - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupNetworkconfigproxy - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthNetworkconfigproxy - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF + +// Deprecated: Use ConfigureNetworkingInternalResponse.ProtoReflect.Descriptor instead. +func (*ConfigureNetworkingInternalResponse) Descriptor() ([]byte, []int) { + return file_github_com_Microsoft_hcsshim_internal_ncproxyttrpc_networkconfigproxy_proto_rawDescGZIP(), []int{5} +} + +var File_github_com_Microsoft_hcsshim_internal_ncproxyttrpc_networkconfigproxy_proto protoreflect.FileDescriptor + +var file_github_com_Microsoft_hcsshim_internal_ncproxyttrpc_networkconfigproxy_proto_rawDesc = []byte{ + 0x0a, 0x4b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4d, 0x69, 0x63, + 0x72, 0x6f, 0x73, 0x6f, 0x66, 0x74, 0x2f, 0x68, 0x63, 0x73, 0x73, 0x68, 0x69, 0x6d, 0x2f, 0x69, + 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x6e, 0x63, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x74, + 0x74, 0x72, 0x70, 0x63, 0x2f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x63, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x65, 0x0a, + 0x1b, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, + 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x23, 0x0a, 0x0d, + 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0c, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x5f, 0x69, + 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, + 0x65, 0x72, 0x49, 0x64, 0x22, 0x1e, 0x0a, 0x1c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, + 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x42, 0x0a, 0x1d, 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x65, 0x72, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, + 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, + 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x22, 0x20, 0x0a, 0x1e, 0x55, 0x6e, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x41, 0x67, 0x65, + 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x80, 0x01, 0x0a, 0x22, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x69, + 0x6e, 0x67, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x5f, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, + 0x65, 0x72, 0x49, 0x64, 0x12, 0x37, 0x0a, 0x0c, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, + 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x54, 0x79, 0x70, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, + 0x52, 0x0b, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x54, 0x79, 0x70, 0x65, 0x22, 0x25, 0x0a, + 0x23, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, + 0x6b, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x2a, 0x2e, 0x0a, 0x13, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x54, + 0x79, 0x70, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x12, 0x09, 0x0a, 0x05, 0x53, + 0x65, 0x74, 0x75, 0x70, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x54, 0x65, 0x61, 0x72, 0x64, 0x6f, + 0x77, 0x6e, 0x10, 0x01, 0x32, 0xac, 0x02, 0x0a, 0x12, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x12, 0x55, 0x0a, 0x14, 0x52, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x41, 0x67, + 0x65, 0x6e, 0x74, 0x12, 0x1c, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, + 0x6d, 0x70, 0x75, 0x74, 0x65, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x1d, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6d, 0x70, + 0x75, 0x74, 0x65, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x00, 0x12, 0x5b, 0x0a, 0x16, 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, + 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x1e, 0x2e, 0x55, + 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, + 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x55, + 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, + 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, + 0x62, 0x0a, 0x13, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x4e, 0x65, 0x74, 0x77, + 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x12, 0x23, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, + 0x72, 0x65, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x74, 0x65, + 0x72, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x69, 0x6e, + 0x67, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x00, 0x42, 0x42, 0x5a, 0x40, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x4d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x6f, 0x66, 0x74, 0x2f, 0x68, 0x63, 0x73, 0x73, + 0x68, 0x69, 0x6d, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x6e, 0x63, 0x70, + 0x72, 0x6f, 0x78, 0x79, 0x74, 0x74, 0x72, 0x70, 0x63, 0x2f, 0x3b, 0x6e, 0x63, 0x70, 0x72, 0x6f, + 0x78, 0x79, 0x74, 0x74, 0x72, 0x70, 0x63, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - ErrInvalidLengthNetworkconfigproxy = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowNetworkconfigproxy = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupNetworkconfigproxy = fmt.Errorf("proto: unexpected end of group") + file_github_com_Microsoft_hcsshim_internal_ncproxyttrpc_networkconfigproxy_proto_rawDescOnce sync.Once + file_github_com_Microsoft_hcsshim_internal_ncproxyttrpc_networkconfigproxy_proto_rawDescData = file_github_com_Microsoft_hcsshim_internal_ncproxyttrpc_networkconfigproxy_proto_rawDesc ) + +func file_github_com_Microsoft_hcsshim_internal_ncproxyttrpc_networkconfigproxy_proto_rawDescGZIP() []byte { + file_github_com_Microsoft_hcsshim_internal_ncproxyttrpc_networkconfigproxy_proto_rawDescOnce.Do(func() { + file_github_com_Microsoft_hcsshim_internal_ncproxyttrpc_networkconfigproxy_proto_rawDescData = protoimpl.X.CompressGZIP(file_github_com_Microsoft_hcsshim_internal_ncproxyttrpc_networkconfigproxy_proto_rawDescData) + }) + return file_github_com_Microsoft_hcsshim_internal_ncproxyttrpc_networkconfigproxy_proto_rawDescData +} + +var file_github_com_Microsoft_hcsshim_internal_ncproxyttrpc_networkconfigproxy_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_github_com_Microsoft_hcsshim_internal_ncproxyttrpc_networkconfigproxy_proto_msgTypes = make([]protoimpl.MessageInfo, 6) +var file_github_com_Microsoft_hcsshim_internal_ncproxyttrpc_networkconfigproxy_proto_goTypes = []interface{}{ + (RequestTypeInternal)(0), // 0: RequestTypeInternal + (*RegisterComputeAgentRequest)(nil), // 1: RegisterComputeAgentRequest + (*RegisterComputeAgentResponse)(nil), // 2: RegisterComputeAgentResponse + (*UnregisterComputeAgentRequest)(nil), // 3: UnregisterComputeAgentRequest + (*UnregisterComputeAgentResponse)(nil), // 4: UnregisterComputeAgentResponse + (*ConfigureNetworkingInternalRequest)(nil), // 5: ConfigureNetworkingInternalRequest + (*ConfigureNetworkingInternalResponse)(nil), // 6: ConfigureNetworkingInternalResponse +} +var file_github_com_Microsoft_hcsshim_internal_ncproxyttrpc_networkconfigproxy_proto_depIdxs = []int32{ + 0, // 0: ConfigureNetworkingInternalRequest.request_type:type_name -> RequestTypeInternal + 1, // 1: NetworkConfigProxy.RegisterComputeAgent:input_type -> RegisterComputeAgentRequest + 3, // 2: NetworkConfigProxy.UnregisterComputeAgent:input_type -> UnregisterComputeAgentRequest + 5, // 3: NetworkConfigProxy.ConfigureNetworking:input_type -> ConfigureNetworkingInternalRequest + 2, // 4: NetworkConfigProxy.RegisterComputeAgent:output_type -> RegisterComputeAgentResponse + 4, // 5: NetworkConfigProxy.UnregisterComputeAgent:output_type -> UnregisterComputeAgentResponse + 6, // 6: NetworkConfigProxy.ConfigureNetworking:output_type -> ConfigureNetworkingInternalResponse + 4, // [4:7] is the sub-list for method output_type + 1, // [1:4] is the sub-list for method input_type + 1, // [1:1] is the sub-list for extension type_name + 1, // [1:1] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name +} + +func init() { file_github_com_Microsoft_hcsshim_internal_ncproxyttrpc_networkconfigproxy_proto_init() } +func file_github_com_Microsoft_hcsshim_internal_ncproxyttrpc_networkconfigproxy_proto_init() { + if File_github_com_Microsoft_hcsshim_internal_ncproxyttrpc_networkconfigproxy_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_github_com_Microsoft_hcsshim_internal_ncproxyttrpc_networkconfigproxy_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RegisterComputeAgentRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_github_com_Microsoft_hcsshim_internal_ncproxyttrpc_networkconfigproxy_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RegisterComputeAgentResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_github_com_Microsoft_hcsshim_internal_ncproxyttrpc_networkconfigproxy_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UnregisterComputeAgentRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_github_com_Microsoft_hcsshim_internal_ncproxyttrpc_networkconfigproxy_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UnregisterComputeAgentResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_github_com_Microsoft_hcsshim_internal_ncproxyttrpc_networkconfigproxy_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ConfigureNetworkingInternalRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_github_com_Microsoft_hcsshim_internal_ncproxyttrpc_networkconfigproxy_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ConfigureNetworkingInternalResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_github_com_Microsoft_hcsshim_internal_ncproxyttrpc_networkconfigproxy_proto_rawDesc, + NumEnums: 1, + NumMessages: 6, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_github_com_Microsoft_hcsshim_internal_ncproxyttrpc_networkconfigproxy_proto_goTypes, + DependencyIndexes: file_github_com_Microsoft_hcsshim_internal_ncproxyttrpc_networkconfigproxy_proto_depIdxs, + EnumInfos: file_github_com_Microsoft_hcsshim_internal_ncproxyttrpc_networkconfigproxy_proto_enumTypes, + MessageInfos: file_github_com_Microsoft_hcsshim_internal_ncproxyttrpc_networkconfigproxy_proto_msgTypes, + }.Build() + File_github_com_Microsoft_hcsshim_internal_ncproxyttrpc_networkconfigproxy_proto = out.File + file_github_com_Microsoft_hcsshim_internal_ncproxyttrpc_networkconfigproxy_proto_rawDesc = nil + file_github_com_Microsoft_hcsshim_internal_ncproxyttrpc_networkconfigproxy_proto_goTypes = nil + file_github_com_Microsoft_hcsshim_internal_ncproxyttrpc_networkconfigproxy_proto_depIdxs = nil +} diff --git a/ncproxyttrpc/networkconfigproxy.proto b/ncproxyttrpc/networkconfigproxy.proto index 34739f781e..061495f1b9 100644 --- a/ncproxyttrpc/networkconfigproxy.proto +++ b/ncproxyttrpc/networkconfigproxy.proto @@ -2,8 +2,6 @@ syntax = "proto3"; option go_package = "github.com/Microsoft/hcsshim/internal/ncproxyttrpc/;ncproxyttrpc"; -import weak "gogoproto/gogo.proto"; - service NetworkConfigProxy { rpc RegisterComputeAgent(RegisterComputeAgentRequest) returns (RegisterComputeAgentResponse) {} rpc UnregisterComputeAgent(UnregisterComputeAgentRequest) returns (UnregisterComputeAgentResponse) {} @@ -23,9 +21,9 @@ message UnregisterComputeAgentRequest { message UnregisterComputeAgentResponse {} -enum RequestTypeInternal { - Setup = 0; - Teardown = 1; +enum RequestTypeInternal { + Setup = 0; + Teardown = 1; } message ConfigureNetworkingInternalRequest{ diff --git a/ncproxyttrpc/networkconfigproxy_ttrpc.pb.go b/ncproxyttrpc/networkconfigproxy_ttrpc.pb.go new file mode 100644 index 0000000000..0090042d0f --- /dev/null +++ b/ncproxyttrpc/networkconfigproxy_ttrpc.pb.go @@ -0,0 +1,76 @@ +// Code generated by protoc-gen-go-ttrpc. DO NOT EDIT. +// source: github.com/Microsoft/hcsshim/internal/ncproxyttrpc/networkconfigproxy.proto +package ncproxyttrpc + +import ( + context "context" + ttrpc "github.com/containerd/ttrpc" +) + +type NetworkConfigProxyService interface { + RegisterComputeAgent(context.Context, *RegisterComputeAgentRequest) (*RegisterComputeAgentResponse, error) + UnregisterComputeAgent(context.Context, *UnregisterComputeAgentRequest) (*UnregisterComputeAgentResponse, error) + ConfigureNetworking(context.Context, *ConfigureNetworkingInternalRequest) (*ConfigureNetworkingInternalResponse, error) +} + +func RegisterNetworkConfigProxyService(srv *ttrpc.Server, svc NetworkConfigProxyService) { + srv.RegisterService("NetworkConfigProxy", &ttrpc.ServiceDesc{ + Methods: map[string]ttrpc.Method{ + "RegisterComputeAgent": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { + var req RegisterComputeAgentRequest + if err := unmarshal(&req); err != nil { + return nil, err + } + return svc.RegisterComputeAgent(ctx, &req) + }, + "UnregisterComputeAgent": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { + var req UnregisterComputeAgentRequest + if err := unmarshal(&req); err != nil { + return nil, err + } + return svc.UnregisterComputeAgent(ctx, &req) + }, + "ConfigureNetworking": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { + var req ConfigureNetworkingInternalRequest + if err := unmarshal(&req); err != nil { + return nil, err + } + return svc.ConfigureNetworking(ctx, &req) + }, + }, + }) +} + +type networkconfigproxyClient struct { + client *ttrpc.Client +} + +func NewNetworkConfigProxyClient(client *ttrpc.Client) NetworkConfigProxyService { + return &networkconfigproxyClient{ + client: client, + } +} + +func (c *networkconfigproxyClient) RegisterComputeAgent(ctx context.Context, req *RegisterComputeAgentRequest) (*RegisterComputeAgentResponse, error) { + var resp RegisterComputeAgentResponse + if err := c.client.Call(ctx, "NetworkConfigProxy", "RegisterComputeAgent", req, &resp); err != nil { + return nil, err + } + return &resp, nil +} + +func (c *networkconfigproxyClient) UnregisterComputeAgent(ctx context.Context, req *UnregisterComputeAgentRequest) (*UnregisterComputeAgentResponse, error) { + var resp UnregisterComputeAgentResponse + if err := c.client.Call(ctx, "NetworkConfigProxy", "UnregisterComputeAgent", req, &resp); err != nil { + return nil, err + } + return &resp, nil +} + +func (c *networkconfigproxyClient) ConfigureNetworking(ctx context.Context, req *ConfigureNetworkingInternalRequest) (*ConfigureNetworkingInternalResponse, error) { + var resp ConfigureNetworkingInternalResponse + if err := c.client.Call(ctx, "NetworkConfigProxy", "ConfigureNetworking", req, &resp); err != nil { + return nil, err + } + return &resp, nil +} diff --git a/shimdiag/shimdiag.pb.go b/shimdiag/shimdiag.pb.go index 25e2314a42..e531f20a91 100644 --- a/shimdiag/shimdiag.pb.go +++ b/shimdiag/shimdiag.pb.go @@ -1,2782 +1,948 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc v4.23.2 // source: github.com/Microsoft/hcsshim/internal/shimdiag/shimdiag.proto package shimdiag import ( - context "context" - fmt "fmt" - github_com_containerd_ttrpc "github.com/containerd/ttrpc" - proto "github.com/gogo/protobuf/proto" - io "io" - math "math" - math_bits "math/bits" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" - strings "strings" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type ExecProcessRequest struct { - Args []string `protobuf:"bytes,1,rep,name=args,proto3" json:"args,omitempty"` - Workdir string `protobuf:"bytes,2,opt,name=workdir,proto3" json:"workdir,omitempty"` - Terminal bool `protobuf:"varint,3,opt,name=terminal,proto3" json:"terminal,omitempty"` - Stdin string `protobuf:"bytes,4,opt,name=stdin,proto3" json:"stdin,omitempty"` - Stdout string `protobuf:"bytes,5,opt,name=stdout,proto3" json:"stdout,omitempty"` - Stderr string `protobuf:"bytes,6,opt,name=stderr,proto3" json:"stderr,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ExecProcessRequest) Reset() { *m = ExecProcessRequest{} } -func (*ExecProcessRequest) ProtoMessage() {} -func (*ExecProcessRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c7933dc6ffbb8784, []int{0} -} -func (m *ExecProcessRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ExecProcessRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ExecProcessRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ExecProcessRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExecProcessRequest.Merge(m, src) -} -func (m *ExecProcessRequest) XXX_Size() int { - return m.Size() -} -func (m *ExecProcessRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ExecProcessRequest.DiscardUnknown(m) -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -var xxx_messageInfo_ExecProcessRequest proto.InternalMessageInfo - -type ExecProcessResponse struct { - ExitCode int32 `protobuf:"varint,1,opt,name=exit_code,json=exitCode,proto3" json:"exit_code,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Args []string `protobuf:"bytes,1,rep,name=args,proto3" json:"args,omitempty"` + Workdir string `protobuf:"bytes,2,opt,name=workdir,proto3" json:"workdir,omitempty"` + Terminal bool `protobuf:"varint,3,opt,name=terminal,proto3" json:"terminal,omitempty"` + Stdin string `protobuf:"bytes,4,opt,name=stdin,proto3" json:"stdin,omitempty"` + Stdout string `protobuf:"bytes,5,opt,name=stdout,proto3" json:"stdout,omitempty"` + Stderr string `protobuf:"bytes,6,opt,name=stderr,proto3" json:"stderr,omitempty"` } -func (m *ExecProcessResponse) Reset() { *m = ExecProcessResponse{} } -func (*ExecProcessResponse) ProtoMessage() {} -func (*ExecProcessResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c7933dc6ffbb8784, []int{1} -} -func (m *ExecProcessResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ExecProcessResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ExecProcessResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *ExecProcessRequest) Reset() { + *x = ExecProcessRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ExecProcessResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExecProcessResponse.Merge(m, src) -} -func (m *ExecProcessResponse) XXX_Size() int { - return m.Size() -} -func (m *ExecProcessResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ExecProcessResponse.DiscardUnknown(m) -} -var xxx_messageInfo_ExecProcessResponse proto.InternalMessageInfo - -type StacksRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *ExecProcessRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *StacksRequest) Reset() { *m = StacksRequest{} } -func (*StacksRequest) ProtoMessage() {} -func (*StacksRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c7933dc6ffbb8784, []int{2} -} -func (m *StacksRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StacksRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_StacksRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (*ExecProcessRequest) ProtoMessage() {} + +func (x *ExecProcessRequest) ProtoReflect() protoreflect.Message { + mi := &file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *StacksRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_StacksRequest.Merge(m, src) -} -func (m *StacksRequest) XXX_Size() int { - return m.Size() -} -func (m *StacksRequest) XXX_DiscardUnknown() { - xxx_messageInfo_StacksRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_StacksRequest proto.InternalMessageInfo -type StacksResponse struct { - Stacks string `protobuf:"bytes,1,opt,name=stacks,proto3" json:"stacks,omitempty"` - GuestStacks string `protobuf:"bytes,2,opt,name=guest_stacks,json=guestStacks,proto3" json:"guest_stacks,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// Deprecated: Use ExecProcessRequest.ProtoReflect.Descriptor instead. +func (*ExecProcessRequest) Descriptor() ([]byte, []int) { + return file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_rawDescGZIP(), []int{0} } -func (m *StacksResponse) Reset() { *m = StacksResponse{} } -func (*StacksResponse) ProtoMessage() {} -func (*StacksResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c7933dc6ffbb8784, []int{3} -} -func (m *StacksResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StacksResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_StacksResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *ExecProcessRequest) GetArgs() []string { + if x != nil { + return x.Args } + return nil } -func (m *StacksResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_StacksResponse.Merge(m, src) -} -func (m *StacksResponse) XXX_Size() int { - return m.Size() -} -func (m *StacksResponse) XXX_DiscardUnknown() { - xxx_messageInfo_StacksResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_StacksResponse proto.InternalMessageInfo -type ShareRequest struct { - HostPath string `protobuf:"bytes,1,opt,name=host_path,json=hostPath,proto3" json:"host_path,omitempty"` - UvmPath string `protobuf:"bytes,2,opt,name=uvm_path,json=uvmPath,proto3" json:"uvm_path,omitempty"` - ReadOnly bool `protobuf:"varint,3,opt,name=read_only,json=readOnly,proto3" json:"read_only,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *ExecProcessRequest) GetWorkdir() string { + if x != nil { + return x.Workdir + } + return "" } -func (m *ShareRequest) Reset() { *m = ShareRequest{} } -func (*ShareRequest) ProtoMessage() {} -func (*ShareRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c7933dc6ffbb8784, []int{4} -} -func (m *ShareRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ShareRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ShareRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *ExecProcessRequest) GetTerminal() bool { + if x != nil { + return x.Terminal } -} -func (m *ShareRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ShareRequest.Merge(m, src) -} -func (m *ShareRequest) XXX_Size() int { - return m.Size() -} -func (m *ShareRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ShareRequest.DiscardUnknown(m) + return false } -var xxx_messageInfo_ShareRequest proto.InternalMessageInfo - -type ShareResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *ExecProcessRequest) GetStdin() string { + if x != nil { + return x.Stdin + } + return "" } -func (m *ShareResponse) Reset() { *m = ShareResponse{} } -func (*ShareResponse) ProtoMessage() {} -func (*ShareResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c7933dc6ffbb8784, []int{5} -} -func (m *ShareResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ShareResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ShareResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *ExecProcessRequest) GetStdout() string { + if x != nil { + return x.Stdout } + return "" } -func (m *ShareResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ShareResponse.Merge(m, src) -} -func (m *ShareResponse) XXX_Size() int { - return m.Size() -} -func (m *ShareResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ShareResponse.DiscardUnknown(m) + +func (x *ExecProcessRequest) GetStderr() string { + if x != nil { + return x.Stderr + } + return "" } -var xxx_messageInfo_ShareResponse proto.InternalMessageInfo +type ExecProcessResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type PidRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ExitCode int32 `protobuf:"varint,1,opt,name=exit_code,json=exitCode,proto3" json:"exit_code,omitempty"` } -func (m *PidRequest) Reset() { *m = PidRequest{} } -func (*PidRequest) ProtoMessage() {} -func (*PidRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c7933dc6ffbb8784, []int{6} -} -func (m *PidRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PidRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PidRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *ExecProcessResponse) Reset() { + *x = ExecProcessResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *PidRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_PidRequest.Merge(m, src) -} -func (m *PidRequest) XXX_Size() int { - return m.Size() -} -func (m *PidRequest) XXX_DiscardUnknown() { - xxx_messageInfo_PidRequest.DiscardUnknown(m) -} -var xxx_messageInfo_PidRequest proto.InternalMessageInfo - -type PidResponse struct { - Pid int32 `protobuf:"varint,1,opt,name=pid,proto3" json:"pid,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *ExecProcessResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PidResponse) Reset() { *m = PidResponse{} } -func (*PidResponse) ProtoMessage() {} -func (*PidResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c7933dc6ffbb8784, []int{7} -} -func (m *PidResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PidResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PidResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (*ExecProcessResponse) ProtoMessage() {} + +func (x *ExecProcessResponse) ProtoReflect() protoreflect.Message { + mi := &file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *PidResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_PidResponse.Merge(m, src) + +// Deprecated: Use ExecProcessResponse.ProtoReflect.Descriptor instead. +func (*ExecProcessResponse) Descriptor() ([]byte, []int) { + return file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_rawDescGZIP(), []int{1} } -func (m *PidResponse) XXX_Size() int { - return m.Size() + +func (x *ExecProcessResponse) GetExitCode() int32 { + if x != nil { + return x.ExitCode + } + return 0 } -func (m *PidResponse) XXX_DiscardUnknown() { - xxx_messageInfo_PidResponse.DiscardUnknown(m) + +type StacksRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -var xxx_messageInfo_PidResponse proto.InternalMessageInfo +func (x *StacksRequest) Reset() { + *x = StacksRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} -type TasksRequest struct { - Execs bool `protobuf:"varint,1,opt,name=execs,proto3" json:"execs,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *StacksRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *TasksRequest) Reset() { *m = TasksRequest{} } -func (*TasksRequest) ProtoMessage() {} -func (*TasksRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c7933dc6ffbb8784, []int{8} -} -func (m *TasksRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TasksRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TasksRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (*StacksRequest) ProtoMessage() {} + +func (x *StacksRequest) ProtoReflect() protoreflect.Message { + mi := &file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *TasksRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_TasksRequest.Merge(m, src) -} -func (m *TasksRequest) XXX_Size() int { - return m.Size() -} -func (m *TasksRequest) XXX_DiscardUnknown() { - xxx_messageInfo_TasksRequest.DiscardUnknown(m) + +// Deprecated: Use StacksRequest.ProtoReflect.Descriptor instead. +func (*StacksRequest) Descriptor() ([]byte, []int) { + return file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_rawDescGZIP(), []int{2} } -var xxx_messageInfo_TasksRequest proto.InternalMessageInfo +type StacksResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type Task struct { - ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Execs []*Exec `protobuf:"bytes,2,rep,name=execs,proto3" json:"execs,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Stacks string `protobuf:"bytes,1,opt,name=stacks,proto3" json:"stacks,omitempty"` + GuestStacks string `protobuf:"bytes,2,opt,name=guest_stacks,json=guestStacks,proto3" json:"guest_stacks,omitempty"` } -func (m *Task) Reset() { *m = Task{} } -func (*Task) ProtoMessage() {} -func (*Task) Descriptor() ([]byte, []int) { - return fileDescriptor_c7933dc6ffbb8784, []int{9} -} -func (m *Task) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Task) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Task.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *StacksResponse) Reset() { + *x = StacksResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *Task) XXX_Merge(src proto.Message) { - xxx_messageInfo_Task.Merge(m, src) -} -func (m *Task) XXX_Size() int { - return m.Size() -} -func (m *Task) XXX_DiscardUnknown() { - xxx_messageInfo_Task.DiscardUnknown(m) -} - -var xxx_messageInfo_Task proto.InternalMessageInfo -type Exec struct { - ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - State string `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *StacksResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Exec) Reset() { *m = Exec{} } -func (*Exec) ProtoMessage() {} -func (*Exec) Descriptor() ([]byte, []int) { - return fileDescriptor_c7933dc6ffbb8784, []int{10} -} -func (m *Exec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Exec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Exec.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (*StacksResponse) ProtoMessage() {} + +func (x *StacksResponse) ProtoReflect() protoreflect.Message { + mi := &file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *Exec) XXX_Merge(src proto.Message) { - xxx_messageInfo_Exec.Merge(m, src) + +// Deprecated: Use StacksResponse.ProtoReflect.Descriptor instead. +func (*StacksResponse) Descriptor() ([]byte, []int) { + return file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_rawDescGZIP(), []int{3} } -func (m *Exec) XXX_Size() int { - return m.Size() + +func (x *StacksResponse) GetStacks() string { + if x != nil { + return x.Stacks + } + return "" } -func (m *Exec) XXX_DiscardUnknown() { - xxx_messageInfo_Exec.DiscardUnknown(m) + +func (x *StacksResponse) GetGuestStacks() string { + if x != nil { + return x.GuestStacks + } + return "" } -var xxx_messageInfo_Exec proto.InternalMessageInfo +type ShareRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type TasksResponse struct { - Tasks []*Task `protobuf:"bytes,1,rep,name=tasks,proto3" json:"tasks,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + HostPath string `protobuf:"bytes,1,opt,name=host_path,json=hostPath,proto3" json:"host_path,omitempty"` + UvmPath string `protobuf:"bytes,2,opt,name=uvm_path,json=uvmPath,proto3" json:"uvm_path,omitempty"` + ReadOnly bool `protobuf:"varint,3,opt,name=read_only,json=readOnly,proto3" json:"read_only,omitempty"` } -func (m *TasksResponse) Reset() { *m = TasksResponse{} } -func (*TasksResponse) ProtoMessage() {} -func (*TasksResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c7933dc6ffbb8784, []int{11} -} -func (m *TasksResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TasksResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TasksResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *ShareRequest) Reset() { + *x = ShareRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *TasksResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_TasksResponse.Merge(m, src) -} -func (m *TasksResponse) XXX_Size() int { - return m.Size() -} -func (m *TasksResponse) XXX_DiscardUnknown() { - xxx_messageInfo_TasksResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_TasksResponse proto.InternalMessageInfo - -func init() { - proto.RegisterType((*ExecProcessRequest)(nil), "containerd.runhcs.v1.diag.ExecProcessRequest") - proto.RegisterType((*ExecProcessResponse)(nil), "containerd.runhcs.v1.diag.ExecProcessResponse") - proto.RegisterType((*StacksRequest)(nil), "containerd.runhcs.v1.diag.StacksRequest") - proto.RegisterType((*StacksResponse)(nil), "containerd.runhcs.v1.diag.StacksResponse") - proto.RegisterType((*ShareRequest)(nil), "containerd.runhcs.v1.diag.ShareRequest") - proto.RegisterType((*ShareResponse)(nil), "containerd.runhcs.v1.diag.ShareResponse") - proto.RegisterType((*PidRequest)(nil), "containerd.runhcs.v1.diag.PidRequest") - proto.RegisterType((*PidResponse)(nil), "containerd.runhcs.v1.diag.PidResponse") - proto.RegisterType((*TasksRequest)(nil), "containerd.runhcs.v1.diag.TasksRequest") - proto.RegisterType((*Task)(nil), "containerd.runhcs.v1.diag.Task") - proto.RegisterType((*Exec)(nil), "containerd.runhcs.v1.diag.Exec") - proto.RegisterType((*TasksResponse)(nil), "containerd.runhcs.v1.diag.TasksResponse") -} - -func init() { - proto.RegisterFile("github.com/Microsoft/hcsshim/internal/shimdiag/shimdiag.proto", fileDescriptor_c7933dc6ffbb8784) -} - -var fileDescriptor_c7933dc6ffbb8784 = []byte{ - // 623 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0xcb, 0x6e, 0xd3, 0x40, - 0x14, 0xad, 0xf3, 0xaa, 0x7d, 0x9b, 0x16, 0x34, 0xa0, 0xca, 0x4d, 0xa5, 0x34, 0x58, 0x3c, 0xcc, - 0x02, 0x47, 0x14, 0x2a, 0x16, 0x88, 0x4d, 0x29, 0x88, 0x0a, 0x21, 0x82, 0x0b, 0x12, 0x62, 0x41, - 0x34, 0xb5, 0x87, 0x78, 0xd4, 0xc4, 0x13, 0x66, 0xc6, 0xa5, 0xdd, 0xf1, 0x31, 0x7c, 0x4c, 0x97, - 0x2c, 0x59, 0x21, 0x9a, 0xaf, 0x60, 0x89, 0xe6, 0xe1, 0x40, 0x16, 0x4d, 0xca, 0xca, 0x73, 0xce, - 0xdc, 0x73, 0xee, 0xc3, 0xd7, 0x86, 0x27, 0x03, 0x2a, 0xb3, 0xe2, 0x30, 0x4a, 0xd8, 0xa8, 0xfb, - 0x8a, 0x26, 0x9c, 0x09, 0xf6, 0x49, 0x76, 0xb3, 0x44, 0x88, 0x8c, 0x8e, 0xba, 0x34, 0x97, 0x84, - 0xe7, 0x78, 0xd8, 0x55, 0x28, 0xa5, 0x78, 0x30, 0x3d, 0x44, 0x63, 0xce, 0x24, 0x43, 0x1b, 0x09, - 0xcb, 0x25, 0xa6, 0x39, 0xe1, 0x69, 0xc4, 0x8b, 0x3c, 0x4b, 0x44, 0x74, 0x7c, 0x3f, 0x52, 0x01, - 0xc1, 0x37, 0x07, 0xd0, 0xb3, 0x13, 0x92, 0xf4, 0x38, 0x4b, 0x88, 0x10, 0x31, 0xf9, 0x5c, 0x10, - 0x21, 0x11, 0x82, 0x1a, 0xe6, 0x03, 0xe1, 0x3b, 0x9d, 0x6a, 0xe8, 0xc5, 0xfa, 0x8c, 0x7c, 0x58, - 0xfe, 0xc2, 0xf8, 0x51, 0x4a, 0xb9, 0x5f, 0xe9, 0x38, 0xa1, 0x17, 0x97, 0x10, 0xb5, 0xc0, 0x95, - 0x84, 0x8f, 0x68, 0x8e, 0x87, 0x7e, 0xb5, 0xe3, 0x84, 0x6e, 0x3c, 0xc5, 0xe8, 0x3a, 0xd4, 0x85, - 0x4c, 0x69, 0xee, 0xd7, 0xb4, 0xc6, 0x00, 0xb4, 0x0e, 0x0d, 0x21, 0x53, 0x56, 0x48, 0xbf, 0xae, - 0x69, 0x8b, 0x2c, 0x4f, 0x38, 0xf7, 0x1b, 0x53, 0x9e, 0x70, 0x1e, 0x6c, 0xc3, 0xb5, 0x99, 0x2a, - 0xc5, 0x98, 0xe5, 0x82, 0xa0, 0x4d, 0xf0, 0xc8, 0x09, 0x95, 0xfd, 0x84, 0xa5, 0xc4, 0x77, 0x3a, - 0x4e, 0x58, 0x8f, 0x5d, 0x45, 0x3c, 0x65, 0x29, 0x09, 0xae, 0xc0, 0xea, 0x81, 0xc4, 0xc9, 0x51, - 0xd9, 0x54, 0xf0, 0x12, 0xd6, 0x4a, 0xc2, 0xea, 0x75, 0x3a, 0xc5, 0x68, 0xb1, 0x4e, 0xa7, 0x10, - 0xba, 0x01, 0xcd, 0x81, 0x92, 0xf4, 0xed, 0xad, 0xe9, 0x77, 0x45, 0x73, 0xc6, 0x22, 0x48, 0xa0, - 0x79, 0x90, 0x61, 0x4e, 0xca, 0x89, 0x6d, 0x82, 0x97, 0x31, 0x21, 0xfb, 0x63, 0x2c, 0x33, 0xeb, - 0xe6, 0x2a, 0xa2, 0x87, 0x65, 0x86, 0x36, 0xc0, 0x2d, 0x8e, 0x47, 0xe6, 0xce, 0xce, 0xae, 0x38, - 0x1e, 0xe9, 0xab, 0x4d, 0xf0, 0x38, 0xc1, 0x69, 0x9f, 0xe5, 0xc3, 0xd3, 0x72, 0x78, 0x8a, 0x78, - 0x9d, 0x0f, 0x4f, 0x75, 0x0b, 0x26, 0x89, 0x29, 0x38, 0x68, 0x02, 0xf4, 0x68, 0x5a, 0x36, 0xb4, - 0x05, 0x2b, 0x1a, 0xd9, 0x6e, 0xae, 0x42, 0x75, 0x4c, 0x53, 0x3b, 0x07, 0x75, 0x0c, 0x6e, 0x42, - 0xf3, 0x2d, 0x16, 0xd3, 0x09, 0xa8, 0x97, 0x41, 0x4e, 0x48, 0x62, 0xda, 0x75, 0x63, 0x03, 0x82, - 0x77, 0x50, 0x53, 0x51, 0x68, 0x1d, 0x2a, 0x56, 0xee, 0xed, 0x36, 0x26, 0x3f, 0xb7, 0x2a, 0xfb, - 0x7b, 0x71, 0x85, 0xa6, 0x68, 0xa7, 0x54, 0x55, 0x3a, 0xd5, 0x70, 0x65, 0x7b, 0x2b, 0xba, 0x70, - 0x9d, 0x22, 0xf5, 0x92, 0x4a, 0xdb, 0x87, 0x50, 0x53, 0xf0, 0x42, 0x5b, 0xbd, 0x19, 0x58, 0x12, - 0x3b, 0x11, 0x03, 0x82, 0xe7, 0xb0, 0x6a, 0x4b, 0xb6, 0x5d, 0xed, 0x40, 0x5d, 0x2a, 0x42, 0xef, - 0xe2, 0xfc, 0xec, 0x4a, 0x18, 0x9b, 0xe8, 0xed, 0xdf, 0x55, 0x70, 0x0f, 0x32, 0x3a, 0xda, 0xa3, - 0x78, 0x80, 0x18, 0xac, 0xa9, 0xa7, 0x2a, 0x67, 0x3f, 0x7f, 0xc1, 0x84, 0x44, 0xf7, 0x16, 0x34, - 0x31, 0xfb, 0x3d, 0xb4, 0xa2, 0xcb, 0x86, 0xdb, 0xa2, 0x31, 0x80, 0x4a, 0x68, 0x76, 0x05, 0x85, - 0x73, 0xd4, 0x33, 0x2b, 0xda, 0xba, 0x7b, 0x89, 0x48, 0x9b, 0xe2, 0x23, 0x78, 0x2a, 0x85, 0x1e, - 0x16, 0xba, 0xb3, 0x60, 0x2a, 0xd3, 0x04, 0xe1, 0xe2, 0xc0, 0x59, 0x7f, 0xbd, 0x7f, 0x73, 0xfd, - 0xff, 0xfd, 0x0c, 0xe6, 0xfa, 0xcf, 0xac, 0x32, 0x7a, 0x0f, 0xcb, 0xca, 0xbf, 0x47, 0x53, 0x74, - 0x6b, 0x8e, 0xe8, 0xef, 0xba, 0xb7, 0x6e, 0x2f, 0x0a, 0x33, 0xce, 0xbb, 0x6f, 0xce, 0xce, 0xdb, - 0x4b, 0x3f, 0xce, 0xdb, 0x4b, 0x5f, 0x27, 0x6d, 0xe7, 0x6c, 0xd2, 0x76, 0xbe, 0x4f, 0xda, 0xce, - 0xaf, 0x49, 0xdb, 0xf9, 0xf0, 0xe8, 0xff, 0xfe, 0xa3, 0x8f, 0xcb, 0xc3, 0x61, 0x43, 0xff, 0x48, - 0x1f, 0xfc, 0x09, 0x00, 0x00, 0xff, 0xff, 0x40, 0x66, 0xf4, 0x09, 0x89, 0x05, 0x00, 0x00, -} - -func (m *ExecProcessRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} -func (m *ExecProcessRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (x *ShareRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ExecProcessRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Stderr) > 0 { - i -= len(m.Stderr) - copy(dAtA[i:], m.Stderr) - i = encodeVarintShimdiag(dAtA, i, uint64(len(m.Stderr))) - i-- - dAtA[i] = 0x32 - } - if len(m.Stdout) > 0 { - i -= len(m.Stdout) - copy(dAtA[i:], m.Stdout) - i = encodeVarintShimdiag(dAtA, i, uint64(len(m.Stdout))) - i-- - dAtA[i] = 0x2a - } - if len(m.Stdin) > 0 { - i -= len(m.Stdin) - copy(dAtA[i:], m.Stdin) - i = encodeVarintShimdiag(dAtA, i, uint64(len(m.Stdin))) - i-- - dAtA[i] = 0x22 - } - if m.Terminal { - i-- - if m.Terminal { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - } - if len(m.Workdir) > 0 { - i -= len(m.Workdir) - copy(dAtA[i:], m.Workdir) - i = encodeVarintShimdiag(dAtA, i, uint64(len(m.Workdir))) - i-- - dAtA[i] = 0x12 - } - if len(m.Args) > 0 { - for iNdEx := len(m.Args) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Args[iNdEx]) - copy(dAtA[i:], m.Args[iNdEx]) - i = encodeVarintShimdiag(dAtA, i, uint64(len(m.Args[iNdEx]))) - i-- - dAtA[i] = 0xa +func (*ShareRequest) ProtoMessage() {} + +func (x *ShareRequest) ProtoReflect() protoreflect.Message { + mi := &file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - return len(dAtA) - i, nil + return mi.MessageOf(x) } -func (m *ExecProcessResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +// Deprecated: Use ShareRequest.ProtoReflect.Descriptor instead. +func (*ShareRequest) Descriptor() ([]byte, []int) { + return file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_rawDescGZIP(), []int{4} } -func (m *ExecProcessResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (x *ShareRequest) GetHostPath() string { + if x != nil { + return x.HostPath + } + return "" } -func (m *ExecProcessResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) +func (x *ShareRequest) GetUvmPath() string { + if x != nil { + return x.UvmPath } - if m.ExitCode != 0 { - i = encodeVarintShimdiag(dAtA, i, uint64(m.ExitCode)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return "" } -func (m *StacksRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *ShareRequest) GetReadOnly() bool { + if x != nil { + return x.ReadOnly } - return dAtA[:n], nil + return false } -func (m *StacksRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +type ShareResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *StacksRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) +func (x *ShareResponse) Reset() { + *x = ShareResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return len(dAtA) - i, nil } -func (m *StacksResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *ShareResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ShareResponse) ProtoMessage() {} + +func (x *ShareResponse) ProtoReflect() protoreflect.Message { + mi := &file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return dAtA[:n], nil + return mi.MessageOf(x) } -func (m *StacksResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +// Deprecated: Use ShareResponse.ProtoReflect.Descriptor instead. +func (*ShareResponse) Descriptor() ([]byte, []int) { + return file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_rawDescGZIP(), []int{5} } -func (m *StacksResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.GuestStacks) > 0 { - i -= len(m.GuestStacks) - copy(dAtA[i:], m.GuestStacks) - i = encodeVarintShimdiag(dAtA, i, uint64(len(m.GuestStacks))) - i-- - dAtA[i] = 0x12 - } - if len(m.Stacks) > 0 { - i -= len(m.Stacks) - copy(dAtA[i:], m.Stacks) - i = encodeVarintShimdiag(dAtA, i, uint64(len(m.Stacks))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +type PidRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *ShareRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *PidRequest) Reset() { + *x = PidRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return dAtA[:n], nil } -func (m *ShareRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (x *PidRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ShareRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.ReadOnly { - i-- - if m.ReadOnly { - dAtA[i] = 1 - } else { - dAtA[i] = 0 +func (*PidRequest) ProtoMessage() {} + +func (x *PidRequest) ProtoReflect() protoreflect.Message { + mi := &file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - i-- - dAtA[i] = 0x18 - } - if len(m.UvmPath) > 0 { - i -= len(m.UvmPath) - copy(dAtA[i:], m.UvmPath) - i = encodeVarintShimdiag(dAtA, i, uint64(len(m.UvmPath))) - i-- - dAtA[i] = 0x12 + return ms } - if len(m.HostPath) > 0 { - i -= len(m.HostPath) - copy(dAtA[i:], m.HostPath) - i = encodeVarintShimdiag(dAtA, i, uint64(len(m.HostPath))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return mi.MessageOf(x) } -func (m *ShareResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +// Deprecated: Use PidRequest.ProtoReflect.Descriptor instead. +func (*PidRequest) Descriptor() ([]byte, []int) { + return file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_rawDescGZIP(), []int{6} } -func (m *ShareResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +type PidResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ShareResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + Pid int32 `protobuf:"varint,1,opt,name=pid,proto3" json:"pid,omitempty"` } -func (m *PidRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *PidResponse) Reset() { + *x = PidResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return dAtA[:n], nil } -func (m *PidRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (x *PidResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PidRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil -} +func (*PidResponse) ProtoMessage() {} -func (m *PidResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *PidResponse) ProtoReflect() protoreflect.Message { + mi := &file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return dAtA[:n], nil + return mi.MessageOf(x) } -func (m *PidResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +// Deprecated: Use PidResponse.ProtoReflect.Descriptor instead. +func (*PidResponse) Descriptor() ([]byte, []int) { + return file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_rawDescGZIP(), []int{7} } -func (m *PidResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Pid != 0 { - i = encodeVarintShimdiag(dAtA, i, uint64(m.Pid)) - i-- - dAtA[i] = 0x8 +func (x *PidResponse) GetPid() int32 { + if x != nil { + return x.Pid } - return len(dAtA) - i, nil + return 0 } -func (m *TasksRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} +type TasksRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *TasksRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + Execs bool `protobuf:"varint,1,opt,name=execs,proto3" json:"execs,omitempty"` } -func (m *TasksRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Execs { - i-- - if m.Execs { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 +func (x *TasksRequest) Reset() { + *x = TasksRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return len(dAtA) - i, nil } -func (m *Task) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +func (x *TasksRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Task) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +func (*TasksRequest) ProtoMessage() {} -func (m *Task) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Execs) > 0 { - for iNdEx := len(m.Execs) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Execs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintShimdiag(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 +func (x *TasksRequest) ProtoReflect() protoreflect.Message { + mi := &file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - if len(m.ID) > 0 { - i -= len(m.ID) - copy(dAtA[i:], m.ID) - i = encodeVarintShimdiag(dAtA, i, uint64(len(m.ID))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return mi.MessageOf(x) } -func (m *Exec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +// Deprecated: Use TasksRequest.ProtoReflect.Descriptor instead. +func (*TasksRequest) Descriptor() ([]byte, []int) { + return file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_rawDescGZIP(), []int{8} } -func (m *Exec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (x *TasksRequest) GetExecs() bool { + if x != nil { + return x.Execs + } + return false } -func (m *Exec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.State) > 0 { - i -= len(m.State) - copy(dAtA[i:], m.State) - i = encodeVarintShimdiag(dAtA, i, uint64(len(m.State))) - i-- - dAtA[i] = 0x12 - } - if len(m.ID) > 0 { - i -= len(m.ID) - copy(dAtA[i:], m.ID) - i = encodeVarintShimdiag(dAtA, i, uint64(len(m.ID))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +type Task struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Execs []*Exec `protobuf:"bytes,2,rep,name=execs,proto3" json:"execs,omitempty"` } -func (m *TasksResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *Task) Reset() { + *x = Task{} + if protoimpl.UnsafeEnabled { + mi := &file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return dAtA[:n], nil } -func (m *TasksResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (x *Task) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *TasksResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Tasks) > 0 { - for iNdEx := len(m.Tasks) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Tasks[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintShimdiag(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa +func (*Task) ProtoMessage() {} + +func (x *Task) ProtoReflect() protoreflect.Message { + mi := &file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - return len(dAtA) - i, nil + return mi.MessageOf(x) } -func encodeVarintShimdiag(dAtA []byte, offset int, v uint64) int { - offset -= sovShimdiag(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base +// Deprecated: Use Task.ProtoReflect.Descriptor instead. +func (*Task) Descriptor() ([]byte, []int) { + return file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_rawDescGZIP(), []int{9} } -func (m *ExecProcessRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Args) > 0 { - for _, s := range m.Args { - l = len(s) - n += 1 + l + sovShimdiag(uint64(l)) - } - } - l = len(m.Workdir) - if l > 0 { - n += 1 + l + sovShimdiag(uint64(l)) - } - if m.Terminal { - n += 2 - } - l = len(m.Stdin) - if l > 0 { - n += 1 + l + sovShimdiag(uint64(l)) - } - l = len(m.Stdout) - if l > 0 { - n += 1 + l + sovShimdiag(uint64(l)) - } - l = len(m.Stderr) - if l > 0 { - n += 1 + l + sovShimdiag(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) + +func (x *Task) GetID() string { + if x != nil { + return x.ID } - return n + return "" } -func (m *ExecProcessResponse) Size() (n int) { - if m == nil { - return 0 +func (x *Task) GetExecs() []*Exec { + if x != nil { + return x.Execs } - var l int - _ = l - if m.ExitCode != 0 { - n += 1 + sovShimdiag(uint64(m.ExitCode)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n + return nil } -func (m *StacksRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n +type Exec struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + State string `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"` } -func (m *StacksResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Stacks) - if l > 0 { - n += 1 + l + sovShimdiag(uint64(l)) +func (x *Exec) Reset() { + *x = Exec{} + if protoimpl.UnsafeEnabled { + mi := &file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - l = len(m.GuestStacks) - if l > 0 { - n += 1 + l + sovShimdiag(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n } -func (m *ShareRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.HostPath) - if l > 0 { - n += 1 + l + sovShimdiag(uint64(l)) - } - l = len(m.UvmPath) - if l > 0 { - n += 1 + l + sovShimdiag(uint64(l)) - } - if m.ReadOnly { - n += 2 - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n +func (x *Exec) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ShareResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) +func (*Exec) ProtoMessage() {} + +func (x *Exec) ProtoReflect() protoreflect.Message { + mi := &file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return n + return mi.MessageOf(x) } -func (m *PidRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n +// Deprecated: Use Exec.ProtoReflect.Descriptor instead. +func (*Exec) Descriptor() ([]byte, []int) { + return file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_rawDescGZIP(), []int{10} } -func (m *PidResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Pid != 0 { - n += 1 + sovShimdiag(uint64(m.Pid)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) +func (x *Exec) GetID() string { + if x != nil { + return x.ID } - return n + return "" } -func (m *TasksRequest) Size() (n int) { - if m == nil { - return 0 +func (x *Exec) GetState() string { + if x != nil { + return x.State } - var l int - _ = l - if m.Execs { - n += 2 - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n + return "" } -func (m *Task) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ID) - if l > 0 { - n += 1 + l + sovShimdiag(uint64(l)) - } - if len(m.Execs) > 0 { - for _, e := range m.Execs { - l = e.Size() - n += 1 + l + sovShimdiag(uint64(l)) - } - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n +type TasksResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Tasks []*Task `protobuf:"bytes,1,rep,name=tasks,proto3" json:"tasks,omitempty"` } -func (m *Exec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ID) - if l > 0 { - n += 1 + l + sovShimdiag(uint64(l)) - } - l = len(m.State) - if l > 0 { - n += 1 + l + sovShimdiag(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) +func (x *TasksResponse) Reset() { + *x = TasksResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return n } -func (m *TasksResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Tasks) > 0 { - for _, e := range m.Tasks { - l = e.Size() - n += 1 + l + sovShimdiag(uint64(l)) +func (x *TasksResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TasksResponse) ProtoMessage() {} + +func (x *TasksResponse) ProtoReflect() protoreflect.Message { + mi := &file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n + return mi.MessageOf(x) } -func sovShimdiag(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozShimdiag(x uint64) (n int) { - return sovShimdiag(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +// Deprecated: Use TasksResponse.ProtoReflect.Descriptor instead. +func (*TasksResponse) Descriptor() ([]byte, []int) { + return file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_rawDescGZIP(), []int{11} } -func (this *ExecProcessRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ExecProcessRequest{`, - `Args:` + fmt.Sprintf("%v", this.Args) + `,`, - `Workdir:` + fmt.Sprintf("%v", this.Workdir) + `,`, - `Terminal:` + fmt.Sprintf("%v", this.Terminal) + `,`, - `Stdin:` + fmt.Sprintf("%v", this.Stdin) + `,`, - `Stdout:` + fmt.Sprintf("%v", this.Stdout) + `,`, - `Stderr:` + fmt.Sprintf("%v", this.Stderr) + `,`, - `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, - `}`, - }, "") - return s -} -func (this *ExecProcessResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ExecProcessResponse{`, - `ExitCode:` + fmt.Sprintf("%v", this.ExitCode) + `,`, - `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, - `}`, - }, "") - return s -} -func (this *StacksRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&StacksRequest{`, - `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, - `}`, - }, "") - return s -} -func (this *StacksResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&StacksResponse{`, - `Stacks:` + fmt.Sprintf("%v", this.Stacks) + `,`, - `GuestStacks:` + fmt.Sprintf("%v", this.GuestStacks) + `,`, - `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, - `}`, - }, "") - return s -} -func (this *ShareRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ShareRequest{`, - `HostPath:` + fmt.Sprintf("%v", this.HostPath) + `,`, - `UvmPath:` + fmt.Sprintf("%v", this.UvmPath) + `,`, - `ReadOnly:` + fmt.Sprintf("%v", this.ReadOnly) + `,`, - `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, - `}`, - }, "") - return s -} -func (this *ShareResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ShareResponse{`, - `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, - `}`, - }, "") - return s -} -func (this *PidRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PidRequest{`, - `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, - `}`, - }, "") - return s -} -func (this *PidResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PidResponse{`, - `Pid:` + fmt.Sprintf("%v", this.Pid) + `,`, - `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, - `}`, - }, "") - return s -} -func (this *TasksRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&TasksRequest{`, - `Execs:` + fmt.Sprintf("%v", this.Execs) + `,`, - `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, - `}`, - }, "") - return s -} -func (this *Task) String() string { - if this == nil { - return "nil" - } - repeatedStringForExecs := "[]*Exec{" - for _, f := range this.Execs { - repeatedStringForExecs += strings.Replace(f.String(), "Exec", "Exec", 1) + "," - } - repeatedStringForExecs += "}" - s := strings.Join([]string{`&Task{`, - `ID:` + fmt.Sprintf("%v", this.ID) + `,`, - `Execs:` + repeatedStringForExecs + `,`, - `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, - `}`, - }, "") - return s -} -func (this *Exec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Exec{`, - `ID:` + fmt.Sprintf("%v", this.ID) + `,`, - `State:` + fmt.Sprintf("%v", this.State) + `,`, - `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, - `}`, - }, "") - return s -} -func (this *TasksResponse) String() string { - if this == nil { - return "nil" - } - repeatedStringForTasks := "[]*Task{" - for _, f := range this.Tasks { - repeatedStringForTasks += strings.Replace(f.String(), "Task", "Task", 1) + "," - } - repeatedStringForTasks += "}" - s := strings.Join([]string{`&TasksResponse{`, - `Tasks:` + repeatedStringForTasks + `,`, - `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, - `}`, - }, "") - return s -} -func valueToStringShimdiag(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" + +func (x *TasksResponse) GetTasks() []*Task { + if x != nil { + return x.Tasks } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) + return nil } -type ShimDiagService interface { - DiagExecInHost(ctx context.Context, req *ExecProcessRequest) (*ExecProcessResponse, error) - DiagStacks(ctx context.Context, req *StacksRequest) (*StacksResponse, error) - DiagTasks(ctx context.Context, req *TasksRequest) (*TasksResponse, error) - DiagShare(ctx context.Context, req *ShareRequest) (*ShareResponse, error) - DiagPid(ctx context.Context, req *PidRequest) (*PidResponse, error) +var File_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto protoreflect.FileDescriptor + +var file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_rawDesc = []byte{ + 0x0a, 0x3d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4d, 0x69, 0x63, + 0x72, 0x6f, 0x73, 0x6f, 0x66, 0x74, 0x2f, 0x68, 0x63, 0x73, 0x73, 0x68, 0x69, 0x6d, 0x2f, 0x69, + 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x73, 0x68, 0x69, 0x6d, 0x64, 0x69, 0x61, 0x67, + 0x2f, 0x73, 0x68, 0x69, 0x6d, 0x64, 0x69, 0x61, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x19, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x64, 0x2e, 0x72, 0x75, 0x6e, 0x68, + 0x63, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x64, 0x69, 0x61, 0x67, 0x22, 0xa4, 0x01, 0x0a, 0x12, 0x45, + 0x78, 0x65, 0x63, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x72, 0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, + 0x04, 0x61, 0x72, 0x67, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x77, 0x6f, 0x72, 0x6b, 0x64, 0x69, 0x72, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x77, 0x6f, 0x72, 0x6b, 0x64, 0x69, 0x72, 0x12, + 0x1a, 0x0a, 0x08, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x08, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x73, + 0x74, 0x64, 0x69, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x74, 0x64, 0x69, + 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x64, 0x6f, 0x75, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x06, 0x73, 0x74, 0x64, 0x6f, 0x75, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x64, + 0x65, 0x72, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x64, 0x65, 0x72, + 0x72, 0x22, 0x32, 0x0a, 0x13, 0x45, 0x78, 0x65, 0x63, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x78, 0x69, 0x74, + 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x65, 0x78, 0x69, + 0x74, 0x43, 0x6f, 0x64, 0x65, 0x22, 0x0f, 0x0a, 0x0d, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x4b, 0x0a, 0x0e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x63, + 0x6b, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, + 0x12, 0x21, 0x0a, 0x0c, 0x67, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x67, 0x75, 0x65, 0x73, 0x74, 0x53, 0x74, 0x61, + 0x63, 0x6b, 0x73, 0x22, 0x63, 0x0a, 0x0c, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x70, 0x61, 0x74, 0x68, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x50, 0x61, 0x74, 0x68, + 0x12, 0x19, 0x0a, 0x08, 0x75, 0x76, 0x6d, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x07, 0x75, 0x76, 0x6d, 0x50, 0x61, 0x74, 0x68, 0x12, 0x1b, 0x0a, 0x09, 0x72, + 0x65, 0x61, 0x64, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, + 0x72, 0x65, 0x61, 0x64, 0x4f, 0x6e, 0x6c, 0x79, 0x22, 0x0f, 0x0a, 0x0d, 0x53, 0x68, 0x61, 0x72, + 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x0c, 0x0a, 0x0a, 0x50, 0x69, 0x64, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x1f, 0x0a, 0x0b, 0x50, 0x69, 0x64, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x70, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x05, 0x52, 0x03, 0x70, 0x69, 0x64, 0x22, 0x24, 0x0a, 0x0c, 0x54, 0x61, 0x73, 0x6b, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x78, 0x65, 0x63, + 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x65, 0x78, 0x65, 0x63, 0x73, 0x22, 0x4d, + 0x0a, 0x04, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x35, 0x0a, 0x05, 0x65, 0x78, 0x65, 0x63, 0x73, 0x18, + 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, + 0x72, 0x64, 0x2e, 0x72, 0x75, 0x6e, 0x68, 0x63, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x64, 0x69, 0x61, + 0x67, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x52, 0x05, 0x65, 0x78, 0x65, 0x63, 0x73, 0x22, 0x2c, 0x0a, + 0x04, 0x45, 0x78, 0x65, 0x63, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x46, 0x0a, 0x0d, 0x54, + 0x61, 0x73, 0x6b, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x05, + 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x63, 0x6f, + 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x64, 0x2e, 0x72, 0x75, 0x6e, 0x68, 0x63, 0x73, 0x2e, + 0x76, 0x31, 0x2e, 0x64, 0x69, 0x61, 0x67, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x05, 0x74, 0x61, + 0x73, 0x6b, 0x73, 0x32, 0xf8, 0x03, 0x0a, 0x08, 0x53, 0x68, 0x69, 0x6d, 0x44, 0x69, 0x61, 0x67, + 0x12, 0x6f, 0x0a, 0x0e, 0x44, 0x69, 0x61, 0x67, 0x45, 0x78, 0x65, 0x63, 0x49, 0x6e, 0x48, 0x6f, + 0x73, 0x74, 0x12, 0x2d, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x64, 0x2e, + 0x72, 0x75, 0x6e, 0x68, 0x63, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x64, 0x69, 0x61, 0x67, 0x2e, 0x45, + 0x78, 0x65, 0x63, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x2e, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x64, 0x2e, 0x72, + 0x75, 0x6e, 0x68, 0x63, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x64, 0x69, 0x61, 0x67, 0x2e, 0x45, 0x78, + 0x65, 0x63, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x61, 0x0a, 0x0a, 0x44, 0x69, 0x61, 0x67, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x12, + 0x28, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x64, 0x2e, 0x72, 0x75, 0x6e, + 0x68, 0x63, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x64, 0x69, 0x61, 0x67, 0x2e, 0x53, 0x74, 0x61, 0x63, + 0x6b, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x63, 0x6f, 0x6e, 0x74, + 0x61, 0x69, 0x6e, 0x65, 0x72, 0x64, 0x2e, 0x72, 0x75, 0x6e, 0x68, 0x63, 0x73, 0x2e, 0x76, 0x31, + 0x2e, 0x64, 0x69, 0x61, 0x67, 0x2e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5e, 0x0a, 0x09, 0x44, 0x69, 0x61, 0x67, 0x54, 0x61, 0x73, 0x6b, + 0x73, 0x12, 0x27, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x64, 0x2e, 0x72, + 0x75, 0x6e, 0x68, 0x63, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x64, 0x69, 0x61, 0x67, 0x2e, 0x54, 0x61, + 0x73, 0x6b, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x63, 0x6f, 0x6e, + 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x64, 0x2e, 0x72, 0x75, 0x6e, 0x68, 0x63, 0x73, 0x2e, 0x76, + 0x31, 0x2e, 0x64, 0x69, 0x61, 0x67, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5e, 0x0a, 0x09, 0x44, 0x69, 0x61, 0x67, 0x53, 0x68, 0x61, 0x72, + 0x65, 0x12, 0x27, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x64, 0x2e, 0x72, + 0x75, 0x6e, 0x68, 0x63, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x64, 0x69, 0x61, 0x67, 0x2e, 0x53, 0x68, + 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x63, 0x6f, 0x6e, + 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x64, 0x2e, 0x72, 0x75, 0x6e, 0x68, 0x63, 0x73, 0x2e, 0x76, + 0x31, 0x2e, 0x64, 0x69, 0x61, 0x67, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x58, 0x0a, 0x07, 0x44, 0x69, 0x61, 0x67, 0x50, 0x69, 0x64, 0x12, + 0x25, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x64, 0x2e, 0x72, 0x75, 0x6e, + 0x68, 0x63, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x64, 0x69, 0x61, 0x67, 0x2e, 0x50, 0x69, 0x64, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, + 0x65, 0x72, 0x64, 0x2e, 0x72, 0x75, 0x6e, 0x68, 0x63, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x64, 0x69, + 0x61, 0x67, 0x2e, 0x50, 0x69, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x39, + 0x5a, 0x37, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4d, 0x69, 0x63, + 0x72, 0x6f, 0x73, 0x6f, 0x66, 0x74, 0x2f, 0x68, 0x63, 0x73, 0x73, 0x68, 0x69, 0x6d, 0x2f, 0x69, + 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x73, 0x68, 0x69, 0x6d, 0x64, 0x69, 0x61, 0x67, + 0x3b, 0x73, 0x68, 0x69, 0x6d, 0x64, 0x69, 0x61, 0x67, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, } -func RegisterShimDiagService(srv *github_com_containerd_ttrpc.Server, svc ShimDiagService) { - srv.Register("containerd.runhcs.v1.diag.ShimDiag", map[string]github_com_containerd_ttrpc.Method{ - "DiagExecInHost": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { - var req ExecProcessRequest - if err := unmarshal(&req); err != nil { - return nil, err - } - return svc.DiagExecInHost(ctx, &req) - }, - "DiagStacks": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { - var req StacksRequest - if err := unmarshal(&req); err != nil { - return nil, err - } - return svc.DiagStacks(ctx, &req) +var ( + file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_rawDescOnce sync.Once + file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_rawDescData = file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_rawDesc +) + +func file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_rawDescGZIP() []byte { + file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_rawDescOnce.Do(func() { + file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_rawDescData = protoimpl.X.CompressGZIP(file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_rawDescData) + }) + return file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_rawDescData +} + +var file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_msgTypes = make([]protoimpl.MessageInfo, 12) +var file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_goTypes = []interface{}{ + (*ExecProcessRequest)(nil), // 0: containerd.runhcs.v1.diag.ExecProcessRequest + (*ExecProcessResponse)(nil), // 1: containerd.runhcs.v1.diag.ExecProcessResponse + (*StacksRequest)(nil), // 2: containerd.runhcs.v1.diag.StacksRequest + (*StacksResponse)(nil), // 3: containerd.runhcs.v1.diag.StacksResponse + (*ShareRequest)(nil), // 4: containerd.runhcs.v1.diag.ShareRequest + (*ShareResponse)(nil), // 5: containerd.runhcs.v1.diag.ShareResponse + (*PidRequest)(nil), // 6: containerd.runhcs.v1.diag.PidRequest + (*PidResponse)(nil), // 7: containerd.runhcs.v1.diag.PidResponse + (*TasksRequest)(nil), // 8: containerd.runhcs.v1.diag.TasksRequest + (*Task)(nil), // 9: containerd.runhcs.v1.diag.Task + (*Exec)(nil), // 10: containerd.runhcs.v1.diag.Exec + (*TasksResponse)(nil), // 11: containerd.runhcs.v1.diag.TasksResponse +} +var file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_depIdxs = []int32{ + 10, // 0: containerd.runhcs.v1.diag.Task.execs:type_name -> containerd.runhcs.v1.diag.Exec + 9, // 1: containerd.runhcs.v1.diag.TasksResponse.tasks:type_name -> containerd.runhcs.v1.diag.Task + 0, // 2: containerd.runhcs.v1.diag.ShimDiag.DiagExecInHost:input_type -> containerd.runhcs.v1.diag.ExecProcessRequest + 2, // 3: containerd.runhcs.v1.diag.ShimDiag.DiagStacks:input_type -> containerd.runhcs.v1.diag.StacksRequest + 8, // 4: containerd.runhcs.v1.diag.ShimDiag.DiagTasks:input_type -> containerd.runhcs.v1.diag.TasksRequest + 4, // 5: containerd.runhcs.v1.diag.ShimDiag.DiagShare:input_type -> containerd.runhcs.v1.diag.ShareRequest + 6, // 6: containerd.runhcs.v1.diag.ShimDiag.DiagPid:input_type -> containerd.runhcs.v1.diag.PidRequest + 1, // 7: containerd.runhcs.v1.diag.ShimDiag.DiagExecInHost:output_type -> containerd.runhcs.v1.diag.ExecProcessResponse + 3, // 8: containerd.runhcs.v1.diag.ShimDiag.DiagStacks:output_type -> containerd.runhcs.v1.diag.StacksResponse + 11, // 9: containerd.runhcs.v1.diag.ShimDiag.DiagTasks:output_type -> containerd.runhcs.v1.diag.TasksResponse + 5, // 10: containerd.runhcs.v1.diag.ShimDiag.DiagShare:output_type -> containerd.runhcs.v1.diag.ShareResponse + 7, // 11: containerd.runhcs.v1.diag.ShimDiag.DiagPid:output_type -> containerd.runhcs.v1.diag.PidResponse + 7, // [7:12] is the sub-list for method output_type + 2, // [2:7] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name +} + +func init() { file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_init() } +func file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_init() { + if File_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExecProcessRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExecProcessResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StacksRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StacksResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ShareRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ShareResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PidRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PidResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TasksRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Task); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Exec); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TasksResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_rawDesc, + NumEnums: 0, + NumMessages: 12, + NumExtensions: 0, + NumServices: 1, }, - "DiagTasks": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { - var req TasksRequest - if err := unmarshal(&req); err != nil { - return nil, err - } - return svc.DiagTasks(ctx, &req) - }, - "DiagShare": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { - var req ShareRequest - if err := unmarshal(&req); err != nil { - return nil, err - } - return svc.DiagShare(ctx, &req) - }, - "DiagPid": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { - var req PidRequest - if err := unmarshal(&req); err != nil { - return nil, err - } - return svc.DiagPid(ctx, &req) - }, - }) -} - -type shimDiagClient struct { - client *github_com_containerd_ttrpc.Client -} - -func NewShimDiagClient(client *github_com_containerd_ttrpc.Client) ShimDiagService { - return &shimDiagClient{ - client: client, - } -} - -func (c *shimDiagClient) DiagExecInHost(ctx context.Context, req *ExecProcessRequest) (*ExecProcessResponse, error) { - var resp ExecProcessResponse - if err := c.client.Call(ctx, "containerd.runhcs.v1.diag.ShimDiag", "DiagExecInHost", req, &resp); err != nil { - return nil, err - } - return &resp, nil -} - -func (c *shimDiagClient) DiagStacks(ctx context.Context, req *StacksRequest) (*StacksResponse, error) { - var resp StacksResponse - if err := c.client.Call(ctx, "containerd.runhcs.v1.diag.ShimDiag", "DiagStacks", req, &resp); err != nil { - return nil, err - } - return &resp, nil -} - -func (c *shimDiagClient) DiagTasks(ctx context.Context, req *TasksRequest) (*TasksResponse, error) { - var resp TasksResponse - if err := c.client.Call(ctx, "containerd.runhcs.v1.diag.ShimDiag", "DiagTasks", req, &resp); err != nil { - return nil, err - } - return &resp, nil -} - -func (c *shimDiagClient) DiagShare(ctx context.Context, req *ShareRequest) (*ShareResponse, error) { - var resp ShareResponse - if err := c.client.Call(ctx, "containerd.runhcs.v1.diag.ShimDiag", "DiagShare", req, &resp); err != nil { - return nil, err - } - return &resp, nil -} - -func (c *shimDiagClient) DiagPid(ctx context.Context, req *PidRequest) (*PidResponse, error) { - var resp PidResponse - if err := c.client.Call(ctx, "containerd.runhcs.v1.diag.ShimDiag", "DiagPid", req, &resp); err != nil { - return nil, err - } - return &resp, nil -} -func (m *ExecProcessRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowShimdiag - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ExecProcessRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ExecProcessRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Args", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowShimdiag - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthShimdiag - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthShimdiag - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Args = append(m.Args, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Workdir", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowShimdiag - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthShimdiag - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthShimdiag - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Workdir = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Terminal", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowShimdiag - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Terminal = bool(v != 0) - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Stdin", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowShimdiag - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthShimdiag - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthShimdiag - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Stdin = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Stdout", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowShimdiag - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthShimdiag - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthShimdiag - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Stdout = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Stderr", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowShimdiag - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthShimdiag - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthShimdiag - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Stderr = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipShimdiag(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthShimdiag - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ExecProcessResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowShimdiag - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ExecProcessResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ExecProcessResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ExitCode", wireType) - } - m.ExitCode = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowShimdiag - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ExitCode |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipShimdiag(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthShimdiag - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StacksRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowShimdiag - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StacksRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StacksRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipShimdiag(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthShimdiag - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StacksResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowShimdiag - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StacksResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StacksResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Stacks", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowShimdiag - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthShimdiag - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthShimdiag - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Stacks = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GuestStacks", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowShimdiag - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthShimdiag - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthShimdiag - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.GuestStacks = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipShimdiag(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthShimdiag - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ShareRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowShimdiag - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ShareRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ShareRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HostPath", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowShimdiag - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthShimdiag - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthShimdiag - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.HostPath = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UvmPath", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowShimdiag - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthShimdiag - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthShimdiag - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.UvmPath = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadOnly", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowShimdiag - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ReadOnly = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipShimdiag(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthShimdiag - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil + GoTypes: file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_goTypes, + DependencyIndexes: file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_depIdxs, + MessageInfos: file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_msgTypes, + }.Build() + File_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto = out.File + file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_rawDesc = nil + file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_goTypes = nil + file_github_com_Microsoft_hcsshim_internal_shimdiag_shimdiag_proto_depIdxs = nil } -func (m *ShareResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowShimdiag - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ShareResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ShareResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipShimdiag(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthShimdiag - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PidRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowShimdiag - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PidRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PidRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipShimdiag(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthShimdiag - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PidResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowShimdiag - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PidResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PidResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Pid", wireType) - } - m.Pid = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowShimdiag - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Pid |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipShimdiag(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthShimdiag - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TasksRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowShimdiag - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TasksRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TasksRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Execs", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowShimdiag - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Execs = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipShimdiag(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthShimdiag - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Task) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowShimdiag - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Task: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Task: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowShimdiag - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthShimdiag - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthShimdiag - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Execs", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowShimdiag - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthShimdiag - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthShimdiag - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Execs = append(m.Execs, &Exec{}) - if err := m.Execs[len(m.Execs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipShimdiag(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthShimdiag - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Exec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowShimdiag - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Exec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Exec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowShimdiag - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthShimdiag - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthShimdiag - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowShimdiag - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthShimdiag - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthShimdiag - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.State = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipShimdiag(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthShimdiag - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TasksResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowShimdiag - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TasksResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TasksResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tasks", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowShimdiag - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthShimdiag - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthShimdiag - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tasks = append(m.Tasks, &Task{}) - if err := m.Tasks[len(m.Tasks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipShimdiag(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthShimdiag - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipShimdiag(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowShimdiag - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowShimdiag - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowShimdiag - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthShimdiag - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupShimdiag - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthShimdiag - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthShimdiag = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowShimdiag = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupShimdiag = fmt.Errorf("proto: unexpected end of group") -) diff --git a/shimdiag/shimdiag_ttrpc.pb.go b/shimdiag/shimdiag_ttrpc.pb.go new file mode 100644 index 0000000000..d70a3e439e --- /dev/null +++ b/shimdiag/shimdiag_ttrpc.pb.go @@ -0,0 +1,108 @@ +// Code generated by protoc-gen-go-ttrpc. DO NOT EDIT. +// source: github.com/Microsoft/hcsshim/internal/shimdiag/shimdiag.proto +package shimdiag + +import ( + context "context" + ttrpc "github.com/containerd/ttrpc" +) + +type ShimDiagService interface { + DiagExecInHost(context.Context, *ExecProcessRequest) (*ExecProcessResponse, error) + DiagStacks(context.Context, *StacksRequest) (*StacksResponse, error) + DiagTasks(context.Context, *TasksRequest) (*TasksResponse, error) + DiagShare(context.Context, *ShareRequest) (*ShareResponse, error) + DiagPid(context.Context, *PidRequest) (*PidResponse, error) +} + +func RegisterShimDiagService(srv *ttrpc.Server, svc ShimDiagService) { + srv.RegisterService("containerd.runhcs.v1.diag.ShimDiag", &ttrpc.ServiceDesc{ + Methods: map[string]ttrpc.Method{ + "DiagExecInHost": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { + var req ExecProcessRequest + if err := unmarshal(&req); err != nil { + return nil, err + } + return svc.DiagExecInHost(ctx, &req) + }, + "DiagStacks": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { + var req StacksRequest + if err := unmarshal(&req); err != nil { + return nil, err + } + return svc.DiagStacks(ctx, &req) + }, + "DiagTasks": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { + var req TasksRequest + if err := unmarshal(&req); err != nil { + return nil, err + } + return svc.DiagTasks(ctx, &req) + }, + "DiagShare": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { + var req ShareRequest + if err := unmarshal(&req); err != nil { + return nil, err + } + return svc.DiagShare(ctx, &req) + }, + "DiagPid": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { + var req PidRequest + if err := unmarshal(&req); err != nil { + return nil, err + } + return svc.DiagPid(ctx, &req) + }, + }, + }) +} + +type shimdiagClient struct { + client *ttrpc.Client +} + +func NewShimDiagClient(client *ttrpc.Client) ShimDiagService { + return &shimdiagClient{ + client: client, + } +} + +func (c *shimdiagClient) DiagExecInHost(ctx context.Context, req *ExecProcessRequest) (*ExecProcessResponse, error) { + var resp ExecProcessResponse + if err := c.client.Call(ctx, "containerd.runhcs.v1.diag.ShimDiag", "DiagExecInHost", req, &resp); err != nil { + return nil, err + } + return &resp, nil +} + +func (c *shimdiagClient) DiagStacks(ctx context.Context, req *StacksRequest) (*StacksResponse, error) { + var resp StacksResponse + if err := c.client.Call(ctx, "containerd.runhcs.v1.diag.ShimDiag", "DiagStacks", req, &resp); err != nil { + return nil, err + } + return &resp, nil +} + +func (c *shimdiagClient) DiagTasks(ctx context.Context, req *TasksRequest) (*TasksResponse, error) { + var resp TasksResponse + if err := c.client.Call(ctx, "containerd.runhcs.v1.diag.ShimDiag", "DiagTasks", req, &resp); err != nil { + return nil, err + } + return &resp, nil +} + +func (c *shimdiagClient) DiagShare(ctx context.Context, req *ShareRequest) (*ShareResponse, error) { + var resp ShareResponse + if err := c.client.Call(ctx, "containerd.runhcs.v1.diag.ShimDiag", "DiagShare", req, &resp); err != nil { + return nil, err + } + return &resp, nil +} + +func (c *shimdiagClient) DiagPid(ctx context.Context, req *PidRequest) (*PidResponse, error) { + var resp PidResponse + if err := c.client.Call(ctx, "containerd.runhcs.v1.diag.ShimDiag", "DiagPid", req, &resp); err != nil { + return nil, err + } + return &resp, nil +} diff --git a/tools/networkagent/defs.go b/tools/networkagent/defs.go index fa9627bae2..4a339b07d6 100644 --- a/tools/networkagent/defs.go +++ b/tools/networkagent/defs.go @@ -6,11 +6,15 @@ import ( "encoding/json" "os" - ncproxygrpc "github.com/Microsoft/hcsshim/pkg/ncproxy/ncproxygrpc/v1" "github.com/pkg/errors" + + ncproxygrpc "github.com/Microsoft/hcsshim/pkg/ncproxy/ncproxygrpc/v1" + nodenetsvc "github.com/Microsoft/hcsshim/pkg/ncproxy/nodenetsvc/v1" ) type service struct { + nodenetsvc.UnimplementedNodeNetworkServiceServer + conf *config client ncproxygrpc.NetworkConfigProxyClient containerToNamespace map[string]string @@ -18,6 +22,8 @@ type service struct { containerToNetwork map[string][]string } +var _ nodenetsvc.NodeNetworkServiceServer = &service{} + type hnsSettings struct { SwitchName string `json:"switch_name,omitempty"` IOVSettings *ncproxygrpc.IovEndpointPolicySetting `json:"iov_settings,omitempty"` diff --git a/tools/networkagent/main.go b/tools/networkagent/main.go index 48757e59fc..ba31fe6dc8 100644 --- a/tools/networkagent/main.go +++ b/tools/networkagent/main.go @@ -15,12 +15,14 @@ import ( "syscall" "github.com/Microsoft/go-winio/pkg/guid" + "github.com/sirupsen/logrus" + "google.golang.org/grpc" + "google.golang.org/grpc/credentials/insecure" + "github.com/Microsoft/hcsshim/hcn" "github.com/Microsoft/hcsshim/internal/log" ncproxygrpc "github.com/Microsoft/hcsshim/pkg/ncproxy/ncproxygrpc/v1" nodenetsvc "github.com/Microsoft/hcsshim/pkg/ncproxy/nodenetsvc/v1" - "github.com/sirupsen/logrus" - "google.golang.org/grpc" ) // This is a barebones example of an implementation of the network @@ -468,7 +470,7 @@ func main() { grpcClient, err := grpc.Dial( conf.GRPCAddr, - grpc.WithInsecure(), + grpc.WithTransportCredentials(insecure.NewCredentials()), ) if err != nil { log.G(ctx).WithError(err).Fatalf("failed to connect to ncproxy at %s", conf.GRPCAddr) diff --git a/uvm/computeagent.go b/uvm/computeagent.go index 44b328ad37..7516cdf6ea 100644 --- a/uvm/computeagent.go +++ b/uvm/computeagent.go @@ -8,7 +8,7 @@ import ( "github.com/Microsoft/go-winio" "github.com/containerd/ttrpc" - "github.com/containerd/typeurl" + typeurl "github.com/containerd/typeurl/v2" "github.com/pkg/errors" "github.com/sirupsen/logrus" "google.golang.org/grpc/codes" diff --git a/uvm/computeagent_test.go b/uvm/computeagent_test.go index 46c37c63aa..1bd6b4c3a4 100644 --- a/uvm/computeagent_test.go +++ b/uvm/computeagent_test.go @@ -6,13 +6,14 @@ import ( "context" "testing" + "github.com/containerd/containerd/protobuf" + typeurl "github.com/containerd/typeurl/v2" + "github.com/Microsoft/hcsshim/hcn" "github.com/Microsoft/hcsshim/internal/computeagent" hcsschema "github.com/Microsoft/hcsshim/internal/hcs/schema2" "github.com/Microsoft/hcsshim/internal/hns" "github.com/Microsoft/hcsshim/internal/protocol/guestresource" - "github.com/containerd/typeurl" - "github.com/gogo/protobuf/types" ) type testUtilityVM struct{} @@ -95,7 +96,7 @@ func TestAddNIC(t *testing.T) { for _, test := range tests { t.Run(test.name, func(_ *testing.T) { var err error - var anyEndpoint *types.Any + var anyEndpoint typeurl.Any if test.endpointName != "" { endpoint := &hcn.HostComputeEndpoint{ Name: test.endpointName, @@ -107,7 +108,7 @@ func TestAddNIC(t *testing.T) { } req := &computeagent.AddNICInternalRequest{ NicID: test.nicID, - Endpoint: anyEndpoint, + Endpoint: protobuf.FromAny(anyEndpoint), } _, err = agent.AddNIC(ctx, req) @@ -184,7 +185,7 @@ func TestModifyNIC(t *testing.T) { for _, test := range tests { t.Run(test.name, func(_ *testing.T) { var err error - var anyEndpoint *types.Any + var anyEndpoint typeurl.Any if test.endpointName != "" { endpoint := &hcn.HostComputeEndpoint{ Name: test.endpointName, @@ -196,7 +197,7 @@ func TestModifyNIC(t *testing.T) { } req := &computeagent.ModifyNICInternalRequest{ NicID: test.nicID, - Endpoint: anyEndpoint, + Endpoint: protobuf.FromAny(anyEndpoint), IovPolicySettings: test.iovSettings, } @@ -258,7 +259,7 @@ func TestDeleteNIC(t *testing.T) { for _, test := range tests { t.Run(test.name, func(_ *testing.T) { var err error - var anyEndpoint *types.Any + var anyEndpoint typeurl.Any if test.endpointName != "" { endpoint := &hcn.HostComputeEndpoint{ Name: test.endpointName, @@ -270,7 +271,7 @@ func TestDeleteNIC(t *testing.T) { } req := &computeagent.DeleteNICInternalRequest{ NicID: test.nicID, - Endpoint: anyEndpoint, + Endpoint: protobuf.FromAny(anyEndpoint), } _, err = agent.DeleteNIC(ctx, req) diff --git a/vm/remotevm/builder.go b/vm/remotevm/builder.go index 7e121b01cd..e2eb1f46fe 100644 --- a/vm/remotevm/builder.go +++ b/vm/remotevm/builder.go @@ -8,14 +8,15 @@ import ( "net" "os/exec" + "github.com/containerd/ttrpc" + "github.com/pkg/errors" + "github.com/sirupsen/logrus" + "google.golang.org/protobuf/types/known/emptypb" + "github.com/Microsoft/hcsshim/internal/jobobject" "github.com/Microsoft/hcsshim/internal/log" "github.com/Microsoft/hcsshim/internal/vm" "github.com/Microsoft/hcsshim/internal/vmservice" - "github.com/containerd/ttrpc" - ptypes "github.com/gogo/protobuf/types" - "github.com/pkg/errors" - "github.com/sirupsen/logrus" ) var _ vm.UVMBuilder = &utilityVMBuilder{} @@ -91,7 +92,7 @@ func NewUVMBuilder(ctx context.Context, id, owner, binPath, addr string, guestOS func (uvmb *utilityVMBuilder) Create(ctx context.Context) (vm.UVM, error) { // Grab what capabilities the virtstack supports up front. - capabilities, err := uvmb.client.CapabilitiesVM(ctx, &ptypes.Empty{}) + capabilities, err := uvmb.client.CapabilitiesVM(ctx, &emptypb.Empty{}) if err != nil { return nil, errors.Wrap(err, "failed to get virtstack capabilities from vmservice") } diff --git a/vm/remotevm/remotevm.go b/vm/remotevm/remotevm.go index d48ebd64b3..f02327c6c4 100644 --- a/vm/remotevm/remotevm.go +++ b/vm/remotevm/remotevm.go @@ -5,11 +5,12 @@ package remotevm import ( "context" + "github.com/pkg/errors" + "google.golang.org/protobuf/types/known/emptypb" + "github.com/Microsoft/hcsshim/internal/jobobject" "github.com/Microsoft/hcsshim/internal/vm" "github.com/Microsoft/hcsshim/internal/vmservice" - ptypes "github.com/gogo/protobuf/types" - "github.com/pkg/errors" ) var _ vm.UVM = &utilityVM{} @@ -39,21 +40,21 @@ func (uvm *utilityVM) ID() string { func (uvm *utilityVM) Start(ctx context.Context) error { // The expectation is the VM should be in a paused state after creation. - if _, err := uvm.client.ResumeVM(ctx, &ptypes.Empty{}); err != nil { + if _, err := uvm.client.ResumeVM(ctx, &emptypb.Empty{}); err != nil { return errors.Wrap(err, "failed to start remote VM") } return nil } func (uvm *utilityVM) Stop(ctx context.Context) error { - if _, err := uvm.client.TeardownVM(ctx, &ptypes.Empty{}); err != nil { + if _, err := uvm.client.TeardownVM(ctx, &emptypb.Empty{}); err != nil { return errors.Wrap(err, "failed to stop remote VM") } return nil } func (uvm *utilityVM) Wait() error { - _, err := uvm.client.WaitVM(context.Background(), &ptypes.Empty{}) + _, err := uvm.client.WaitVM(context.Background(), &emptypb.Empty{}) if err != nil { uvm.waitError = err return errors.Wrap(err, "failed to wait on remote VM") @@ -62,14 +63,14 @@ func (uvm *utilityVM) Wait() error { } func (uvm *utilityVM) Pause(ctx context.Context) error { - if _, err := uvm.client.PauseVM(ctx, &ptypes.Empty{}); err != nil { + if _, err := uvm.client.PauseVM(ctx, &emptypb.Empty{}); err != nil { return errors.Wrap(err, "failed to pause remote VM") } return nil } func (uvm *utilityVM) Resume(ctx context.Context) error { - if _, err := uvm.client.ResumeVM(ctx, &ptypes.Empty{}); err != nil { + if _, err := uvm.client.ResumeVM(ctx, &emptypb.Empty{}); err != nil { return errors.Wrap(err, "failed to resume remote VM") } return nil diff --git a/vmservice/vmservice.pb.go b/vmservice/vmservice.pb.go index da1533f7c5..f4d4350d13 100644 --- a/vmservice/vmservice.pb.go +++ b/vmservice/vmservice.pb.go @@ -1,32 +1,26 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc v4.23.2 // source: github.com/Microsoft/hcsshim/internal/vmservice/vmservice.proto package vmservice import ( - context "context" - fmt "fmt" - github_com_containerd_ttrpc "github.com/containerd/ttrpc" - proto "github.com/gogo/protobuf/proto" - github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" - types "github.com/gogo/protobuf/types" - io "io" - math "math" - math_bits "math/bits" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + emptypb "google.golang.org/protobuf/types/known/emptypb" + structpb "google.golang.org/protobuf/types/known/structpb" reflect "reflect" - strings "strings" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type ModifyType int32 @@ -36,24 +30,45 @@ const ( ModifyType_UPDATE ModifyType = 2 ) -var ModifyType_name = map[int32]string{ - 0: "ADD", - 1: "REMOVE", - 2: "UPDATE", -} +// Enum value maps for ModifyType. +var ( + ModifyType_name = map[int32]string{ + 0: "ADD", + 1: "REMOVE", + 2: "UPDATE", + } + ModifyType_value = map[string]int32{ + "ADD": 0, + "REMOVE": 1, + "UPDATE": 2, + } +) -var ModifyType_value = map[string]int32{ - "ADD": 0, - "REMOVE": 1, - "UPDATE": 2, +func (x ModifyType) Enum() *ModifyType { + p := new(ModifyType) + *p = x + return p } func (x ModifyType) String() string { - return proto.EnumName(ModifyType_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } +func (ModifyType) Descriptor() protoreflect.EnumDescriptor { + return file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_enumTypes[0].Descriptor() +} + +func (ModifyType) Type() protoreflect.EnumType { + return &file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_enumTypes[0] +} + +func (x ModifyType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ModifyType.Descriptor instead. func (ModifyType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_272f12cfdaa6c7c8, []int{0} + return file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_rawDescGZIP(), []int{0} } type DiskType int32 @@ -64,24 +79,45 @@ const ( DiskType_SCSI_DISK_TYPE_PHYSICAL DiskType = 2 ) -var DiskType_name = map[int32]string{ - 0: "SCSI_DISK_TYPE_VHD1", - 1: "SCSI_DISK_TYPE_VHDX", - 2: "SCSI_DISK_TYPE_PHYSICAL", -} +// Enum value maps for DiskType. +var ( + DiskType_name = map[int32]string{ + 0: "SCSI_DISK_TYPE_VHD1", + 1: "SCSI_DISK_TYPE_VHDX", + 2: "SCSI_DISK_TYPE_PHYSICAL", + } + DiskType_value = map[string]int32{ + "SCSI_DISK_TYPE_VHD1": 0, + "SCSI_DISK_TYPE_VHDX": 1, + "SCSI_DISK_TYPE_PHYSICAL": 2, + } +) -var DiskType_value = map[string]int32{ - "SCSI_DISK_TYPE_VHD1": 0, - "SCSI_DISK_TYPE_VHDX": 1, - "SCSI_DISK_TYPE_PHYSICAL": 2, +func (x DiskType) Enum() *DiskType { + p := new(DiskType) + *p = x + return p } func (x DiskType) String() string { - return proto.EnumName(DiskType_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (DiskType) Descriptor() protoreflect.EnumDescriptor { + return file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_enumTypes[1].Descriptor() +} + +func (DiskType) Type() protoreflect.EnumType { + return &file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_enumTypes[1] +} + +func (x DiskType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } +// Deprecated: Use DiskType.Descriptor instead. func (DiskType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_272f12cfdaa6c7c8, []int{1} + return file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_rawDescGZIP(), []int{1} } type PropertiesVMRequest_PropertiesType int32 @@ -91,22 +127,43 @@ const ( PropertiesVMRequest_Processor PropertiesVMRequest_PropertiesType = 1 ) -var PropertiesVMRequest_PropertiesType_name = map[int32]string{ - 0: "Memory", - 1: "Processor", -} +// Enum value maps for PropertiesVMRequest_PropertiesType. +var ( + PropertiesVMRequest_PropertiesType_name = map[int32]string{ + 0: "Memory", + 1: "Processor", + } + PropertiesVMRequest_PropertiesType_value = map[string]int32{ + "Memory": 0, + "Processor": 1, + } +) -var PropertiesVMRequest_PropertiesType_value = map[string]int32{ - "Memory": 0, - "Processor": 1, +func (x PropertiesVMRequest_PropertiesType) Enum() *PropertiesVMRequest_PropertiesType { + p := new(PropertiesVMRequest_PropertiesType) + *p = x + return p } func (x PropertiesVMRequest_PropertiesType) String() string { - return proto.EnumName(PropertiesVMRequest_PropertiesType_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (PropertiesVMRequest_PropertiesType) Descriptor() protoreflect.EnumDescriptor { + return file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_enumTypes[2].Descriptor() } +func (PropertiesVMRequest_PropertiesType) Type() protoreflect.EnumType { + return &file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_enumTypes[2] +} + +func (x PropertiesVMRequest_PropertiesType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use PropertiesVMRequest_PropertiesType.Descriptor instead. func (PropertiesVMRequest_PropertiesType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_272f12cfdaa6c7c8, []int{13, 0} + return file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_rawDescGZIP(), []int{13, 0} } type CapabilitiesVMResponse_Resource int32 @@ -121,32 +178,53 @@ const ( CapabilitiesVMResponse_Processor CapabilitiesVMResponse_Resource = 6 ) -var CapabilitiesVMResponse_Resource_name = map[int32]string{ - 0: "Vpmem", - 1: "Scsi", - 2: "Vpci", - 3: "Plan9", - 4: "VMNic", - 5: "Memory", - 6: "Processor", -} +// Enum value maps for CapabilitiesVMResponse_Resource. +var ( + CapabilitiesVMResponse_Resource_name = map[int32]string{ + 0: "Vpmem", + 1: "Scsi", + 2: "Vpci", + 3: "Plan9", + 4: "VMNic", + 5: "Memory", + 6: "Processor", + } + CapabilitiesVMResponse_Resource_value = map[string]int32{ + "Vpmem": 0, + "Scsi": 1, + "Vpci": 2, + "Plan9": 3, + "VMNic": 4, + "Memory": 5, + "Processor": 6, + } +) -var CapabilitiesVMResponse_Resource_value = map[string]int32{ - "Vpmem": 0, - "Scsi": 1, - "Vpci": 2, - "Plan9": 3, - "VMNic": 4, - "Memory": 5, - "Processor": 6, +func (x CapabilitiesVMResponse_Resource) Enum() *CapabilitiesVMResponse_Resource { + p := new(CapabilitiesVMResponse_Resource) + *p = x + return p } func (x CapabilitiesVMResponse_Resource) String() string { - return proto.EnumName(CapabilitiesVMResponse_Resource_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } +func (CapabilitiesVMResponse_Resource) Descriptor() protoreflect.EnumDescriptor { + return file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_enumTypes[3].Descriptor() +} + +func (CapabilitiesVMResponse_Resource) Type() protoreflect.EnumType { + return &file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_enumTypes[3] +} + +func (x CapabilitiesVMResponse_Resource) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use CapabilitiesVMResponse_Resource.Descriptor instead. func (CapabilitiesVMResponse_Resource) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_272f12cfdaa6c7c8, []int{15, 0} + return file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_rawDescGZIP(), []int{15, 0} } type CapabilitiesVMResponse_SupportedGuestOS int32 @@ -156,302 +234,496 @@ const ( CapabilitiesVMResponse_Linux CapabilitiesVMResponse_SupportedGuestOS = 1 ) -var CapabilitiesVMResponse_SupportedGuestOS_name = map[int32]string{ - 0: "Windows", - 1: "Linux", -} +// Enum value maps for CapabilitiesVMResponse_SupportedGuestOS. +var ( + CapabilitiesVMResponse_SupportedGuestOS_name = map[int32]string{ + 0: "Windows", + 1: "Linux", + } + CapabilitiesVMResponse_SupportedGuestOS_value = map[string]int32{ + "Windows": 0, + "Linux": 1, + } +) -var CapabilitiesVMResponse_SupportedGuestOS_value = map[string]int32{ - "Windows": 0, - "Linux": 1, +func (x CapabilitiesVMResponse_SupportedGuestOS) Enum() *CapabilitiesVMResponse_SupportedGuestOS { + p := new(CapabilitiesVMResponse_SupportedGuestOS) + *p = x + return p } func (x CapabilitiesVMResponse_SupportedGuestOS) String() string { - return proto.EnumName(CapabilitiesVMResponse_SupportedGuestOS_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (CapabilitiesVMResponse_SupportedGuestOS) Descriptor() protoreflect.EnumDescriptor { + return file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_enumTypes[4].Descriptor() +} + +func (CapabilitiesVMResponse_SupportedGuestOS) Type() protoreflect.EnumType { + return &file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_enumTypes[4] +} + +func (x CapabilitiesVMResponse_SupportedGuestOS) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } +// Deprecated: Use CapabilitiesVMResponse_SupportedGuestOS.Descriptor instead. func (CapabilitiesVMResponse_SupportedGuestOS) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_272f12cfdaa6c7c8, []int{15, 1} + return file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_rawDescGZIP(), []int{15, 1} } type DirectBoot struct { - KernelPath string `protobuf:"bytes,1,opt,name=kernel_path,json=kernelPath,proto3" json:"kernel_path,omitempty"` - InitrdPath string `protobuf:"bytes,2,opt,name=initrd_path,json=initrdPath,proto3" json:"initrd_path,omitempty"` - KernelCmdline string `protobuf:"bytes,3,opt,name=kernel_cmdline,json=kernelCmdline,proto3" json:"kernel_cmdline,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + KernelPath string `protobuf:"bytes,1,opt,name=kernel_path,json=kernelPath,proto3" json:"kernel_path,omitempty"` + InitrdPath string `protobuf:"bytes,2,opt,name=initrd_path,json=initrdPath,proto3" json:"initrd_path,omitempty"` + KernelCmdline string `protobuf:"bytes,3,opt,name=kernel_cmdline,json=kernelCmdline,proto3" json:"kernel_cmdline,omitempty"` +} + +func (x *DirectBoot) Reset() { + *x = DirectBoot{} + if protoimpl.UnsafeEnabled { + mi := &file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DirectBoot) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DirectBoot) Reset() { *m = DirectBoot{} } func (*DirectBoot) ProtoMessage() {} -func (*DirectBoot) Descriptor() ([]byte, []int) { - return fileDescriptor_272f12cfdaa6c7c8, []int{0} -} -func (m *DirectBoot) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DirectBoot) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DirectBoot.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *DirectBoot) ProtoReflect() protoreflect.Message { + mi := &file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *DirectBoot) XXX_Merge(src proto.Message) { - xxx_messageInfo_DirectBoot.Merge(m, src) + +// Deprecated: Use DirectBoot.ProtoReflect.Descriptor instead. +func (*DirectBoot) Descriptor() ([]byte, []int) { + return file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_rawDescGZIP(), []int{0} } -func (m *DirectBoot) XXX_Size() int { - return m.Size() + +func (x *DirectBoot) GetKernelPath() string { + if x != nil { + return x.KernelPath + } + return "" } -func (m *DirectBoot) XXX_DiscardUnknown() { - xxx_messageInfo_DirectBoot.DiscardUnknown(m) + +func (x *DirectBoot) GetInitrdPath() string { + if x != nil { + return x.InitrdPath + } + return "" } -var xxx_messageInfo_DirectBoot proto.InternalMessageInfo +func (x *DirectBoot) GetKernelCmdline() string { + if x != nil { + return x.KernelCmdline + } + return "" +} type UEFI struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + FirmwarePath string `protobuf:"bytes,1,opt,name=firmware_path,json=firmwarePath,proto3" json:"firmware_path,omitempty"` DevicePath string `protobuf:"bytes,2,opt,name=device_path,json=devicePath,proto3" json:"device_path,omitempty"` // Optional data to include for uefi boot. For Linux this could be used as the kernel // commandline. - OptionalData string `protobuf:"bytes,3,opt,name=optional_data,json=optionalData,proto3" json:"optional_data,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + OptionalData string `protobuf:"bytes,3,opt,name=optional_data,json=optionalData,proto3" json:"optional_data,omitempty"` +} + +func (x *UEFI) Reset() { + *x = UEFI{} + if protoimpl.UnsafeEnabled { + mi := &file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UEFI) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *UEFI) Reset() { *m = UEFI{} } func (*UEFI) ProtoMessage() {} -func (*UEFI) Descriptor() ([]byte, []int) { - return fileDescriptor_272f12cfdaa6c7c8, []int{1} -} -func (m *UEFI) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *UEFI) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_UEFI.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *UEFI) ProtoReflect() protoreflect.Message { + mi := &file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *UEFI) XXX_Merge(src proto.Message) { - xxx_messageInfo_UEFI.Merge(m, src) + +// Deprecated: Use UEFI.ProtoReflect.Descriptor instead. +func (*UEFI) Descriptor() ([]byte, []int) { + return file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_rawDescGZIP(), []int{1} } -func (m *UEFI) XXX_Size() int { - return m.Size() + +func (x *UEFI) GetFirmwarePath() string { + if x != nil { + return x.FirmwarePath + } + return "" } -func (m *UEFI) XXX_DiscardUnknown() { - xxx_messageInfo_UEFI.DiscardUnknown(m) + +func (x *UEFI) GetDevicePath() string { + if x != nil { + return x.DevicePath + } + return "" } -var xxx_messageInfo_UEFI proto.InternalMessageInfo +func (x *UEFI) GetOptionalData() string { + if x != nil { + return x.OptionalData + } + return "" +} type MemoryConfig struct { - MemoryMb uint64 `protobuf:"varint,1,opt,name=memory_mb,json=memoryMb,proto3" json:"memory_mb,omitempty"` - AllowOvercommit bool `protobuf:"varint,2,opt,name=allow_overcommit,json=allowOvercommit,proto3" json:"allow_overcommit,omitempty"` - DeferredCommit bool `protobuf:"varint,3,opt,name=deferred_commit,json=deferredCommit,proto3" json:"deferred_commit,omitempty"` - HotHint bool `protobuf:"varint,4,opt,name=hot_hint,json=hotHint,proto3" json:"hot_hint,omitempty"` - ColdHint bool `protobuf:"varint,5,opt,name=cold_hint,json=coldHint,proto3" json:"cold_hint,omitempty"` - ColdDiscardHint bool `protobuf:"varint,6,opt,name=cold_discard_hint,json=coldDiscardHint,proto3" json:"cold_discard_hint,omitempty"` - LowMmioGapInMb uint64 `protobuf:"varint,7,opt,name=low_mmio_gap_in_mb,json=lowMmioGapInMb,proto3" json:"low_mmio_gap_in_mb,omitempty"` - HighMmioBaseInMb uint64 `protobuf:"varint,8,opt,name=high_mmio_base_in_mb,json=highMmioBaseInMb,proto3" json:"high_mmio_base_in_mb,omitempty"` - HighMmioGapInMb uint64 `protobuf:"varint,9,opt,name=high_mmio_gap_in_mb,json=highMmioGapInMb,proto3" json:"high_mmio_gap_in_mb,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MemoryConfig) Reset() { *m = MemoryConfig{} } + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + MemoryMb uint64 `protobuf:"varint,1,opt,name=memory_mb,json=memoryMb,proto3" json:"memory_mb,omitempty"` + AllowOvercommit bool `protobuf:"varint,2,opt,name=allow_overcommit,json=allowOvercommit,proto3" json:"allow_overcommit,omitempty"` + DeferredCommit bool `protobuf:"varint,3,opt,name=deferred_commit,json=deferredCommit,proto3" json:"deferred_commit,omitempty"` + HotHint bool `protobuf:"varint,4,opt,name=hot_hint,json=hotHint,proto3" json:"hot_hint,omitempty"` + ColdHint bool `protobuf:"varint,5,opt,name=cold_hint,json=coldHint,proto3" json:"cold_hint,omitempty"` + ColdDiscardHint bool `protobuf:"varint,6,opt,name=cold_discard_hint,json=coldDiscardHint,proto3" json:"cold_discard_hint,omitempty"` + LowMmioGapInMb uint64 `protobuf:"varint,7,opt,name=low_mmio_gap_in_mb,json=lowMmioGapInMb,proto3" json:"low_mmio_gap_in_mb,omitempty"` + HighMmioBaseInMb uint64 `protobuf:"varint,8,opt,name=high_mmio_base_in_mb,json=highMmioBaseInMb,proto3" json:"high_mmio_base_in_mb,omitempty"` + HighMmioGapInMb uint64 `protobuf:"varint,9,opt,name=high_mmio_gap_in_mb,json=highMmioGapInMb,proto3" json:"high_mmio_gap_in_mb,omitempty"` +} + +func (x *MemoryConfig) Reset() { + *x = MemoryConfig{} + if protoimpl.UnsafeEnabled { + mi := &file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MemoryConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + func (*MemoryConfig) ProtoMessage() {} -func (*MemoryConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_272f12cfdaa6c7c8, []int{2} -} -func (m *MemoryConfig) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MemoryConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MemoryConfig.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *MemoryConfig) ProtoReflect() protoreflect.Message { + mi := &file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use MemoryConfig.ProtoReflect.Descriptor instead. +func (*MemoryConfig) Descriptor() ([]byte, []int) { + return file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_rawDescGZIP(), []int{2} +} + +func (x *MemoryConfig) GetMemoryMb() uint64 { + if x != nil { + return x.MemoryMb + } + return 0 +} + +func (x *MemoryConfig) GetAllowOvercommit() bool { + if x != nil { + return x.AllowOvercommit + } + return false +} + +func (x *MemoryConfig) GetDeferredCommit() bool { + if x != nil { + return x.DeferredCommit + } + return false +} + +func (x *MemoryConfig) GetHotHint() bool { + if x != nil { + return x.HotHint + } + return false +} + +func (x *MemoryConfig) GetColdHint() bool { + if x != nil { + return x.ColdHint } + return false } -func (m *MemoryConfig) XXX_Merge(src proto.Message) { - xxx_messageInfo_MemoryConfig.Merge(m, src) + +func (x *MemoryConfig) GetColdDiscardHint() bool { + if x != nil { + return x.ColdDiscardHint + } + return false } -func (m *MemoryConfig) XXX_Size() int { - return m.Size() + +func (x *MemoryConfig) GetLowMmioGapInMb() uint64 { + if x != nil { + return x.LowMmioGapInMb + } + return 0 } -func (m *MemoryConfig) XXX_DiscardUnknown() { - xxx_messageInfo_MemoryConfig.DiscardUnknown(m) + +func (x *MemoryConfig) GetHighMmioBaseInMb() uint64 { + if x != nil { + return x.HighMmioBaseInMb + } + return 0 } -var xxx_messageInfo_MemoryConfig proto.InternalMessageInfo +func (x *MemoryConfig) GetHighMmioGapInMb() uint64 { + if x != nil { + return x.HighMmioGapInMb + } + return 0 +} type ProcessorConfig struct { - ProcessorCount uint32 `protobuf:"varint,1,opt,name=processor_count,json=processorCount,proto3" json:"processor_count,omitempty"` - ProcessorWeight uint32 `protobuf:"varint,2,opt,name=processor_weight,json=processorWeight,proto3" json:"processor_weight,omitempty"` - ProcessorLimit uint32 `protobuf:"varint,3,opt,name=processor_limit,json=processorLimit,proto3" json:"processor_limit,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ProcessorCount uint32 `protobuf:"varint,1,opt,name=processor_count,json=processorCount,proto3" json:"processor_count,omitempty"` + ProcessorWeight uint32 `protobuf:"varint,2,opt,name=processor_weight,json=processorWeight,proto3" json:"processor_weight,omitempty"` + ProcessorLimit uint32 `protobuf:"varint,3,opt,name=processor_limit,json=processorLimit,proto3" json:"processor_limit,omitempty"` +} + +func (x *ProcessorConfig) Reset() { + *x = ProcessorConfig{} + if protoimpl.UnsafeEnabled { + mi := &file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ProcessorConfig) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ProcessorConfig) Reset() { *m = ProcessorConfig{} } func (*ProcessorConfig) ProtoMessage() {} -func (*ProcessorConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_272f12cfdaa6c7c8, []int{3} -} -func (m *ProcessorConfig) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ProcessorConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ProcessorConfig.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *ProcessorConfig) ProtoReflect() protoreflect.Message { + mi := &file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *ProcessorConfig) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProcessorConfig.Merge(m, src) + +// Deprecated: Use ProcessorConfig.ProtoReflect.Descriptor instead. +func (*ProcessorConfig) Descriptor() ([]byte, []int) { + return file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_rawDescGZIP(), []int{3} } -func (m *ProcessorConfig) XXX_Size() int { - return m.Size() + +func (x *ProcessorConfig) GetProcessorCount() uint32 { + if x != nil { + return x.ProcessorCount + } + return 0 } -func (m *ProcessorConfig) XXX_DiscardUnknown() { - xxx_messageInfo_ProcessorConfig.DiscardUnknown(m) + +func (x *ProcessorConfig) GetProcessorWeight() uint32 { + if x != nil { + return x.ProcessorWeight + } + return 0 } -var xxx_messageInfo_ProcessorConfig proto.InternalMessageInfo +func (x *ProcessorConfig) GetProcessorLimit() uint32 { + if x != nil { + return x.ProcessorLimit + } + return 0 +} type DevicesConfig struct { - ScsiDisks []*SCSIDisk `protobuf:"bytes,1,rep,name=scsi_disks,json=scsiDisks,proto3" json:"scsi_disks,omitempty"` - VpmemDisks []*VPMEMDisk `protobuf:"bytes,2,rep,name=vpmem_disks,json=vpmemDisks,proto3" json:"vpmem_disks,omitempty"` - NicConfig []*NICConfig `protobuf:"bytes,3,rep,name=nic_config,json=nicConfig,proto3" json:"nic_config,omitempty"` - WindowsDevice []*WindowsPCIDevice `protobuf:"bytes,4,rep,name=windows_device,json=windowsDevice,proto3" json:"windows_device,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ScsiDisks []*SCSIDisk `protobuf:"bytes,1,rep,name=scsi_disks,json=scsiDisks,proto3" json:"scsi_disks,omitempty"` + VpmemDisks []*VPMEMDisk `protobuf:"bytes,2,rep,name=vpmem_disks,json=vpmemDisks,proto3" json:"vpmem_disks,omitempty"` + NicConfig []*NICConfig `protobuf:"bytes,3,rep,name=nic_config,json=nicConfig,proto3" json:"nic_config,omitempty"` + WindowsDevice []*WindowsPCIDevice `protobuf:"bytes,4,rep,name=windows_device,json=windowsDevice,proto3" json:"windows_device,omitempty"` +} + +func (x *DevicesConfig) Reset() { + *x = DevicesConfig{} + if protoimpl.UnsafeEnabled { + mi := &file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DevicesConfig) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DevicesConfig) Reset() { *m = DevicesConfig{} } func (*DevicesConfig) ProtoMessage() {} -func (*DevicesConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_272f12cfdaa6c7c8, []int{4} -} -func (m *DevicesConfig) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DevicesConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DevicesConfig.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *DevicesConfig) ProtoReflect() protoreflect.Message { + mi := &file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) +} + +// Deprecated: Use DevicesConfig.ProtoReflect.Descriptor instead. +func (*DevicesConfig) Descriptor() ([]byte, []int) { + return file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_rawDescGZIP(), []int{4} } -func (m *DevicesConfig) XXX_Merge(src proto.Message) { - xxx_messageInfo_DevicesConfig.Merge(m, src) + +func (x *DevicesConfig) GetScsiDisks() []*SCSIDisk { + if x != nil { + return x.ScsiDisks + } + return nil } -func (m *DevicesConfig) XXX_Size() int { - return m.Size() + +func (x *DevicesConfig) GetVpmemDisks() []*VPMEMDisk { + if x != nil { + return x.VpmemDisks + } + return nil } -func (m *DevicesConfig) XXX_DiscardUnknown() { - xxx_messageInfo_DevicesConfig.DiscardUnknown(m) + +func (x *DevicesConfig) GetNicConfig() []*NICConfig { + if x != nil { + return x.NicConfig + } + return nil } -var xxx_messageInfo_DevicesConfig proto.InternalMessageInfo +func (x *DevicesConfig) GetWindowsDevice() []*WindowsPCIDevice { + if x != nil { + return x.WindowsDevice + } + return nil +} type VMConfig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + MemoryConfig *MemoryConfig `protobuf:"bytes,1,opt,name=memory_config,json=memoryConfig,proto3" json:"memory_config,omitempty"` ProcessorConfig *ProcessorConfig `protobuf:"bytes,2,opt,name=processor_config,json=processorConfig,proto3" json:"processor_config,omitempty"` DevicesConfig *DevicesConfig `protobuf:"bytes,3,opt,name=devices_config,json=devicesConfig,proto3" json:"devices_config,omitempty"` SerialConfig *SerialConfig `protobuf:"bytes,4,opt,name=serial_config,json=serialConfig,proto3" json:"serial_config,omitempty"` - // Types that are valid to be assigned to BootConfig: + // Types that are assignable to BootConfig: + // // *VMConfig_DirectBoot // *VMConfig_Uefi BootConfig isVMConfig_BootConfig `protobuf_oneof:"BootConfig"` WindowsOptions *WindowsOptions `protobuf:"bytes,7,opt,name=windows_options,json=windowsOptions,proto3" json:"windows_options,omitempty"` // Optional k:v extra data. Up to the virtstack for how to interpret this. - ExtraData map[string]string `protobuf:"bytes,8,rep,name=extra_data,json=extraData,proto3" json:"extra_data,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ExtraData map[string]string `protobuf:"bytes,8,rep,name=extra_data,json=extraData,proto3" json:"extra_data,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } -func (m *VMConfig) Reset() { *m = VMConfig{} } -func (*VMConfig) ProtoMessage() {} -func (*VMConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_272f12cfdaa6c7c8, []int{5} -} -func (m *VMConfig) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *VMConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_VMConfig.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *VMConfig) Reset() { + *x = VMConfig{} + if protoimpl.UnsafeEnabled { + mi := &file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *VMConfig) XXX_Merge(src proto.Message) { - xxx_messageInfo_VMConfig.Merge(m, src) -} -func (m *VMConfig) XXX_Size() int { - return m.Size() + +func (x *VMConfig) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *VMConfig) XXX_DiscardUnknown() { - xxx_messageInfo_VMConfig.DiscardUnknown(m) + +func (*VMConfig) ProtoMessage() {} + +func (x *VMConfig) ProtoReflect() protoreflect.Message { + mi := &file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_VMConfig proto.InternalMessageInfo +// Deprecated: Use VMConfig.ProtoReflect.Descriptor instead. +func (*VMConfig) Descriptor() ([]byte, []int) { + return file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_rawDescGZIP(), []int{5} +} -type isVMConfig_BootConfig interface { - isVMConfig_BootConfig() - MarshalTo([]byte) (int, error) - Size() int +func (x *VMConfig) GetMemoryConfig() *MemoryConfig { + if x != nil { + return x.MemoryConfig + } + return nil } -type VMConfig_DirectBoot struct { - DirectBoot *DirectBoot `protobuf:"bytes,5,opt,name=direct_boot,json=directBoot,proto3,oneof" json:"direct_boot,omitempty"` +func (x *VMConfig) GetProcessorConfig() *ProcessorConfig { + if x != nil { + return x.ProcessorConfig + } + return nil } -type VMConfig_Uefi struct { - Uefi *UEFI `protobuf:"bytes,6,opt,name=uefi,proto3,oneof" json:"uefi,omitempty"` + +func (x *VMConfig) GetDevicesConfig() *DevicesConfig { + if x != nil { + return x.DevicesConfig + } + return nil } -func (*VMConfig_DirectBoot) isVMConfig_BootConfig() {} -func (*VMConfig_Uefi) isVMConfig_BootConfig() {} +func (x *VMConfig) GetSerialConfig() *SerialConfig { + if x != nil { + return x.SerialConfig + } + return nil +} func (m *VMConfig) GetBootConfig() isVMConfig_BootConfig { if m != nil { @@ -460,654 +732,743 @@ func (m *VMConfig) GetBootConfig() isVMConfig_BootConfig { return nil } -func (m *VMConfig) GetDirectBoot() *DirectBoot { - if x, ok := m.GetBootConfig().(*VMConfig_DirectBoot); ok { +func (x *VMConfig) GetDirectBoot() *DirectBoot { + if x, ok := x.GetBootConfig().(*VMConfig_DirectBoot); ok { return x.DirectBoot } return nil } -func (m *VMConfig) GetUefi() *UEFI { - if x, ok := m.GetBootConfig().(*VMConfig_Uefi); ok { +func (x *VMConfig) GetUefi() *UEFI { + if x, ok := x.GetBootConfig().(*VMConfig_Uefi); ok { return x.Uefi } return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*VMConfig) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*VMConfig_DirectBoot)(nil), - (*VMConfig_Uefi)(nil), +func (x *VMConfig) GetWindowsOptions() *WindowsOptions { + if x != nil { + return x.WindowsOptions } + return nil } -// WindowsOptions contains virtual machine configurations that are only present on a Windows host. -type WindowsOptions struct { - CpuGroupID uint64 `protobuf:"varint,1,opt,name=cpu_group_id,json=cpuGroupId,proto3" json:"cpu_group_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *VMConfig) GetExtraData() map[string]string { + if x != nil { + return x.ExtraData + } + return nil } -func (m *WindowsOptions) Reset() { *m = WindowsOptions{} } -func (*WindowsOptions) ProtoMessage() {} -func (*WindowsOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_272f12cfdaa6c7c8, []int{6} -} -func (m *WindowsOptions) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WindowsOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WindowsOptions.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } +type isVMConfig_BootConfig interface { + isVMConfig_BootConfig() } -func (m *WindowsOptions) XXX_Merge(src proto.Message) { - xxx_messageInfo_WindowsOptions.Merge(m, src) + +type VMConfig_DirectBoot struct { + DirectBoot *DirectBoot `protobuf:"bytes,5,opt,name=direct_boot,json=directBoot,proto3,oneof"` } -func (m *WindowsOptions) XXX_Size() int { - return m.Size() + +type VMConfig_Uefi struct { + Uefi *UEFI `protobuf:"bytes,6,opt,name=uefi,proto3,oneof"` } -func (m *WindowsOptions) XXX_DiscardUnknown() { - xxx_messageInfo_WindowsOptions.DiscardUnknown(m) + +func (*VMConfig_DirectBoot) isVMConfig_BootConfig() {} + +func (*VMConfig_Uefi) isVMConfig_BootConfig() {} + +// WindowsOptions contains virtual machine configurations that are only present on a Windows host. +type WindowsOptions struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + CpuGroupID uint64 `protobuf:"varint,1,opt,name=cpu_group_id,json=cpuGroupId,proto3" json:"cpu_group_id,omitempty"` } -var xxx_messageInfo_WindowsOptions proto.InternalMessageInfo +func (x *WindowsOptions) Reset() { + *x = WindowsOptions{} + if protoimpl.UnsafeEnabled { + mi := &file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} -type SerialConfig struct { - Ports []*SerialConfig_Config `protobuf:"bytes,3,rep,name=ports,proto3" json:"ports,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *WindowsOptions) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SerialConfig) Reset() { *m = SerialConfig{} } -func (*SerialConfig) ProtoMessage() {} -func (*SerialConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_272f12cfdaa6c7c8, []int{7} -} -func (m *SerialConfig) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SerialConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SerialConfig.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (*WindowsOptions) ProtoMessage() {} + +func (x *WindowsOptions) ProtoReflect() protoreflect.Message { + mi := &file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *SerialConfig) XXX_Merge(src proto.Message) { - xxx_messageInfo_SerialConfig.Merge(m, src) -} -func (m *SerialConfig) XXX_Size() int { - return m.Size() + +// Deprecated: Use WindowsOptions.ProtoReflect.Descriptor instead. +func (*WindowsOptions) Descriptor() ([]byte, []int) { + return file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_rawDescGZIP(), []int{6} } -func (m *SerialConfig) XXX_DiscardUnknown() { - xxx_messageInfo_SerialConfig.DiscardUnknown(m) + +func (x *WindowsOptions) GetCpuGroupID() uint64 { + if x != nil { + return x.CpuGroupID + } + return 0 } -var xxx_messageInfo_SerialConfig proto.InternalMessageInfo +type SerialConfig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type SerialConfig_Config struct { - Port uint32 `protobuf:"varint,1,opt,name=port,proto3" json:"port,omitempty"` - // Unix domain socket to relay serial console output to. - SocketPath string `protobuf:"bytes,2,opt,name=socket_path,json=socketPath,proto3" json:"socket_path,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Ports []*SerialConfig_Config `protobuf:"bytes,3,rep,name=ports,proto3" json:"ports,omitempty"` } -func (m *SerialConfig_Config) Reset() { *m = SerialConfig_Config{} } -func (*SerialConfig_Config) ProtoMessage() {} -func (*SerialConfig_Config) Descriptor() ([]byte, []int) { - return fileDescriptor_272f12cfdaa6c7c8, []int{7, 0} -} -func (m *SerialConfig_Config) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SerialConfig_Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SerialConfig_Config.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *SerialConfig) Reset() { + *x = SerialConfig{} + if protoimpl.UnsafeEnabled { + mi := &file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *SerialConfig_Config) XXX_Merge(src proto.Message) { - xxx_messageInfo_SerialConfig_Config.Merge(m, src) + +func (x *SerialConfig) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SerialConfig_Config) XXX_Size() int { - return m.Size() + +func (*SerialConfig) ProtoMessage() {} + +func (x *SerialConfig) ProtoReflect() protoreflect.Message { + mi := &file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *SerialConfig_Config) XXX_DiscardUnknown() { - xxx_messageInfo_SerialConfig_Config.DiscardUnknown(m) + +// Deprecated: Use SerialConfig.ProtoReflect.Descriptor instead. +func (*SerialConfig) Descriptor() ([]byte, []int) { + return file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_rawDescGZIP(), []int{7} } -var xxx_messageInfo_SerialConfig_Config proto.InternalMessageInfo +func (x *SerialConfig) GetPorts() []*SerialConfig_Config { + if x != nil { + return x.Ports + } + return nil +} type CreateVMRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Config *VMConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` // Optional ID to be used by the VM service in log messages. It's up to the // virtstack to make use of this field. Useful for debugging to be able to // correlate events for a given vm that the client launched. - LogID string `protobuf:"bytes,2,opt,name=log_id,json=logId,proto3" json:"log_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + LogID string `protobuf:"bytes,2,opt,name=log_id,json=logId,proto3" json:"log_id,omitempty"` } -func (m *CreateVMRequest) Reset() { *m = CreateVMRequest{} } -func (*CreateVMRequest) ProtoMessage() {} -func (*CreateVMRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_272f12cfdaa6c7c8, []int{8} -} -func (m *CreateVMRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CreateVMRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CreateVMRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *CreateVMRequest) Reset() { + *x = CreateVMRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *CreateVMRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateVMRequest.Merge(m, src) -} -func (m *CreateVMRequest) XXX_Size() int { - return m.Size() -} -func (m *CreateVMRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CreateVMRequest.DiscardUnknown(m) + +func (x *CreateVMRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_CreateVMRequest proto.InternalMessageInfo +func (*CreateVMRequest) ProtoMessage() {} + +func (x *CreateVMRequest) ProtoReflect() protoreflect.Message { + mi := &file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateVMRequest.ProtoReflect.Descriptor instead. +func (*CreateVMRequest) Descriptor() ([]byte, []int) { + return file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_rawDescGZIP(), []int{8} +} + +func (x *CreateVMRequest) GetConfig() *VMConfig { + if x != nil { + return x.Config + } + return nil +} + +func (x *CreateVMRequest) GetLogID() string { + if x != nil { + return x.LogID + } + return "" +} type InspectVMRequest struct { - Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` - RecursionLimit uint32 `protobuf:"varint,2,opt,name=recursion_limit,json=recursionLimit,proto3" json:"recursion_limit,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` + RecursionLimit uint32 `protobuf:"varint,2,opt,name=recursion_limit,json=recursionLimit,proto3" json:"recursion_limit,omitempty"` +} + +func (x *InspectVMRequest) Reset() { + *x = InspectVMRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *InspectVMRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *InspectVMRequest) Reset() { *m = InspectVMRequest{} } func (*InspectVMRequest) ProtoMessage() {} -func (*InspectVMRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_272f12cfdaa6c7c8, []int{9} -} -func (m *InspectVMRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *InspectVMRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_InspectVMRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *InspectVMRequest) ProtoReflect() protoreflect.Message { + mi := &file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *InspectVMRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_InspectVMRequest.Merge(m, src) -} -func (m *InspectVMRequest) XXX_Size() int { - return m.Size() + +// Deprecated: Use InspectVMRequest.ProtoReflect.Descriptor instead. +func (*InspectVMRequest) Descriptor() ([]byte, []int) { + return file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_rawDescGZIP(), []int{9} } -func (m *InspectVMRequest) XXX_DiscardUnknown() { - xxx_messageInfo_InspectVMRequest.DiscardUnknown(m) + +func (x *InspectVMRequest) GetQuery() string { + if x != nil { + return x.Query + } + return "" } -var xxx_messageInfo_InspectVMRequest proto.InternalMessageInfo +func (x *InspectVMRequest) GetRecursionLimit() uint32 { + if x != nil { + return x.RecursionLimit + } + return 0 +} type InspectVMResponse struct { - Result *types.Value `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Result *structpb.Value `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` +} + +func (x *InspectVMResponse) Reset() { + *x = InspectVMResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *InspectVMResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *InspectVMResponse) Reset() { *m = InspectVMResponse{} } func (*InspectVMResponse) ProtoMessage() {} -func (*InspectVMResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_272f12cfdaa6c7c8, []int{10} -} -func (m *InspectVMResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *InspectVMResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_InspectVMResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *InspectVMResponse) ProtoReflect() protoreflect.Message { + mi := &file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *InspectVMResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_InspectVMResponse.Merge(m, src) + +// Deprecated: Use InspectVMResponse.ProtoReflect.Descriptor instead. +func (*InspectVMResponse) Descriptor() ([]byte, []int) { + return file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_rawDescGZIP(), []int{10} } -func (m *InspectVMResponse) XXX_Size() int { - return m.Size() + +func (x *InspectVMResponse) GetResult() *structpb.Value { + if x != nil { + return x.Result + } + return nil } -func (m *InspectVMResponse) XXX_DiscardUnknown() { - xxx_messageInfo_InspectVMResponse.DiscardUnknown(m) + +type MemoryStats struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + WorkingSetBytes uint64 `protobuf:"varint,1,opt,name=working_set_bytes,json=workingSetBytes,proto3" json:"working_set_bytes,omitempty"` + AvailableMemory uint64 `protobuf:"varint,2,opt,name=available_memory,json=availableMemory,proto3" json:"available_memory,omitempty"` + ReservedMemory uint64 `protobuf:"varint,3,opt,name=reserved_memory,json=reservedMemory,proto3" json:"reserved_memory,omitempty"` + AssignedMemory uint64 `protobuf:"varint,4,opt,name=assigned_memory,json=assignedMemory,proto3" json:"assigned_memory,omitempty"` } -var xxx_messageInfo_InspectVMResponse proto.InternalMessageInfo +func (x *MemoryStats) Reset() { + *x = MemoryStats{} + if protoimpl.UnsafeEnabled { + mi := &file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} -type MemoryStats struct { - WorkingSetBytes uint64 `protobuf:"varint,1,opt,name=working_set_bytes,json=workingSetBytes,proto3" json:"working_set_bytes,omitempty"` - AvailableMemory uint64 `protobuf:"varint,2,opt,name=available_memory,json=availableMemory,proto3" json:"available_memory,omitempty"` - ReservedMemory uint64 `protobuf:"varint,3,opt,name=reserved_memory,json=reservedMemory,proto3" json:"reserved_memory,omitempty"` - AssignedMemory uint64 `protobuf:"varint,4,opt,name=assigned_memory,json=assignedMemory,proto3" json:"assigned_memory,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *MemoryStats) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *MemoryStats) Reset() { *m = MemoryStats{} } func (*MemoryStats) ProtoMessage() {} -func (*MemoryStats) Descriptor() ([]byte, []int) { - return fileDescriptor_272f12cfdaa6c7c8, []int{11} -} -func (m *MemoryStats) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MemoryStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MemoryStats.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *MemoryStats) ProtoReflect() protoreflect.Message { + mi := &file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) +} + +// Deprecated: Use MemoryStats.ProtoReflect.Descriptor instead. +func (*MemoryStats) Descriptor() ([]byte, []int) { + return file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_rawDescGZIP(), []int{11} } -func (m *MemoryStats) XXX_Merge(src proto.Message) { - xxx_messageInfo_MemoryStats.Merge(m, src) + +func (x *MemoryStats) GetWorkingSetBytes() uint64 { + if x != nil { + return x.WorkingSetBytes + } + return 0 } -func (m *MemoryStats) XXX_Size() int { - return m.Size() + +func (x *MemoryStats) GetAvailableMemory() uint64 { + if x != nil { + return x.AvailableMemory + } + return 0 } -func (m *MemoryStats) XXX_DiscardUnknown() { - xxx_messageInfo_MemoryStats.DiscardUnknown(m) + +func (x *MemoryStats) GetReservedMemory() uint64 { + if x != nil { + return x.ReservedMemory + } + return 0 } -var xxx_messageInfo_MemoryStats proto.InternalMessageInfo +func (x *MemoryStats) GetAssignedMemory() uint64 { + if x != nil { + return x.AssignedMemory + } + return 0 +} type ProcessorStats struct { - TotalRuntimeNs uint64 `protobuf:"varint,1,opt,name=total_runtime_ns,json=totalRuntimeNs,proto3" json:"total_runtime_ns,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TotalRuntimeNs uint64 `protobuf:"varint,1,opt,name=total_runtime_ns,json=totalRuntimeNs,proto3" json:"total_runtime_ns,omitempty"` +} + +func (x *ProcessorStats) Reset() { + *x = ProcessorStats{} + if protoimpl.UnsafeEnabled { + mi := &file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ProcessorStats) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ProcessorStats) Reset() { *m = ProcessorStats{} } func (*ProcessorStats) ProtoMessage() {} -func (*ProcessorStats) Descriptor() ([]byte, []int) { - return fileDescriptor_272f12cfdaa6c7c8, []int{12} -} -func (m *ProcessorStats) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ProcessorStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ProcessorStats.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *ProcessorStats) ProtoReflect() protoreflect.Message { + mi := &file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *ProcessorStats) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProcessorStats.Merge(m, src) + +// Deprecated: Use ProcessorStats.ProtoReflect.Descriptor instead. +func (*ProcessorStats) Descriptor() ([]byte, []int) { + return file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_rawDescGZIP(), []int{12} } -func (m *ProcessorStats) XXX_Size() int { - return m.Size() + +func (x *ProcessorStats) GetTotalRuntimeNs() uint64 { + if x != nil { + return x.TotalRuntimeNs + } + return 0 } -func (m *ProcessorStats) XXX_DiscardUnknown() { - xxx_messageInfo_ProcessorStats.DiscardUnknown(m) + +type PropertiesVMRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Types []PropertiesVMRequest_PropertiesType `protobuf:"varint,1,rep,packed,name=types,proto3,enum=vmservice.PropertiesVMRequest_PropertiesType" json:"types,omitempty"` } -var xxx_messageInfo_ProcessorStats proto.InternalMessageInfo +func (x *PropertiesVMRequest) Reset() { + *x = PropertiesVMRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} -type PropertiesVMRequest struct { - Types []PropertiesVMRequest_PropertiesType `protobuf:"varint,1,rep,packed,name=types,proto3,enum=vmservice.PropertiesVMRequest_PropertiesType" json:"types,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *PropertiesVMRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PropertiesVMRequest) Reset() { *m = PropertiesVMRequest{} } func (*PropertiesVMRequest) ProtoMessage() {} -func (*PropertiesVMRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_272f12cfdaa6c7c8, []int{13} -} -func (m *PropertiesVMRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PropertiesVMRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PropertiesVMRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *PropertiesVMRequest) ProtoReflect() protoreflect.Message { + mi := &file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *PropertiesVMRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_PropertiesVMRequest.Merge(m, src) + +// Deprecated: Use PropertiesVMRequest.ProtoReflect.Descriptor instead. +func (*PropertiesVMRequest) Descriptor() ([]byte, []int) { + return file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_rawDescGZIP(), []int{13} } -func (m *PropertiesVMRequest) XXX_Size() int { - return m.Size() + +func (x *PropertiesVMRequest) GetTypes() []PropertiesVMRequest_PropertiesType { + if x != nil { + return x.Types + } + return nil } -func (m *PropertiesVMRequest) XXX_DiscardUnknown() { - xxx_messageInfo_PropertiesVMRequest.DiscardUnknown(m) + +type PropertiesVMResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + MemoryStats *MemoryStats `protobuf:"bytes,1,opt,name=memory_stats,json=memoryStats,proto3" json:"memory_stats,omitempty"` + ProcessorStats *ProcessorStats `protobuf:"bytes,2,opt,name=processor_stats,json=processorStats,proto3" json:"processor_stats,omitempty"` } -var xxx_messageInfo_PropertiesVMRequest proto.InternalMessageInfo +func (x *PropertiesVMResponse) Reset() { + *x = PropertiesVMResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} -type PropertiesVMResponse struct { - MemoryStats *MemoryStats `protobuf:"bytes,1,opt,name=memory_stats,json=memoryStats,proto3" json:"memory_stats,omitempty"` - ProcessorStats *ProcessorStats `protobuf:"bytes,2,opt,name=processor_stats,json=processorStats,proto3" json:"processor_stats,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *PropertiesVMResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PropertiesVMResponse) Reset() { *m = PropertiesVMResponse{} } func (*PropertiesVMResponse) ProtoMessage() {} -func (*PropertiesVMResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_272f12cfdaa6c7c8, []int{14} -} -func (m *PropertiesVMResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PropertiesVMResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PropertiesVMResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *PropertiesVMResponse) ProtoReflect() protoreflect.Message { + mi := &file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *PropertiesVMResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_PropertiesVMResponse.Merge(m, src) -} -func (m *PropertiesVMResponse) XXX_Size() int { - return m.Size() + +// Deprecated: Use PropertiesVMResponse.ProtoReflect.Descriptor instead. +func (*PropertiesVMResponse) Descriptor() ([]byte, []int) { + return file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_rawDescGZIP(), []int{14} } -func (m *PropertiesVMResponse) XXX_DiscardUnknown() { - xxx_messageInfo_PropertiesVMResponse.DiscardUnknown(m) + +func (x *PropertiesVMResponse) GetMemoryStats() *MemoryStats { + if x != nil { + return x.MemoryStats + } + return nil } -var xxx_messageInfo_PropertiesVMResponse proto.InternalMessageInfo +func (x *PropertiesVMResponse) GetProcessorStats() *ProcessorStats { + if x != nil { + return x.ProcessorStats + } + return nil +} type CapabilitiesVMResponse struct { - SupportedResources []*CapabilitiesVMResponse_SupportedResource `protobuf:"bytes,1,rep,name=supported_resources,json=supportedResources,proto3" json:"supported_resources,omitempty"` - SupportedGuestOs []CapabilitiesVMResponse_SupportedGuestOS `protobuf:"varint,2,rep,packed,name=supported_guest_os,json=supportedGuestOs,proto3,enum=vmservice.CapabilitiesVMResponse_SupportedGuestOS" json:"supported_guest_os,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + SupportedResources []*CapabilitiesVMResponse_SupportedResource `protobuf:"bytes,1,rep,name=supported_resources,json=supportedResources,proto3" json:"supported_resources,omitempty"` + SupportedGuestOS []CapabilitiesVMResponse_SupportedGuestOS `protobuf:"varint,2,rep,packed,name=supported_guest_os,json=supportedGuestOs,proto3,enum=vmservice.CapabilitiesVMResponse_SupportedGuestOS" json:"supported_guest_os,omitempty"` } -func (m *CapabilitiesVMResponse) Reset() { *m = CapabilitiesVMResponse{} } -func (*CapabilitiesVMResponse) ProtoMessage() {} -func (*CapabilitiesVMResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_272f12cfdaa6c7c8, []int{15} -} -func (m *CapabilitiesVMResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CapabilitiesVMResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CapabilitiesVMResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *CapabilitiesVMResponse) Reset() { + *x = CapabilitiesVMResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *CapabilitiesVMResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CapabilitiesVMResponse.Merge(m, src) -} -func (m *CapabilitiesVMResponse) XXX_Size() int { - return m.Size() -} -func (m *CapabilitiesVMResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CapabilitiesVMResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_CapabilitiesVMResponse proto.InternalMessageInfo -type CapabilitiesVMResponse_SupportedResource struct { - Add bool `protobuf:"varint,1,opt,name=Add,proto3" json:"Add,omitempty"` - Remove bool `protobuf:"varint,2,opt,name=Remove,proto3" json:"Remove,omitempty"` - Update bool `protobuf:"varint,3,opt,name=Update,proto3" json:"Update,omitempty"` - Resource CapabilitiesVMResponse_Resource `protobuf:"varint,4,opt,name=resource,proto3,enum=vmservice.CapabilitiesVMResponse_Resource" json:"resource,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *CapabilitiesVMResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CapabilitiesVMResponse_SupportedResource) Reset() { - *m = CapabilitiesVMResponse_SupportedResource{} -} -func (*CapabilitiesVMResponse_SupportedResource) ProtoMessage() {} -func (*CapabilitiesVMResponse_SupportedResource) Descriptor() ([]byte, []int) { - return fileDescriptor_272f12cfdaa6c7c8, []int{15, 0} -} -func (m *CapabilitiesVMResponse_SupportedResource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CapabilitiesVMResponse_SupportedResource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CapabilitiesVMResponse_SupportedResource.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (*CapabilitiesVMResponse) ProtoMessage() {} + +func (x *CapabilitiesVMResponse) ProtoReflect() protoreflect.Message { + mi := &file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[15] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *CapabilitiesVMResponse_SupportedResource) XXX_Merge(src proto.Message) { - xxx_messageInfo_CapabilitiesVMResponse_SupportedResource.Merge(m, src) -} -func (m *CapabilitiesVMResponse_SupportedResource) XXX_Size() int { - return m.Size() + +// Deprecated: Use CapabilitiesVMResponse.ProtoReflect.Descriptor instead. +func (*CapabilitiesVMResponse) Descriptor() ([]byte, []int) { + return file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_rawDescGZIP(), []int{15} } -func (m *CapabilitiesVMResponse_SupportedResource) XXX_DiscardUnknown() { - xxx_messageInfo_CapabilitiesVMResponse_SupportedResource.DiscardUnknown(m) + +func (x *CapabilitiesVMResponse) GetSupportedResources() []*CapabilitiesVMResponse_SupportedResource { + if x != nil { + return x.SupportedResources + } + return nil } -var xxx_messageInfo_CapabilitiesVMResponse_SupportedResource proto.InternalMessageInfo +func (x *CapabilitiesVMResponse) GetSupportedGuestOS() []CapabilitiesVMResponse_SupportedGuestOS { + if x != nil { + return x.SupportedGuestOS + } + return nil +} type HVSocketListen struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + ServiceID string `protobuf:"bytes,1,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"` // Expected that the listener is a unix domain socket. These // are supported on Windows as of 1809/RS5. - ListenerPath string `protobuf:"bytes,2,opt,name=listener_path,json=listenerPath,proto3" json:"listener_path,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ListenerPath string `protobuf:"bytes,2,opt,name=listener_path,json=listenerPath,proto3" json:"listener_path,omitempty"` +} + +func (x *HVSocketListen) Reset() { + *x = HVSocketListen{} + if protoimpl.UnsafeEnabled { + mi := &file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *HVSocketListen) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *HVSocketListen) Reset() { *m = HVSocketListen{} } func (*HVSocketListen) ProtoMessage() {} -func (*HVSocketListen) Descriptor() ([]byte, []int) { - return fileDescriptor_272f12cfdaa6c7c8, []int{16} -} -func (m *HVSocketListen) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *HVSocketListen) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_HVSocketListen.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *HVSocketListen) ProtoReflect() protoreflect.Message { + mi := &file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[16] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *HVSocketListen) XXX_Merge(src proto.Message) { - xxx_messageInfo_HVSocketListen.Merge(m, src) -} -func (m *HVSocketListen) XXX_Size() int { - return m.Size() + +// Deprecated: Use HVSocketListen.ProtoReflect.Descriptor instead. +func (*HVSocketListen) Descriptor() ([]byte, []int) { + return file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_rawDescGZIP(), []int{16} } -func (m *HVSocketListen) XXX_DiscardUnknown() { - xxx_messageInfo_HVSocketListen.DiscardUnknown(m) + +func (x *HVSocketListen) GetServiceID() string { + if x != nil { + return x.ServiceID + } + return "" } -var xxx_messageInfo_HVSocketListen proto.InternalMessageInfo +func (x *HVSocketListen) GetListenerPath() string { + if x != nil { + return x.ListenerPath + } + return "" +} type VSockListen struct { - Port uint32 `protobuf:"varint,1,opt,name=port,proto3" json:"port,omitempty"` - ListenerPath string `protobuf:"bytes,2,opt,name=listener_path,json=listenerPath,proto3" json:"listener_path,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Port uint32 `protobuf:"varint,1,opt,name=port,proto3" json:"port,omitempty"` + ListenerPath string `protobuf:"bytes,2,opt,name=listener_path,json=listenerPath,proto3" json:"listener_path,omitempty"` +} + +func (x *VSockListen) Reset() { + *x = VSockListen{} + if protoimpl.UnsafeEnabled { + mi := &file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *VSockListen) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *VSockListen) Reset() { *m = VSockListen{} } func (*VSockListen) ProtoMessage() {} -func (*VSockListen) Descriptor() ([]byte, []int) { - return fileDescriptor_272f12cfdaa6c7c8, []int{17} -} -func (m *VSockListen) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *VSockListen) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_VSockListen.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (x *VSockListen) ProtoReflect() protoreflect.Message { + mi := &file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[17] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *VSockListen) XXX_Merge(src proto.Message) { - xxx_messageInfo_VSockListen.Merge(m, src) -} -func (m *VSockListen) XXX_Size() int { - return m.Size() + +// Deprecated: Use VSockListen.ProtoReflect.Descriptor instead. +func (*VSockListen) Descriptor() ([]byte, []int) { + return file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_rawDescGZIP(), []int{17} } -func (m *VSockListen) XXX_DiscardUnknown() { - xxx_messageInfo_VSockListen.DiscardUnknown(m) + +func (x *VSockListen) GetPort() uint32 { + if x != nil { + return x.Port + } + return 0 } -var xxx_messageInfo_VSockListen proto.InternalMessageInfo +func (x *VSockListen) GetListenerPath() string { + if x != nil { + return x.ListenerPath + } + return "" +} type VMSocketRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Type ModifyType `protobuf:"varint,1,opt,name=type,proto3,enum=vmservice.ModifyType" json:"type,omitempty"` - // Types that are valid to be assigned to Config: + // Types that are assignable to Config: + // // *VMSocketRequest_HvsocketList // *VMSocketRequest_VsockListen - Config isVMSocketRequest_Config `protobuf_oneof:"Config"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Config isVMSocketRequest_Config `protobuf_oneof:"Config"` } -func (m *VMSocketRequest) Reset() { *m = VMSocketRequest{} } -func (*VMSocketRequest) ProtoMessage() {} -func (*VMSocketRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_272f12cfdaa6c7c8, []int{18} -} -func (m *VMSocketRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *VMSocketRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_VMSocketRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *VMSocketRequest) Reset() { + *x = VMSocketRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *VMSocketRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_VMSocketRequest.Merge(m, src) -} -func (m *VMSocketRequest) XXX_Size() int { - return m.Size() -} -func (m *VMSocketRequest) XXX_DiscardUnknown() { - xxx_messageInfo_VMSocketRequest.DiscardUnknown(m) + +func (x *VMSocketRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_VMSocketRequest proto.InternalMessageInfo +func (*VMSocketRequest) ProtoMessage() {} -type isVMSocketRequest_Config interface { - isVMSocketRequest_Config() - MarshalTo([]byte) (int, error) - Size() int +func (x *VMSocketRequest) ProtoReflect() protoreflect.Message { + mi := &file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[18] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -type VMSocketRequest_HvsocketList struct { - HvsocketList *HVSocketListen `protobuf:"bytes,2,opt,name=hvsocket_list,json=hvsocketList,proto3,oneof" json:"hvsocket_list,omitempty"` -} -type VMSocketRequest_VsockListen struct { - VsockListen *VSockListen `protobuf:"bytes,3,opt,name=vsock_listen,json=vsockListen,proto3,oneof" json:"vsock_listen,omitempty"` +// Deprecated: Use VMSocketRequest.ProtoReflect.Descriptor instead. +func (*VMSocketRequest) Descriptor() ([]byte, []int) { + return file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_rawDescGZIP(), []int{18} } -func (*VMSocketRequest_HvsocketList) isVMSocketRequest_Config() {} -func (*VMSocketRequest_VsockListen) isVMSocketRequest_Config() {} +func (x *VMSocketRequest) GetType() ModifyType { + if x != nil { + return x.Type + } + return ModifyType_ADD +} func (m *VMSocketRequest) GetConfig() isVMSocketRequest_Config { if m != nil { @@ -1116,7924 +1477,1611 @@ func (m *VMSocketRequest) GetConfig() isVMSocketRequest_Config { return nil } -func (m *VMSocketRequest) GetHvsocketList() *HVSocketListen { - if x, ok := m.GetConfig().(*VMSocketRequest_HvsocketList); ok { +func (x *VMSocketRequest) GetHvsocketList() *HVSocketListen { + if x, ok := x.GetConfig().(*VMSocketRequest_HvsocketList); ok { return x.HvsocketList } return nil } -func (m *VMSocketRequest) GetVsockListen() *VSockListen { - if x, ok := m.GetConfig().(*VMSocketRequest_VsockListen); ok { +func (x *VMSocketRequest) GetVsockListen() *VSockListen { + if x, ok := x.GetConfig().(*VMSocketRequest_VsockListen); ok { return x.VsockListen } return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*VMSocketRequest) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*VMSocketRequest_HvsocketList)(nil), - (*VMSocketRequest_VsockListen)(nil), - } +type isVMSocketRequest_Config interface { + isVMSocketRequest_Config() } -type SCSIDisk struct { - Controller uint32 `protobuf:"varint,1,opt,name=controller,proto3" json:"controller,omitempty"` - Lun uint32 `protobuf:"varint,2,opt,name=lun,proto3" json:"lun,omitempty"` - HostPath string `protobuf:"bytes,3,opt,name=host_path,json=hostPath,proto3" json:"host_path,omitempty"` - Type DiskType `protobuf:"varint,4,opt,name=type,proto3,enum=vmservice.DiskType" json:"type,omitempty"` - ReadOnly bool `protobuf:"varint,5,opt,name=read_only,json=readOnly,proto3" json:"read_only,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type VMSocketRequest_HvsocketList struct { + HvsocketList *HVSocketListen `protobuf:"bytes,2,opt,name=hvsocket_list,json=hvsocketList,proto3,oneof"` } -func (m *SCSIDisk) Reset() { *m = SCSIDisk{} } -func (*SCSIDisk) ProtoMessage() {} -func (*SCSIDisk) Descriptor() ([]byte, []int) { - return fileDescriptor_272f12cfdaa6c7c8, []int{19} -} -func (m *SCSIDisk) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SCSIDisk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SCSIDisk.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *SCSIDisk) XXX_Merge(src proto.Message) { - xxx_messageInfo_SCSIDisk.Merge(m, src) -} -func (m *SCSIDisk) XXX_Size() int { - return m.Size() -} -func (m *SCSIDisk) XXX_DiscardUnknown() { - xxx_messageInfo_SCSIDisk.DiscardUnknown(m) +type VMSocketRequest_VsockListen struct { + VsockListen *VSockListen `protobuf:"bytes,3,opt,name=vsock_listen,json=vsockListen,proto3,oneof"` } -var xxx_messageInfo_SCSIDisk proto.InternalMessageInfo +func (*VMSocketRequest_HvsocketList) isVMSocketRequest_Config() {} + +func (*VMSocketRequest_VsockListen) isVMSocketRequest_Config() {} -type VPMEMDisk struct { - HostPath string `protobuf:"bytes,1,opt,name=host_path,json=hostPath,proto3" json:"host_path,omitempty"` - Type DiskType `protobuf:"varint,2,opt,name=type,proto3,enum=vmservice.DiskType" json:"type,omitempty"` - ReadOnly bool `protobuf:"varint,3,opt,name=read_only,json=readOnly,proto3" json:"read_only,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type SCSIDisk struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Controller uint32 `protobuf:"varint,1,opt,name=controller,proto3" json:"controller,omitempty"` + Lun uint32 `protobuf:"varint,2,opt,name=lun,proto3" json:"lun,omitempty"` + HostPath string `protobuf:"bytes,3,opt,name=host_path,json=hostPath,proto3" json:"host_path,omitempty"` + Type DiskType `protobuf:"varint,4,opt,name=type,proto3,enum=vmservice.DiskType" json:"type,omitempty"` + ReadOnly bool `protobuf:"varint,5,opt,name=read_only,json=readOnly,proto3" json:"read_only,omitempty"` } -func (m *VPMEMDisk) Reset() { *m = VPMEMDisk{} } -func (*VPMEMDisk) ProtoMessage() {} -func (*VPMEMDisk) Descriptor() ([]byte, []int) { - return fileDescriptor_272f12cfdaa6c7c8, []int{20} -} -func (m *VPMEMDisk) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *VPMEMDisk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_VPMEMDisk.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *SCSIDisk) Reset() { + *x = SCSIDisk{} + if protoimpl.UnsafeEnabled { + mi := &file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *VPMEMDisk) XXX_Merge(src proto.Message) { - xxx_messageInfo_VPMEMDisk.Merge(m, src) -} -func (m *VPMEMDisk) XXX_Size() int { - return m.Size() -} -func (m *VPMEMDisk) XXX_DiscardUnknown() { - xxx_messageInfo_VPMEMDisk.DiscardUnknown(m) -} -var xxx_messageInfo_VPMEMDisk proto.InternalMessageInfo - -type NICConfig struct { - NicID string `protobuf:"bytes,1,opt,name=nic_id,json=nicId,proto3" json:"nic_id,omitempty"` - PortID string `protobuf:"bytes,2,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"` - MacAddress string `protobuf:"bytes,3,opt,name=mac_address,json=macAddress,proto3" json:"mac_address,omitempty"` - SwitchID string `protobuf:"bytes,4,opt,name=switch_id,json=switchId,proto3" json:"switch_id,omitempty"` - // Optional friendly name for the adapter. Might be useful to show up in logs. - NicName string `protobuf:"bytes,5,opt,name=nic_name,json=nicName,proto3" json:"nic_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *SCSIDisk) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *NICConfig) Reset() { *m = NICConfig{} } -func (*NICConfig) ProtoMessage() {} -func (*NICConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_272f12cfdaa6c7c8, []int{21} -} -func (m *NICConfig) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *NICConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_NICConfig.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (*SCSIDisk) ProtoMessage() {} + +func (x *SCSIDisk) ProtoReflect() protoreflect.Message { + mi := &file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[19] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *NICConfig) XXX_Merge(src proto.Message) { - xxx_messageInfo_NICConfig.Merge(m, src) -} -func (m *NICConfig) XXX_Size() int { - return m.Size() -} -func (m *NICConfig) XXX_DiscardUnknown() { - xxx_messageInfo_NICConfig.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_NICConfig proto.InternalMessageInfo +// Deprecated: Use SCSIDisk.ProtoReflect.Descriptor instead. +func (*SCSIDisk) Descriptor() ([]byte, []int) { + return file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_rawDescGZIP(), []int{19} +} -type WindowsPCIDevice struct { - // e.g. PCIP\\VEN_10DE&DEV_13F2&SUBSYS_115E10DE&REV_A1\\6&17F903&0&00400000 - InstanceID string `protobuf:"bytes,1,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *SCSIDisk) GetController() uint32 { + if x != nil { + return x.Controller + } + return 0 } -func (m *WindowsPCIDevice) Reset() { *m = WindowsPCIDevice{} } -func (*WindowsPCIDevice) ProtoMessage() {} -func (*WindowsPCIDevice) Descriptor() ([]byte, []int) { - return fileDescriptor_272f12cfdaa6c7c8, []int{22} -} -func (m *WindowsPCIDevice) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WindowsPCIDevice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WindowsPCIDevice.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *SCSIDisk) GetLun() uint32 { + if x != nil { + return x.Lun } + return 0 } -func (m *WindowsPCIDevice) XXX_Merge(src proto.Message) { - xxx_messageInfo_WindowsPCIDevice.Merge(m, src) + +func (x *SCSIDisk) GetHostPath() string { + if x != nil { + return x.HostPath + } + return "" } -func (m *WindowsPCIDevice) XXX_Size() int { - return m.Size() + +func (x *SCSIDisk) GetType() DiskType { + if x != nil { + return x.Type + } + return DiskType_SCSI_DISK_TYPE_VHD1 } -func (m *WindowsPCIDevice) XXX_DiscardUnknown() { - xxx_messageInfo_WindowsPCIDevice.DiscardUnknown(m) + +func (x *SCSIDisk) GetReadOnly() bool { + if x != nil { + return x.ReadOnly + } + return false } -var xxx_messageInfo_WindowsPCIDevice proto.InternalMessageInfo +type VPMEMDisk struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type ModifyMemoryRequest struct { - MemoryMb uint64 `protobuf:"varint,1,opt,name=memory_mb,json=memoryMb,proto3" json:"memory_mb,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + HostPath string `protobuf:"bytes,1,opt,name=host_path,json=hostPath,proto3" json:"host_path,omitempty"` + Type DiskType `protobuf:"varint,2,opt,name=type,proto3,enum=vmservice.DiskType" json:"type,omitempty"` + ReadOnly bool `protobuf:"varint,3,opt,name=read_only,json=readOnly,proto3" json:"read_only,omitempty"` } -func (m *ModifyMemoryRequest) Reset() { *m = ModifyMemoryRequest{} } -func (*ModifyMemoryRequest) ProtoMessage() {} -func (*ModifyMemoryRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_272f12cfdaa6c7c8, []int{23} -} -func (m *ModifyMemoryRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ModifyMemoryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ModifyMemoryRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *VPMEMDisk) Reset() { + *x = VPMEMDisk{} + if protoimpl.UnsafeEnabled { + mi := &file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ModifyMemoryRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ModifyMemoryRequest.Merge(m, src) -} -func (m *ModifyMemoryRequest) XXX_Size() int { - return m.Size() -} -func (m *ModifyMemoryRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ModifyMemoryRequest.DiscardUnknown(m) -} -var xxx_messageInfo_ModifyMemoryRequest proto.InternalMessageInfo - -type ModifyProcessorRequest struct { - // Index of the processor to add/remove - ProcessorIndex uint32 `protobuf:"varint,1,opt,name=processor_index,json=processorIndex,proto3" json:"processor_index,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *VPMEMDisk) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ModifyProcessorRequest) Reset() { *m = ModifyProcessorRequest{} } -func (*ModifyProcessorRequest) ProtoMessage() {} -func (*ModifyProcessorRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_272f12cfdaa6c7c8, []int{24} -} -func (m *ModifyProcessorRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ModifyProcessorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ModifyProcessorRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (*VPMEMDisk) ProtoMessage() {} + +func (x *VPMEMDisk) ProtoReflect() protoreflect.Message { + mi := &file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[20] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *ModifyProcessorRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ModifyProcessorRequest.Merge(m, src) + +// Deprecated: Use VPMEMDisk.ProtoReflect.Descriptor instead. +func (*VPMEMDisk) Descriptor() ([]byte, []int) { + return file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_rawDescGZIP(), []int{20} } -func (m *ModifyProcessorRequest) XXX_Size() int { - return m.Size() + +func (x *VPMEMDisk) GetHostPath() string { + if x != nil { + return x.HostPath + } + return "" } -func (m *ModifyProcessorRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ModifyProcessorRequest.DiscardUnknown(m) + +func (x *VPMEMDisk) GetType() DiskType { + if x != nil { + return x.Type + } + return DiskType_SCSI_DISK_TYPE_VHD1 } -var xxx_messageInfo_ModifyProcessorRequest proto.InternalMessageInfo +func (x *VPMEMDisk) GetReadOnly() bool { + if x != nil { + return x.ReadOnly + } + return false +} -type ModifyProcessorConfigRequest struct { - ProcessorWeight uint32 `protobuf:"varint,1,opt,name=processor_weight,json=processorWeight,proto3" json:"processor_weight,omitempty"` - ProcessorLimit uint32 `protobuf:"varint,2,opt,name=processor_limit,json=processorLimit,proto3" json:"processor_limit,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type NICConfig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + NicID string `protobuf:"bytes,1,opt,name=nic_id,json=nicId,proto3" json:"nic_id,omitempty"` // GUID + PortID string `protobuf:"bytes,2,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"` // GUID + MacAddress string `protobuf:"bytes,3,opt,name=mac_address,json=macAddress,proto3" json:"mac_address,omitempty"` // 12-34-56-78-9A-BC + SwitchID string `protobuf:"bytes,4,opt,name=switch_id,json=switchId,proto3" json:"switch_id,omitempty"` // GUID + // Optional friendly name for the adapter. Might be useful to show up in logs. + NicName string `protobuf:"bytes,5,opt,name=nic_name,json=nicName,proto3" json:"nic_name,omitempty"` } -func (m *ModifyProcessorConfigRequest) Reset() { *m = ModifyProcessorConfigRequest{} } -func (*ModifyProcessorConfigRequest) ProtoMessage() {} -func (*ModifyProcessorConfigRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_272f12cfdaa6c7c8, []int{25} -} -func (m *ModifyProcessorConfigRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ModifyProcessorConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ModifyProcessorConfigRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *NICConfig) Reset() { + *x = NICConfig{} + if protoimpl.UnsafeEnabled { + mi := &file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ModifyProcessorConfigRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ModifyProcessorConfigRequest.Merge(m, src) -} -func (m *ModifyProcessorConfigRequest) XXX_Size() int { - return m.Size() -} -func (m *ModifyProcessorConfigRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ModifyProcessorConfigRequest.DiscardUnknown(m) + +func (x *NICConfig) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_ModifyProcessorConfigRequest proto.InternalMessageInfo - -type ModifyResourceRequest struct { - Type ModifyType `protobuf:"varint,1,opt,name=type,proto3,enum=vmservice.ModifyType" json:"type,omitempty"` - // Types that are valid to be assigned to Resource: - // *ModifyResourceRequest_Processor - // *ModifyResourceRequest_ProcessorConfig - // *ModifyResourceRequest_Memory - // *ModifyResourceRequest_ScsiDisk - // *ModifyResourceRequest_VpmemDisk - // *ModifyResourceRequest_NicConfig - // *ModifyResourceRequest_WindowsDevice - Resource isModifyResourceRequest_Resource `protobuf_oneof:"resource"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +func (*NICConfig) ProtoMessage() {} -func (m *ModifyResourceRequest) Reset() { *m = ModifyResourceRequest{} } -func (*ModifyResourceRequest) ProtoMessage() {} -func (*ModifyResourceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_272f12cfdaa6c7c8, []int{26} -} -func (m *ModifyResourceRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ModifyResourceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ModifyResourceRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *NICConfig) ProtoReflect() protoreflect.Message { + mi := &file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[21] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *ModifyResourceRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ModifyResourceRequest.Merge(m, src) -} -func (m *ModifyResourceRequest) XXX_Size() int { - return m.Size() -} -func (m *ModifyResourceRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ModifyResourceRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ModifyResourceRequest proto.InternalMessageInfo - -type isModifyResourceRequest_Resource interface { - isModifyResourceRequest_Resource() - MarshalTo([]byte) (int, error) - Size() int + return mi.MessageOf(x) } -type ModifyResourceRequest_Processor struct { - Processor *ModifyProcessorRequest `protobuf:"bytes,2,opt,name=processor,proto3,oneof" json:"processor,omitempty"` -} -type ModifyResourceRequest_ProcessorConfig struct { - ProcessorConfig *ModifyProcessorConfigRequest `protobuf:"bytes,3,opt,name=processor_config,json=processorConfig,proto3,oneof" json:"processor_config,omitempty"` -} -type ModifyResourceRequest_Memory struct { - Memory *ModifyMemoryRequest `protobuf:"bytes,4,opt,name=memory,proto3,oneof" json:"memory,omitempty"` -} -type ModifyResourceRequest_ScsiDisk struct { - ScsiDisk *SCSIDisk `protobuf:"bytes,5,opt,name=scsi_disk,json=scsiDisk,proto3,oneof" json:"scsi_disk,omitempty"` -} -type ModifyResourceRequest_VpmemDisk struct { - VpmemDisk *VPMEMDisk `protobuf:"bytes,6,opt,name=vpmem_disk,json=vpmemDisk,proto3,oneof" json:"vpmem_disk,omitempty"` -} -type ModifyResourceRequest_NicConfig struct { - NicConfig *NICConfig `protobuf:"bytes,7,opt,name=nic_config,json=nicConfig,proto3,oneof" json:"nic_config,omitempty"` -} -type ModifyResourceRequest_WindowsDevice struct { - WindowsDevice *WindowsPCIDevice `protobuf:"bytes,8,opt,name=windows_device,json=windowsDevice,proto3,oneof" json:"windows_device,omitempty"` +// Deprecated: Use NICConfig.ProtoReflect.Descriptor instead. +func (*NICConfig) Descriptor() ([]byte, []int) { + return file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_rawDescGZIP(), []int{21} } -func (*ModifyResourceRequest_Processor) isModifyResourceRequest_Resource() {} -func (*ModifyResourceRequest_ProcessorConfig) isModifyResourceRequest_Resource() {} -func (*ModifyResourceRequest_Memory) isModifyResourceRequest_Resource() {} -func (*ModifyResourceRequest_ScsiDisk) isModifyResourceRequest_Resource() {} -func (*ModifyResourceRequest_VpmemDisk) isModifyResourceRequest_Resource() {} -func (*ModifyResourceRequest_NicConfig) isModifyResourceRequest_Resource() {} -func (*ModifyResourceRequest_WindowsDevice) isModifyResourceRequest_Resource() {} - -func (m *ModifyResourceRequest) GetResource() isModifyResourceRequest_Resource { - if m != nil { - return m.Resource +func (x *NICConfig) GetNicID() string { + if x != nil { + return x.NicID } - return nil + return "" } -func (m *ModifyResourceRequest) GetProcessor() *ModifyProcessorRequest { - if x, ok := m.GetResource().(*ModifyResourceRequest_Processor); ok { - return x.Processor +func (x *NICConfig) GetPortID() string { + if x != nil { + return x.PortID } - return nil + return "" } -func (m *ModifyResourceRequest) GetProcessorConfig() *ModifyProcessorConfigRequest { - if x, ok := m.GetResource().(*ModifyResourceRequest_ProcessorConfig); ok { - return x.ProcessorConfig +func (x *NICConfig) GetMacAddress() string { + if x != nil { + return x.MacAddress } - return nil + return "" } -func (m *ModifyResourceRequest) GetMemory() *ModifyMemoryRequest { - if x, ok := m.GetResource().(*ModifyResourceRequest_Memory); ok { - return x.Memory +func (x *NICConfig) GetSwitchID() string { + if x != nil { + return x.SwitchID } - return nil + return "" } -func (m *ModifyResourceRequest) GetScsiDisk() *SCSIDisk { - if x, ok := m.GetResource().(*ModifyResourceRequest_ScsiDisk); ok { - return x.ScsiDisk +func (x *NICConfig) GetNicName() string { + if x != nil { + return x.NicName } - return nil + return "" } -func (m *ModifyResourceRequest) GetVpmemDisk() *VPMEMDisk { - if x, ok := m.GetResource().(*ModifyResourceRequest_VpmemDisk); ok { - return x.VpmemDisk - } - return nil -} +type WindowsPCIDevice struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ModifyResourceRequest) GetNicConfig() *NICConfig { - if x, ok := m.GetResource().(*ModifyResourceRequest_NicConfig); ok { - return x.NicConfig - } - return nil + // e.g. PCIP\\VEN_10DE&DEV_13F2&SUBSYS_115E10DE&REV_A1\\6&17F903&0&00400000 + InstanceID string `protobuf:"bytes,1,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"` } -func (m *ModifyResourceRequest) GetWindowsDevice() *WindowsPCIDevice { - if x, ok := m.GetResource().(*ModifyResourceRequest_WindowsDevice); ok { - return x.WindowsDevice +func (x *WindowsPCIDevice) Reset() { + *x = WindowsPCIDevice{} + if protoimpl.UnsafeEnabled { + mi := &file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*ModifyResourceRequest) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*ModifyResourceRequest_Processor)(nil), - (*ModifyResourceRequest_ProcessorConfig)(nil), - (*ModifyResourceRequest_Memory)(nil), - (*ModifyResourceRequest_ScsiDisk)(nil), - (*ModifyResourceRequest_VpmemDisk)(nil), - (*ModifyResourceRequest_NicConfig)(nil), - (*ModifyResourceRequest_WindowsDevice)(nil), - } +func (x *WindowsPCIDevice) String() string { + return protoimpl.X.MessageStringOf(x) } -func init() { - proto.RegisterEnum("vmservice.ModifyType", ModifyType_name, ModifyType_value) - proto.RegisterEnum("vmservice.DiskType", DiskType_name, DiskType_value) - proto.RegisterEnum("vmservice.PropertiesVMRequest_PropertiesType", PropertiesVMRequest_PropertiesType_name, PropertiesVMRequest_PropertiesType_value) - proto.RegisterEnum("vmservice.CapabilitiesVMResponse_Resource", CapabilitiesVMResponse_Resource_name, CapabilitiesVMResponse_Resource_value) - proto.RegisterEnum("vmservice.CapabilitiesVMResponse_SupportedGuestOS", CapabilitiesVMResponse_SupportedGuestOS_name, CapabilitiesVMResponse_SupportedGuestOS_value) - proto.RegisterType((*DirectBoot)(nil), "vmservice.DirectBoot") - proto.RegisterType((*UEFI)(nil), "vmservice.UEFI") - proto.RegisterType((*MemoryConfig)(nil), "vmservice.MemoryConfig") - proto.RegisterType((*ProcessorConfig)(nil), "vmservice.ProcessorConfig") - proto.RegisterType((*DevicesConfig)(nil), "vmservice.DevicesConfig") - proto.RegisterType((*VMConfig)(nil), "vmservice.VMConfig") - proto.RegisterMapType((map[string]string)(nil), "vmservice.VMConfig.ExtraDataEntry") - proto.RegisterType((*WindowsOptions)(nil), "vmservice.WindowsOptions") - proto.RegisterType((*SerialConfig)(nil), "vmservice.SerialConfig") - proto.RegisterType((*SerialConfig_Config)(nil), "vmservice.SerialConfig.Config") - proto.RegisterType((*CreateVMRequest)(nil), "vmservice.CreateVMRequest") - proto.RegisterType((*InspectVMRequest)(nil), "vmservice.InspectVMRequest") - proto.RegisterType((*InspectVMResponse)(nil), "vmservice.InspectVMResponse") - proto.RegisterType((*MemoryStats)(nil), "vmservice.MemoryStats") - proto.RegisterType((*ProcessorStats)(nil), "vmservice.ProcessorStats") - proto.RegisterType((*PropertiesVMRequest)(nil), "vmservice.PropertiesVMRequest") - proto.RegisterType((*PropertiesVMResponse)(nil), "vmservice.PropertiesVMResponse") - proto.RegisterType((*CapabilitiesVMResponse)(nil), "vmservice.CapabilitiesVMResponse") - proto.RegisterType((*CapabilitiesVMResponse_SupportedResource)(nil), "vmservice.CapabilitiesVMResponse.SupportedResource") - proto.RegisterType((*HVSocketListen)(nil), "vmservice.HVSocketListen") - proto.RegisterType((*VSockListen)(nil), "vmservice.VSockListen") - proto.RegisterType((*VMSocketRequest)(nil), "vmservice.VMSocketRequest") - proto.RegisterType((*SCSIDisk)(nil), "vmservice.SCSIDisk") - proto.RegisterType((*VPMEMDisk)(nil), "vmservice.VPMEMDisk") - proto.RegisterType((*NICConfig)(nil), "vmservice.NICConfig") - proto.RegisterType((*WindowsPCIDevice)(nil), "vmservice.WindowsPCIDevice") - proto.RegisterType((*ModifyMemoryRequest)(nil), "vmservice.ModifyMemoryRequest") - proto.RegisterType((*ModifyProcessorRequest)(nil), "vmservice.ModifyProcessorRequest") - proto.RegisterType((*ModifyProcessorConfigRequest)(nil), "vmservice.ModifyProcessorConfigRequest") - proto.RegisterType((*ModifyResourceRequest)(nil), "vmservice.ModifyResourceRequest") -} - -func init() { - proto.RegisterFile("github.com/Microsoft/hcsshim/internal/vmservice/vmservice.proto", fileDescriptor_272f12cfdaa6c7c8) -} - -var fileDescriptor_272f12cfdaa6c7c8 = []byte{ - // 2296 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x58, 0xcf, 0x73, 0xdb, 0xc6, - 0xf5, 0x27, 0x28, 0x8a, 0x22, 0x1f, 0x7f, 0x88, 0x59, 0x39, 0x8e, 0x22, 0x67, 0x24, 0x07, 0x99, - 0x8c, 0x13, 0x27, 0x91, 0xbe, 0x5f, 0xba, 0xe9, 0xd8, 0xae, 0x9b, 0x54, 0x24, 0x65, 0x93, 0x8d, - 0x69, 0x29, 0xa0, 0x4d, 0xd7, 0xb9, 0x20, 0x10, 0xb0, 0x22, 0x77, 0x04, 0x60, 0x69, 0xec, 0x42, - 0xb2, 0x6e, 0x9d, 0xe9, 0xa1, 0xed, 0xa5, 0xb7, 0x1e, 0x3b, 0xfd, 0x2f, 0x3a, 0xd3, 0x6b, 0x67, - 0x3a, 0x93, 0x63, 0x8f, 0xbd, 0xd4, 0xd3, 0xe8, 0xde, 0x53, 0xff, 0x81, 0xce, 0xfe, 0x00, 0x09, - 0x90, 0x92, 0x13, 0xfb, 0x86, 0x7d, 0xfb, 0x79, 0x6f, 0xdf, 0xbe, 0xb7, 0xef, 0x17, 0xe0, 0xcb, - 0x11, 0xe1, 0xe3, 0xf8, 0x70, 0xdb, 0xa5, 0xc1, 0x4e, 0x9f, 0xb8, 0x11, 0x65, 0xf4, 0x88, 0xef, - 0x8c, 0x5d, 0xc6, 0xc6, 0x24, 0xd8, 0x21, 0x21, 0xc7, 0x51, 0xe8, 0xf8, 0x3b, 0x27, 0x01, 0xc3, - 0xd1, 0x09, 0x71, 0xf1, 0xec, 0x6b, 0x7b, 0x12, 0x51, 0x4e, 0x51, 0x79, 0x4a, 0xd8, 0xb8, 0x36, - 0xa2, 0x74, 0xe4, 0xe3, 0x1d, 0xb9, 0x71, 0x18, 0x1f, 0xed, 0xe0, 0x60, 0xc2, 0xcf, 0x14, 0x6e, - 0xe3, 0xbd, 0xf9, 0x4d, 0xc6, 0xa3, 0xd8, 0xe5, 0x6a, 0xd7, 0x8c, 0x01, 0x3a, 0x24, 0xc2, 0x2e, - 0x6f, 0x51, 0xca, 0xd1, 0x16, 0x54, 0x8e, 0x71, 0x14, 0x62, 0xdf, 0x9e, 0x38, 0x7c, 0xbc, 0x6e, - 0x5c, 0x37, 0x3e, 0x2a, 0x5b, 0xa0, 0x48, 0x07, 0x0e, 0x1f, 0x0b, 0x00, 0x09, 0x09, 0x8f, 0x3c, - 0x05, 0xc8, 0x2b, 0x80, 0x22, 0x49, 0xc0, 0x87, 0x50, 0xd7, 0x12, 0xdc, 0xc0, 0xf3, 0x49, 0x88, - 0xd7, 0x97, 0x24, 0xa6, 0xa6, 0xa8, 0x6d, 0x45, 0x34, 0x9f, 0x43, 0xe1, 0xc9, 0xde, 0xfd, 0x1e, - 0xfa, 0x00, 0x6a, 0x47, 0x24, 0x0a, 0x4e, 0x9d, 0x08, 0xa7, 0x8f, 0xac, 0x26, 0xc4, 0xe4, 0x50, - 0x0f, 0x8b, 0x8b, 0x66, 0x0e, 0x55, 0x24, 0x09, 0xf8, 0x00, 0x6a, 0x74, 0xc2, 0x09, 0x0d, 0x1d, - 0xdf, 0xf6, 0x1c, 0xee, 0xe8, 0x33, 0xab, 0x09, 0xb1, 0xe3, 0x70, 0xc7, 0xfc, 0x4f, 0x1e, 0xaa, - 0x7d, 0x1c, 0xd0, 0xe8, 0xac, 0x4d, 0xc3, 0x23, 0x32, 0x42, 0xd7, 0xa0, 0x1c, 0xc8, 0xb5, 0x1d, - 0x1c, 0xca, 0x73, 0x0b, 0x56, 0x49, 0x11, 0xfa, 0x87, 0xe8, 0x63, 0x68, 0x38, 0xbe, 0x4f, 0x4f, - 0x6d, 0x7a, 0x82, 0x23, 0x97, 0x06, 0x01, 0xe1, 0xf2, 0xe0, 0x92, 0xb5, 0x2a, 0xe9, 0xfb, 0x53, - 0x32, 0xba, 0x01, 0xab, 0x1e, 0x3e, 0xc2, 0x51, 0x84, 0x3d, 0x5b, 0x23, 0x97, 0x24, 0xb2, 0x9e, - 0x90, 0xdb, 0x0a, 0xf8, 0x2e, 0x94, 0xc6, 0x94, 0xdb, 0x63, 0x12, 0xf2, 0xf5, 0x82, 0x44, 0xac, - 0x8c, 0x29, 0xef, 0x92, 0x90, 0x0b, 0x5d, 0x5c, 0xea, 0x7b, 0x6a, 0x6f, 0x59, 0xee, 0x95, 0x04, - 0x41, 0x6e, 0xde, 0x84, 0xb7, 0xe4, 0xa6, 0x47, 0x98, 0xeb, 0x44, 0x1a, 0x54, 0x54, 0xca, 0x88, - 0x8d, 0x8e, 0xa2, 0x6b, 0x2c, 0x12, 0x5a, 0x07, 0x01, 0xa1, 0xf6, 0xc8, 0x99, 0xd8, 0x24, 0x14, - 0xb7, 0x5b, 0x91, 0xb7, 0xab, 0xfb, 0xf4, 0xb4, 0x1f, 0x10, 0xfa, 0xc0, 0x99, 0xf4, 0xc2, 0xfe, - 0x21, 0xda, 0x86, 0x2b, 0x63, 0x32, 0x1a, 0x2b, 0xf0, 0xa1, 0xc3, 0xb0, 0x46, 0x97, 0x24, 0xba, - 0x21, 0xf6, 0x04, 0xbc, 0xe5, 0x30, 0x2c, 0xf1, 0x9f, 0xc2, 0xda, 0x0c, 0x3f, 0x13, 0x5e, 0x96, - 0xf0, 0xd5, 0x04, 0xae, 0xa5, 0x9b, 0x7f, 0x30, 0x60, 0xf5, 0x20, 0xa2, 0x2e, 0x66, 0x8c, 0x46, - 0xda, 0xe4, 0x37, 0x60, 0x75, 0x92, 0x90, 0x6c, 0x97, 0xc6, 0x21, 0x97, 0x86, 0xaf, 0x59, 0xf5, - 0xc9, 0x0c, 0x19, 0x87, 0x5c, 0x98, 0x7f, 0x06, 0x3c, 0xc5, 0x64, 0x34, 0x56, 0xe6, 0xaf, 0x59, - 0x33, 0x01, 0x4f, 0x25, 0x39, 0x2b, 0xd3, 0x27, 0x89, 0xf9, 0xd3, 0x32, 0x1f, 0x0a, 0xaa, 0xf9, - 0x5f, 0x03, 0x6a, 0x1d, 0xf9, 0x68, 0x98, 0x56, 0xa7, 0x09, 0xc0, 0x5c, 0x46, 0x84, 0x61, 0x8f, - 0xd9, 0xba, 0x71, 0x7d, 0xe9, 0xa3, 0x4a, 0x73, 0x6d, 0x7b, 0x16, 0x68, 0x83, 0xf6, 0xa0, 0xd7, - 0x21, 0xec, 0xd8, 0x2a, 0x0b, 0x98, 0xf8, 0x62, 0xe8, 0x73, 0xa8, 0x9c, 0x4c, 0x02, 0x1c, 0x68, - 0xa6, 0xbc, 0x64, 0xba, 0x92, 0x62, 0x1a, 0x1e, 0xf4, 0xf7, 0xfa, 0x92, 0x0b, 0x24, 0x50, 0xb1, - 0xdd, 0x02, 0x08, 0x89, 0x6b, 0xbb, 0xf2, 0xe0, 0xf5, 0xa5, 0x05, 0xae, 0x47, 0xbd, 0xb6, 0x52, - 0xca, 0x2a, 0x87, 0xc4, 0xd5, 0xfa, 0xb5, 0xa0, 0x7e, 0x4a, 0x42, 0x8f, 0x9e, 0x32, 0x5b, 0xbd, - 0xf6, 0xf5, 0x82, 0x64, 0xbc, 0x96, 0x62, 0x7c, 0xaa, 0x00, 0x07, 0xed, 0x9e, 0xba, 0x9b, 0x55, - 0xd3, 0x2c, 0x6a, 0x69, 0xfe, 0xad, 0x00, 0xa5, 0x61, 0x5f, 0x0b, 0xbc, 0x07, 0x35, 0xfd, 0xe4, - 0xb5, 0x22, 0xc2, 0xfa, 0x95, 0xe6, 0x3b, 0x29, 0x79, 0xe9, 0x10, 0xb1, 0xaa, 0x41, 0x3a, 0x60, - 0xf6, 0xd2, 0x4e, 0xd1, 0x02, 0xf2, 0x52, 0xc0, 0x46, 0x4a, 0xc0, 0x9c, 0xcf, 0x53, 0x0e, 0xd3, - 0x62, 0xbe, 0x84, 0xba, 0xba, 0x0d, 0x9b, 0x99, 0x43, 0x08, 0x59, 0x4f, 0x09, 0xc9, 0xf8, 0xc9, - 0xaa, 0x79, 0x19, 0xb7, 0xdd, 0x83, 0x1a, 0xc3, 0x11, 0x71, 0xfc, 0x84, 0xbf, 0xb0, 0x70, 0x8b, - 0x81, 0xdc, 0x4f, 0x6e, 0xc1, 0x52, 0x2b, 0x74, 0x1b, 0x2a, 0x9e, 0xcc, 0x78, 0xf6, 0x21, 0xa5, - 0x2a, 0xd8, 0x2a, 0xcd, 0xb7, 0xd3, 0x67, 0x4f, 0xf3, 0x61, 0x37, 0x67, 0x81, 0x37, 0xcb, 0x8e, - 0x1f, 0x42, 0x21, 0xc6, 0x47, 0x44, 0x86, 0x5e, 0xa5, 0xb9, 0x9a, 0x62, 0x11, 0xb9, 0xac, 0x9b, - 0xb3, 0xe4, 0x36, 0x6a, 0xc1, 0x6a, 0xe2, 0x35, 0x95, 0x80, 0x98, 0x8c, 0xbf, 0x4a, 0xf3, 0xdd, - 0x45, 0xb7, 0xed, 0x2b, 0x80, 0x95, 0xf8, 0x59, 0xaf, 0xd1, 0x2e, 0x00, 0x7e, 0xc1, 0x23, 0x47, - 0xa5, 0xb3, 0x92, 0xf4, 0xba, 0x99, 0x7e, 0x64, 0xda, 0xa3, 0xdb, 0x7b, 0x02, 0x25, 0xf2, 0xdb, - 0x5e, 0xc8, 0xa3, 0x33, 0xab, 0x8c, 0x93, 0xf5, 0xc6, 0x3d, 0xa8, 0x67, 0x37, 0x51, 0x03, 0x96, - 0x8e, 0xf1, 0x99, 0x4e, 0xb1, 0xe2, 0x13, 0x5d, 0x81, 0xe5, 0x13, 0xc7, 0x8f, 0xb1, 0xce, 0xa9, - 0x6a, 0x71, 0x37, 0x7f, 0xdb, 0x68, 0x55, 0x01, 0xc4, 0x9d, 0xd5, 0x29, 0x66, 0x0b, 0xea, 0x59, - 0x85, 0xd1, 0xff, 0x41, 0xd5, 0x9d, 0xc4, 0xf6, 0x28, 0xa2, 0xf1, 0xc4, 0x26, 0x9e, 0xca, 0x9f, - 0xad, 0xfa, 0xf9, 0xcb, 0x2d, 0x68, 0x4f, 0xe2, 0x07, 0x82, 0xdc, 0xeb, 0x58, 0xe0, 0x26, 0xdf, - 0x9e, 0xf9, 0x1b, 0x03, 0xaa, 0x69, 0xb7, 0xa0, 0x9f, 0xc0, 0xf2, 0x84, 0x46, 0x9c, 0xe9, 0x68, - 0xd8, 0xbc, 0xc4, 0x7d, 0xdb, 0xda, 0x8b, 0x0a, 0xbc, 0xf1, 0x73, 0x28, 0x6a, 0x7e, 0x04, 0x05, - 0x41, 0xd2, 0x19, 0x44, 0x7e, 0x8b, 0x52, 0xc1, 0xa8, 0x7b, 0x8c, 0x79, 0xa6, 0x54, 0x28, 0x92, - 0x28, 0x15, 0xe6, 0xb7, 0xb0, 0xda, 0x8e, 0xb0, 0xc3, 0xf1, 0xb0, 0x6f, 0xe1, 0xe7, 0x31, 0x66, - 0x1c, 0x7d, 0x02, 0xc5, 0x4c, 0x34, 0xac, 0x5d, 0x60, 0x67, 0x4b, 0x43, 0xd0, 0x75, 0x28, 0xfa, - 0x74, 0x24, 0x6e, 0x2c, 0x65, 0xb7, 0xca, 0xe7, 0x2f, 0xb7, 0x96, 0x1f, 0xd2, 0x51, 0xaf, 0x63, - 0x2d, 0xfb, 0x74, 0xd4, 0xf3, 0xcc, 0xaf, 0xa1, 0xd1, 0x0b, 0xd9, 0x04, 0xbb, 0x7c, 0x76, 0xc4, - 0x15, 0x58, 0x7e, 0x1e, 0xe3, 0x28, 0xb1, 0xbd, 0x5a, 0x88, 0xcc, 0x15, 0x61, 0x37, 0x8e, 0x18, - 0xa1, 0xa1, 0xce, 0x5c, 0x2a, 0xc7, 0xd5, 0xa7, 0x64, 0x95, 0xb9, 0xda, 0xf0, 0x56, 0x4a, 0x24, - 0x9b, 0xd0, 0x90, 0x61, 0xb4, 0x0d, 0xc5, 0x08, 0xb3, 0xd8, 0xe7, 0x5a, 0xed, 0xab, 0xdb, 0xaa, - 0xd0, 0x6f, 0x27, 0x85, 0x7e, 0x7b, 0x28, 0xbc, 0x69, 0x69, 0x94, 0xf9, 0x17, 0x03, 0x2a, 0x2a, - 0xb8, 0x07, 0xdc, 0xe1, 0x4c, 0x54, 0x95, 0x53, 0x1a, 0x1d, 0x93, 0x70, 0x64, 0x33, 0xcc, 0xed, - 0xc3, 0x33, 0x8e, 0x99, 0x2e, 0x83, 0xab, 0x7a, 0x63, 0x80, 0x79, 0x4b, 0x90, 0x65, 0x35, 0x3c, - 0x71, 0x88, 0xef, 0x1c, 0xfa, 0xd8, 0x56, 0x39, 0x41, 0xaa, 0x5a, 0xb0, 0x56, 0xa7, 0x74, 0x25, - 0x5b, 0x5d, 0x4a, 0x98, 0x0f, 0x7b, 0x09, 0x72, 0x49, 0x55, 0x9f, 0x84, 0x3c, 0x03, 0x3a, 0x8c, - 0x91, 0x51, 0x38, 0x03, 0x16, 0x14, 0x30, 0x21, 0x2b, 0xa0, 0x79, 0x17, 0xea, 0xd3, 0x9c, 0xa2, - 0x54, 0xff, 0x08, 0x1a, 0x9c, 0x72, 0xc7, 0xb7, 0xa3, 0x38, 0xe4, 0x24, 0xc0, 0x76, 0x98, 0x68, - 0x5e, 0x97, 0x74, 0x4b, 0x91, 0x1f, 0x31, 0xf3, 0xb7, 0x06, 0xac, 0x1d, 0x44, 0x74, 0x82, 0x23, - 0x4e, 0x30, 0x9b, 0x39, 0xa4, 0x0d, 0xcb, 0xfc, 0x6c, 0x82, 0x55, 0xd2, 0xaf, 0x37, 0x3f, 0xcb, - 0xe6, 0xaf, 0x79, 0x78, 0x8a, 0xf6, 0xf8, 0x6c, 0x82, 0x2d, 0xc5, 0x6b, 0x7e, 0x22, 0x15, 0x4b, - 0x6d, 0x20, 0x80, 0xa2, 0x52, 0xba, 0x91, 0x43, 0x35, 0x28, 0x4f, 0xd5, 0x6e, 0x18, 0xe6, 0x1f, - 0x0d, 0xb8, 0x92, 0x15, 0xad, 0xfd, 0x78, 0x07, 0x74, 0x96, 0xb5, 0x99, 0xb8, 0xdc, 0xd4, 0x9b, - 0xf3, 0x29, 0x59, 0x5e, 0xdd, 0xaa, 0x04, 0x29, 0x17, 0xb6, 0xd2, 0xa5, 0x4f, 0x71, 0xe7, 0x17, - 0x32, 0x4d, 0xd6, 0x76, 0xa9, 0xaa, 0x28, 0xd7, 0xe6, 0xef, 0x0a, 0x70, 0xb5, 0xed, 0x4c, 0x9c, - 0x43, 0xe2, 0x93, 0x39, 0xcd, 0x3c, 0x58, 0x63, 0xf1, 0x44, 0xc4, 0x15, 0xf6, 0xec, 0x08, 0x33, - 0x1a, 0x47, 0x2e, 0x4e, 0xea, 0xe4, 0xad, 0xd4, 0x11, 0x17, 0xf3, 0x6f, 0x0f, 0x12, 0x66, 0x4b, - 0xf3, 0x5a, 0x88, 0xcd, 0x93, 0x18, 0xfa, 0x16, 0x66, 0x54, 0x7b, 0x24, 0xcc, 0x6d, 0x53, 0x55, - 0x57, 0xeb, 0xcd, 0xe6, 0x6b, 0x1c, 0xf2, 0x40, 0xb0, 0xee, 0x0f, 0xac, 0x06, 0xcb, 0x52, 0xd8, - 0xc6, 0x9f, 0x0c, 0x78, 0x6b, 0x41, 0x17, 0x91, 0x0d, 0x77, 0x3d, 0x95, 0xb8, 0x4a, 0x96, 0xf8, - 0x44, 0x57, 0xa1, 0x68, 0xe1, 0x80, 0x9e, 0x60, 0xdd, 0xe9, 0xe9, 0x95, 0xa0, 0x3f, 0x99, 0x78, - 0x0e, 0xc7, 0xba, 0xaf, 0xd3, 0x2b, 0x74, 0x1f, 0x4a, 0x89, 0x55, 0xe4, 0xd3, 0xad, 0x37, 0x6f, - 0xfe, 0xb0, 0xbe, 0x53, 0x5b, 0x4c, 0x79, 0xcd, 0x6f, 0xa0, 0x34, 0xd5, 0xaa, 0x0c, 0xcb, 0x43, - 0xd1, 0x35, 0x34, 0x72, 0xa8, 0x04, 0x85, 0x81, 0xcb, 0x48, 0xc3, 0x10, 0x5f, 0xc3, 0x89, 0x4b, - 0x1a, 0x79, 0xb1, 0x7d, 0xe0, 0x3b, 0xe1, 0x9d, 0xc6, 0x92, 0x44, 0xf6, 0x1f, 0x11, 0xb7, 0x51, - 0x48, 0x3d, 0xbb, 0xe5, 0xec, 0xb3, 0x2b, 0x9a, 0x37, 0xa1, 0x31, 0x6f, 0x21, 0x54, 0x81, 0x15, - 0x9d, 0xcd, 0x1b, 0x39, 0x21, 0xe6, 0x21, 0x09, 0xe3, 0x17, 0x0d, 0xc3, 0x74, 0xa1, 0xde, 0x1d, - 0x0e, 0x64, 0xae, 0x7c, 0x48, 0x18, 0xc7, 0x21, 0xfa, 0x14, 0x40, 0x5f, 0x27, 0xc9, 0xf1, 0xe5, - 0x56, 0xed, 0xfc, 0xe5, 0x56, 0x79, 0xa0, 0xa8, 0xbd, 0x8e, 0x55, 0xd6, 0x80, 0x9e, 0x27, 0xda, - 0x70, 0x5f, 0xf2, 0xe1, 0x28, 0x9d, 0x7e, 0xab, 0x09, 0x51, 0x26, 0xe0, 0xfb, 0x50, 0x91, 0x67, - 0xe8, 0x13, 0x2e, 0x4a, 0xe2, 0x3f, 0x4a, 0xce, 0xdf, 0x0d, 0x58, 0x1d, 0xf6, 0x95, 0xb6, 0x49, - 0x54, 0x7f, 0x0c, 0x05, 0x11, 0x99, 0x52, 0x58, 0x3d, 0x53, 0xd3, 0xfb, 0xd4, 0x23, 0x47, 0x67, - 0x32, 0x78, 0x25, 0x04, 0xfd, 0x02, 0x6a, 0xe3, 0x13, 0x5d, 0x2a, 0x84, 0xdc, 0x0b, 0x02, 0x27, - 0x6b, 0x8b, 0x6e, 0xce, 0xaa, 0x26, 0x1c, 0x82, 0x82, 0x7e, 0x06, 0x55, 0xb9, 0xb4, 0x95, 0x5a, - 0xba, 0x89, 0x49, 0xc7, 0x6d, 0xea, 0x9e, 0xdd, 0x9c, 0x55, 0x91, 0x68, 0xb5, 0x6c, 0x95, 0x92, - 0x2a, 0x66, 0xfe, 0xd9, 0x80, 0x52, 0xd2, 0x67, 0xa2, 0x4d, 0x00, 0x97, 0x86, 0x3c, 0xa2, 0xbe, - 0x8f, 0x23, 0x6d, 0x93, 0x14, 0x45, 0xbc, 0x59, 0x3f, 0x0e, 0x75, 0x95, 0x10, 0x9f, 0x62, 0x70, - 0x18, 0x53, 0xa6, 0xcb, 0x9d, 0x1a, 0x7b, 0x4a, 0x82, 0x20, 0xe7, 0xa2, 0x1b, 0xda, 0x1e, 0xea, - 0x71, 0xae, 0x65, 0x7a, 0x1c, 0x76, 0x9c, 0xb2, 0xc6, 0x35, 0x28, 0x47, 0xd8, 0xf1, 0x6c, 0x1a, - 0xfa, 0x67, 0xc9, 0xf8, 0x21, 0x08, 0xfb, 0xa1, 0x7f, 0x66, 0x86, 0x50, 0x9e, 0xf6, 0xb4, 0xd9, - 0xf3, 0x8c, 0x4b, 0xce, 0xcb, 0xbf, 0xd6, 0x79, 0x4b, 0x73, 0xe7, 0xfd, 0xd5, 0x80, 0xf2, 0xb4, - 0x1d, 0x16, 0x05, 0x57, 0x34, 0xce, 0xd3, 0xe7, 0x27, 0x0b, 0xee, 0x23, 0xe2, 0x8a, 0x82, 0x1b, - 0x12, 0x57, 0x3e, 0xbb, 0x15, 0xf1, 0x6c, 0x66, 0x35, 0x19, 0xce, 0x5f, 0x6e, 0x15, 0x0f, 0x68, - 0xc4, 0x7b, 0x1d, 0xab, 0x28, 0xb6, 0x7a, 0x9e, 0x68, 0x0c, 0x02, 0xc7, 0xb5, 0x1d, 0xcf, 0x8b, - 0x30, 0x63, 0xda, 0x52, 0x10, 0x38, 0xee, 0xae, 0xa2, 0xa0, 0x8f, 0xa1, 0xcc, 0x4e, 0x09, 0x77, - 0xc7, 0x42, 0x4e, 0x41, 0xca, 0xa9, 0x9e, 0xbf, 0xdc, 0x2a, 0x0d, 0x24, 0xb1, 0xd7, 0xb1, 0x4a, - 0x6a, 0xbb, 0xe7, 0x89, 0x39, 0x4e, 0xa8, 0x14, 0x3a, 0x01, 0x96, 0xc6, 0x2a, 0x5b, 0x2b, 0x21, - 0x71, 0x1f, 0x39, 0x01, 0x36, 0xdb, 0xd0, 0x98, 0x6f, 0xc8, 0xd1, 0x8e, 0x98, 0x99, 0x19, 0x77, - 0xc2, 0x74, 0x14, 0xc9, 0x4e, 0xa9, 0xa7, 0xc9, 0xa2, 0x53, 0x4a, 0x20, 0x3d, 0xcf, 0x6c, 0xc2, - 0x9a, 0x7a, 0xaf, 0x2a, 0xa8, 0x93, 0xd7, 0xfd, 0xaa, 0x79, 0xd5, 0xdc, 0x85, 0xab, 0x8a, 0x67, - 0x1a, 0xfc, 0x09, 0x5b, 0x66, 0x3e, 0x22, 0xa1, 0x87, 0x5f, 0x2c, 0xcc, 0x5c, 0x3d, 0x41, 0x35, - 0x23, 0x78, 0x6f, 0x4e, 0x84, 0xee, 0x7d, 0xa6, 0xd1, 0xb5, 0x38, 0x93, 0x19, 0x3f, 0x7a, 0x26, - 0xcb, 0x5f, 0x38, 0x93, 0xfd, 0xbe, 0x00, 0x6f, 0xab, 0x43, 0xa7, 0x79, 0xf1, 0xf5, 0x63, 0x79, - 0x17, 0xca, 0x53, 0xb1, 0x3a, 0x8e, 0xdf, 0x5f, 0xc0, 0xcf, 0xdb, 0xa5, 0x9b, 0xb3, 0x66, 0x5c, - 0xe8, 0xf1, 0x05, 0xa3, 0x8d, 0x0a, 0xe8, 0x1b, 0x97, 0x4b, 0xca, 0x98, 0xa7, 0x9b, 0x5b, 0x9c, - 0x74, 0x6e, 0x43, 0x31, 0xd5, 0xd9, 0x64, 0x5b, 0xdc, 0x0b, 0x3c, 0xdc, 0xcd, 0x59, 0x1a, 0x8f, - 0x9a, 0x50, 0x9e, 0x4e, 0xa6, 0x7a, 0x44, 0xb9, 0x68, 0x30, 0xed, 0xe6, 0xac, 0x52, 0x32, 0x9a, - 0xa2, 0xcf, 0x01, 0x66, 0x93, 0xa9, 0x1e, 0x52, 0x2e, 0x1c, 0x4c, 0xc5, 0xd5, 0xa7, 0xa3, 0xa9, - 0x60, 0x4b, 0x4d, 0xa6, 0x2b, 0x0b, 0x6c, 0xd3, 0x50, 0x14, 0x6c, 0xb3, 0xd9, 0xb4, 0xb3, 0x30, - 0x9b, 0x96, 0x24, 0xeb, 0xab, 0x66, 0xd3, 0x6e, 0x6e, 0x6e, 0x3a, 0x6d, 0xc1, 0xac, 0x84, 0xde, - 0xfc, 0x0c, 0x60, 0xe6, 0x5a, 0xb4, 0x02, 0x4b, 0xbb, 0x9d, 0x4e, 0x23, 0x27, 0x8a, 0x9b, 0xb5, - 0xd7, 0xdf, 0x1f, 0xee, 0x35, 0x0c, 0xf1, 0xfd, 0xe4, 0xa0, 0xb3, 0xfb, 0x78, 0xaf, 0x91, 0xbf, - 0xf9, 0x0c, 0x4a, 0x49, 0x56, 0x41, 0xef, 0xc0, 0x9a, 0x30, 0x89, 0xdd, 0xe9, 0x0d, 0xbe, 0xb2, - 0x1f, 0x3f, 0x3b, 0xd8, 0xb3, 0x87, 0xdd, 0xce, 0xff, 0x37, 0x72, 0x17, 0x6f, 0xfc, 0xaa, 0x61, - 0xa0, 0x6b, 0xf0, 0xce, 0xdc, 0xc6, 0x41, 0xf7, 0xd9, 0xa0, 0xd7, 0xde, 0x7d, 0xd8, 0xc8, 0x37, - 0xff, 0xb5, 0x0c, 0xf9, 0x61, 0x1f, 0x7d, 0x01, 0xa5, 0x64, 0x56, 0x40, 0xe9, 0x09, 0x77, 0x6e, - 0x80, 0xd8, 0x58, 0xec, 0xbc, 0xf7, 0x82, 0x09, 0x3f, 0x43, 0xf7, 0x00, 0x1e, 0x63, 0x27, 0xf2, - 0xe8, 0x69, 0x38, 0xec, 0xa3, 0x4b, 0x50, 0x97, 0x72, 0xdf, 0x81, 0x95, 0x03, 0x27, 0x66, 0xf8, - 0x0d, 0x58, 0xef, 0xca, 0x86, 0x22, 0x0e, 0xde, 0x84, 0xf7, 0x36, 0x14, 0x9f, 0x3a, 0x84, 0xbf, - 0x01, 0xe7, 0x7d, 0x28, 0x4f, 0xa7, 0x14, 0x94, 0x7e, 0x06, 0xf3, 0xe3, 0xd0, 0xc6, 0x7b, 0x17, - 0x6f, 0xea, 0xb6, 0xf3, 0x2b, 0xa8, 0x67, 0x7b, 0xa7, 0x4b, 0x35, 0x79, 0xff, 0x07, 0xdb, 0x2d, - 0xb4, 0x0f, 0xd5, 0x74, 0xd7, 0x8d, 0x36, 0x5f, 0xdd, 0xe9, 0x6f, 0x6c, 0x5d, 0xba, 0xaf, 0x05, - 0xfe, 0x12, 0xea, 0xd9, 0x84, 0x85, 0xae, 0x2f, 0x44, 0xf5, 0x5c, 0x2e, 0xbb, 0xd4, 0x62, 0x5f, - 0x40, 0x29, 0x69, 0x61, 0x32, 0x0f, 0x6c, 0xae, 0xaf, 0xb9, 0x94, 0xff, 0xa7, 0x50, 0xf8, 0x3a, - 0x26, 0xfc, 0x75, 0x3d, 0xd5, 0xea, 0x7d, 0xf7, 0xfd, 0x66, 0xee, 0x9f, 0xdf, 0x6f, 0xe6, 0x7e, - 0x7d, 0xbe, 0x69, 0x7c, 0x77, 0xbe, 0x69, 0xfc, 0xe3, 0x7c, 0xd3, 0xf8, 0xf7, 0xf9, 0xa6, 0xf1, - 0xcd, 0xce, 0x6b, 0xfe, 0x95, 0x3e, 0x2c, 0x4a, 0xd1, 0xb7, 0xfe, 0x17, 0x00, 0x00, 0xff, 0xff, - 0x29, 0x1c, 0xce, 0x56, 0xcf, 0x16, 0x00, 0x00, -} - -func (m *DirectBoot) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DirectBoot) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DirectBoot) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.KernelCmdline) > 0 { - i -= len(m.KernelCmdline) - copy(dAtA[i:], m.KernelCmdline) - i = encodeVarintVmservice(dAtA, i, uint64(len(m.KernelCmdline))) - i-- - dAtA[i] = 0x1a - } - if len(m.InitrdPath) > 0 { - i -= len(m.InitrdPath) - copy(dAtA[i:], m.InitrdPath) - i = encodeVarintVmservice(dAtA, i, uint64(len(m.InitrdPath))) - i-- - dAtA[i] = 0x12 - } - if len(m.KernelPath) > 0 { - i -= len(m.KernelPath) - copy(dAtA[i:], m.KernelPath) - i = encodeVarintVmservice(dAtA, i, uint64(len(m.KernelPath))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *UEFI) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *UEFI) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *UEFI) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.OptionalData) > 0 { - i -= len(m.OptionalData) - copy(dAtA[i:], m.OptionalData) - i = encodeVarintVmservice(dAtA, i, uint64(len(m.OptionalData))) - i-- - dAtA[i] = 0x1a - } - if len(m.DevicePath) > 0 { - i -= len(m.DevicePath) - copy(dAtA[i:], m.DevicePath) - i = encodeVarintVmservice(dAtA, i, uint64(len(m.DevicePath))) - i-- - dAtA[i] = 0x12 - } - if len(m.FirmwarePath) > 0 { - i -= len(m.FirmwarePath) - copy(dAtA[i:], m.FirmwarePath) - i = encodeVarintVmservice(dAtA, i, uint64(len(m.FirmwarePath))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MemoryConfig) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MemoryConfig) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MemoryConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.HighMmioGapInMb != 0 { - i = encodeVarintVmservice(dAtA, i, uint64(m.HighMmioGapInMb)) - i-- - dAtA[i] = 0x48 - } - if m.HighMmioBaseInMb != 0 { - i = encodeVarintVmservice(dAtA, i, uint64(m.HighMmioBaseInMb)) - i-- - dAtA[i] = 0x40 - } - if m.LowMmioGapInMb != 0 { - i = encodeVarintVmservice(dAtA, i, uint64(m.LowMmioGapInMb)) - i-- - dAtA[i] = 0x38 - } - if m.ColdDiscardHint { - i-- - if m.ColdDiscardHint { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x30 - } - if m.ColdHint { - i-- - if m.ColdHint { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x28 - } - if m.HotHint { - i-- - if m.HotHint { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - } - if m.DeferredCommit { - i-- - if m.DeferredCommit { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - } - if m.AllowOvercommit { - i-- - if m.AllowOvercommit { - dAtA[i] = 1 - } else { - dAtA[i] = 0 +func (*WindowsPCIDevice) ProtoMessage() {} + +func (x *WindowsPCIDevice) ProtoReflect() protoreflect.Message { + mi := &file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[22] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - i-- - dAtA[i] = 0x10 - } - if m.MemoryMb != 0 { - i = encodeVarintVmservice(dAtA, i, uint64(m.MemoryMb)) - i-- - dAtA[i] = 0x8 + return ms } - return len(dAtA) - i, nil + return mi.MessageOf(x) } -func (m *ProcessorConfig) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +// Deprecated: Use WindowsPCIDevice.ProtoReflect.Descriptor instead. +func (*WindowsPCIDevice) Descriptor() ([]byte, []int) { + return file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_rawDescGZIP(), []int{22} } -func (m *ProcessorConfig) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (x *WindowsPCIDevice) GetInstanceID() string { + if x != nil { + return x.InstanceID + } + return "" } -func (m *ProcessorConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.ProcessorLimit != 0 { - i = encodeVarintVmservice(dAtA, i, uint64(m.ProcessorLimit)) - i-- - dAtA[i] = 0x18 - } - if m.ProcessorWeight != 0 { - i = encodeVarintVmservice(dAtA, i, uint64(m.ProcessorWeight)) - i-- - dAtA[i] = 0x10 - } - if m.ProcessorCount != 0 { - i = encodeVarintVmservice(dAtA, i, uint64(m.ProcessorCount)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil +type ModifyMemoryRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + MemoryMb uint64 `protobuf:"varint,1,opt,name=memory_mb,json=memoryMb,proto3" json:"memory_mb,omitempty"` } -func (m *DevicesConfig) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *ModifyMemoryRequest) Reset() { + *x = ModifyMemoryRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return dAtA[:n], nil } -func (m *DevicesConfig) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (x *ModifyMemoryRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DevicesConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.WindowsDevice) > 0 { - for iNdEx := len(m.WindowsDevice) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.WindowsDevice[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintVmservice(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - } - if len(m.NicConfig) > 0 { - for iNdEx := len(m.NicConfig) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.NicConfig[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintVmservice(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } - if len(m.VpmemDisks) > 0 { - for iNdEx := len(m.VpmemDisks) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.VpmemDisks[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintVmservice(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if len(m.ScsiDisks) > 0 { - for iNdEx := len(m.ScsiDisks) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.ScsiDisks[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintVmservice(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *VMConfig) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *VMConfig) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *VMConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.ExtraData) > 0 { - for k := range m.ExtraData { - v := m.ExtraData[k] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintVmservice(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintVmservice(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintVmservice(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x42 - } - } - if m.WindowsOptions != nil { - { - size, err := m.WindowsOptions.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintVmservice(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - } - if m.BootConfig != nil { - { - size := m.BootConfig.Size() - i -= size - if _, err := m.BootConfig.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - } - } - if m.SerialConfig != nil { - { - size, err := m.SerialConfig.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintVmservice(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if m.DevicesConfig != nil { - { - size, err := m.DevicesConfig.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintVmservice(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.ProcessorConfig != nil { - { - size, err := m.ProcessorConfig.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintVmservice(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.MemoryConfig != nil { - { - size, err := m.MemoryConfig.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintVmservice(dAtA, i, uint64(size)) +func (*ModifyMemoryRequest) ProtoMessage() {} + +func (x *ModifyMemoryRequest) ProtoReflect() protoreflect.Message { + mi := &file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[23] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - i-- - dAtA[i] = 0xa + return ms } - return len(dAtA) - i, nil + return mi.MessageOf(x) } -func (m *VMConfig_DirectBoot) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +// Deprecated: Use ModifyMemoryRequest.ProtoReflect.Descriptor instead. +func (*ModifyMemoryRequest) Descriptor() ([]byte, []int) { + return file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_rawDescGZIP(), []int{23} } -func (m *VMConfig_DirectBoot) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.DirectBoot != nil { - { - size, err := m.DirectBoot.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintVmservice(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a +func (x *ModifyMemoryRequest) GetMemoryMb() uint64 { + if x != nil { + return x.MemoryMb } - return len(dAtA) - i, nil + return 0 } -func (m *VMConfig_Uefi) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + +type ModifyProcessorRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Index of the processor to add/remove + ProcessorIndex uint32 `protobuf:"varint,1,opt,name=processor_index,json=processorIndex,proto3" json:"processor_index,omitempty"` } -func (m *VMConfig_Uefi) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Uefi != nil { - { - size, err := m.Uefi.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintVmservice(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 +func (x *ModifyProcessorRequest) Reset() { + *x = ModifyProcessorRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return len(dAtA) - i, nil } -func (m *WindowsOptions) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err + +func (x *ModifyProcessorRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ModifyProcessorRequest) ProtoMessage() {} + +func (x *ModifyProcessorRequest) ProtoReflect() protoreflect.Message { + mi := &file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[24] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return dAtA[:n], nil + return mi.MessageOf(x) } -func (m *WindowsOptions) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +// Deprecated: Use ModifyProcessorRequest.ProtoReflect.Descriptor instead. +func (*ModifyProcessorRequest) Descriptor() ([]byte, []int) { + return file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_rawDescGZIP(), []int{24} } -func (m *WindowsOptions) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) +func (x *ModifyProcessorRequest) GetProcessorIndex() uint32 { + if x != nil { + return x.ProcessorIndex } - if m.CpuGroupID != 0 { - i = encodeVarintVmservice(dAtA, i, uint64(m.CpuGroupID)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return 0 +} + +type ModifyProcessorConfigRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ProcessorWeight uint32 `protobuf:"varint,1,opt,name=processor_weight,json=processorWeight,proto3" json:"processor_weight,omitempty"` + ProcessorLimit uint32 `protobuf:"varint,2,opt,name=processor_limit,json=processorLimit,proto3" json:"processor_limit,omitempty"` } -func (m *SerialConfig) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *ModifyProcessorConfigRequest) Reset() { + *x = ModifyProcessorConfigRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return dAtA[:n], nil } -func (m *SerialConfig) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (x *ModifyProcessorConfigRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SerialConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Ports) > 0 { - for iNdEx := len(m.Ports) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Ports[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintVmservice(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a +func (*ModifyProcessorConfigRequest) ProtoMessage() {} + +func (x *ModifyProcessorConfigRequest) ProtoReflect() protoreflect.Message { + mi := &file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[25] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - return len(dAtA) - i, nil + return mi.MessageOf(x) } -func (m *SerialConfig_Config) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +// Deprecated: Use ModifyProcessorConfigRequest.ProtoReflect.Descriptor instead. +func (*ModifyProcessorConfigRequest) Descriptor() ([]byte, []int) { + return file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_rawDescGZIP(), []int{25} } -func (m *SerialConfig_Config) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (x *ModifyProcessorConfigRequest) GetProcessorWeight() uint32 { + if x != nil { + return x.ProcessorWeight + } + return 0 } -func (m *SerialConfig_Config) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) +func (x *ModifyProcessorConfigRequest) GetProcessorLimit() uint32 { + if x != nil { + return x.ProcessorLimit } - if len(m.SocketPath) > 0 { - i -= len(m.SocketPath) - copy(dAtA[i:], m.SocketPath) - i = encodeVarintVmservice(dAtA, i, uint64(len(m.SocketPath))) - i-- - dAtA[i] = 0x12 - } - if m.Port != 0 { - i = encodeVarintVmservice(dAtA, i, uint64(m.Port)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return 0 +} + +type ModifyResourceRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Type ModifyType `protobuf:"varint,1,opt,name=type,proto3,enum=vmservice.ModifyType" json:"type,omitempty"` + // Types that are assignable to Resource: + // + // *ModifyResourceRequest_Processor + // *ModifyResourceRequest_ProcessorConfig + // *ModifyResourceRequest_Memory + // *ModifyResourceRequest_ScsiDisk + // *ModifyResourceRequest_VpmemDisk + // *ModifyResourceRequest_NicConfig + // *ModifyResourceRequest_WindowsDevice + Resource isModifyResourceRequest_Resource `protobuf_oneof:"resource"` } -func (m *CreateVMRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *ModifyResourceRequest) Reset() { + *x = ModifyResourceRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return dAtA[:n], nil } -func (m *CreateVMRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (x *ModifyResourceRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CreateVMRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.LogID) > 0 { - i -= len(m.LogID) - copy(dAtA[i:], m.LogID) - i = encodeVarintVmservice(dAtA, i, uint64(len(m.LogID))) - i-- - dAtA[i] = 0x12 - } - if m.Config != nil { - { - size, err := m.Config.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintVmservice(dAtA, i, uint64(size)) +func (*ModifyResourceRequest) ProtoMessage() {} + +func (x *ModifyResourceRequest) ProtoReflect() protoreflect.Message { + mi := &file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[26] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - i-- - dAtA[i] = 0xa + return ms } - return len(dAtA) - i, nil + return mi.MessageOf(x) } -func (m *InspectVMRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +// Deprecated: Use ModifyResourceRequest.ProtoReflect.Descriptor instead. +func (*ModifyResourceRequest) Descriptor() ([]byte, []int) { + return file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_rawDescGZIP(), []int{26} } -func (m *InspectVMRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (x *ModifyResourceRequest) GetType() ModifyType { + if x != nil { + return x.Type + } + return ModifyType_ADD } -func (m *InspectVMRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.RecursionLimit != 0 { - i = encodeVarintVmservice(dAtA, i, uint64(m.RecursionLimit)) - i-- - dAtA[i] = 0x10 - } - if len(m.Query) > 0 { - i -= len(m.Query) - copy(dAtA[i:], m.Query) - i = encodeVarintVmservice(dAtA, i, uint64(len(m.Query))) - i-- - dAtA[i] = 0xa +func (m *ModifyResourceRequest) GetResource() isModifyResourceRequest_Resource { + if m != nil { + return m.Resource } - return len(dAtA) - i, nil + return nil } -func (m *InspectVMResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *ModifyResourceRequest) GetProcessor() *ModifyProcessorRequest { + if x, ok := x.GetResource().(*ModifyResourceRequest_Processor); ok { + return x.Processor } - return dAtA[:n], nil + return nil } -func (m *InspectVMResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (x *ModifyResourceRequest) GetProcessorConfig() *ModifyProcessorConfigRequest { + if x, ok := x.GetResource().(*ModifyResourceRequest_ProcessorConfig); ok { + return x.ProcessorConfig + } + return nil } -func (m *InspectVMResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Result != nil { - { - size, err := m.Result.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintVmservice(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa +func (x *ModifyResourceRequest) GetMemory() *ModifyMemoryRequest { + if x, ok := x.GetResource().(*ModifyResourceRequest_Memory); ok { + return x.Memory } - return len(dAtA) - i, nil + return nil } -func (m *MemoryStats) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *ModifyResourceRequest) GetScsiDisk() *SCSIDisk { + if x, ok := x.GetResource().(*ModifyResourceRequest_ScsiDisk); ok { + return x.ScsiDisk } - return dAtA[:n], nil + return nil } -func (m *MemoryStats) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (x *ModifyResourceRequest) GetVpmemDisk() *VPMEMDisk { + if x, ok := x.GetResource().(*ModifyResourceRequest_VpmemDisk); ok { + return x.VpmemDisk + } + return nil } -func (m *MemoryStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.AssignedMemory != 0 { - i = encodeVarintVmservice(dAtA, i, uint64(m.AssignedMemory)) - i-- - dAtA[i] = 0x20 - } - if m.ReservedMemory != 0 { - i = encodeVarintVmservice(dAtA, i, uint64(m.ReservedMemory)) - i-- - dAtA[i] = 0x18 - } - if m.AvailableMemory != 0 { - i = encodeVarintVmservice(dAtA, i, uint64(m.AvailableMemory)) - i-- - dAtA[i] = 0x10 - } - if m.WorkingSetBytes != 0 { - i = encodeVarintVmservice(dAtA, i, uint64(m.WorkingSetBytes)) - i-- - dAtA[i] = 0x8 +func (x *ModifyResourceRequest) GetNicConfig() *NICConfig { + if x, ok := x.GetResource().(*ModifyResourceRequest_NicConfig); ok { + return x.NicConfig } - return len(dAtA) - i, nil + return nil } -func (m *ProcessorStats) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *ModifyResourceRequest) GetWindowsDevice() *WindowsPCIDevice { + if x, ok := x.GetResource().(*ModifyResourceRequest_WindowsDevice); ok { + return x.WindowsDevice } - return dAtA[:n], nil + return nil } -func (m *ProcessorStats) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +type isModifyResourceRequest_Resource interface { + isModifyResourceRequest_Resource() } -func (m *ProcessorStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.TotalRuntimeNs != 0 { - i = encodeVarintVmservice(dAtA, i, uint64(m.TotalRuntimeNs)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil +type ModifyResourceRequest_Processor struct { + Processor *ModifyProcessorRequest `protobuf:"bytes,2,opt,name=processor,proto3,oneof"` } -func (m *PropertiesVMRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +type ModifyResourceRequest_ProcessorConfig struct { + ProcessorConfig *ModifyProcessorConfigRequest `protobuf:"bytes,3,opt,name=processor_config,json=processorConfig,proto3,oneof"` } -func (m *PropertiesVMRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +type ModifyResourceRequest_Memory struct { + Memory *ModifyMemoryRequest `protobuf:"bytes,4,opt,name=memory,proto3,oneof"` } -func (m *PropertiesVMRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Types) > 0 { - dAtA11 := make([]byte, len(m.Types)*10) - var j10 int - for _, num := range m.Types { - for num >= 1<<7 { - dAtA11[j10] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j10++ - } - dAtA11[j10] = uint8(num) - j10++ - } - i -= j10 - copy(dAtA[i:], dAtA11[:j10]) - i = encodeVarintVmservice(dAtA, i, uint64(j10)) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +type ModifyResourceRequest_ScsiDisk struct { + ScsiDisk *SCSIDisk `protobuf:"bytes,5,opt,name=scsi_disk,json=scsiDisk,proto3,oneof"` } -func (m *PropertiesVMResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +type ModifyResourceRequest_VpmemDisk struct { + VpmemDisk *VPMEMDisk `protobuf:"bytes,6,opt,name=vpmem_disk,json=vpmemDisk,proto3,oneof"` } -func (m *PropertiesVMResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +type ModifyResourceRequest_NicConfig struct { + NicConfig *NICConfig `protobuf:"bytes,7,opt,name=nic_config,json=nicConfig,proto3,oneof"` } -func (m *PropertiesVMResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.ProcessorStats != nil { - { - size, err := m.ProcessorStats.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintVmservice(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.MemoryStats != nil { - { - size, err := m.MemoryStats.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintVmservice(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +type ModifyResourceRequest_WindowsDevice struct { + WindowsDevice *WindowsPCIDevice `protobuf:"bytes,8,opt,name=windows_device,json=windowsDevice,proto3,oneof"` } -func (m *CapabilitiesVMResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} +func (*ModifyResourceRequest_Processor) isModifyResourceRequest_Resource() {} -func (m *CapabilitiesVMResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +func (*ModifyResourceRequest_ProcessorConfig) isModifyResourceRequest_Resource() {} -func (m *CapabilitiesVMResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.SupportedGuestOs) > 0 { - dAtA15 := make([]byte, len(m.SupportedGuestOs)*10) - var j14 int - for _, num := range m.SupportedGuestOs { - for num >= 1<<7 { - dAtA15[j14] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j14++ - } - dAtA15[j14] = uint8(num) - j14++ - } - i -= j14 - copy(dAtA[i:], dAtA15[:j14]) - i = encodeVarintVmservice(dAtA, i, uint64(j14)) - i-- - dAtA[i] = 0x12 - } - if len(m.SupportedResources) > 0 { - for iNdEx := len(m.SupportedResources) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.SupportedResources[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintVmservice(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil +func (*ModifyResourceRequest_Memory) isModifyResourceRequest_Resource() {} + +func (*ModifyResourceRequest_ScsiDisk) isModifyResourceRequest_Resource() {} + +func (*ModifyResourceRequest_VpmemDisk) isModifyResourceRequest_Resource() {} + +func (*ModifyResourceRequest_NicConfig) isModifyResourceRequest_Resource() {} + +func (*ModifyResourceRequest_WindowsDevice) isModifyResourceRequest_Resource() {} + +type SerialConfig_Config struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Port uint32 `protobuf:"varint,1,opt,name=port,proto3" json:"port,omitempty"` + // Unix domain socket to relay serial console output to. + SocketPath string `protobuf:"bytes,2,opt,name=socket_path,json=socketPath,proto3" json:"socket_path,omitempty"` } -func (m *CapabilitiesVMResponse_SupportedResource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *SerialConfig_Config) Reset() { + *x = SerialConfig_Config{} + if protoimpl.UnsafeEnabled { + mi := &file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return dAtA[:n], nil } -func (m *CapabilitiesVMResponse_SupportedResource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (x *SerialConfig_Config) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CapabilitiesVMResponse_SupportedResource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Resource != 0 { - i = encodeVarintVmservice(dAtA, i, uint64(m.Resource)) - i-- - dAtA[i] = 0x20 - } - if m.Update { - i-- - if m.Update { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - } - if m.Remove { - i-- - if m.Remove { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x10 - } - if m.Add { - i-- - if m.Add { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} +func (*SerialConfig_Config) ProtoMessage() {} -func (m *HVSocketListen) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *SerialConfig_Config) ProtoReflect() protoreflect.Message { + mi := &file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[28] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return dAtA[:n], nil + return mi.MessageOf(x) } -func (m *HVSocketListen) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +// Deprecated: Use SerialConfig_Config.ProtoReflect.Descriptor instead. +func (*SerialConfig_Config) Descriptor() ([]byte, []int) { + return file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_rawDescGZIP(), []int{7, 0} } -func (m *HVSocketListen) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.ListenerPath) > 0 { - i -= len(m.ListenerPath) - copy(dAtA[i:], m.ListenerPath) - i = encodeVarintVmservice(dAtA, i, uint64(len(m.ListenerPath))) - i-- - dAtA[i] = 0x12 +func (x *SerialConfig_Config) GetPort() uint32 { + if x != nil { + return x.Port } - if len(m.ServiceID) > 0 { - i -= len(m.ServiceID) - copy(dAtA[i:], m.ServiceID) - i = encodeVarintVmservice(dAtA, i, uint64(len(m.ServiceID))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return 0 } -func (m *VSockListen) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *SerialConfig_Config) GetSocketPath() string { + if x != nil { + return x.SocketPath } - return dAtA[:n], nil + return "" } -func (m *VSockListen) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +type CapabilitiesVMResponse_SupportedResource struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *VSockListen) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.ListenerPath) > 0 { - i -= len(m.ListenerPath) - copy(dAtA[i:], m.ListenerPath) - i = encodeVarintVmservice(dAtA, i, uint64(len(m.ListenerPath))) - i-- - dAtA[i] = 0x12 - } - if m.Port != 0 { - i = encodeVarintVmservice(dAtA, i, uint64(m.Port)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + Add bool `protobuf:"varint,1,opt,name=Add,proto3" json:"Add,omitempty"` + Remove bool `protobuf:"varint,2,opt,name=Remove,proto3" json:"Remove,omitempty"` + Update bool `protobuf:"varint,3,opt,name=Update,proto3" json:"Update,omitempty"` + Resource CapabilitiesVMResponse_Resource `protobuf:"varint,4,opt,name=resource,proto3,enum=vmservice.CapabilitiesVMResponse_Resource" json:"resource,omitempty"` } -func (m *VMSocketRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *CapabilitiesVMResponse_SupportedResource) Reset() { + *x = CapabilitiesVMResponse_SupportedResource{} + if protoimpl.UnsafeEnabled { + mi := &file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return dAtA[:n], nil } -func (m *VMSocketRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (x *CapabilitiesVMResponse_SupportedResource) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *VMSocketRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Config != nil { - { - size := m.Config.Size() - i -= size - if _, err := m.Config.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - } - } - if m.Type != 0 { - i = encodeVarintVmservice(dAtA, i, uint64(m.Type)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *VMSocketRequest_HvsocketList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *VMSocketRequest_HvsocketList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.HvsocketList != nil { - { - size, err := m.HvsocketList.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintVmservice(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - return len(dAtA) - i, nil -} -func (m *VMSocketRequest_VsockListen) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *VMSocketRequest_VsockListen) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.VsockListen != nil { - { - size, err := m.VsockListen.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintVmservice(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - return len(dAtA) - i, nil -} -func (m *SCSIDisk) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SCSIDisk) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SCSIDisk) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.ReadOnly { - i-- - if m.ReadOnly { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x28 - } - if m.Type != 0 { - i = encodeVarintVmservice(dAtA, i, uint64(m.Type)) - i-- - dAtA[i] = 0x20 - } - if len(m.HostPath) > 0 { - i -= len(m.HostPath) - copy(dAtA[i:], m.HostPath) - i = encodeVarintVmservice(dAtA, i, uint64(len(m.HostPath))) - i-- - dAtA[i] = 0x1a - } - if m.Lun != 0 { - i = encodeVarintVmservice(dAtA, i, uint64(m.Lun)) - i-- - dAtA[i] = 0x10 - } - if m.Controller != 0 { - i = encodeVarintVmservice(dAtA, i, uint64(m.Controller)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *VPMEMDisk) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *VPMEMDisk) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *VPMEMDisk) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.ReadOnly { - i-- - if m.ReadOnly { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - } - if m.Type != 0 { - i = encodeVarintVmservice(dAtA, i, uint64(m.Type)) - i-- - dAtA[i] = 0x10 - } - if len(m.HostPath) > 0 { - i -= len(m.HostPath) - copy(dAtA[i:], m.HostPath) - i = encodeVarintVmservice(dAtA, i, uint64(len(m.HostPath))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *NICConfig) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *NICConfig) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *NICConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.NicName) > 0 { - i -= len(m.NicName) - copy(dAtA[i:], m.NicName) - i = encodeVarintVmservice(dAtA, i, uint64(len(m.NicName))) - i-- - dAtA[i] = 0x2a - } - if len(m.SwitchID) > 0 { - i -= len(m.SwitchID) - copy(dAtA[i:], m.SwitchID) - i = encodeVarintVmservice(dAtA, i, uint64(len(m.SwitchID))) - i-- - dAtA[i] = 0x22 - } - if len(m.MacAddress) > 0 { - i -= len(m.MacAddress) - copy(dAtA[i:], m.MacAddress) - i = encodeVarintVmservice(dAtA, i, uint64(len(m.MacAddress))) - i-- - dAtA[i] = 0x1a - } - if len(m.PortID) > 0 { - i -= len(m.PortID) - copy(dAtA[i:], m.PortID) - i = encodeVarintVmservice(dAtA, i, uint64(len(m.PortID))) - i-- - dAtA[i] = 0x12 - } - if len(m.NicID) > 0 { - i -= len(m.NicID) - copy(dAtA[i:], m.NicID) - i = encodeVarintVmservice(dAtA, i, uint64(len(m.NicID))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *WindowsPCIDevice) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *WindowsPCIDevice) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WindowsPCIDevice) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.InstanceID) > 0 { - i -= len(m.InstanceID) - copy(dAtA[i:], m.InstanceID) - i = encodeVarintVmservice(dAtA, i, uint64(len(m.InstanceID))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ModifyMemoryRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ModifyMemoryRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ModifyMemoryRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.MemoryMb != 0 { - i = encodeVarintVmservice(dAtA, i, uint64(m.MemoryMb)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *ModifyProcessorRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ModifyProcessorRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ModifyProcessorRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.ProcessorIndex != 0 { - i = encodeVarintVmservice(dAtA, i, uint64(m.ProcessorIndex)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *ModifyProcessorConfigRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ModifyProcessorConfigRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ModifyProcessorConfigRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.ProcessorLimit != 0 { - i = encodeVarintVmservice(dAtA, i, uint64(m.ProcessorLimit)) - i-- - dAtA[i] = 0x10 - } - if m.ProcessorWeight != 0 { - i = encodeVarintVmservice(dAtA, i, uint64(m.ProcessorWeight)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *ModifyResourceRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ModifyResourceRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ModifyResourceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Resource != nil { - { - size := m.Resource.Size() - i -= size - if _, err := m.Resource.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - } - } - if m.Type != 0 { - i = encodeVarintVmservice(dAtA, i, uint64(m.Type)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *ModifyResourceRequest_Processor) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ModifyResourceRequest_Processor) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Processor != nil { - { - size, err := m.Processor.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintVmservice(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - return len(dAtA) - i, nil -} -func (m *ModifyResourceRequest_ProcessorConfig) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ModifyResourceRequest_ProcessorConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.ProcessorConfig != nil { - { - size, err := m.ProcessorConfig.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintVmservice(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - return len(dAtA) - i, nil -} -func (m *ModifyResourceRequest_Memory) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ModifyResourceRequest_Memory) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Memory != nil { - { - size, err := m.Memory.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintVmservice(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - return len(dAtA) - i, nil -} -func (m *ModifyResourceRequest_ScsiDisk) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ModifyResourceRequest_ScsiDisk) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.ScsiDisk != nil { - { - size, err := m.ScsiDisk.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintVmservice(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - return len(dAtA) - i, nil -} -func (m *ModifyResourceRequest_VpmemDisk) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ModifyResourceRequest_VpmemDisk) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.VpmemDisk != nil { - { - size, err := m.VpmemDisk.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintVmservice(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - return len(dAtA) - i, nil -} -func (m *ModifyResourceRequest_NicConfig) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ModifyResourceRequest_NicConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.NicConfig != nil { - { - size, err := m.NicConfig.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintVmservice(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - } - return len(dAtA) - i, nil -} -func (m *ModifyResourceRequest_WindowsDevice) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ModifyResourceRequest_WindowsDevice) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.WindowsDevice != nil { - { - size, err := m.WindowsDevice.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintVmservice(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x42 - } - return len(dAtA) - i, nil -} -func encodeVarintVmservice(dAtA []byte, offset int, v uint64) int { - offset -= sovVmservice(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *DirectBoot) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.KernelPath) - if l > 0 { - n += 1 + l + sovVmservice(uint64(l)) - } - l = len(m.InitrdPath) - if l > 0 { - n += 1 + l + sovVmservice(uint64(l)) - } - l = len(m.KernelCmdline) - if l > 0 { - n += 1 + l + sovVmservice(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *UEFI) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.FirmwarePath) - if l > 0 { - n += 1 + l + sovVmservice(uint64(l)) - } - l = len(m.DevicePath) - if l > 0 { - n += 1 + l + sovVmservice(uint64(l)) - } - l = len(m.OptionalData) - if l > 0 { - n += 1 + l + sovVmservice(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *MemoryConfig) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.MemoryMb != 0 { - n += 1 + sovVmservice(uint64(m.MemoryMb)) - } - if m.AllowOvercommit { - n += 2 - } - if m.DeferredCommit { - n += 2 - } - if m.HotHint { - n += 2 - } - if m.ColdHint { - n += 2 - } - if m.ColdDiscardHint { - n += 2 - } - if m.LowMmioGapInMb != 0 { - n += 1 + sovVmservice(uint64(m.LowMmioGapInMb)) - } - if m.HighMmioBaseInMb != 0 { - n += 1 + sovVmservice(uint64(m.HighMmioBaseInMb)) - } - if m.HighMmioGapInMb != 0 { - n += 1 + sovVmservice(uint64(m.HighMmioGapInMb)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ProcessorConfig) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ProcessorCount != 0 { - n += 1 + sovVmservice(uint64(m.ProcessorCount)) - } - if m.ProcessorWeight != 0 { - n += 1 + sovVmservice(uint64(m.ProcessorWeight)) - } - if m.ProcessorLimit != 0 { - n += 1 + sovVmservice(uint64(m.ProcessorLimit)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *DevicesConfig) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.ScsiDisks) > 0 { - for _, e := range m.ScsiDisks { - l = e.Size() - n += 1 + l + sovVmservice(uint64(l)) - } - } - if len(m.VpmemDisks) > 0 { - for _, e := range m.VpmemDisks { - l = e.Size() - n += 1 + l + sovVmservice(uint64(l)) - } - } - if len(m.NicConfig) > 0 { - for _, e := range m.NicConfig { - l = e.Size() - n += 1 + l + sovVmservice(uint64(l)) - } - } - if len(m.WindowsDevice) > 0 { - for _, e := range m.WindowsDevice { - l = e.Size() - n += 1 + l + sovVmservice(uint64(l)) - } - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *VMConfig) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.MemoryConfig != nil { - l = m.MemoryConfig.Size() - n += 1 + l + sovVmservice(uint64(l)) - } - if m.ProcessorConfig != nil { - l = m.ProcessorConfig.Size() - n += 1 + l + sovVmservice(uint64(l)) - } - if m.DevicesConfig != nil { - l = m.DevicesConfig.Size() - n += 1 + l + sovVmservice(uint64(l)) - } - if m.SerialConfig != nil { - l = m.SerialConfig.Size() - n += 1 + l + sovVmservice(uint64(l)) - } - if m.BootConfig != nil { - n += m.BootConfig.Size() - } - if m.WindowsOptions != nil { - l = m.WindowsOptions.Size() - n += 1 + l + sovVmservice(uint64(l)) - } - if len(m.ExtraData) > 0 { - for k, v := range m.ExtraData { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovVmservice(uint64(len(k))) + 1 + len(v) + sovVmservice(uint64(len(v))) - n += mapEntrySize + 1 + sovVmservice(uint64(mapEntrySize)) - } - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *VMConfig_DirectBoot) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.DirectBoot != nil { - l = m.DirectBoot.Size() - n += 1 + l + sovVmservice(uint64(l)) - } - return n -} -func (m *VMConfig_Uefi) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Uefi != nil { - l = m.Uefi.Size() - n += 1 + l + sovVmservice(uint64(l)) - } - return n -} -func (m *WindowsOptions) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.CpuGroupID != 0 { - n += 1 + sovVmservice(uint64(m.CpuGroupID)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *SerialConfig) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Ports) > 0 { - for _, e := range m.Ports { - l = e.Size() - n += 1 + l + sovVmservice(uint64(l)) - } - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *SerialConfig_Config) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Port != 0 { - n += 1 + sovVmservice(uint64(m.Port)) - } - l = len(m.SocketPath) - if l > 0 { - n += 1 + l + sovVmservice(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *CreateVMRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Config != nil { - l = m.Config.Size() - n += 1 + l + sovVmservice(uint64(l)) - } - l = len(m.LogID) - if l > 0 { - n += 1 + l + sovVmservice(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *InspectVMRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Query) - if l > 0 { - n += 1 + l + sovVmservice(uint64(l)) - } - if m.RecursionLimit != 0 { - n += 1 + sovVmservice(uint64(m.RecursionLimit)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *InspectVMResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Result != nil { - l = m.Result.Size() - n += 1 + l + sovVmservice(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *MemoryStats) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.WorkingSetBytes != 0 { - n += 1 + sovVmservice(uint64(m.WorkingSetBytes)) - } - if m.AvailableMemory != 0 { - n += 1 + sovVmservice(uint64(m.AvailableMemory)) - } - if m.ReservedMemory != 0 { - n += 1 + sovVmservice(uint64(m.ReservedMemory)) - } - if m.AssignedMemory != 0 { - n += 1 + sovVmservice(uint64(m.AssignedMemory)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ProcessorStats) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.TotalRuntimeNs != 0 { - n += 1 + sovVmservice(uint64(m.TotalRuntimeNs)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *PropertiesVMRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Types) > 0 { - l = 0 - for _, e := range m.Types { - l += sovVmservice(uint64(e)) - } - n += 1 + sovVmservice(uint64(l)) + l - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *PropertiesVMResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.MemoryStats != nil { - l = m.MemoryStats.Size() - n += 1 + l + sovVmservice(uint64(l)) - } - if m.ProcessorStats != nil { - l = m.ProcessorStats.Size() - n += 1 + l + sovVmservice(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *CapabilitiesVMResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.SupportedResources) > 0 { - for _, e := range m.SupportedResources { - l = e.Size() - n += 1 + l + sovVmservice(uint64(l)) - } - } - if len(m.SupportedGuestOs) > 0 { - l = 0 - for _, e := range m.SupportedGuestOs { - l += sovVmservice(uint64(e)) - } - n += 1 + sovVmservice(uint64(l)) + l - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *CapabilitiesVMResponse_SupportedResource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Add { - n += 2 - } - if m.Remove { - n += 2 - } - if m.Update { - n += 2 - } - if m.Resource != 0 { - n += 1 + sovVmservice(uint64(m.Resource)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *HVSocketListen) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ServiceID) - if l > 0 { - n += 1 + l + sovVmservice(uint64(l)) - } - l = len(m.ListenerPath) - if l > 0 { - n += 1 + l + sovVmservice(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *VSockListen) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Port != 0 { - n += 1 + sovVmservice(uint64(m.Port)) - } - l = len(m.ListenerPath) - if l > 0 { - n += 1 + l + sovVmservice(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *VMSocketRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Type != 0 { - n += 1 + sovVmservice(uint64(m.Type)) - } - if m.Config != nil { - n += m.Config.Size() - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *VMSocketRequest_HvsocketList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.HvsocketList != nil { - l = m.HvsocketList.Size() - n += 1 + l + sovVmservice(uint64(l)) - } - return n -} -func (m *VMSocketRequest_VsockListen) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.VsockListen != nil { - l = m.VsockListen.Size() - n += 1 + l + sovVmservice(uint64(l)) - } - return n -} -func (m *SCSIDisk) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Controller != 0 { - n += 1 + sovVmservice(uint64(m.Controller)) - } - if m.Lun != 0 { - n += 1 + sovVmservice(uint64(m.Lun)) - } - l = len(m.HostPath) - if l > 0 { - n += 1 + l + sovVmservice(uint64(l)) - } - if m.Type != 0 { - n += 1 + sovVmservice(uint64(m.Type)) - } - if m.ReadOnly { - n += 2 - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *VPMEMDisk) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.HostPath) - if l > 0 { - n += 1 + l + sovVmservice(uint64(l)) - } - if m.Type != 0 { - n += 1 + sovVmservice(uint64(m.Type)) - } - if m.ReadOnly { - n += 2 - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *NICConfig) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.NicID) - if l > 0 { - n += 1 + l + sovVmservice(uint64(l)) - } - l = len(m.PortID) - if l > 0 { - n += 1 + l + sovVmservice(uint64(l)) - } - l = len(m.MacAddress) - if l > 0 { - n += 1 + l + sovVmservice(uint64(l)) - } - l = len(m.SwitchID) - if l > 0 { - n += 1 + l + sovVmservice(uint64(l)) - } - l = len(m.NicName) - if l > 0 { - n += 1 + l + sovVmservice(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *WindowsPCIDevice) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.InstanceID) - if l > 0 { - n += 1 + l + sovVmservice(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ModifyMemoryRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.MemoryMb != 0 { - n += 1 + sovVmservice(uint64(m.MemoryMb)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ModifyProcessorRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ProcessorIndex != 0 { - n += 1 + sovVmservice(uint64(m.ProcessorIndex)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ModifyProcessorConfigRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ProcessorWeight != 0 { - n += 1 + sovVmservice(uint64(m.ProcessorWeight)) - } - if m.ProcessorLimit != 0 { - n += 1 + sovVmservice(uint64(m.ProcessorLimit)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ModifyResourceRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Type != 0 { - n += 1 + sovVmservice(uint64(m.Type)) - } - if m.Resource != nil { - n += m.Resource.Size() - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ModifyResourceRequest_Processor) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Processor != nil { - l = m.Processor.Size() - n += 1 + l + sovVmservice(uint64(l)) - } - return n -} -func (m *ModifyResourceRequest_ProcessorConfig) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ProcessorConfig != nil { - l = m.ProcessorConfig.Size() - n += 1 + l + sovVmservice(uint64(l)) - } - return n -} -func (m *ModifyResourceRequest_Memory) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Memory != nil { - l = m.Memory.Size() - n += 1 + l + sovVmservice(uint64(l)) - } - return n -} -func (m *ModifyResourceRequest_ScsiDisk) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ScsiDisk != nil { - l = m.ScsiDisk.Size() - n += 1 + l + sovVmservice(uint64(l)) - } - return n -} -func (m *ModifyResourceRequest_VpmemDisk) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.VpmemDisk != nil { - l = m.VpmemDisk.Size() - n += 1 + l + sovVmservice(uint64(l)) - } - return n -} -func (m *ModifyResourceRequest_NicConfig) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.NicConfig != nil { - l = m.NicConfig.Size() - n += 1 + l + sovVmservice(uint64(l)) - } - return n -} -func (m *ModifyResourceRequest_WindowsDevice) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.WindowsDevice != nil { - l = m.WindowsDevice.Size() - n += 1 + l + sovVmservice(uint64(l)) - } - return n -} - -func sovVmservice(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozVmservice(x uint64) (n int) { - return sovVmservice(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *DirectBoot) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DirectBoot{`, - `KernelPath:` + fmt.Sprintf("%v", this.KernelPath) + `,`, - `InitrdPath:` + fmt.Sprintf("%v", this.InitrdPath) + `,`, - `KernelCmdline:` + fmt.Sprintf("%v", this.KernelCmdline) + `,`, - `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, - `}`, - }, "") - return s -} -func (this *UEFI) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&UEFI{`, - `FirmwarePath:` + fmt.Sprintf("%v", this.FirmwarePath) + `,`, - `DevicePath:` + fmt.Sprintf("%v", this.DevicePath) + `,`, - `OptionalData:` + fmt.Sprintf("%v", this.OptionalData) + `,`, - `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, - `}`, - }, "") - return s -} -func (this *MemoryConfig) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&MemoryConfig{`, - `MemoryMb:` + fmt.Sprintf("%v", this.MemoryMb) + `,`, - `AllowOvercommit:` + fmt.Sprintf("%v", this.AllowOvercommit) + `,`, - `DeferredCommit:` + fmt.Sprintf("%v", this.DeferredCommit) + `,`, - `HotHint:` + fmt.Sprintf("%v", this.HotHint) + `,`, - `ColdHint:` + fmt.Sprintf("%v", this.ColdHint) + `,`, - `ColdDiscardHint:` + fmt.Sprintf("%v", this.ColdDiscardHint) + `,`, - `LowMmioGapInMb:` + fmt.Sprintf("%v", this.LowMmioGapInMb) + `,`, - `HighMmioBaseInMb:` + fmt.Sprintf("%v", this.HighMmioBaseInMb) + `,`, - `HighMmioGapInMb:` + fmt.Sprintf("%v", this.HighMmioGapInMb) + `,`, - `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, - `}`, - }, "") - return s -} -func (this *ProcessorConfig) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ProcessorConfig{`, - `ProcessorCount:` + fmt.Sprintf("%v", this.ProcessorCount) + `,`, - `ProcessorWeight:` + fmt.Sprintf("%v", this.ProcessorWeight) + `,`, - `ProcessorLimit:` + fmt.Sprintf("%v", this.ProcessorLimit) + `,`, - `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, - `}`, - }, "") - return s -} -func (this *DevicesConfig) String() string { - if this == nil { - return "nil" - } - repeatedStringForScsiDisks := "[]*SCSIDisk{" - for _, f := range this.ScsiDisks { - repeatedStringForScsiDisks += strings.Replace(f.String(), "SCSIDisk", "SCSIDisk", 1) + "," - } - repeatedStringForScsiDisks += "}" - repeatedStringForVpmemDisks := "[]*VPMEMDisk{" - for _, f := range this.VpmemDisks { - repeatedStringForVpmemDisks += strings.Replace(f.String(), "VPMEMDisk", "VPMEMDisk", 1) + "," - } - repeatedStringForVpmemDisks += "}" - repeatedStringForNicConfig := "[]*NICConfig{" - for _, f := range this.NicConfig { - repeatedStringForNicConfig += strings.Replace(f.String(), "NICConfig", "NICConfig", 1) + "," - } - repeatedStringForNicConfig += "}" - repeatedStringForWindowsDevice := "[]*WindowsPCIDevice{" - for _, f := range this.WindowsDevice { - repeatedStringForWindowsDevice += strings.Replace(f.String(), "WindowsPCIDevice", "WindowsPCIDevice", 1) + "," - } - repeatedStringForWindowsDevice += "}" - s := strings.Join([]string{`&DevicesConfig{`, - `ScsiDisks:` + repeatedStringForScsiDisks + `,`, - `VpmemDisks:` + repeatedStringForVpmemDisks + `,`, - `NicConfig:` + repeatedStringForNicConfig + `,`, - `WindowsDevice:` + repeatedStringForWindowsDevice + `,`, - `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, - `}`, - }, "") - return s -} -func (this *VMConfig) String() string { - if this == nil { - return "nil" - } - keysForExtraData := make([]string, 0, len(this.ExtraData)) - for k, _ := range this.ExtraData { - keysForExtraData = append(keysForExtraData, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForExtraData) - mapStringForExtraData := "map[string]string{" - for _, k := range keysForExtraData { - mapStringForExtraData += fmt.Sprintf("%v: %v,", k, this.ExtraData[k]) - } - mapStringForExtraData += "}" - s := strings.Join([]string{`&VMConfig{`, - `MemoryConfig:` + strings.Replace(this.MemoryConfig.String(), "MemoryConfig", "MemoryConfig", 1) + `,`, - `ProcessorConfig:` + strings.Replace(this.ProcessorConfig.String(), "ProcessorConfig", "ProcessorConfig", 1) + `,`, - `DevicesConfig:` + strings.Replace(this.DevicesConfig.String(), "DevicesConfig", "DevicesConfig", 1) + `,`, - `SerialConfig:` + strings.Replace(this.SerialConfig.String(), "SerialConfig", "SerialConfig", 1) + `,`, - `BootConfig:` + fmt.Sprintf("%v", this.BootConfig) + `,`, - `WindowsOptions:` + strings.Replace(this.WindowsOptions.String(), "WindowsOptions", "WindowsOptions", 1) + `,`, - `ExtraData:` + mapStringForExtraData + `,`, - `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, - `}`, - }, "") - return s -} -func (this *VMConfig_DirectBoot) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&VMConfig_DirectBoot{`, - `DirectBoot:` + strings.Replace(fmt.Sprintf("%v", this.DirectBoot), "DirectBoot", "DirectBoot", 1) + `,`, - `}`, - }, "") - return s -} -func (this *VMConfig_Uefi) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&VMConfig_Uefi{`, - `Uefi:` + strings.Replace(fmt.Sprintf("%v", this.Uefi), "UEFI", "UEFI", 1) + `,`, - `}`, - }, "") - return s -} -func (this *WindowsOptions) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&WindowsOptions{`, - `CpuGroupID:` + fmt.Sprintf("%v", this.CpuGroupID) + `,`, - `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, - `}`, - }, "") - return s -} -func (this *SerialConfig) String() string { - if this == nil { - return "nil" - } - repeatedStringForPorts := "[]*SerialConfig_Config{" - for _, f := range this.Ports { - repeatedStringForPorts += strings.Replace(fmt.Sprintf("%v", f), "SerialConfig_Config", "SerialConfig_Config", 1) + "," - } - repeatedStringForPorts += "}" - s := strings.Join([]string{`&SerialConfig{`, - `Ports:` + repeatedStringForPorts + `,`, - `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, - `}`, - }, "") - return s -} -func (this *SerialConfig_Config) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&SerialConfig_Config{`, - `Port:` + fmt.Sprintf("%v", this.Port) + `,`, - `SocketPath:` + fmt.Sprintf("%v", this.SocketPath) + `,`, - `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, - `}`, - }, "") - return s -} -func (this *CreateVMRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&CreateVMRequest{`, - `Config:` + strings.Replace(this.Config.String(), "VMConfig", "VMConfig", 1) + `,`, - `LogID:` + fmt.Sprintf("%v", this.LogID) + `,`, - `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, - `}`, - }, "") - return s -} -func (this *InspectVMRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&InspectVMRequest{`, - `Query:` + fmt.Sprintf("%v", this.Query) + `,`, - `RecursionLimit:` + fmt.Sprintf("%v", this.RecursionLimit) + `,`, - `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, - `}`, - }, "") - return s -} -func (this *InspectVMResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&InspectVMResponse{`, - `Result:` + strings.Replace(fmt.Sprintf("%v", this.Result), "Value", "types.Value", 1) + `,`, - `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, - `}`, - }, "") - return s -} -func (this *MemoryStats) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&MemoryStats{`, - `WorkingSetBytes:` + fmt.Sprintf("%v", this.WorkingSetBytes) + `,`, - `AvailableMemory:` + fmt.Sprintf("%v", this.AvailableMemory) + `,`, - `ReservedMemory:` + fmt.Sprintf("%v", this.ReservedMemory) + `,`, - `AssignedMemory:` + fmt.Sprintf("%v", this.AssignedMemory) + `,`, - `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, - `}`, - }, "") - return s -} -func (this *ProcessorStats) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ProcessorStats{`, - `TotalRuntimeNs:` + fmt.Sprintf("%v", this.TotalRuntimeNs) + `,`, - `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, - `}`, - }, "") - return s -} -func (this *PropertiesVMRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PropertiesVMRequest{`, - `Types:` + fmt.Sprintf("%v", this.Types) + `,`, - `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, - `}`, - }, "") - return s -} -func (this *PropertiesVMResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PropertiesVMResponse{`, - `MemoryStats:` + strings.Replace(this.MemoryStats.String(), "MemoryStats", "MemoryStats", 1) + `,`, - `ProcessorStats:` + strings.Replace(this.ProcessorStats.String(), "ProcessorStats", "ProcessorStats", 1) + `,`, - `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, - `}`, - }, "") - return s -} -func (this *CapabilitiesVMResponse) String() string { - if this == nil { - return "nil" - } - repeatedStringForSupportedResources := "[]*CapabilitiesVMResponse_SupportedResource{" - for _, f := range this.SupportedResources { - repeatedStringForSupportedResources += strings.Replace(fmt.Sprintf("%v", f), "CapabilitiesVMResponse_SupportedResource", "CapabilitiesVMResponse_SupportedResource", 1) + "," - } - repeatedStringForSupportedResources += "}" - s := strings.Join([]string{`&CapabilitiesVMResponse{`, - `SupportedResources:` + repeatedStringForSupportedResources + `,`, - `SupportedGuestOs:` + fmt.Sprintf("%v", this.SupportedGuestOs) + `,`, - `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, - `}`, - }, "") - return s -} -func (this *CapabilitiesVMResponse_SupportedResource) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&CapabilitiesVMResponse_SupportedResource{`, - `Add:` + fmt.Sprintf("%v", this.Add) + `,`, - `Remove:` + fmt.Sprintf("%v", this.Remove) + `,`, - `Update:` + fmt.Sprintf("%v", this.Update) + `,`, - `Resource:` + fmt.Sprintf("%v", this.Resource) + `,`, - `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, - `}`, - }, "") - return s -} -func (this *HVSocketListen) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&HVSocketListen{`, - `ServiceID:` + fmt.Sprintf("%v", this.ServiceID) + `,`, - `ListenerPath:` + fmt.Sprintf("%v", this.ListenerPath) + `,`, - `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, - `}`, - }, "") - return s -} -func (this *VSockListen) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&VSockListen{`, - `Port:` + fmt.Sprintf("%v", this.Port) + `,`, - `ListenerPath:` + fmt.Sprintf("%v", this.ListenerPath) + `,`, - `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, - `}`, - }, "") - return s -} -func (this *VMSocketRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&VMSocketRequest{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `Config:` + fmt.Sprintf("%v", this.Config) + `,`, - `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, - `}`, - }, "") - return s -} -func (this *VMSocketRequest_HvsocketList) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&VMSocketRequest_HvsocketList{`, - `HvsocketList:` + strings.Replace(fmt.Sprintf("%v", this.HvsocketList), "HVSocketListen", "HVSocketListen", 1) + `,`, - `}`, - }, "") - return s -} -func (this *VMSocketRequest_VsockListen) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&VMSocketRequest_VsockListen{`, - `VsockListen:` + strings.Replace(fmt.Sprintf("%v", this.VsockListen), "VSockListen", "VSockListen", 1) + `,`, - `}`, - }, "") - return s -} -func (this *SCSIDisk) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&SCSIDisk{`, - `Controller:` + fmt.Sprintf("%v", this.Controller) + `,`, - `Lun:` + fmt.Sprintf("%v", this.Lun) + `,`, - `HostPath:` + fmt.Sprintf("%v", this.HostPath) + `,`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `ReadOnly:` + fmt.Sprintf("%v", this.ReadOnly) + `,`, - `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, - `}`, - }, "") - return s -} -func (this *VPMEMDisk) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&VPMEMDisk{`, - `HostPath:` + fmt.Sprintf("%v", this.HostPath) + `,`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `ReadOnly:` + fmt.Sprintf("%v", this.ReadOnly) + `,`, - `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, - `}`, - }, "") - return s -} -func (this *NICConfig) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&NICConfig{`, - `NicID:` + fmt.Sprintf("%v", this.NicID) + `,`, - `PortID:` + fmt.Sprintf("%v", this.PortID) + `,`, - `MacAddress:` + fmt.Sprintf("%v", this.MacAddress) + `,`, - `SwitchID:` + fmt.Sprintf("%v", this.SwitchID) + `,`, - `NicName:` + fmt.Sprintf("%v", this.NicName) + `,`, - `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, - `}`, - }, "") - return s -} -func (this *WindowsPCIDevice) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&WindowsPCIDevice{`, - `InstanceID:` + fmt.Sprintf("%v", this.InstanceID) + `,`, - `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, - `}`, - }, "") - return s -} -func (this *ModifyMemoryRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ModifyMemoryRequest{`, - `MemoryMb:` + fmt.Sprintf("%v", this.MemoryMb) + `,`, - `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, - `}`, - }, "") - return s -} -func (this *ModifyProcessorRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ModifyProcessorRequest{`, - `ProcessorIndex:` + fmt.Sprintf("%v", this.ProcessorIndex) + `,`, - `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, - `}`, - }, "") - return s -} -func (this *ModifyProcessorConfigRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ModifyProcessorConfigRequest{`, - `ProcessorWeight:` + fmt.Sprintf("%v", this.ProcessorWeight) + `,`, - `ProcessorLimit:` + fmt.Sprintf("%v", this.ProcessorLimit) + `,`, - `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, - `}`, - }, "") - return s -} -func (this *ModifyResourceRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ModifyResourceRequest{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `Resource:` + fmt.Sprintf("%v", this.Resource) + `,`, - `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, - `}`, - }, "") - return s -} -func (this *ModifyResourceRequest_Processor) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ModifyResourceRequest_Processor{`, - `Processor:` + strings.Replace(fmt.Sprintf("%v", this.Processor), "ModifyProcessorRequest", "ModifyProcessorRequest", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ModifyResourceRequest_ProcessorConfig) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ModifyResourceRequest_ProcessorConfig{`, - `ProcessorConfig:` + strings.Replace(fmt.Sprintf("%v", this.ProcessorConfig), "ModifyProcessorConfigRequest", "ModifyProcessorConfigRequest", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ModifyResourceRequest_Memory) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ModifyResourceRequest_Memory{`, - `Memory:` + strings.Replace(fmt.Sprintf("%v", this.Memory), "ModifyMemoryRequest", "ModifyMemoryRequest", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ModifyResourceRequest_ScsiDisk) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ModifyResourceRequest_ScsiDisk{`, - `ScsiDisk:` + strings.Replace(fmt.Sprintf("%v", this.ScsiDisk), "SCSIDisk", "SCSIDisk", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ModifyResourceRequest_VpmemDisk) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ModifyResourceRequest_VpmemDisk{`, - `VpmemDisk:` + strings.Replace(fmt.Sprintf("%v", this.VpmemDisk), "VPMEMDisk", "VPMEMDisk", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ModifyResourceRequest_NicConfig) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ModifyResourceRequest_NicConfig{`, - `NicConfig:` + strings.Replace(fmt.Sprintf("%v", this.NicConfig), "NICConfig", "NICConfig", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ModifyResourceRequest_WindowsDevice) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ModifyResourceRequest_WindowsDevice{`, - `WindowsDevice:` + strings.Replace(fmt.Sprintf("%v", this.WindowsDevice), "WindowsPCIDevice", "WindowsPCIDevice", 1) + `,`, - `}`, - }, "") - return s -} -func valueToStringVmservice(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} - -type VMService interface { - CreateVM(ctx context.Context, req *CreateVMRequest) (*types.Empty, error) - TeardownVM(ctx context.Context, req *types.Empty) (*types.Empty, error) - PauseVM(ctx context.Context, req *types.Empty) (*types.Empty, error) - ResumeVM(ctx context.Context, req *types.Empty) (*types.Empty, error) - WaitVM(ctx context.Context, req *types.Empty) (*types.Empty, error) - InspectVM(ctx context.Context, req *InspectVMRequest) (*InspectVMResponse, error) - CapabilitiesVM(ctx context.Context, req *types.Empty) (*CapabilitiesVMResponse, error) - PropertiesVM(ctx context.Context, req *PropertiesVMRequest) (*PropertiesVMResponse, error) - ModifyResource(ctx context.Context, req *ModifyResourceRequest) (*types.Empty, error) - VMSocket(ctx context.Context, req *VMSocketRequest) (*types.Empty, error) - Quit(ctx context.Context, req *types.Empty) (*types.Empty, error) -} - -func RegisterVMService(srv *github_com_containerd_ttrpc.Server, svc VMService) { - srv.Register("vmservice.VM", map[string]github_com_containerd_ttrpc.Method{ - "CreateVM": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { - var req CreateVMRequest - if err := unmarshal(&req); err != nil { - return nil, err - } - return svc.CreateVM(ctx, &req) - }, - "TeardownVM": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { - var req types.Empty - if err := unmarshal(&req); err != nil { - return nil, err - } - return svc.TeardownVM(ctx, &req) - }, - "PauseVM": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { - var req types.Empty - if err := unmarshal(&req); err != nil { - return nil, err - } - return svc.PauseVM(ctx, &req) - }, - "ResumeVM": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { - var req types.Empty - if err := unmarshal(&req); err != nil { - return nil, err - } - return svc.ResumeVM(ctx, &req) - }, - "WaitVM": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { - var req types.Empty - if err := unmarshal(&req); err != nil { - return nil, err - } - return svc.WaitVM(ctx, &req) - }, - "InspectVM": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { - var req InspectVMRequest - if err := unmarshal(&req); err != nil { - return nil, err - } - return svc.InspectVM(ctx, &req) - }, - "CapabilitiesVM": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { - var req types.Empty - if err := unmarshal(&req); err != nil { - return nil, err - } - return svc.CapabilitiesVM(ctx, &req) - }, - "PropertiesVM": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { - var req PropertiesVMRequest - if err := unmarshal(&req); err != nil { - return nil, err - } - return svc.PropertiesVM(ctx, &req) - }, - "ModifyResource": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { - var req ModifyResourceRequest - if err := unmarshal(&req); err != nil { - return nil, err - } - return svc.ModifyResource(ctx, &req) - }, - "VMSocket": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { - var req VMSocketRequest - if err := unmarshal(&req); err != nil { - return nil, err - } - return svc.VMSocket(ctx, &req) - }, - "Quit": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { - var req types.Empty - if err := unmarshal(&req); err != nil { - return nil, err - } - return svc.Quit(ctx, &req) - }, - }) -} - -type vMClient struct { - client *github_com_containerd_ttrpc.Client -} - -func NewVMClient(client *github_com_containerd_ttrpc.Client) VMService { - return &vMClient{ - client: client, - } -} - -func (c *vMClient) CreateVM(ctx context.Context, req *CreateVMRequest) (*types.Empty, error) { - var resp types.Empty - if err := c.client.Call(ctx, "vmservice.VM", "CreateVM", req, &resp); err != nil { - return nil, err - } - return &resp, nil -} - -func (c *vMClient) TeardownVM(ctx context.Context, req *types.Empty) (*types.Empty, error) { - var resp types.Empty - if err := c.client.Call(ctx, "vmservice.VM", "TeardownVM", req, &resp); err != nil { - return nil, err - } - return &resp, nil -} - -func (c *vMClient) PauseVM(ctx context.Context, req *types.Empty) (*types.Empty, error) { - var resp types.Empty - if err := c.client.Call(ctx, "vmservice.VM", "PauseVM", req, &resp); err != nil { - return nil, err - } - return &resp, nil -} - -func (c *vMClient) ResumeVM(ctx context.Context, req *types.Empty) (*types.Empty, error) { - var resp types.Empty - if err := c.client.Call(ctx, "vmservice.VM", "ResumeVM", req, &resp); err != nil { - return nil, err - } - return &resp, nil -} - -func (c *vMClient) WaitVM(ctx context.Context, req *types.Empty) (*types.Empty, error) { - var resp types.Empty - if err := c.client.Call(ctx, "vmservice.VM", "WaitVM", req, &resp); err != nil { - return nil, err - } - return &resp, nil -} - -func (c *vMClient) InspectVM(ctx context.Context, req *InspectVMRequest) (*InspectVMResponse, error) { - var resp InspectVMResponse - if err := c.client.Call(ctx, "vmservice.VM", "InspectVM", req, &resp); err != nil { - return nil, err - } - return &resp, nil -} - -func (c *vMClient) CapabilitiesVM(ctx context.Context, req *types.Empty) (*CapabilitiesVMResponse, error) { - var resp CapabilitiesVMResponse - if err := c.client.Call(ctx, "vmservice.VM", "CapabilitiesVM", req, &resp); err != nil { - return nil, err - } - return &resp, nil -} - -func (c *vMClient) PropertiesVM(ctx context.Context, req *PropertiesVMRequest) (*PropertiesVMResponse, error) { - var resp PropertiesVMResponse - if err := c.client.Call(ctx, "vmservice.VM", "PropertiesVM", req, &resp); err != nil { - return nil, err - } - return &resp, nil -} - -func (c *vMClient) ModifyResource(ctx context.Context, req *ModifyResourceRequest) (*types.Empty, error) { - var resp types.Empty - if err := c.client.Call(ctx, "vmservice.VM", "ModifyResource", req, &resp); err != nil { - return nil, err - } - return &resp, nil -} - -func (c *vMClient) VMSocket(ctx context.Context, req *VMSocketRequest) (*types.Empty, error) { - var resp types.Empty - if err := c.client.Call(ctx, "vmservice.VM", "VMSocket", req, &resp); err != nil { - return nil, err - } - return &resp, nil -} - -func (c *vMClient) Quit(ctx context.Context, req *types.Empty) (*types.Empty, error) { - var resp types.Empty - if err := c.client.Call(ctx, "vmservice.VM", "Quit", req, &resp); err != nil { - return nil, err - } - return &resp, nil -} -func (m *DirectBoot) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DirectBoot: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DirectBoot: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field KernelPath", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthVmservice - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthVmservice - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.KernelPath = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field InitrdPath", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthVmservice - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthVmservice - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.InitrdPath = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field KernelCmdline", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthVmservice - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthVmservice - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.KernelCmdline = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipVmservice(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthVmservice - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *UEFI) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: UEFI: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: UEFI: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FirmwarePath", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthVmservice - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthVmservice - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.FirmwarePath = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DevicePath", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthVmservice - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthVmservice - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DevicePath = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OptionalData", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthVmservice - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthVmservice - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.OptionalData = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipVmservice(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthVmservice - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MemoryConfig) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MemoryConfig: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MemoryConfig: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MemoryMb", wireType) - } - m.MemoryMb = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MemoryMb |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AllowOvercommit", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.AllowOvercommit = bool(v != 0) - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DeferredCommit", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.DeferredCommit = bool(v != 0) - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field HotHint", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.HotHint = bool(v != 0) - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ColdHint", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ColdHint = bool(v != 0) - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ColdDiscardHint", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ColdDiscardHint = bool(v != 0) - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LowMmioGapInMb", wireType) - } - m.LowMmioGapInMb = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.LowMmioGapInMb |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field HighMmioBaseInMb", wireType) - } - m.HighMmioBaseInMb = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.HighMmioBaseInMb |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field HighMmioGapInMb", wireType) - } - m.HighMmioGapInMb = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.HighMmioGapInMb |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipVmservice(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthVmservice - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ProcessorConfig) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ProcessorConfig: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ProcessorConfig: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ProcessorCount", wireType) - } - m.ProcessorCount = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ProcessorCount |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ProcessorWeight", wireType) - } - m.ProcessorWeight = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ProcessorWeight |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ProcessorLimit", wireType) - } - m.ProcessorLimit = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ProcessorLimit |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipVmservice(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthVmservice - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DevicesConfig) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DevicesConfig: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DevicesConfig: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ScsiDisks", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthVmservice - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthVmservice - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ScsiDisks = append(m.ScsiDisks, &SCSIDisk{}) - if err := m.ScsiDisks[len(m.ScsiDisks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VpmemDisks", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthVmservice - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthVmservice - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.VpmemDisks = append(m.VpmemDisks, &VPMEMDisk{}) - if err := m.VpmemDisks[len(m.VpmemDisks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NicConfig", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthVmservice - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthVmservice - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NicConfig = append(m.NicConfig, &NICConfig{}) - if err := m.NicConfig[len(m.NicConfig)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WindowsDevice", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthVmservice - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthVmservice - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.WindowsDevice = append(m.WindowsDevice, &WindowsPCIDevice{}) - if err := m.WindowsDevice[len(m.WindowsDevice)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipVmservice(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthVmservice - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *VMConfig) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: VMConfig: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: VMConfig: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MemoryConfig", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthVmservice - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthVmservice - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.MemoryConfig == nil { - m.MemoryConfig = &MemoryConfig{} - } - if err := m.MemoryConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ProcessorConfig", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthVmservice - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthVmservice - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ProcessorConfig == nil { - m.ProcessorConfig = &ProcessorConfig{} - } - if err := m.ProcessorConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DevicesConfig", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthVmservice - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthVmservice - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.DevicesConfig == nil { - m.DevicesConfig = &DevicesConfig{} - } - if err := m.DevicesConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SerialConfig", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthVmservice - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthVmservice - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.SerialConfig == nil { - m.SerialConfig = &SerialConfig{} - } - if err := m.SerialConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DirectBoot", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthVmservice - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthVmservice - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &DirectBoot{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.BootConfig = &VMConfig_DirectBoot{v} - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Uefi", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthVmservice - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthVmservice - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &UEFI{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.BootConfig = &VMConfig_Uefi{v} - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WindowsOptions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthVmservice - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthVmservice - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WindowsOptions == nil { - m.WindowsOptions = &WindowsOptions{} - } - if err := m.WindowsOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExtraData", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthVmservice - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthVmservice - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ExtraData == nil { - m.ExtraData = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthVmservice - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthVmservice - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthVmservice - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthVmservice - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipVmservice(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthVmservice - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.ExtraData[mapkey] = mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipVmservice(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthVmservice - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *WindowsOptions) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: WindowsOptions: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: WindowsOptions: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CpuGroupID", wireType) - } - m.CpuGroupID = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.CpuGroupID |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipVmservice(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthVmservice - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SerialConfig) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SerialConfig: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SerialConfig: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Ports", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthVmservice - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthVmservice - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Ports = append(m.Ports, &SerialConfig_Config{}) - if err := m.Ports[len(m.Ports)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipVmservice(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthVmservice - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SerialConfig_Config) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Config: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Config: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) - } - m.Port = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Port |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SocketPath", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthVmservice - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthVmservice - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SocketPath = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipVmservice(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthVmservice - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CreateVMRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CreateVMRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CreateVMRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Config", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthVmservice - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthVmservice - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Config == nil { - m.Config = &VMConfig{} - } - if err := m.Config.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LogID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthVmservice - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthVmservice - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.LogID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipVmservice(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthVmservice - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *InspectVMRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: InspectVMRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: InspectVMRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthVmservice - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthVmservice - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Query = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RecursionLimit", wireType) - } - m.RecursionLimit = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.RecursionLimit |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipVmservice(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthVmservice - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *InspectVMResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: InspectVMResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: InspectVMResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthVmservice - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthVmservice - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Result == nil { - m.Result = &types.Value{} - } - if err := m.Result.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipVmservice(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthVmservice - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MemoryStats) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MemoryStats: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MemoryStats: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkingSetBytes", wireType) - } - m.WorkingSetBytes = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.WorkingSetBytes |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AvailableMemory", wireType) - } - m.AvailableMemory = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.AvailableMemory |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReservedMemory", wireType) - } - m.ReservedMemory = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ReservedMemory |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AssignedMemory", wireType) - } - m.AssignedMemory = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.AssignedMemory |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipVmservice(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthVmservice - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ProcessorStats) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ProcessorStats: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ProcessorStats: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TotalRuntimeNs", wireType) - } - m.TotalRuntimeNs = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.TotalRuntimeNs |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipVmservice(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthVmservice - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PropertiesVMRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PropertiesVMRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PropertiesVMRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType == 0 { - var v PropertiesVMRequest_PropertiesType - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= PropertiesVMRequest_PropertiesType(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Types = append(m.Types, v) - } else if wireType == 2 { - var packedLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return ErrInvalidLengthVmservice - } - postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthVmservice - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - var elementCount int - if elementCount != 0 && len(m.Types) == 0 { - m.Types = make([]PropertiesVMRequest_PropertiesType, 0, elementCount) - } - for iNdEx < postIndex { - var v PropertiesVMRequest_PropertiesType - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= PropertiesVMRequest_PropertiesType(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Types = append(m.Types, v) - } - } else { - return fmt.Errorf("proto: wrong wireType = %d for field Types", wireType) - } - default: - iNdEx = preIndex - skippy, err := skipVmservice(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthVmservice - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PropertiesVMResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PropertiesVMResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PropertiesVMResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MemoryStats", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthVmservice - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthVmservice - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.MemoryStats == nil { - m.MemoryStats = &MemoryStats{} - } - if err := m.MemoryStats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ProcessorStats", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthVmservice - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthVmservice - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ProcessorStats == nil { - m.ProcessorStats = &ProcessorStats{} - } - if err := m.ProcessorStats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipVmservice(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthVmservice - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CapabilitiesVMResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CapabilitiesVMResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CapabilitiesVMResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SupportedResources", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthVmservice - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthVmservice - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SupportedResources = append(m.SupportedResources, &CapabilitiesVMResponse_SupportedResource{}) - if err := m.SupportedResources[len(m.SupportedResources)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType == 0 { - var v CapabilitiesVMResponse_SupportedGuestOS - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= CapabilitiesVMResponse_SupportedGuestOS(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.SupportedGuestOs = append(m.SupportedGuestOs, v) - } else if wireType == 2 { - var packedLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return ErrInvalidLengthVmservice - } - postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthVmservice - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - var elementCount int - if elementCount != 0 && len(m.SupportedGuestOs) == 0 { - m.SupportedGuestOs = make([]CapabilitiesVMResponse_SupportedGuestOS, 0, elementCount) - } - for iNdEx < postIndex { - var v CapabilitiesVMResponse_SupportedGuestOS - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= CapabilitiesVMResponse_SupportedGuestOS(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.SupportedGuestOs = append(m.SupportedGuestOs, v) - } - } else { - return fmt.Errorf("proto: wrong wireType = %d for field SupportedGuestOs", wireType) - } - default: - iNdEx = preIndex - skippy, err := skipVmservice(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthVmservice - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CapabilitiesVMResponse_SupportedResource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SupportedResource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SupportedResource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Add", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Add = bool(v != 0) - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Remove", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Remove = bool(v != 0) - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Update", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Update = bool(v != 0) - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Resource", wireType) - } - m.Resource = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Resource |= CapabilitiesVMResponse_Resource(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipVmservice(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthVmservice - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *HVSocketListen) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: HVSocketListen: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: HVSocketListen: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ServiceID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthVmservice - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthVmservice - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ServiceID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListenerPath", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthVmservice - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthVmservice - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ListenerPath = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipVmservice(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthVmservice - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *VSockListen) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: VSockListen: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: VSockListen: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) - } - m.Port = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Port |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListenerPath", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthVmservice - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthVmservice - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ListenerPath = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipVmservice(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthVmservice - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *VMSocketRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: VMSocketRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: VMSocketRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - m.Type = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Type |= ModifyType(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HvsocketList", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthVmservice - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthVmservice - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &HVSocketListen{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Config = &VMSocketRequest_HvsocketList{v} - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VsockListen", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthVmservice - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthVmservice - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &VSockListen{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Config = &VMSocketRequest_VsockListen{v} - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipVmservice(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthVmservice - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SCSIDisk) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SCSIDisk: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SCSIDisk: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Controller", wireType) - } - m.Controller = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Controller |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Lun", wireType) - } - m.Lun = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Lun |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HostPath", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthVmservice - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthVmservice - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.HostPath = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - m.Type = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Type |= DiskType(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadOnly", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ReadOnly = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipVmservice(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthVmservice - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *VPMEMDisk) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: VPMEMDisk: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: VPMEMDisk: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HostPath", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthVmservice - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthVmservice - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.HostPath = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - m.Type = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Type |= DiskType(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadOnly", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ReadOnly = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipVmservice(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthVmservice - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *NICConfig) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: NICConfig: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NICConfig: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NicID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthVmservice - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthVmservice - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NicID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PortID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthVmservice - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthVmservice - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PortID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MacAddress", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthVmservice - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthVmservice - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MacAddress = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SwitchID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthVmservice - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthVmservice - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SwitchID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NicName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthVmservice - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthVmservice - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NicName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipVmservice(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthVmservice - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } +func (*CapabilitiesVMResponse_SupportedResource) ProtoMessage() {} - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *WindowsPCIDevice) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: WindowsPCIDevice: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: WindowsPCIDevice: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field InstanceID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthVmservice - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthVmservice - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.InstanceID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipVmservice(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthVmservice - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy +func (x *CapabilitiesVMResponse_SupportedResource) ProtoReflect() protoreflect.Message { + mi := &file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[29] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil + return mi.MessageOf(x) } -func (m *ModifyMemoryRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ModifyMemoryRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ModifyMemoryRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MemoryMb", wireType) - } - m.MemoryMb = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MemoryMb |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipVmservice(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthVmservice - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil +// Deprecated: Use CapabilitiesVMResponse_SupportedResource.ProtoReflect.Descriptor instead. +func (*CapabilitiesVMResponse_SupportedResource) Descriptor() ([]byte, []int) { + return file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_rawDescGZIP(), []int{15, 0} +} + +func (x *CapabilitiesVMResponse_SupportedResource) GetAdd() bool { + if x != nil { + return x.Add + } + return false +} + +func (x *CapabilitiesVMResponse_SupportedResource) GetRemove() bool { + if x != nil { + return x.Remove + } + return false +} + +func (x *CapabilitiesVMResponse_SupportedResource) GetUpdate() bool { + if x != nil { + return x.Update + } + return false +} + +func (x *CapabilitiesVMResponse_SupportedResource) GetResource() CapabilitiesVMResponse_Resource { + if x != nil { + return x.Resource + } + return CapabilitiesVMResponse_Vpmem +} + +var File_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto protoreflect.FileDescriptor + +var file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_rawDesc = []byte{ + 0x0a, 0x3f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4d, 0x69, 0x63, + 0x72, 0x6f, 0x73, 0x6f, 0x66, 0x74, 0x2f, 0x68, 0x63, 0x73, 0x73, 0x68, 0x69, 0x6d, 0x2f, 0x69, + 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x76, 0x6d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x2f, 0x76, 0x6d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x12, 0x09, 0x76, 0x6d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x1a, 0x1b, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, + 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, + 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x75, 0x0a, 0x0a, 0x44, 0x69, 0x72, 0x65, 0x63, + 0x74, 0x42, 0x6f, 0x6f, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x6b, 0x65, 0x72, 0x6e, 0x65, 0x6c, 0x5f, + 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6b, 0x65, 0x72, 0x6e, + 0x65, 0x6c, 0x50, 0x61, 0x74, 0x68, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x6e, 0x69, 0x74, 0x72, 0x64, + 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x69, 0x6e, 0x69, + 0x74, 0x72, 0x64, 0x50, 0x61, 0x74, 0x68, 0x12, 0x25, 0x0a, 0x0e, 0x6b, 0x65, 0x72, 0x6e, 0x65, + 0x6c, 0x5f, 0x63, 0x6d, 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0d, 0x6b, 0x65, 0x72, 0x6e, 0x65, 0x6c, 0x43, 0x6d, 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x22, 0x71, + 0x0a, 0x04, 0x55, 0x45, 0x46, 0x49, 0x12, 0x23, 0x0a, 0x0d, 0x66, 0x69, 0x72, 0x6d, 0x77, 0x61, + 0x72, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x66, + 0x69, 0x72, 0x6d, 0x77, 0x61, 0x72, 0x65, 0x50, 0x61, 0x74, 0x68, 0x12, 0x1f, 0x0a, 0x0b, 0x64, + 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0a, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x50, 0x61, 0x74, 0x68, 0x12, 0x23, 0x0a, 0x0d, + 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x44, 0x61, 0x74, + 0x61, 0x22, 0xed, 0x02, 0x0a, 0x0c, 0x4d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x5f, 0x6d, 0x62, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x4d, 0x62, 0x12, + 0x29, 0x0a, 0x10, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x6f, 0x76, 0x65, 0x72, 0x63, 0x6f, 0x6d, + 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x61, 0x6c, 0x6c, 0x6f, 0x77, + 0x4f, 0x76, 0x65, 0x72, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x64, 0x65, + 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x0e, 0x64, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x43, 0x6f, 0x6d, + 0x6d, 0x69, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x68, 0x6f, 0x74, 0x5f, 0x68, 0x69, 0x6e, 0x74, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x68, 0x6f, 0x74, 0x48, 0x69, 0x6e, 0x74, 0x12, 0x1b, + 0x0a, 0x09, 0x63, 0x6f, 0x6c, 0x64, 0x5f, 0x68, 0x69, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x08, 0x63, 0x6f, 0x6c, 0x64, 0x48, 0x69, 0x6e, 0x74, 0x12, 0x2a, 0x0a, 0x11, 0x63, + 0x6f, 0x6c, 0x64, 0x5f, 0x64, 0x69, 0x73, 0x63, 0x61, 0x72, 0x64, 0x5f, 0x68, 0x69, 0x6e, 0x74, + 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x63, 0x6f, 0x6c, 0x64, 0x44, 0x69, 0x73, 0x63, + 0x61, 0x72, 0x64, 0x48, 0x69, 0x6e, 0x74, 0x12, 0x2a, 0x0a, 0x12, 0x6c, 0x6f, 0x77, 0x5f, 0x6d, + 0x6d, 0x69, 0x6f, 0x5f, 0x67, 0x61, 0x70, 0x5f, 0x69, 0x6e, 0x5f, 0x6d, 0x62, 0x18, 0x07, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x0e, 0x6c, 0x6f, 0x77, 0x4d, 0x6d, 0x69, 0x6f, 0x47, 0x61, 0x70, 0x49, + 0x6e, 0x4d, 0x62, 0x12, 0x2e, 0x0a, 0x14, 0x68, 0x69, 0x67, 0x68, 0x5f, 0x6d, 0x6d, 0x69, 0x6f, + 0x5f, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x69, 0x6e, 0x5f, 0x6d, 0x62, 0x18, 0x08, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x10, 0x68, 0x69, 0x67, 0x68, 0x4d, 0x6d, 0x69, 0x6f, 0x42, 0x61, 0x73, 0x65, 0x49, + 0x6e, 0x4d, 0x62, 0x12, 0x2c, 0x0a, 0x13, 0x68, 0x69, 0x67, 0x68, 0x5f, 0x6d, 0x6d, 0x69, 0x6f, + 0x5f, 0x67, 0x61, 0x70, 0x5f, 0x69, 0x6e, 0x5f, 0x6d, 0x62, 0x18, 0x09, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x0f, 0x68, 0x69, 0x67, 0x68, 0x4d, 0x6d, 0x69, 0x6f, 0x47, 0x61, 0x70, 0x49, 0x6e, 0x4d, + 0x62, 0x22, 0x8e, 0x01, 0x0a, 0x0f, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x27, 0x0a, 0x0f, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, + 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0e, + 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x29, + 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x5f, 0x77, 0x65, 0x69, 0x67, + 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, + 0x73, 0x6f, 0x72, 0x57, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x70, 0x72, 0x6f, + 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0d, 0x52, 0x0e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x4c, 0x69, 0x6d, + 0x69, 0x74, 0x22, 0xf3, 0x01, 0x0a, 0x0d, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x12, 0x32, 0x0a, 0x0a, 0x73, 0x63, 0x73, 0x69, 0x5f, 0x64, 0x69, 0x73, + 0x6b, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x76, 0x6d, 0x73, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x2e, 0x53, 0x43, 0x53, 0x49, 0x44, 0x69, 0x73, 0x6b, 0x52, 0x09, 0x73, + 0x63, 0x73, 0x69, 0x44, 0x69, 0x73, 0x6b, 0x73, 0x12, 0x35, 0x0a, 0x0b, 0x76, 0x70, 0x6d, 0x65, + 0x6d, 0x5f, 0x64, 0x69, 0x73, 0x6b, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, + 0x76, 0x6d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x56, 0x50, 0x4d, 0x45, 0x4d, 0x44, + 0x69, 0x73, 0x6b, 0x52, 0x0a, 0x76, 0x70, 0x6d, 0x65, 0x6d, 0x44, 0x69, 0x73, 0x6b, 0x73, 0x12, + 0x33, 0x0a, 0x0a, 0x6e, 0x69, 0x63, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x03, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x76, 0x6d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, + 0x4e, 0x49, 0x43, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x09, 0x6e, 0x69, 0x63, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x12, 0x42, 0x0a, 0x0e, 0x77, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x73, 0x5f, + 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x76, + 0x6d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x57, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x73, + 0x50, 0x43, 0x49, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x52, 0x0d, 0x77, 0x69, 0x6e, 0x64, 0x6f, + 0x77, 0x73, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x22, 0xc2, 0x04, 0x0a, 0x08, 0x56, 0x4d, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3c, 0x0a, 0x0d, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x5f, + 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x76, + 0x6d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x4d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0c, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x12, 0x45, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, + 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, + 0x76, 0x6d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, + 0x73, 0x6f, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x63, 0x65, + 0x73, 0x73, 0x6f, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3f, 0x0a, 0x0e, 0x64, 0x65, + 0x76, 0x69, 0x63, 0x65, 0x73, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x76, 0x6d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x44, + 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0d, 0x64, 0x65, + 0x76, 0x69, 0x63, 0x65, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3c, 0x0a, 0x0d, 0x73, + 0x65, 0x72, 0x69, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x76, 0x6d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x53, + 0x65, 0x72, 0x69, 0x61, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0c, 0x73, 0x65, 0x72, + 0x69, 0x61, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x38, 0x0a, 0x0b, 0x64, 0x69, 0x72, + 0x65, 0x63, 0x74, 0x5f, 0x62, 0x6f, 0x6f, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, + 0x2e, 0x76, 0x6d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x44, 0x69, 0x72, 0x65, 0x63, + 0x74, 0x42, 0x6f, 0x6f, 0x74, 0x48, 0x00, 0x52, 0x0a, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x42, + 0x6f, 0x6f, 0x74, 0x12, 0x25, 0x0a, 0x04, 0x75, 0x65, 0x66, 0x69, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x0f, 0x2e, 0x76, 0x6d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x55, 0x45, + 0x46, 0x49, 0x48, 0x00, 0x52, 0x04, 0x75, 0x65, 0x66, 0x69, 0x12, 0x42, 0x0a, 0x0f, 0x77, 0x69, + 0x6e, 0x64, 0x6f, 0x77, 0x73, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x07, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x76, 0x6d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, + 0x57, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x73, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0e, + 0x77, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x73, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x41, + 0x0a, 0x0a, 0x65, 0x78, 0x74, 0x72, 0x61, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x08, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x76, 0x6d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x56, + 0x4d, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x45, 0x78, 0x74, 0x72, 0x61, 0x44, 0x61, 0x74, + 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x09, 0x65, 0x78, 0x74, 0x72, 0x61, 0x44, 0x61, 0x74, + 0x61, 0x1a, 0x3c, 0x0a, 0x0e, 0x45, 0x78, 0x74, 0x72, 0x61, 0x44, 0x61, 0x74, 0x61, 0x45, 0x6e, + 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, + 0x0c, 0x0a, 0x0a, 0x42, 0x6f, 0x6f, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x32, 0x0a, + 0x0e, 0x57, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x73, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, + 0x20, 0x0a, 0x0c, 0x63, 0x70, 0x75, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x63, 0x70, 0x75, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, + 0x64, 0x22, 0x83, 0x01, 0x0a, 0x0c, 0x53, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x12, 0x34, 0x0a, 0x05, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x1e, 0x2e, 0x76, 0x6d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x53, 0x65, + 0x72, 0x69, 0x61, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x52, 0x05, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x1a, 0x3d, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, + 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, + 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x6f, 0x63, + 0x6b, 0x65, 0x74, 0x50, 0x61, 0x74, 0x68, 0x22, 0x55, 0x0a, 0x0f, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x56, 0x4d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2b, 0x0a, 0x06, 0x63, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x76, 0x6d, 0x73, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x56, 0x4d, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, + 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x15, 0x0a, 0x06, 0x6c, 0x6f, 0x67, 0x5f, 0x69, + 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, 0x6f, 0x67, 0x49, 0x64, 0x22, 0x51, + 0x0a, 0x10, 0x49, 0x6e, 0x73, 0x70, 0x65, 0x63, 0x74, 0x56, 0x4d, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x63, 0x75, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0d, 0x52, 0x0e, 0x72, 0x65, 0x63, 0x75, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x4c, 0x69, 0x6d, 0x69, + 0x74, 0x22, 0x43, 0x0a, 0x11, 0x49, 0x6e, 0x73, 0x70, 0x65, 0x63, 0x74, 0x56, 0x4d, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, + 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0xb6, 0x01, 0x0a, 0x0b, 0x4d, 0x65, 0x6d, 0x6f, 0x72, + 0x79, 0x53, 0x74, 0x61, 0x74, 0x73, 0x12, 0x2a, 0x0a, 0x11, 0x77, 0x6f, 0x72, 0x6b, 0x69, 0x6e, + 0x67, 0x5f, 0x73, 0x65, 0x74, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x0f, 0x77, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x74, 0x42, 0x79, 0x74, + 0x65, 0x73, 0x12, 0x29, 0x0a, 0x10, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x5f, + 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0f, 0x61, 0x76, + 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x4d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x12, 0x27, 0x0a, + 0x0f, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, + 0x4d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x12, 0x27, 0x0a, 0x0f, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, + 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x0e, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x4d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x22, + 0x3a, 0x0a, 0x0e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x53, 0x74, 0x61, 0x74, + 0x73, 0x12, 0x28, 0x0a, 0x10, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x72, 0x75, 0x6e, 0x74, 0x69, + 0x6d, 0x65, 0x5f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, 0x74, 0x6f, 0x74, + 0x61, 0x6c, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x4e, 0x73, 0x22, 0x87, 0x01, 0x0a, 0x13, + 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x56, 0x4d, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x43, 0x0a, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x0e, 0x32, 0x2d, 0x2e, 0x76, 0x6d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x50, + 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x56, 0x4d, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x54, 0x79, 0x70, + 0x65, 0x52, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x22, 0x2b, 0x0a, 0x0e, 0x50, 0x72, 0x6f, 0x70, + 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0a, 0x0a, 0x06, 0x4d, 0x65, + 0x6d, 0x6f, 0x72, 0x79, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, + 0x73, 0x6f, 0x72, 0x10, 0x01, 0x22, 0x95, 0x01, 0x0a, 0x14, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, + 0x74, 0x69, 0x65, 0x73, 0x56, 0x4d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, + 0x0a, 0x0c, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x73, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x76, 0x6d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x2e, 0x4d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x0b, 0x6d, 0x65, + 0x6d, 0x6f, 0x72, 0x79, 0x53, 0x74, 0x61, 0x74, 0x73, 0x12, 0x42, 0x0a, 0x0f, 0x70, 0x72, 0x6f, + 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x76, 0x6d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x50, + 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x0e, 0x70, + 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x53, 0x74, 0x61, 0x74, 0x73, 0x22, 0x88, 0x04, + 0x0a, 0x16, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x56, 0x4d, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x64, 0x0a, 0x13, 0x73, 0x75, 0x70, 0x70, + 0x6f, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x76, 0x6d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x2e, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x56, 0x4d, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, + 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x12, 0x73, 0x75, 0x70, 0x70, + 0x6f, 0x72, 0x74, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x60, + 0x0a, 0x12, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x67, 0x75, 0x65, 0x73, + 0x74, 0x5f, 0x6f, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x32, 0x2e, 0x76, 0x6d, 0x73, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, + 0x69, 0x65, 0x73, 0x56, 0x4d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x75, + 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x47, 0x75, 0x65, 0x73, 0x74, 0x4f, 0x53, 0x52, 0x10, + 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x47, 0x75, 0x65, 0x73, 0x74, 0x4f, 0x73, + 0x1a, 0x9d, 0x01, 0x0a, 0x11, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x41, 0x64, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x03, 0x41, 0x64, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x52, 0x65, 0x6d, 0x6f, + 0x76, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, + 0x12, 0x16, 0x0a, 0x06, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x06, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x46, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2a, 0x2e, 0x76, 0x6d, 0x73, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, + 0x69, 0x65, 0x73, 0x56, 0x4d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x22, 0x5a, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x09, 0x0a, 0x05, + 0x56, 0x70, 0x6d, 0x65, 0x6d, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x53, 0x63, 0x73, 0x69, 0x10, + 0x01, 0x12, 0x08, 0x0a, 0x04, 0x56, 0x70, 0x63, 0x69, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x50, + 0x6c, 0x61, 0x6e, 0x39, 0x10, 0x03, 0x12, 0x09, 0x0a, 0x05, 0x56, 0x4d, 0x4e, 0x69, 0x63, 0x10, + 0x04, 0x12, 0x0a, 0x0a, 0x06, 0x4d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x10, 0x05, 0x12, 0x0d, 0x0a, + 0x09, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x10, 0x06, 0x22, 0x2a, 0x0a, 0x10, + 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x47, 0x75, 0x65, 0x73, 0x74, 0x4f, 0x53, + 0x12, 0x0b, 0x0a, 0x07, 0x57, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x73, 0x10, 0x00, 0x12, 0x09, 0x0a, + 0x05, 0x4c, 0x69, 0x6e, 0x75, 0x78, 0x10, 0x01, 0x22, 0x54, 0x0a, 0x0e, 0x48, 0x56, 0x53, 0x6f, + 0x63, 0x6b, 0x65, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x6c, 0x69, 0x73, + 0x74, 0x65, 0x6e, 0x65, 0x72, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0c, 0x6c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x65, 0x72, 0x50, 0x61, 0x74, 0x68, 0x22, 0x46, + 0x0a, 0x0b, 0x56, 0x53, 0x6f, 0x63, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x12, 0x12, 0x0a, + 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, + 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x6c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x65, 0x72, 0x5f, 0x70, 0x61, + 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6c, 0x69, 0x73, 0x74, 0x65, 0x6e, + 0x65, 0x72, 0x50, 0x61, 0x74, 0x68, 0x22, 0xc5, 0x01, 0x0a, 0x0f, 0x56, 0x4d, 0x53, 0x6f, 0x63, + 0x6b, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x29, 0x0a, 0x04, 0x74, 0x79, + 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x76, 0x6d, 0x73, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x2e, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x54, 0x79, 0x70, 0x65, 0x52, + 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x40, 0x0a, 0x0d, 0x68, 0x76, 0x73, 0x6f, 0x63, 0x6b, 0x65, + 0x74, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x76, + 0x6d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x48, 0x56, 0x53, 0x6f, 0x63, 0x6b, 0x65, + 0x74, 0x4c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x48, 0x00, 0x52, 0x0c, 0x68, 0x76, 0x73, 0x6f, 0x63, + 0x6b, 0x65, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x3b, 0x0a, 0x0c, 0x76, 0x73, 0x6f, 0x63, 0x6b, + 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, + 0x76, 0x6d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x56, 0x53, 0x6f, 0x63, 0x6b, 0x4c, + 0x69, 0x73, 0x74, 0x65, 0x6e, 0x48, 0x00, 0x52, 0x0b, 0x76, 0x73, 0x6f, 0x63, 0x6b, 0x4c, 0x69, + 0x73, 0x74, 0x65, 0x6e, 0x42, 0x08, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x9f, + 0x01, 0x0a, 0x08, 0x53, 0x43, 0x53, 0x49, 0x44, 0x69, 0x73, 0x6b, 0x12, 0x1e, 0x0a, 0x0a, 0x63, + 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, + 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x6c, + 0x75, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x6c, 0x75, 0x6e, 0x12, 0x1b, 0x0a, + 0x09, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x50, 0x61, 0x74, 0x68, 0x12, 0x27, 0x0a, 0x04, 0x74, 0x79, + 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x76, 0x6d, 0x73, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x2e, 0x44, 0x69, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, + 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x72, 0x65, 0x61, 0x64, 0x4f, 0x6e, 0x6c, 0x79, + 0x22, 0x6e, 0x0a, 0x09, 0x56, 0x50, 0x4d, 0x45, 0x4d, 0x44, 0x69, 0x73, 0x6b, 0x12, 0x1b, 0x0a, + 0x09, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x50, 0x61, 0x74, 0x68, 0x12, 0x27, 0x0a, 0x04, 0x74, 0x79, + 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x76, 0x6d, 0x73, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x2e, 0x44, 0x69, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, + 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x72, 0x65, 0x61, 0x64, 0x4f, 0x6e, 0x6c, 0x79, + 0x22, 0x94, 0x01, 0x0a, 0x09, 0x4e, 0x49, 0x43, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x15, + 0x0a, 0x06, 0x6e, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, + 0x6e, 0x69, 0x63, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x69, 0x64, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x6f, 0x72, 0x74, 0x49, 0x64, 0x12, 0x1f, + 0x0a, 0x0b, 0x6d, 0x61, 0x63, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6d, 0x61, 0x63, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, + 0x1b, 0x0a, 0x09, 0x73, 0x77, 0x69, 0x74, 0x63, 0x68, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x08, 0x73, 0x77, 0x69, 0x74, 0x63, 0x68, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, + 0x6e, 0x69, 0x63, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, + 0x6e, 0x69, 0x63, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x33, 0x0a, 0x10, 0x57, 0x69, 0x6e, 0x64, 0x6f, + 0x77, 0x73, 0x50, 0x43, 0x49, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x69, + 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0a, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x22, 0x32, 0x0a, 0x13, + 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x4d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x5f, 0x6d, 0x62, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x4d, 0x62, + 0x22, 0x41, 0x0a, 0x16, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, + 0x73, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x70, 0x72, + 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0d, 0x52, 0x0e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x49, 0x6e, + 0x64, 0x65, 0x78, 0x22, 0x72, 0x0a, 0x1c, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x50, 0x72, 0x6f, + 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x29, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, + 0x5f, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0f, 0x70, + 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x57, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x27, + 0x0a, 0x0f, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x5f, 0x6c, 0x69, 0x6d, 0x69, + 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, + 0x6f, 0x72, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x22, 0x89, 0x04, 0x0a, 0x15, 0x4d, 0x6f, 0x64, 0x69, + 0x66, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x29, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x15, 0x2e, 0x76, 0x6d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x4d, 0x6f, 0x64, 0x69, + 0x66, 0x79, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x41, 0x0a, 0x09, + 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x21, 0x2e, 0x76, 0x6d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x4d, 0x6f, 0x64, 0x69, + 0x66, 0x79, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x48, 0x00, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x12, + 0x54, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x76, 0x6d, 0x73, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x50, 0x72, 0x6f, 0x63, + 0x65, 0x73, 0x73, 0x6f, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x48, 0x00, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x38, 0x0a, 0x06, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x76, 0x6d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x2e, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x4d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x06, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x12, + 0x32, 0x0a, 0x09, 0x73, 0x63, 0x73, 0x69, 0x5f, 0x64, 0x69, 0x73, 0x6b, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x76, 0x6d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x53, + 0x43, 0x53, 0x49, 0x44, 0x69, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x08, 0x73, 0x63, 0x73, 0x69, 0x44, + 0x69, 0x73, 0x6b, 0x12, 0x35, 0x0a, 0x0a, 0x76, 0x70, 0x6d, 0x65, 0x6d, 0x5f, 0x64, 0x69, 0x73, + 0x6b, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x76, 0x6d, 0x73, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x2e, 0x56, 0x50, 0x4d, 0x45, 0x4d, 0x44, 0x69, 0x73, 0x6b, 0x48, 0x00, 0x52, + 0x09, 0x76, 0x70, 0x6d, 0x65, 0x6d, 0x44, 0x69, 0x73, 0x6b, 0x12, 0x35, 0x0a, 0x0a, 0x6e, 0x69, + 0x63, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, + 0x2e, 0x76, 0x6d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x4e, 0x49, 0x43, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x09, 0x6e, 0x69, 0x63, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x12, 0x44, 0x0a, 0x0e, 0x77, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x73, 0x5f, 0x64, 0x65, 0x76, + 0x69, 0x63, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x76, 0x6d, 0x73, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x57, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x73, 0x50, 0x43, 0x49, + 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x48, 0x00, 0x52, 0x0d, 0x77, 0x69, 0x6e, 0x64, 0x6f, 0x77, + 0x73, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x42, 0x0a, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x2a, 0x2d, 0x0a, 0x0a, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x54, 0x79, 0x70, + 0x65, 0x12, 0x07, 0x0a, 0x03, 0x41, 0x44, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x52, 0x45, + 0x4d, 0x4f, 0x56, 0x45, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, + 0x10, 0x02, 0x2a, 0x59, 0x0a, 0x08, 0x44, 0x69, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x17, + 0x0a, 0x13, 0x53, 0x43, 0x53, 0x49, 0x5f, 0x44, 0x49, 0x53, 0x4b, 0x5f, 0x54, 0x59, 0x50, 0x45, + 0x5f, 0x56, 0x48, 0x44, 0x31, 0x10, 0x00, 0x12, 0x17, 0x0a, 0x13, 0x53, 0x43, 0x53, 0x49, 0x5f, + 0x44, 0x49, 0x53, 0x4b, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x56, 0x48, 0x44, 0x58, 0x10, 0x01, + 0x12, 0x1b, 0x0a, 0x17, 0x53, 0x43, 0x53, 0x49, 0x5f, 0x44, 0x49, 0x53, 0x4b, 0x5f, 0x54, 0x59, + 0x50, 0x45, 0x5f, 0x50, 0x48, 0x59, 0x53, 0x49, 0x43, 0x41, 0x4c, 0x10, 0x02, 0x32, 0xdd, 0x05, + 0x0a, 0x02, 0x56, 0x4d, 0x12, 0x3e, 0x0a, 0x08, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x4d, + 0x12, 0x1a, 0x2e, 0x76, 0x6d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x56, 0x4d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, + 0x6d, 0x70, 0x74, 0x79, 0x12, 0x3c, 0x0a, 0x0a, 0x54, 0x65, 0x61, 0x72, 0x64, 0x6f, 0x77, 0x6e, + 0x56, 0x4d, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, + 0x74, 0x79, 0x12, 0x39, 0x0a, 0x07, 0x50, 0x61, 0x75, 0x73, 0x65, 0x56, 0x4d, 0x12, 0x16, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x3a, 0x0a, + 0x08, 0x52, 0x65, 0x73, 0x75, 0x6d, 0x65, 0x56, 0x4d, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, + 0x79, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x38, 0x0a, 0x06, 0x57, 0x61, 0x69, + 0x74, 0x56, 0x4d, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x16, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, + 0x70, 0x74, 0x79, 0x12, 0x46, 0x0a, 0x09, 0x49, 0x6e, 0x73, 0x70, 0x65, 0x63, 0x74, 0x56, 0x4d, + 0x12, 0x1b, 0x2e, 0x76, 0x6d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x49, 0x6e, 0x73, + 0x70, 0x65, 0x63, 0x74, 0x56, 0x4d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, + 0x76, 0x6d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x49, 0x6e, 0x73, 0x70, 0x65, 0x63, + 0x74, 0x56, 0x4d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4b, 0x0a, 0x0e, 0x43, + 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x56, 0x4d, 0x12, 0x16, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x21, 0x2e, 0x76, 0x6d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x2e, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x56, 0x4d, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4f, 0x0a, 0x0c, 0x50, 0x72, 0x6f, 0x70, + 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x56, 0x4d, 0x12, 0x1e, 0x2e, 0x76, 0x6d, 0x73, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x56, + 0x4d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x76, 0x6d, 0x73, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x56, + 0x4d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4a, 0x0a, 0x0e, 0x4d, 0x6f, 0x64, + 0x69, 0x66, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x20, 0x2e, 0x76, 0x6d, + 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x3e, 0x0a, 0x08, 0x56, 0x4d, 0x53, 0x6f, 0x63, 0x6b, 0x65, + 0x74, 0x12, 0x1a, 0x2e, 0x76, 0x6d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x56, 0x4d, + 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x36, 0x0a, 0x04, 0x51, 0x75, 0x69, 0x74, 0x12, 0x16, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x42, 0x31, 0x5a, + 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4d, 0x69, 0x63, 0x72, + 0x6f, 0x73, 0x6f, 0x66, 0x74, 0x2f, 0x68, 0x63, 0x73, 0x73, 0x68, 0x69, 0x6d, 0x2f, 0x69, 0x6e, + 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x76, 0x6d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -func (m *ModifyProcessorRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ModifyProcessorRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ModifyProcessorRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ProcessorIndex", wireType) - } - m.ProcessorIndex = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ProcessorIndex |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipVmservice(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthVmservice - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ModifyProcessorConfigRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ModifyProcessorConfigRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ModifyProcessorConfigRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ProcessorWeight", wireType) - } - m.ProcessorWeight = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ProcessorWeight |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ProcessorLimit", wireType) - } - m.ProcessorLimit = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ProcessorLimit |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipVmservice(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthVmservice - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } +var ( + file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_rawDescOnce sync.Once + file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_rawDescData = file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_rawDesc +) - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ModifyResourceRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ModifyResourceRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ModifyResourceRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - m.Type = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Type |= ModifyType(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Processor", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthVmservice - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthVmservice - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &ModifyProcessorRequest{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Resource = &ModifyResourceRequest_Processor{v} - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ProcessorConfig", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthVmservice - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthVmservice - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &ModifyProcessorConfigRequest{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Resource = &ModifyResourceRequest_ProcessorConfig{v} - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Memory", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthVmservice - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthVmservice - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &ModifyMemoryRequest{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Resource = &ModifyResourceRequest_Memory{v} - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ScsiDisk", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthVmservice - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthVmservice - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &SCSIDisk{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Resource = &ModifyResourceRequest_ScsiDisk{v} - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VpmemDisk", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthVmservice - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthVmservice - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &VPMEMDisk{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Resource = &ModifyResourceRequest_VpmemDisk{v} - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NicConfig", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthVmservice - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthVmservice - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &NICConfig{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Resource = &ModifyResourceRequest_NicConfig{v} - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WindowsDevice", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVmservice - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthVmservice - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthVmservice - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &WindowsPCIDevice{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Resource = &ModifyResourceRequest_WindowsDevice{v} - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipVmservice(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthVmservice - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } +func file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_rawDescGZIP() []byte { + file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_rawDescOnce.Do(func() { + file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_rawDescData = protoimpl.X.CompressGZIP(file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_rawDescData) + }) + return file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_rawDescData +} + +var file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_enumTypes = make([]protoimpl.EnumInfo, 5) +var file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes = make([]protoimpl.MessageInfo, 30) +var file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_goTypes = []interface{}{ + (ModifyType)(0), // 0: vmservice.ModifyType + (DiskType)(0), // 1: vmservice.DiskType + (PropertiesVMRequest_PropertiesType)(0), // 2: vmservice.PropertiesVMRequest.PropertiesType + (CapabilitiesVMResponse_Resource)(0), // 3: vmservice.CapabilitiesVMResponse.Resource + (CapabilitiesVMResponse_SupportedGuestOS)(0), // 4: vmservice.CapabilitiesVMResponse.SupportedGuestOS + (*DirectBoot)(nil), // 5: vmservice.DirectBoot + (*UEFI)(nil), // 6: vmservice.UEFI + (*MemoryConfig)(nil), // 7: vmservice.MemoryConfig + (*ProcessorConfig)(nil), // 8: vmservice.ProcessorConfig + (*DevicesConfig)(nil), // 9: vmservice.DevicesConfig + (*VMConfig)(nil), // 10: vmservice.VMConfig + (*WindowsOptions)(nil), // 11: vmservice.WindowsOptions + (*SerialConfig)(nil), // 12: vmservice.SerialConfig + (*CreateVMRequest)(nil), // 13: vmservice.CreateVMRequest + (*InspectVMRequest)(nil), // 14: vmservice.InspectVMRequest + (*InspectVMResponse)(nil), // 15: vmservice.InspectVMResponse + (*MemoryStats)(nil), // 16: vmservice.MemoryStats + (*ProcessorStats)(nil), // 17: vmservice.ProcessorStats + (*PropertiesVMRequest)(nil), // 18: vmservice.PropertiesVMRequest + (*PropertiesVMResponse)(nil), // 19: vmservice.PropertiesVMResponse + (*CapabilitiesVMResponse)(nil), // 20: vmservice.CapabilitiesVMResponse + (*HVSocketListen)(nil), // 21: vmservice.HVSocketListen + (*VSockListen)(nil), // 22: vmservice.VSockListen + (*VMSocketRequest)(nil), // 23: vmservice.VMSocketRequest + (*SCSIDisk)(nil), // 24: vmservice.SCSIDisk + (*VPMEMDisk)(nil), // 25: vmservice.VPMEMDisk + (*NICConfig)(nil), // 26: vmservice.NICConfig + (*WindowsPCIDevice)(nil), // 27: vmservice.WindowsPCIDevice + (*ModifyMemoryRequest)(nil), // 28: vmservice.ModifyMemoryRequest + (*ModifyProcessorRequest)(nil), // 29: vmservice.ModifyProcessorRequest + (*ModifyProcessorConfigRequest)(nil), // 30: vmservice.ModifyProcessorConfigRequest + (*ModifyResourceRequest)(nil), // 31: vmservice.ModifyResourceRequest + nil, // 32: vmservice.VMConfig.ExtraDataEntry + (*SerialConfig_Config)(nil), // 33: vmservice.SerialConfig.Config + (*CapabilitiesVMResponse_SupportedResource)(nil), // 34: vmservice.CapabilitiesVMResponse.SupportedResource + (*structpb.Value)(nil), // 35: google.protobuf.Value + (*emptypb.Empty)(nil), // 36: google.protobuf.Empty +} +var file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_depIdxs = []int32{ + 24, // 0: vmservice.DevicesConfig.scsi_disks:type_name -> vmservice.SCSIDisk + 25, // 1: vmservice.DevicesConfig.vpmem_disks:type_name -> vmservice.VPMEMDisk + 26, // 2: vmservice.DevicesConfig.nic_config:type_name -> vmservice.NICConfig + 27, // 3: vmservice.DevicesConfig.windows_device:type_name -> vmservice.WindowsPCIDevice + 7, // 4: vmservice.VMConfig.memory_config:type_name -> vmservice.MemoryConfig + 8, // 5: vmservice.VMConfig.processor_config:type_name -> vmservice.ProcessorConfig + 9, // 6: vmservice.VMConfig.devices_config:type_name -> vmservice.DevicesConfig + 12, // 7: vmservice.VMConfig.serial_config:type_name -> vmservice.SerialConfig + 5, // 8: vmservice.VMConfig.direct_boot:type_name -> vmservice.DirectBoot + 6, // 9: vmservice.VMConfig.uefi:type_name -> vmservice.UEFI + 11, // 10: vmservice.VMConfig.windows_options:type_name -> vmservice.WindowsOptions + 32, // 11: vmservice.VMConfig.extra_data:type_name -> vmservice.VMConfig.ExtraDataEntry + 33, // 12: vmservice.SerialConfig.ports:type_name -> vmservice.SerialConfig.Config + 10, // 13: vmservice.CreateVMRequest.config:type_name -> vmservice.VMConfig + 35, // 14: vmservice.InspectVMResponse.result:type_name -> google.protobuf.Value + 2, // 15: vmservice.PropertiesVMRequest.types:type_name -> vmservice.PropertiesVMRequest.PropertiesType + 16, // 16: vmservice.PropertiesVMResponse.memory_stats:type_name -> vmservice.MemoryStats + 17, // 17: vmservice.PropertiesVMResponse.processor_stats:type_name -> vmservice.ProcessorStats + 34, // 18: vmservice.CapabilitiesVMResponse.supported_resources:type_name -> vmservice.CapabilitiesVMResponse.SupportedResource + 4, // 19: vmservice.CapabilitiesVMResponse.supported_guest_os:type_name -> vmservice.CapabilitiesVMResponse.SupportedGuestOS + 0, // 20: vmservice.VMSocketRequest.type:type_name -> vmservice.ModifyType + 21, // 21: vmservice.VMSocketRequest.hvsocket_list:type_name -> vmservice.HVSocketListen + 22, // 22: vmservice.VMSocketRequest.vsock_listen:type_name -> vmservice.VSockListen + 1, // 23: vmservice.SCSIDisk.type:type_name -> vmservice.DiskType + 1, // 24: vmservice.VPMEMDisk.type:type_name -> vmservice.DiskType + 0, // 25: vmservice.ModifyResourceRequest.type:type_name -> vmservice.ModifyType + 29, // 26: vmservice.ModifyResourceRequest.processor:type_name -> vmservice.ModifyProcessorRequest + 30, // 27: vmservice.ModifyResourceRequest.processor_config:type_name -> vmservice.ModifyProcessorConfigRequest + 28, // 28: vmservice.ModifyResourceRequest.memory:type_name -> vmservice.ModifyMemoryRequest + 24, // 29: vmservice.ModifyResourceRequest.scsi_disk:type_name -> vmservice.SCSIDisk + 25, // 30: vmservice.ModifyResourceRequest.vpmem_disk:type_name -> vmservice.VPMEMDisk + 26, // 31: vmservice.ModifyResourceRequest.nic_config:type_name -> vmservice.NICConfig + 27, // 32: vmservice.ModifyResourceRequest.windows_device:type_name -> vmservice.WindowsPCIDevice + 3, // 33: vmservice.CapabilitiesVMResponse.SupportedResource.resource:type_name -> vmservice.CapabilitiesVMResponse.Resource + 13, // 34: vmservice.VM.CreateVM:input_type -> vmservice.CreateVMRequest + 36, // 35: vmservice.VM.TeardownVM:input_type -> google.protobuf.Empty + 36, // 36: vmservice.VM.PauseVM:input_type -> google.protobuf.Empty + 36, // 37: vmservice.VM.ResumeVM:input_type -> google.protobuf.Empty + 36, // 38: vmservice.VM.WaitVM:input_type -> google.protobuf.Empty + 14, // 39: vmservice.VM.InspectVM:input_type -> vmservice.InspectVMRequest + 36, // 40: vmservice.VM.CapabilitiesVM:input_type -> google.protobuf.Empty + 18, // 41: vmservice.VM.PropertiesVM:input_type -> vmservice.PropertiesVMRequest + 31, // 42: vmservice.VM.ModifyResource:input_type -> vmservice.ModifyResourceRequest + 23, // 43: vmservice.VM.VMSocket:input_type -> vmservice.VMSocketRequest + 36, // 44: vmservice.VM.Quit:input_type -> google.protobuf.Empty + 36, // 45: vmservice.VM.CreateVM:output_type -> google.protobuf.Empty + 36, // 46: vmservice.VM.TeardownVM:output_type -> google.protobuf.Empty + 36, // 47: vmservice.VM.PauseVM:output_type -> google.protobuf.Empty + 36, // 48: vmservice.VM.ResumeVM:output_type -> google.protobuf.Empty + 36, // 49: vmservice.VM.WaitVM:output_type -> google.protobuf.Empty + 15, // 50: vmservice.VM.InspectVM:output_type -> vmservice.InspectVMResponse + 20, // 51: vmservice.VM.CapabilitiesVM:output_type -> vmservice.CapabilitiesVMResponse + 19, // 52: vmservice.VM.PropertiesVM:output_type -> vmservice.PropertiesVMResponse + 36, // 53: vmservice.VM.ModifyResource:output_type -> google.protobuf.Empty + 36, // 54: vmservice.VM.VMSocket:output_type -> google.protobuf.Empty + 36, // 55: vmservice.VM.Quit:output_type -> google.protobuf.Empty + 45, // [45:56] is the sub-list for method output_type + 34, // [34:45] is the sub-list for method input_type + 34, // [34:34] is the sub-list for extension type_name + 34, // [34:34] is the sub-list for extension extendee + 0, // [0:34] is the sub-list for field type_name +} + +func init() { file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_init() } +func file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_init() { + if File_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DirectBoot); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UEFI); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MemoryConfig); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProcessorConfig); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DevicesConfig); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VMConfig); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WindowsOptions); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SerialConfig); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateVMRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InspectVMRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InspectVMResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MemoryStats); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProcessorStats); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PropertiesVMRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PropertiesVMResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CapabilitiesVMResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*HVSocketListen); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VSockListen); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VMSocketRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SCSIDisk); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VPMEMDisk); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NICConfig); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WindowsPCIDevice); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ModifyMemoryRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ModifyProcessorRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ModifyProcessorConfigRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ModifyResourceRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SerialConfig_Config); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CapabilitiesVMResponse_SupportedResource); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[5].OneofWrappers = []interface{}{ + (*VMConfig_DirectBoot)(nil), + (*VMConfig_Uefi)(nil), } - - if iNdEx > l { - return io.ErrUnexpectedEOF + file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[18].OneofWrappers = []interface{}{ + (*VMSocketRequest_HvsocketList)(nil), + (*VMSocketRequest_VsockListen)(nil), } - return nil -} -func skipVmservice(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowVmservice - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowVmservice - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowVmservice - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthVmservice - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupVmservice - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthVmservice - } - if depth == 0 { - return iNdEx, nil - } + file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes[26].OneofWrappers = []interface{}{ + (*ModifyResourceRequest_Processor)(nil), + (*ModifyResourceRequest_ProcessorConfig)(nil), + (*ModifyResourceRequest_Memory)(nil), + (*ModifyResourceRequest_ScsiDisk)(nil), + (*ModifyResourceRequest_VpmemDisk)(nil), + (*ModifyResourceRequest_NicConfig)(nil), + (*ModifyResourceRequest_WindowsDevice)(nil), } - return 0, io.ErrUnexpectedEOF + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_rawDesc, + NumEnums: 5, + NumMessages: 30, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_goTypes, + DependencyIndexes: file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_depIdxs, + EnumInfos: file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_enumTypes, + MessageInfos: file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_msgTypes, + }.Build() + File_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto = out.File + file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_rawDesc = nil + file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_goTypes = nil + file_github_com_Microsoft_hcsshim_internal_vmservice_vmservice_proto_depIdxs = nil } - -var ( - ErrInvalidLengthVmservice = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowVmservice = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupVmservice = fmt.Errorf("proto: unexpected end of group") -) diff --git a/vmservice/vmservice_ttrpc.pb.go b/vmservice/vmservice_ttrpc.pb.go new file mode 100644 index 0000000000..bdce423ac3 --- /dev/null +++ b/vmservice/vmservice_ttrpc.pb.go @@ -0,0 +1,205 @@ +// Code generated by protoc-gen-go-ttrpc. DO NOT EDIT. +// source: github.com/Microsoft/hcsshim/internal/vmservice/vmservice.proto +package vmservice + +import ( + context "context" + ttrpc "github.com/containerd/ttrpc" + emptypb "google.golang.org/protobuf/types/known/emptypb" +) + +type VMService interface { + CreateVM(context.Context, *CreateVMRequest) (*emptypb.Empty, error) + TeardownVM(context.Context, *emptypb.Empty) (*emptypb.Empty, error) + PauseVM(context.Context, *emptypb.Empty) (*emptypb.Empty, error) + ResumeVM(context.Context, *emptypb.Empty) (*emptypb.Empty, error) + WaitVM(context.Context, *emptypb.Empty) (*emptypb.Empty, error) + InspectVM(context.Context, *InspectVMRequest) (*InspectVMResponse, error) + CapabilitiesVM(context.Context, *emptypb.Empty) (*CapabilitiesVMResponse, error) + PropertiesVM(context.Context, *PropertiesVMRequest) (*PropertiesVMResponse, error) + ModifyResource(context.Context, *ModifyResourceRequest) (*emptypb.Empty, error) + VMSocket(context.Context, *VMSocketRequest) (*emptypb.Empty, error) + Quit(context.Context, *emptypb.Empty) (*emptypb.Empty, error) +} + +func RegisterVMService(srv *ttrpc.Server, svc VMService) { + srv.RegisterService("vmservice.VM", &ttrpc.ServiceDesc{ + Methods: map[string]ttrpc.Method{ + "CreateVM": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { + var req CreateVMRequest + if err := unmarshal(&req); err != nil { + return nil, err + } + return svc.CreateVM(ctx, &req) + }, + "TeardownVM": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { + var req emptypb.Empty + if err := unmarshal(&req); err != nil { + return nil, err + } + return svc.TeardownVM(ctx, &req) + }, + "PauseVM": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { + var req emptypb.Empty + if err := unmarshal(&req); err != nil { + return nil, err + } + return svc.PauseVM(ctx, &req) + }, + "ResumeVM": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { + var req emptypb.Empty + if err := unmarshal(&req); err != nil { + return nil, err + } + return svc.ResumeVM(ctx, &req) + }, + "WaitVM": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { + var req emptypb.Empty + if err := unmarshal(&req); err != nil { + return nil, err + } + return svc.WaitVM(ctx, &req) + }, + "InspectVM": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { + var req InspectVMRequest + if err := unmarshal(&req); err != nil { + return nil, err + } + return svc.InspectVM(ctx, &req) + }, + "CapabilitiesVM": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { + var req emptypb.Empty + if err := unmarshal(&req); err != nil { + return nil, err + } + return svc.CapabilitiesVM(ctx, &req) + }, + "PropertiesVM": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { + var req PropertiesVMRequest + if err := unmarshal(&req); err != nil { + return nil, err + } + return svc.PropertiesVM(ctx, &req) + }, + "ModifyResource": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { + var req ModifyResourceRequest + if err := unmarshal(&req); err != nil { + return nil, err + } + return svc.ModifyResource(ctx, &req) + }, + "VMSocket": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { + var req VMSocketRequest + if err := unmarshal(&req); err != nil { + return nil, err + } + return svc.VMSocket(ctx, &req) + }, + "Quit": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { + var req emptypb.Empty + if err := unmarshal(&req); err != nil { + return nil, err + } + return svc.Quit(ctx, &req) + }, + }, + }) +} + +type vmClient struct { + client *ttrpc.Client +} + +func NewVMClient(client *ttrpc.Client) VMService { + return &vmClient{ + client: client, + } +} + +func (c *vmClient) CreateVM(ctx context.Context, req *CreateVMRequest) (*emptypb.Empty, error) { + var resp emptypb.Empty + if err := c.client.Call(ctx, "vmservice.VM", "CreateVM", req, &resp); err != nil { + return nil, err + } + return &resp, nil +} + +func (c *vmClient) TeardownVM(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error) { + var resp emptypb.Empty + if err := c.client.Call(ctx, "vmservice.VM", "TeardownVM", req, &resp); err != nil { + return nil, err + } + return &resp, nil +} + +func (c *vmClient) PauseVM(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error) { + var resp emptypb.Empty + if err := c.client.Call(ctx, "vmservice.VM", "PauseVM", req, &resp); err != nil { + return nil, err + } + return &resp, nil +} + +func (c *vmClient) ResumeVM(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error) { + var resp emptypb.Empty + if err := c.client.Call(ctx, "vmservice.VM", "ResumeVM", req, &resp); err != nil { + return nil, err + } + return &resp, nil +} + +func (c *vmClient) WaitVM(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error) { + var resp emptypb.Empty + if err := c.client.Call(ctx, "vmservice.VM", "WaitVM", req, &resp); err != nil { + return nil, err + } + return &resp, nil +} + +func (c *vmClient) InspectVM(ctx context.Context, req *InspectVMRequest) (*InspectVMResponse, error) { + var resp InspectVMResponse + if err := c.client.Call(ctx, "vmservice.VM", "InspectVM", req, &resp); err != nil { + return nil, err + } + return &resp, nil +} + +func (c *vmClient) CapabilitiesVM(ctx context.Context, req *emptypb.Empty) (*CapabilitiesVMResponse, error) { + var resp CapabilitiesVMResponse + if err := c.client.Call(ctx, "vmservice.VM", "CapabilitiesVM", req, &resp); err != nil { + return nil, err + } + return &resp, nil +} + +func (c *vmClient) PropertiesVM(ctx context.Context, req *PropertiesVMRequest) (*PropertiesVMResponse, error) { + var resp PropertiesVMResponse + if err := c.client.Call(ctx, "vmservice.VM", "PropertiesVM", req, &resp); err != nil { + return nil, err + } + return &resp, nil +} + +func (c *vmClient) ModifyResource(ctx context.Context, req *ModifyResourceRequest) (*emptypb.Empty, error) { + var resp emptypb.Empty + if err := c.client.Call(ctx, "vmservice.VM", "ModifyResource", req, &resp); err != nil { + return nil, err + } + return &resp, nil +} + +func (c *vmClient) VMSocket(ctx context.Context, req *VMSocketRequest) (*emptypb.Empty, error) { + var resp emptypb.Empty + if err := c.client.Call(ctx, "vmservice.VM", "VMSocket", req, &resp); err != nil { + return nil, err + } + return &resp, nil +} + +func (c *vmClient) Quit(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error) { + var resp emptypb.Empty + if err := c.client.Call(ctx, "vmservice.VM", "Quit", req, &resp); err != nil { + return nil, err + } + return &resp, nil +}