// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.11
// 	protoc        v3.21.12
// source: yandex/cloud/loadtesting/api/v1/agent/create_compute_instance.proto

package agent

import (
	_ "github.com/yandex-cloud/go-genproto/yandex/cloud"
	v1 "github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	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)
)

type CreateComputeInstance struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Resource labels as `key:value` pairs.
	Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
	// ID of the availability zone where the instance resides.
	// To get a list of available zones, use the [yandex.cloud.compute.v1.ZoneService.List] request
	ZoneId string `protobuf:"bytes,5,opt,name=zone_id,json=zoneId,proto3" json:"zone_id,omitempty"`
	// Computing resources of the instance, such as the amount of memory and number of cores.
	// To get a list of available values, see [Levels of core performance](/docs/compute/concepts/performance-levels).
	ResourcesSpec *v1.ResourcesSpec `protobuf:"bytes,7,opt,name=resources_spec,json=resourcesSpec,proto3" json:"resources_spec,omitempty"`
	// The metadata `key:value` pairs that will be assigned to this instance. This includes custom metadata and predefined keys.
	// The total size of all keys and values must be less than 512 KB.
	//
	// Values are free-form strings, and only have meaning as interpreted by the programs which configure the instance.
	// The values must be 256 KB or less.
	//
	// For example, you may use the metadata in order to provide your public SSH key to the instance.
	// For more information, see [Metadata](/docs/compute/concepts/vm-metadata).
	Metadata map[string]string `protobuf:"bytes,8,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
	// Boot disk to attach to the instance.
	BootDiskSpec *v1.AttachedDiskSpec `protobuf:"bytes,9,opt,name=boot_disk_spec,json=bootDiskSpec,proto3" json:"boot_disk_spec,omitempty"`
	// Network configuration for the instance. Specifies how the network interface is configured
	// to interact with other services on the internal network and on the internet.
	// Currently only one network interface is supported per instance.
	NetworkInterfaceSpecs []*v1.NetworkInterfaceSpec `protobuf:"bytes,11,rep,name=network_interface_specs,json=networkInterfaceSpecs,proto3" json:"network_interface_specs,omitempty"`
	// ID of the service account to use for [authentication inside the instance](/docs/compute/operations/vm-connect/auth-inside-vm).
	// To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
	ServiceAccountId string `protobuf:"bytes,14,opt,name=service_account_id,json=serviceAccountId,proto3" json:"service_account_id,omitempty"`
	// ID of the [Compute VM platform](/docs/compute/concepts/vm-platforms) on which the agent will be created.
	// Default value: "standard-v2"
	PlatformId    string `protobuf:"bytes,15,opt,name=platform_id,json=platformId,proto3" json:"platform_id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*CreateComputeInstance) ProtoMessage() {}

func (x *CreateComputeInstance) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_loadtesting_api_v1_agent_create_compute_instance_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 CreateComputeInstance.ProtoReflect.Descriptor instead.
func (*CreateComputeInstance) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_loadtesting_api_v1_agent_create_compute_instance_proto_rawDescGZIP(), []int{0}
}

func (x *CreateComputeInstance) GetLabels() map[string]string {
	if x != nil {
		return x.Labels
	}
	return nil
}

func (x *CreateComputeInstance) GetZoneId() string {
	if x != nil {
		return x.ZoneId
	}
	return ""
}

func (x *CreateComputeInstance) GetResourcesSpec() *v1.ResourcesSpec {
	if x != nil {
		return x.ResourcesSpec
	}
	return nil
}

func (x *CreateComputeInstance) GetMetadata() map[string]string {
	if x != nil {
		return x.Metadata
	}
	return nil
}

func (x *CreateComputeInstance) GetBootDiskSpec() *v1.AttachedDiskSpec {
	if x != nil {
		return x.BootDiskSpec
	}
	return nil
}

func (x *CreateComputeInstance) GetNetworkInterfaceSpecs() []*v1.NetworkInterfaceSpec {
	if x != nil {
		return x.NetworkInterfaceSpecs
	}
	return nil
}

func (x *CreateComputeInstance) GetServiceAccountId() string {
	if x != nil {
		return x.ServiceAccountId
	}
	return ""
}

func (x *CreateComputeInstance) GetPlatformId() string {
	if x != nil {
		return x.PlatformId
	}
	return ""
}

var File_yandex_cloud_loadtesting_api_v1_agent_create_compute_instance_proto protoreflect.FileDescriptor

