// Code generated by protoc-gen-goext. DO NOT EDIT.

package compute

import (
	operation "github.com/yandex-cloud/go-genproto/yandex/cloud/operation"
	durationpb "google.golang.org/protobuf/types/known/durationpb"
	fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
)

func (m *GetInstanceRequest) SetInstanceId(v string) {
	m.InstanceId = v
}

func (m *GetInstanceRequest) SetView(v InstanceView) {
	m.View = v
}

func (m *ListInstancesRequest) SetFolderId(v string) {
	m.FolderId = v
}

func (m *ListInstancesRequest) SetPageSize(v int64) {
	m.PageSize = v
}

func (m *ListInstancesRequest) SetPageToken(v string) {
	m.PageToken = v
}

func (m *ListInstancesRequest) SetFilter(v string) {
	m.Filter = v
}

func (m *ListInstancesRequest) SetOrderBy(v string) {
	m.OrderBy = v
}

func (m *ListInstancesResponse) SetInstances(v []*Instance) {
	m.Instances = v
}

func (m *ListInstancesResponse) SetNextPageToken(v string) {
	m.NextPageToken = v
}

func (m *CreateInstanceRequest) SetFolderId(v string) {
	m.FolderId = v
}

func (m *CreateInstanceRequest) SetName(v string) {
	m.Name = v
}

func (m *CreateInstanceRequest) SetDescription(v string) {
	m.Description = v
}

func (m *CreateInstanceRequest) SetLabels(v map[string]string) {
	m.Labels = v
}

func (m *CreateInstanceRequest) SetZoneId(v string) {
	m.ZoneId = v
}

func (m *CreateInstanceRequest) SetPlatformId(v string) {
	m.PlatformId = v
}

func (m *CreateInstanceRequest) SetResourcesSpec(v *ResourcesSpec) {
	m.ResourcesSpec = v
}

func (m *CreateInstanceRequest) SetMetadata(v map[string]string) {
	m.Metadata = v
}

func (m *CreateInstanceRequest) SetMetadataOptions(v *MetadataOptions) {
	m.MetadataOptions = v
}

func (m *CreateInstanceRequest) SetBootDiskSpec(v *AttachedDiskSpec) {
	m.BootDiskSpec = v
}

func (m *CreateInstanceRequest) SetSecondaryDiskSpecs(v []*AttachedDiskSpec) {
	m.SecondaryDiskSpecs = v
}

func (m *CreateInstanceRequest) SetLocalDiskSpecs(v []*AttachedLocalDiskSpec) {
	m.LocalDiskSpecs = v
}

func (m *CreateInstanceRequest) SetFilesystemSpecs(v []*AttachedFilesystemSpec) {
	m.FilesystemSpecs = v
}

func (m *CreateInstanceRequest) SetNetworkInterfaceSpecs(v []*NetworkInterfaceSpec) {
	m.NetworkInterfaceSpecs = v
}

func (m *CreateInstanceRequest) SetHostname(v string) {
	m.Hostname = v
}

func (m *CreateInstanceRequest) SetSchedulingPolicy(v *SchedulingPolicy) {
	m.SchedulingPolicy = v
}

func (m *CreateInstanceRequest) SetServiceAccountId(v string) {
	m.ServiceAccountId = v
}

func (m *CreateInstanceRequest) SetNetworkSettings(v *NetworkSettings) {
	m.NetworkSettings = v
}

func (m *CreateInstanceRequest) SetPlacementPolicy(v *PlacementPolicy) {
	m.PlacementPolicy = v
}

func (m *CreateInstanceRequest) SetGpuSettings(v *GpuSettings) {
	m.GpuSettings = v
}

func (m *CreateInstanceRequest) SetMaintenancePolicy(v MaintenancePolicy) {
	m.MaintenancePolicy = v
}

func (m *CreateInstanceRequest) SetMaintenanceGracePeriod(v *durationpb.Duration) {
	m.MaintenanceGracePeriod = v
}

func (m *CreateInstanceRequest) SetSerialPortSettings(v *SerialPortSettings) {
	m.SerialPortSettings = v
}

