// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.12
// 	protoc        v5.26.0
// source: github.com/Microsoft/hcsshim/internal/controller/migration/save/payload.proto

package save

import (
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	anypb "google.golang.org/protobuf/types/known/anypb"
	reflect "reflect"
	sync "sync"
	unsafe "unsafe"
)

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)
)

// Payload is the top-level migration envelope exchanged between
// source and destination shims. The VM and pod payloads are carried as
// opaque [Any]s so each owning controller is independently versioned.
type Payload struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// schema_version is bumped whenever this envelope's semantics change.
	SchemaVersion uint32 `protobuf:"varint,1,opt,name=schema_version,json=schemaVersion,proto3" json:"schema_version,omitempty"`
	// vm is the VM controller's [Payload] envelope.
	Vm *anypb.Any `protobuf:"bytes,2,opt,name=vm,proto3" json:"vm,omitempty"`
	// pods holds one [Payload] envelope per pod controller in the sandbox.
	Pods          []*anypb.Any `protobuf:"bytes,3,rep,name=pods,proto3" json:"pods,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *Payload) Reset() {
	*x = Payload{}
	mi := &file_github_com_Microsoft_hcsshim_internal_controller_migration_save_payload_proto_msgTypes[0]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *Payload) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*Payload) ProtoMessage() {}

func (x *Payload) ProtoReflect() protoreflect.Message {
	mi := &file_github_com_Microsoft_hcsshim_internal_controller_migration_save_payload_proto_msgTypes[0]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use Payload.ProtoReflect.Descriptor instead.
func (*Payload) Descriptor() ([]byte, []int) {
	return file_github_com_Microsoft_hcsshim_internal_controller_migration_save_payload_proto_rawDescGZIP(), []int{0}
}

func (x *Payload) GetSchemaVersion() uint32 {
	if x != nil {
		return x.SchemaVersion
	}
	return 0
}

func (x *Payload) GetVm() *anypb.Any {
	if x != nil {
		return x.Vm
	}
	return nil
}

func (x *Payload) GetPods() []*anypb.Any {
	if x != nil {
		return x.Pods
	}
	return nil
}

var File_github_com_Microsoft_hcsshim_internal_controller_migration_save_payload_proto protoreflect.FileDescriptor

const file_github_com_Microsoft_hcsshim_internal_controller_migration_save_payload_proto_rawDesc = "" +
	"\n" +
	"Mgithub.com/Microsoft/hcsshim/internal/controller/migration/save/payload.proto\x12$hcsshim.controller.migration.save.v1\x1a\x19google/protobuf/any.proto\"\x80\x01\n" +
	"\aPayload\x12%\n" +
	"\x0eschema_version\x18\x01 \x01(\rR\rschemaVersion\x12$\n" +
	"\x02vm\x18\x02 \x01(\v2\x14.google.protobuf.AnyR\x02vm\x12(\n" +
	"\x04pods\x18\x03 \x03(\v2\x14.google.protobuf.AnyR\x04podsBFZDgithub.com/Microsoft/hcsshim/internal/controller/migration/save;saveb\x06proto3"

var (
	file_github_com_Microsoft_hcsshim_internal_controller_migration_save_payload_proto_rawDescOnce sync.Once
	file_github_com_Microsoft_hcsshim_internal_controller_migration_save_payload_proto_rawDescData []byte
)

func file_github_com_Microsoft_hcsshim_internal_controller_migration_save_payload_proto_rawDescGZIP() []byte {
	file_github_com_Microsoft_hcsshim_internal_controller_migration_save_payload_proto_rawDescOnce.Do(func() {
		file_github_com_Microsoft_hcsshim_internal_controller_migration_save_payload_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_github_com_Microsoft_hcsshim_internal_controller_migration_save_payload_proto_rawDesc), len(file_github_com_Microsoft_hcsshim_internal_controller_migration_save_payload_proto_rawDesc)))
	})
	return file_github_com_Microsoft_hcsshim_internal_controller_migration_save_payload_proto_rawDescData
}

var file_github_com_Microsoft_hcsshim_internal_controller_migration_save_payload_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_github_com_Microsoft_hcsshim_internal_controller_migration_save_payload_proto_goTypes = []any{
	(*Payload)(nil),   // 0: hcsshim.controller.migration.save.v1.Payload
	(*anypb.Any)(nil), // 1: google.protobuf.Any
}
var file_github_com_Microsoft_hcsshim_internal_controller_migration_save_payload_proto_depIdxs = []int32{
	1, // 0: hcsshim.controller.migration.save.v1.Payload.vm:type_name -> google.protobuf.Any
	1, // 1: hcsshim.controller.migration.save.v1.Payload.pods:type_name -> google.protobuf.Any
	2, // [2:2] is the sub-list for method output_type
	2, // [2:2] 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_controller_migration_save_payload_proto_init()
}
func file_github_com_Microsoft_hcsshim_internal_controller_migration_save_payload_proto_init() {
	if File_github_com_Microsoft_hcsshim_internal_controller_migration_save_payload_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_github_com_Microsoft_hcsshim_internal_controller_migration_save_payload_proto_rawDesc), len(file_github_com_Microsoft_hcsshim_internal_controller_migration_save_payload_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_github_com_Microsoft_hcsshim_internal_controller_migration_save_payload_proto_goTypes,
		DependencyIndexes: file_github_com_Microsoft_hcsshim_internal_controller_migration_save_payload_proto_depIdxs,
		MessageInfos:      file_github_com_Microsoft_hcsshim_internal_controller_migration_save_payload_proto_msgTypes,
	}.Build()
	File_github_com_Microsoft_hcsshim_internal_controller_migration_save_payload_proto = out.File
	file_github_com_Microsoft_hcsshim_internal_controller_migration_save_payload_proto_goTypes = nil
	file_github_com_Microsoft_hcsshim_internal_controller_migration_save_payload_proto_depIdxs = nil
}