const file_yandex_cloud_loadtesting_api_v1_agent_create_compute_instance_proto_rawDesc = "" +
	"\n" +
	"Cyandex/cloud/loadtesting/api/v1/agent/create_compute_instance.proto\x12%yandex.cloud.loadtesting.api.v1.agent\x1a.yandex/cloud/compute/v1/instance_service.proto\x1a\x1dyandex/cloud/validation.proto\"\xc1\x06\n" +
	"\x15CreateComputeInstance\x12\xa5\x01\n" +
	"\x06labels\x18\x04 \x03(\v2H.yandex.cloud.loadtesting.api.v1.agent.CreateComputeInstance.LabelsEntryBC\xf2\xc71\x0f[-_./\\@0-9a-z]*\x82\xc81\x04<=64\x8a\xc81\x04<=63\xb2\xc81\x1c\x12\x14[a-z][-_./\\@0-9a-z]*\x1a\x041-63R\x06labels\x12%\n" +
	"\azone_id\x18\x05 \x01(\tB\f\xe8\xc71\x01\x8a\xc81\x04<=50R\x06zoneId\x12S\n" +
	"\x0eresources_spec\x18\a \x01(\v2&.yandex.cloud.compute.v1.ResourcesSpecB\x04\xe8\xc71\x01R\rresourcesSpec\x12f\n" +
	"\bmetadata\x18\b \x03(\v2J.yandex.cloud.loadtesting.api.v1.agent.CreateComputeInstance.MetadataEntryR\bmetadata\x12U\n" +
	"\x0eboot_disk_spec\x18\t \x01(\v2).yandex.cloud.compute.v1.AttachedDiskSpecB\x04\xe8\xc71\x01R\fbootDiskSpec\x12l\n" +
	"\x17network_interface_specs\x18\v \x03(\v2-.yandex.cloud.compute.v1.NetworkInterfaceSpecB\x05\x82\xc81\x011R\x15networkInterfaceSpecs\x12,\n" +
	"\x12service_account_id\x18\x0e \x01(\tR\x10serviceAccountId\x12\x1f\n" +
	"\vplatform_id\x18\x0f \x01(\tR\n" +
	"platformId\x1a9\n" +
	"\vLabelsEntry\x12\x10\n" +
	"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
	"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\x1a;\n" +
	"\rMetadataEntry\x12\x10\n" +
	"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
	"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01J\x04\b\n" +
	"\x10\vJ\x04\b\f\x10\x0eJ\x04\b\x06\x10\aB|\n" +
	")yandex.cloud.api.loadtesting.api.v1.agentZOgithub.com/yandex-cloud/go-genproto/yandex/cloud/loadtesting/api/v1/agent;agentb\x06proto3"

var (
	file_yandex_cloud_loadtesting_api_v1_agent_create_compute_instance_proto_rawDescOnce sync.Once
	file_yandex_cloud_loadtesting_api_v1_agent_create_compute_instance_proto_rawDescData []byte
)

func file_yandex_cloud_loadtesting_api_v1_agent_create_compute_instance_proto_rawDescGZIP() []byte {
	file_yandex_cloud_loadtesting_api_v1_agent_create_compute_instance_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_loadtesting_api_v1_agent_create_compute_instance_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_loadtesting_api_v1_agent_create_compute_instance_proto_rawDesc), len(file_yandex_cloud_loadtesting_api_v1_agent_create_compute_instance_proto_rawDesc)))
	})
	return file_yandex_cloud_loadtesting_api_v1_agent_create_compute_instance_proto_rawDescData
}

var file_yandex_cloud_loadtesting_api_v1_agent_create_compute_instance_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_yandex_cloud_loadtesting_api_v1_agent_create_compute_instance_proto_goTypes = []any{
	(*CreateComputeInstance)(nil),   // 0: yandex.cloud.loadtesting.api.v1.agent.CreateComputeInstance
	nil,                             // 1: yandex.cloud.loadtesting.api.v1.agent.CreateComputeInstance.LabelsEntry
	nil,                             // 2: yandex.cloud.loadtesting.api.v1.agent.CreateComputeInstance.MetadataEntry
	(*v1.ResourcesSpec)(nil),        // 3: yandex.cloud.compute.v1.ResourcesSpec
	(*v1.AttachedDiskSpec)(nil),     // 4: yandex.cloud.compute.v1.AttachedDiskSpec
	(*v1.NetworkInterfaceSpec)(nil), // 5: yandex.cloud.compute.v1.NetworkInterfaceSpec
}
var file_yandex_cloud_loadtesting_api_v1_agent_create_compute_instance_proto_depIdxs = []int32{
	1, // 0: yandex.cloud.loadtesting.api.v1.agent.CreateComputeInstance.labels:type_name -> yandex.cloud.loadtesting.api.v1.agent.CreateComputeInstance.LabelsEntry
	3, // 1: yandex.cloud.loadtesting.api.v1.agent.CreateComputeInstance.resources_spec:type_name -> yandex.cloud.compute.v1.ResourcesSpec
	2, // 2: yandex.cloud.loadtesting.api.v1.agent.CreateComputeInstance.metadata:type_name -> yandex.cloud.loadtesting.api.v1.agent.CreateComputeInstance.MetadataEntry
	4, // 3: yandex.cloud.loadtesting.api.v1.agent.CreateComputeInstance.boot_disk_spec:type_name -> yandex.cloud.compute.v1.AttachedDiskSpec
	5, // 4: yandex.cloud.loadtesting.api.v1.agent.CreateComputeInstance.network_interface_specs:type_name -> yandex.cloud.compute.v1.NetworkInterfaceSpec
	5, // [5:5] is the sub-list for method output_type
	5, // [5:5] is the sub-list for method input_type
	5, // [5:5] is the sub-list for extension type_name
	5, // [5:5] is the sub-list for extension extendee
	0, // [0:5] is the sub-list for field type_name
}

func init() { file_yandex_cloud_loadtesting_api_v1_agent_create_compute_instance_proto_init() }
func file_yandex_cloud_loadtesting_api_v1_agent_create_compute_instance_proto_init() {
	if File_yandex_cloud_loadtesting_api_v1_agent_create_compute_instance_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_loadtesting_api_v1_agent_create_compute_instance_proto_rawDesc), len(file_yandex_cloud_loadtesting_api_v1_agent_create_compute_instance_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   3,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_loadtesting_api_v1_agent_create_compute_instance_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_loadtesting_api_v1_agent_create_compute_instance_proto_depIdxs,
		MessageInfos:      file_yandex_cloud_loadtesting_api_v1_agent_create_compute_instance_proto_msgTypes,
	}.Build()
	File_yandex_cloud_loadtesting_api_v1_agent_create_compute_instance_proto = out.File
	file_yandex_cloud_loadtesting_api_v1_agent_create_compute_instance_proto_goTypes = nil
	file_yandex_cloud_loadtesting_api_v1_agent_create_compute_instance_proto_depIdxs = nil
}