func (m *CreateInstanceRequest) SetReservedInstancePoolId(v string) {
	m.ReservedInstancePoolId = v
}

func (m *CreateInstanceRequest) SetApplication(v *Application) {
	m.Application = v
}

func (m *CreateInstanceMetadata) SetInstanceId(v string) {
	m.InstanceId = v
}

func (m *UpdateInstanceRequest) SetInstanceId(v string) {
	m.InstanceId = v
}

func (m *UpdateInstanceRequest) SetUpdateMask(v *fieldmaskpb.FieldMask) {
	m.UpdateMask = v
}

func (m *UpdateInstanceRequest) SetName(v string) {
	m.Name = v
}

func (m *UpdateInstanceRequest) SetDescription(v string) {
	m.Description = v
}

func (m *UpdateInstanceRequest) SetLabels(v map[string]string) {
	m.Labels = v
}

func (m *UpdateInstanceRequest) SetPlatformId(v string) {
	m.PlatformId = v
}

func (m *UpdateInstanceRequest) SetResourcesSpec(v *ResourcesSpec) {
	m.ResourcesSpec = v
}

func (m *UpdateInstanceRequest) SetMetadata(v map[string]string) {
	m.Metadata = v
}

func (m *UpdateInstanceRequest) SetMetadataOptions(v *MetadataOptions) {
	m.MetadataOptions = v
}

func (m *UpdateInstanceRequest) SetServiceAccountId(v string) {
	m.ServiceAccountId = v
}

func (m *UpdateInstanceRequest) SetNetworkSettings(v *NetworkSettings) {
	m.NetworkSettings = v
}

func (m *UpdateInstanceRequest) SetPlacementPolicy(v *PlacementPolicy) {
	m.PlacementPolicy = v
}

func (m *UpdateInstanceRequest) SetSchedulingPolicy(v *SchedulingPolicy) {
	m.SchedulingPolicy = v
}

func (m *UpdateInstanceRequest) SetMaintenancePolicy(v MaintenancePolicy) {
	m.MaintenancePolicy = v
}

func (m *UpdateInstanceRequest) SetMaintenanceGracePeriod(v *durationpb.Duration) {
	m.MaintenanceGracePeriod = v
}

func (m *UpdateInstanceRequest) SetSerialPortSettings(v *SerialPortSettings) {
	m.SerialPortSettings = v
}

func (m *UpdateInstanceRequest) SetReservedInstancePoolId(v string) {
	m.ReservedInstancePoolId = v
}

func (m *UpdateInstanceRequest) SetApplication(v *Application) {
	m.Application = v
}

func (m *UpdateInstanceMetadata) SetInstanceId(v string) {
	m.InstanceId = v
}

func (m *DeleteInstanceRequest) SetInstanceId(v string) {
	m.InstanceId = v
}

func (m *DeleteInstanceMetadata) SetInstanceId(v string) {
	m.InstanceId = v
}

func (m *UpdateInstanceMetadataRequest) SetInstanceId(v string) {
	m.InstanceId = v
}

func (m *UpdateInstanceMetadataRequest) SetDelete(v []string) {
	m.Delete = v
}

func (m *UpdateInstanceMetadataRequest) SetUpsert(v map[string]string) {
	m.Upsert = v
}

func (m *UpdateInstanceMetadataMetadata) SetInstanceId(v string) {
	m.InstanceId = v
}

func (m *GetInstanceSerialPortOutputRequest) SetInstanceId(v string) {
	m.InstanceId = v
}

func (m *GetInstanceSerialPortOutputRequest) SetPort(v int64) {
	m.Port = v
}

func (m *GetInstanceSerialPortOutputResponse) SetContents(v string) {
	m.Contents = v
}

func (m *StopInstanceRequest) SetInstanceId(v string) {
	m.InstanceId = v
}

func (m *StopInstanceMetadata) SetInstanceId(v string) {
	m.InstanceId = v
}

func (m *StartInstanceRequest) SetInstanceId(v string) {
	m.InstanceId = v
}

