// 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/process/save/payload.proto

package save

import (
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	durationpb "google.golang.org/protobuf/types/known/durationpb"
	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 migration payload owned by a single process controller. It is
// the top-level message wrapped in an [anypb.Any] when handed off between
// source and destination shims.
type Payload struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// schema_version is bumped whenever a field's semantics change. The
	// destination MUST reject states whose version it does not recognise.
	SchemaVersion uint32 `protobuf:"varint,1,opt,name=schema_version,json=schemaVersion,proto3" json:"schema_version,omitempty"`
	// exec_id is the process's exec identifier; empty for the container's
	// init process.
	ExecID string `protobuf:"bytes,2,opt,name=exec_id,json=execId,proto3" json:"exec_id,omitempty"`
	// pid is the process ID inside the guest.
	Pid int32 `protobuf:"varint,3,opt,name=pid,proto3" json:"pid,omitempty"`
	// bundle is the OCI bundle path on the host.
	Bundle string `protobuf:"bytes,4,opt,name=bundle,proto3" json:"bundle,omitempty"`
	// oci_process_spec_json is the JSON-encoded OCI process specification.
	OciProcessSpecJson []byte `protobuf:"bytes,5,opt,name=oci_process_spec_json,json=ociProcessSpecJson,proto3" json:"oci_process_spec_json,omitempty"`
	// io_retry_timeout is how long IO relay reconnects are retried for this
	// process.
	IoRetryTimeout *durationpb.Duration `protobuf:"bytes,6,opt,name=io_retry_timeout,json=ioRetryTimeout,proto3" json:"io_retry_timeout,omitempty"`
	// stdin_port, stdout_port and stderr_port are the vsock ports used by
	// the GCS<->shim IO relay for this process. The destination reattaches
	// IO on the same ports so streams do not need to be renegotiated.
	StdinPort  uint32 `protobuf:"varint,7,opt,name=stdin_port,json=stdinPort,proto3" json:"stdin_port,omitempty"`
	StdoutPort uint32 `protobuf:"varint,8,opt,name=stdout_port,json=stdoutPort,proto3" json:"stdout_port,omitempty"`
	StderrPort uint32 `protobuf:"varint,9,opt,name=stderr_port,json=stderrPort,proto3" json:"stderr_port,omitempty"`
	// wait_call_id is the source bridge's outstanding WaitForProcess request
	// id. The destination pre-registers a stub rpc against this id instead of
	// issuing a duplicate wait. Zero if absent.
	WaitCallID    int64 `protobuf:"varint,10,opt,name=wait_call_id,json=waitCallId,proto3" json:"wait_call_id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *Payload) Reset() {
	*x = Payload{}
	mi := &file_github_com_Microsoft_hcsshim_internal_controller_process_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_process_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_process_save_payload_proto_rawDescGZIP(), []int{0}
}

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

func (x *Payload) GetExecID() string {
	if x != nil {
		return x.ExecID
	}
	return ""
}

func (x *Payload) GetPid() int32 {
	if x != nil {
		return x.Pid
	}
	return 0
}

func (x *Payload) GetBundle() string {
	if x != nil {
		return x.Bundle
	}
	return ""
}

func (x *Payload) GetOciProcessSpecJson() []byte {
	if x != nil {
		return x.OciProcessSpecJson
	}
	return nil
}

func (x *Payload) GetIoRetryTimeout() *durationpb.Duration {
	if x != nil {
		return x.IoRetryTimeout
	}
	return nil
}

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

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

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

func (x *Payload) GetWaitCallID() int64 {
	if x != nil {
		return x.WaitCallID
	}
	return 0
}

var File_github_com_Microsoft_hcsshim_internal_controller_process_save_payload_proto protoreflect.FileDescriptor

const file_github_com_Microsoft_hcsshim_internal_controller_process_save_payload_proto_rawDesc = "" +
	"\n" +
	"Kgithub.com/Microsoft/hcsshim/internal/controller/process/save/payload.proto\x12\"hcsshim.controller.process.save.v1\x1a\x1egoogle/protobuf/duration.proto\"\xee\x02\n" +
	"\aPayload\x12%\n" +
	"\x0eschema_version\x18\x01 \x01(\rR\rschemaVersion\x12\x17\n" +
	"\aexec_id\x18\x02 \x01(\tR\x06execId\x12\x10\n" +
	"\x03pid\x18\x03 \x01(\x05R\x03pid\x12\x16\n" +
	"\x06bundle\x18\x04 \x01(\tR\x06bundle\x121\n" +
	"\x15oci_process_spec_json\x18\x05 \x01(\fR\x12ociProcessSpecJson\x12C\n" +
	"\x10io_retry_timeout\x18\x06 \x01(\v2\x19.google.protobuf.DurationR\x0eioRetryTimeout\x12\x1d\n" +
	"\n" +
	"stdin_port\x18\a \x01(\rR\tstdinPort\x12\x1f\n" +
	"\vstdout_port\x18\b \x01(\rR\n" +
	"stdoutPort\x12\x1f\n" +
	"\vstderr_port\x18\t \x01(\rR\n" +
	"stderrPort\x12 \n" +
	"\fwait_call_id\x18\n" +
	" \x01(\x03R\n" +
	"waitCallIdBDZBgithub.com/Microsoft/hcsshim/internal/controller/process/save;saveb\x06proto3"

var (
	file_github_com_Microsoft_hcsshim_internal_controller_process_save_payload_proto_rawDescOnce sync.Once
	file_github_com_Microsoft_hcsshim_internal_controller_process_save_payload_proto_rawDescData []byte
)

func file_github_com_Microsoft_hcsshim_internal_controller_process_save_payload_proto_rawDescGZIP() []byte {
	file_github_com_Microsoft_hcsshim_internal_controller_process_save_payload_proto_rawDescOnce.Do(func() {
		file_github_com_Microsoft_hcsshim_internal_controller_process_save_payload_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_github_com_Microsoft_hcsshim_internal_controller_process_save_payload_proto_rawDesc), len(file_github_com_Microsoft_hcsshim_internal_controller_process_save_payload_proto_rawDesc)))
	})
	return file_github_com_Microsoft_hcsshim_internal_controller_process_save_payload_proto_rawDescData
}

var file_github_com_Microsoft_hcsshim_internal_controller_process_save_payload_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_github_com_Microsoft_hcsshim_internal_controller_process_save_payload_proto_goTypes = []any{
	(*Payload)(nil),             // 0: hcsshim.controller.process.save.v1.Payload
	(*durationpb.Duration)(nil), // 1: google.protobuf.Duration
}
var file_github_com_Microsoft_hcsshim_internal_controller_process_save_payload_proto_depIdxs = []int32{
	1, // 0: hcsshim.controller.process.save.v1.Payload.io_retry_timeout:type_name -> google.protobuf.Duration
	1, // [1:1] is the sub-list for method output_type
	1, // [1:1] 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_controller_process_save_payload_proto_init() }
func file_github_com_Microsoft_hcsshim_internal_controller_process_save_payload_proto_init() {
	if File_github_com_Microsoft_hcsshim_internal_controller_process_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_process_save_payload_proto_rawDesc), len(file_github_com_Microsoft_hcsshim_internal_controller_process_save_payload_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_github_com_Microsoft_hcsshim_internal_controller_process_save_payload_proto_goTypes,
		DependencyIndexes: file_github_com_Microsoft_hcsshim_internal_controller_process_save_payload_proto_depIdxs,
		MessageInfos:      file_github_com_Microsoft_hcsshim_internal_controller_process_save_payload_proto_msgTypes,
	}.Build()
	File_github_com_Microsoft_hcsshim_internal_controller_process_save_payload_proto = out.File
	file_github_com_Microsoft_hcsshim_internal_controller_process_save_payload_proto_goTypes = nil
	file_github_com_Microsoft_hcsshim_internal_controller_process_save_payload_proto_depIdxs = nil
}