func (m *StartInstanceMetadata) SetInstanceId(v string) {
	m.InstanceId = v
}

func (m *RestartInstanceRequest) SetInstanceId(v string) {
	m.InstanceId = v
}

func (m *RestartInstanceMetadata) SetInstanceId(v string) {
	m.InstanceId = v
}

func (m *AttachInstanceDiskRequest) SetInstanceId(v string) {
	m.InstanceId = v
}

func (m *AttachInstanceDiskRequest) SetAttachedDiskSpec(v *AttachedDiskSpec) {
	m.AttachedDiskSpec = v
}

func (m *AttachInstanceDiskMetadata) SetInstanceId(v string) {
	m.InstanceId = v
}

func (m *AttachInstanceDiskMetadata) SetDiskId(v string) {
	m.DiskId = v
}

type DetachInstanceDiskRequest_Disk = isDetachInstanceDiskRequest_Disk

func (m *DetachInstanceDiskRequest) SetDisk(v DetachInstanceDiskRequest_Disk) {
	m.Disk = v
}

func (m *DetachInstanceDiskRequest) SetInstanceId(v string) {
	m.InstanceId = v
}

func (m *DetachInstanceDiskRequest) SetDiskId(v string) {
	m.Disk = &DetachInstanceDiskRequest_DiskId{
		DiskId: v,
	}
}

func (m *DetachInstanceDiskRequest) SetDeviceName(v string) {
	m.Disk = &DetachInstanceDiskRequest_DeviceName{
		DeviceName: v,
	}
}

func (m *DetachInstanceDiskMetadata) SetInstanceId(v string) {
	m.InstanceId = v
}

func (m *DetachInstanceDiskMetadata) SetDiskId(v string) {
	m.DiskId = v
}

func (m *AttachInstanceFilesystemRequest) SetInstanceId(v string) {
	m.InstanceId = v
}

func (m *AttachInstanceFilesystemRequest) SetAttachedFilesystemSpec(v *AttachedFilesystemSpec) {
	m.AttachedFilesystemSpec = v
}

func (m *AttachInstanceFilesystemMetadata) SetInstanceId(v string) {
	m.InstanceId = v
}

func (m *AttachInstanceFilesystemMetadata) SetFilesystemId(v string) {
	m.FilesystemId = v
}

type DetachInstanceFilesystemRequest_Filesystem = isDetachInstanceFilesystemRequest_Filesystem

func (m *DetachInstanceFilesystemRequest) SetFilesystem(v DetachInstanceFilesystemRequest_Filesystem) {
	m.Filesystem = v
}

func (m *DetachInstanceFilesystemRequest) SetInstanceId(v string) {
	m.InstanceId = v
}

func (m *DetachInstanceFilesystemRequest) SetFilesystemId(v string) {
	m.Filesystem = &DetachInstanceFilesystemRequest_FilesystemId{
		FilesystemId: v,
	}
}

func (m *DetachInstanceFilesystemRequest) SetDeviceName(v string) {
	m.Filesystem = &DetachInstanceFilesystemRequest_DeviceName{
		DeviceName: v,
	}
}

func (m *DetachInstanceFilesystemMetadata) SetInstanceId(v string) {
	m.InstanceId = v
}

func (m *DetachInstanceFilesystemMetadata) SetFilesystemId(v string) {
	m.FilesystemId = v
}

func (m *AttachInstanceNetworkInterfaceRequest) SetInstanceId(v string) {
	m.InstanceId = v
}

func (m *AttachInstanceNetworkInterfaceRequest) SetNetworkInterfaceIndex(v string) {
	m.NetworkInterfaceIndex = v
}

func (m *AttachInstanceNetworkInterfaceRequest) SetSubnetId(v string) {
	m.SubnetId = v
}

func (m *AttachInstanceNetworkInterfaceRequest) SetPrimaryV4AddressSpec(v *PrimaryAddressSpec) {
	m.PrimaryV4AddressSpec = v
}

func (m *AttachInstanceNetworkInterfaceRequest) SetSecurityGroupIds(v []string) {
	m.SecurityGroupIds = v
}

func (m *AttachInstanceNetworkInterfaceMetadata) SetInstanceId(v string) {
	m.InstanceId = v
}

func (m *AttachInstanceNetworkInterfaceMetadata) SetNetworkInterfaceIndex(v string) {
	m.NetworkInterfaceIndex = v
}

func (m *DetachInstanceNetworkInterfaceRequest) SetInstanceId(v string) {
	m.InstanceId = v
}

func (m *DetachInstanceNetworkInterfaceRequest) SetNetworkInterfaceIndex(v string) {
	m.NetworkInterfaceIndex = v
}

func (m *DetachInstanceNetworkInterfaceMetadata) SetInstanceId(v string) {
	m.InstanceId = v
}

func (m *DetachInstanceNetworkInterfaceMetadata) SetNetworkInterfaceIndex(v string) {
	m.NetworkInterfaceIndex = v
}

func (m *AddInstanceOneToOneNatRequest) SetInstanceId(v string) {
	m.InstanceId = v
}

func (m *AddInstanceOneToOneNatRequest) SetNetworkInterfaceIndex(v string) {
	m.NetworkInterfaceIndex = v
}

func (m *AddInstanceOneToOneNatRequest) SetInternalAddress(v string) {
	m.InternalAddress = v
}

func (m *AddInstanceOneToOneNatRequest) SetOneToOneNatSpec(v *OneToOneNatSpec) {
	m.OneToOneNatSpec = v
}

func (m *AddInstanceOneToOneNatMetadata) SetInstanceId(v string) {
	m.InstanceId = v
}

func (m *RemoveInstanceOneToOneNatRequest) SetInstanceId(v string) {
	m.InstanceId = v
}

func (m *RemoveInstanceOneToOneNatRequest) SetNetworkInterfaceIndex(v string) {
	m.NetworkInterfaceIndex = v
}

func (m *RemoveInstanceOneToOneNatRequest) SetInternalAddress(v string) {
	m.InternalAddress = v
}

func (m *RemoveInstanceOneToOneNatMetadata) SetInstanceId(v string) {
	m.InstanceId = v
}

func (m *UpdateInstanceNetworkInterfaceRequest) SetInstanceId(v string) {
	m.InstanceId = v
}

func (m *UpdateInstanceNetworkInterfaceRequest) SetNetworkInterfaceIndex(v string) {
	m.NetworkInterfaceIndex = v
}

func (m *UpdateInstanceNetworkInterfaceRequest) SetUpdateMask(v *fieldmaskpb.FieldMask) {
	m.UpdateMask = v
}

func (m *UpdateInstanceNetworkInterfaceRequest) SetSubnetId(v string) {
	m.SubnetId = v
}

func (m *UpdateInstanceNetworkInterfaceRequest) SetPrimaryV4AddressSpec(v *PrimaryAddressSpec) {
	m.PrimaryV4AddressSpec = v
}

func (m *UpdateInstanceNetworkInterfaceRequest) SetPrimaryV6AddressSpec(v *PrimaryAddressSpec) {
	m.PrimaryV6AddressSpec = v
}

func (m *UpdateInstanceNetworkInterfaceRequest) SetSecurityGroupIds(v []string) {
	m.SecurityGroupIds = v
}

func (m *UpdateInstanceNetworkInterfaceMetadata) SetInstanceId(v string) {
	m.InstanceId = v
}

func (m *UpdateInstanceNetworkInterfaceMetadata) SetNetworkInterfaceIndex(v string) {
	m.NetworkInterfaceIndex = v
}

func (m *SimulateInstanceMaintenanceEventRequest) SetInstanceId(v string) {
	m.InstanceId = v
}

func (m *SimulateInstanceMaintenanceEventMetadata) SetInstanceId(v string) {
	m.InstanceId = v
}

func (m *ListInstanceOperationsRequest) SetInstanceId(v string) {
	m.InstanceId = v
}

func (m *ListInstanceOperationsRequest) SetPageSize(v int64) {
	m.PageSize = v
}

func (m *ListInstanceOperationsRequest) SetPageToken(v string) {
	m.PageToken = v
}

func (m *ListInstanceOperationsResponse) SetOperations(v []*operation.Operation) {
	m.Operations = v
}

func (m *ListInstanceOperationsResponse) SetNextPageToken(v string) {
	m.NextPageToken = v
}

func (m *ResourcesSpec) SetMemory(v int64) {
	m.Memory = v
}

func (m *ResourcesSpec) SetCores(v int64) {
	m.Cores = v
}

func (m *ResourcesSpec) SetCoreFraction(v int64) {
	m.CoreFraction = v
}

func (m *ResourcesSpec) SetGpus(v int64) {
	m.Gpus = v
}

type AttachedDiskSpec_Disk = isAttachedDiskSpec_Disk

func (m *AttachedDiskSpec) SetDisk(v AttachedDiskSpec_Disk) {
	m.Disk = v
}

func (m *AttachedDiskSpec) SetMode(v AttachedDiskSpec_Mode) {
	m.Mode = v
}

func (m *AttachedDiskSpec) SetDeviceName(v string) {
	m.DeviceName = v
}

func (m *AttachedDiskSpec) SetAutoDelete(v bool) {
	m.AutoDelete = v
}

func (m *AttachedDiskSpec) SetDiskSpec(v *AttachedDiskSpec_DiskSpec) {
	m.Disk = &AttachedDiskSpec_DiskSpec_{
		DiskSpec: v,
	}
}

func (m *AttachedDiskSpec) SetDiskId(v string) {
	m.Disk = &AttachedDiskSpec_DiskId{
		DiskId: v,
	}
}

type AttachedDiskSpec_DiskSpec_Source = isAttachedDiskSpec_DiskSpec_Source

func (m *AttachedDiskSpec_DiskSpec) SetSource(v AttachedDiskSpec_DiskSpec_Source) {
	m.Source = v
}

func (m *AttachedDiskSpec_DiskSpec) SetName(v string) {
	m.Name = v
}

func (m *AttachedDiskSpec_DiskSpec) SetDescription(v string) {
	m.Description = v
}

func (m *AttachedDiskSpec_DiskSpec) SetTypeId(v string) {
	m.TypeId = v
}

func (m *AttachedDiskSpec_DiskSpec) SetSize(v int64) {
	m.Size = v
}

func (m *AttachedDiskSpec_DiskSpec) SetImageId(v string) {
	m.Source = &AttachedDiskSpec_DiskSpec_ImageId{
		ImageId: v,
	}
}

func (m *AttachedDiskSpec_DiskSpec) SetSnapshotId(v string) {
	m.Source = &AttachedDiskSpec_DiskSpec_SnapshotId{
		SnapshotId: v,
	}
}

func (m *AttachedDiskSpec_DiskSpec) SetDiskPlacementPolicy(v *DiskPlacementPolicy) {
	m.DiskPlacementPolicy = v
}

func (m *AttachedDiskSpec_DiskSpec) SetBlockSize(v int64) {
	m.BlockSize = v
}

func (m *AttachedDiskSpec_DiskSpec) SetKmsKeyId(v string) {
	m.KmsKeyId = v
}

type AttachedLocalDiskSpec_Type = isAttachedLocalDiskSpec_Type

func (m *AttachedLocalDiskSpec) SetType(v AttachedLocalDiskSpec_Type) {
	m.Type = v
}

func (m *AttachedLocalDiskSpec) SetSize(v int64) {
	m.Size = v
}

func (m *AttachedLocalDiskSpec) SetPhysicalLocalDisk(v *PhysicalLocalDiskSpec) {
	m.Type = &AttachedLocalDiskSpec_PhysicalLocalDisk{
		PhysicalLocalDisk: v,
	}
}

func (m *PhysicalLocalDiskSpec) SetKmsKeyId(v string) {
	m.KmsKeyId = v
}

func (m *AttachedFilesystemSpec) SetMode(v AttachedFilesystemSpec_Mode) {
	m.Mode = v
}

func (m *AttachedFilesystemSpec) SetDeviceName(v string) {
	m.DeviceName = v
}

func (m *AttachedFilesystemSpec) SetFilesystemId(v string) {
	m.FilesystemId = v
}

func (m *NetworkInterfaceSpec) SetSubnetId(v string) {
	m.SubnetId = v
}

func (m *NetworkInterfaceSpec) SetPrimaryV4AddressSpec(v *PrimaryAddressSpec) {
	m.PrimaryV4AddressSpec = v
}

func (m *NetworkInterfaceSpec) SetPrimaryV6AddressSpec(v *PrimaryAddressSpec) {
	m.PrimaryV6AddressSpec = v
}

func (m *NetworkInterfaceSpec) SetSecurityGroupIds(v []string) {
	m.SecurityGroupIds = v
}

func (m *NetworkInterfaceSpec) SetIndex(v string) {
	m.Index = v
}

func (m *PrimaryAddressSpec) SetAddress(v string) {
	m.Address = v
}

func (m *PrimaryAddressSpec) SetOneToOneNatSpec(v *OneToOneNatSpec) {
	m.OneToOneNatSpec = v
}

func (m *PrimaryAddressSpec) SetDnsRecordSpecs(v []*DnsRecordSpec) {
	m.DnsRecordSpecs = v
}

func (m *OneToOneNatSpec) SetIpVersion(v IpVersion) {
	m.IpVersion = v
}

func (m *OneToOneNatSpec) SetAddress(v string) {
	m.Address = v
}

func (m *OneToOneNatSpec) SetDnsRecordSpecs(v []*DnsRecordSpec) {
	m.DnsRecordSpecs = v
}

func (m *DnsRecordSpec) SetFqdn(v string) {
	m.Fqdn = v
}

func (m *DnsRecordSpec) SetDnsZoneId(v string) {
	m.DnsZoneId = v
}

func (m *DnsRecordSpec) SetTtl(v int64) {
	m.Ttl = v
}

func (m *DnsRecordSpec) SetPtr(v bool) {
	m.Ptr = v
}

func (m *MoveInstanceRequest) SetInstanceId(v string) {
	m.InstanceId = v
}

func (m *MoveInstanceRequest) SetDestinationFolderId(v string) {
	m.DestinationFolderId = v
}

func (m *MoveInstanceMetadata) SetInstanceId(v string) {
	m.InstanceId = v
}

func (m *MoveInstanceMetadata) SetSourceFolderId(v string) {
	m.SourceFolderId = v
}

func (m *MoveInstanceMetadata) SetDestinationFolderId(v string) {
	m.DestinationFolderId = v
}

func (m *RelocateInstanceRequest) SetInstanceId(v string) {
	m.InstanceId = v
}

func (m *RelocateInstanceRequest) SetDestinationZoneId(v string) {
	m.DestinationZoneId = v
}

func (m *RelocateInstanceRequest) SetNetworkInterfaceSpecs(v []*NetworkInterfaceSpec) {
	m.NetworkInterfaceSpecs = v
}

func (m *RelocateInstanceRequest) SetBootDiskPlacement(v *DiskPlacementPolicy) {
	m.BootDiskPlacement = v
}

func (m *RelocateInstanceRequest) SetSecondaryDiskPlacements(v []*DiskPlacementPolicyChange) {
	m.SecondaryDiskPlacements = v
}

func (m *RelocateInstanceMetadata) SetInstanceId(v string) {
	m.InstanceId = v
}

func (m *RelocateInstanceMetadata) SetSourceZoneId(v string) {
	m.SourceZoneId = v
}

func (m *RelocateInstanceMetadata) SetDestinationZoneId(v string) {
	m.DestinationZoneId = v
}

func (m *GuestStopInstanceMetadata) SetInstanceId(v string) {
	m.InstanceId = v
}

func (m *PreemptInstanceMetadata) SetInstanceId(v string) {
	m.InstanceId = v
}

func (m *CrashInstanceMetadata) SetInstanceId(v string) {
	m.InstanceId = v
}
