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

package agent

import (
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
	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 Test_Status int32

const (
	Test_STATUS_UNSPECIFIED Test_Status = 0
	Test_CREATED            Test_Status = 1
	Test_INITIATED          Test_Status = 2
	Test_PREPARING          Test_Status = 3
	Test_RUNNING            Test_Status = 4
	Test_FINISHING          Test_Status = 5
	Test_DONE               Test_Status = 6
	Test_POST_PROCESSING    Test_Status = 7
	Test_FAILED             Test_Status = 8
	Test_STOPPING           Test_Status = 9
	Test_STOPPED            Test_Status = 10
	Test_AUTOSTOPPED        Test_Status = 11
	Test_WAITING            Test_Status = 12
	Test_DELETING           Test_Status = 13
	Test_LOST               Test_Status = 14
	Test_CANCELLED          Test_Status = 15
)

// Enum value maps for Test_Status.
var (
	Test_Status_name = map[int32]string{
		0:  "STATUS_UNSPECIFIED",
		1:  "CREATED",
		2:  "INITIATED",
		3:  "PREPARING",
		4:  "RUNNING",
		5:  "FINISHING",
		6:  "DONE",
		7:  "POST_PROCESSING",
		8:  "FAILED",
		9:  "STOPPING",
		10: "STOPPED",
		11: "AUTOSTOPPED",
		12: "WAITING",
		13: "DELETING",
		14: "LOST",
		15: "CANCELLED",
	}
	Test_Status_value = map[string]int32{
		"STATUS_UNSPECIFIED": 0,
		"CREATED":            1,
		"INITIATED":          2,
		"PREPARING":          3,
		"RUNNING":            4,
		"FINISHING":          5,
		"DONE":               6,
		"POST_PROCESSING":    7,
		"FAILED":             8,
		"STOPPING":           9,
		"STOPPED":            10,
		"AUTOSTOPPED":        11,
		"WAITING":            12,
		"DELETING":           13,
		"LOST":               14,
		"CANCELLED":          15,
	}
)

func (x Test_Status) Enum() *Test_Status {
	p := new(Test_Status)
	*p = x
	return p
}

func (x Test_Status) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (Test_Status) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_loadtesting_agent_v1_test_proto_enumTypes[0].Descriptor()
}

func (Test_Status) Type() protoreflect.EnumType {
	return &file_yandex_cloud_loadtesting_agent_v1_test_proto_enumTypes[0]
}

func (x Test_Status) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use Test_Status.Descriptor instead.
func (Test_Status) EnumDescriptor() ([]byte, []int) {
	return file_yandex_cloud_loadtesting_agent_v1_test_proto_rawDescGZIP(), []int{0, 0}
}

type Test_Generator int32

const (
	Test_GENERATOR_UNSPECIFIED Test_Generator = 0
	Test_PANDORA               Test_Generator = 1
	Test_PHANTOM               Test_Generator = 2
	Test_JMETER                Test_Generator = 3
)

// Enum value maps for Test_Generator.
var (
	Test_Generator_name = map[int32]string{
		0: "GENERATOR_UNSPECIFIED",
		1: "PANDORA",
		2: "PHANTOM",
		3: "JMETER",
	}
	Test_Generator_value = map[string]int32{
		"GENERATOR_UNSPECIFIED": 0,
		"PANDORA":               1,
		"PHANTOM":               2,
		"JMETER":                3,
	}
)

func (x Test_Generator) Enum() *Test_Generator {
	p := new(Test_Generator)
	*p = x
	return p
}

func (x Test_Generator) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (Test_Generator) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_loadtesting_agent_v1_test_proto_enumTypes[1].Descriptor()
}

func (Test_Generator) Type() protoreflect.EnumType {
	return &file_yandex_cloud_loadtesting_agent_v1_test_proto_enumTypes[1]
}

func (x Test_Generator) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use Test_Generator.Descriptor instead.
func (Test_Generator) EnumDescriptor() ([]byte, []int) {
	return file_yandex_cloud_loadtesting_agent_v1_test_proto_rawDescGZIP(), []int{0, 1}
}

type Test struct {
	state       protoimpl.MessageState `protogen:"open.v1"`
	Id          string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	FolderId    string                 `protobuf:"bytes,2,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"`
	Name        string                 `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Description string                 `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	Labels      map[string]string      `protobuf:"bytes,5,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
	CreatedAt   *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	StartedAt   *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"`
	FinishedAt  *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=finished_at,json=finishedAt,proto3" json:"finished_at,omitempty"`
	UpdatedAt   *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	Generator   Test_Generator         `protobuf:"varint,10,opt,name=generator,proto3,enum=yandex.cloud.loadtesting.agent.v1.Test_Generator" json:"generator,omitempty"`
	// AgentInstance ID where Test is running.
	AgentInstanceId string `protobuf:"bytes,11,opt,name=agent_instance_id,json=agentInstanceId,proto3" json:"agent_instance_id,omitempty"`
	// Target VM.
	TargetAddress string `protobuf:"bytes,12,opt,name=target_address,json=targetAddress,proto3" json:"target_address,omitempty"`
	TargetPort    int64  `protobuf:"varint,13,opt,name=target_port,json=targetPort,proto3" json:"target_port,omitempty"`
	// Version of object under test.
	TargetVersion string `protobuf:"bytes,14,opt,name=target_version,json=targetVersion,proto3" json:"target_version,omitempty"`
	// Test details
	Config string `protobuf:"bytes,15,opt,name=config,proto3" json:"config,omitempty"`
	// Types that are valid to be assigned to Ammo:
	//
	//	*Test_AmmoUrls
	//	*Test_AmmoId
	Ammo          isTest_Ammo `protobuf_oneof:"ammo"`
	Cases         []string    `protobuf:"bytes,18,rep,name=cases,proto3" json:"cases,omitempty"`
	Status        Test_Status `protobuf:"varint,19,opt,name=status,proto3,enum=yandex.cloud.loadtesting.agent.v1.Test_Status" json:"status,omitempty"`
	Errors        []string    `protobuf:"bytes,20,rep,name=errors,proto3" json:"errors,omitempty"`
	Favorite      bool        `protobuf:"varint,21,opt,name=favorite,proto3" json:"favorite,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Test) ProtoMessage() {}

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

func (x *Test) GetId() string {
	if x != nil {
		return x.Id
	}
	return ""
}

func (x *Test) GetFolderId() string {
	if x != nil {
		return x.FolderId
	}
	return ""
}

func (x *Test) GetName() string {
	if x != nil {
		return x.Name
	}
	return ""
}

func (x *Test) GetDescription() string {
	if x != nil {
		return x.Description
	}
	return ""
}

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

func (x *Test) GetCreatedAt() *timestamppb.Timestamp {
	if x != nil {
		return x.CreatedAt
	}
	return nil
}

func (x *Test) GetStartedAt() *timestamppb.Timestamp {
	if x != nil {
		return x.StartedAt
	}
	return nil
}

func (x *Test) GetFinishedAt() *timestamppb.Timestamp {
	if x != nil {
		return x.FinishedAt
	}
	return nil
}

func (x *Test) GetUpdatedAt() *timestamppb.Timestamp {
	if x != nil {
		return x.UpdatedAt
	}
	return nil
}

func (x *Test) GetGenerator() Test_Generator {
	if x != nil {
		return x.Generator
	}
	return Test_GENERATOR_UNSPECIFIED
}

func (x *Test) GetAgentInstanceId() string {
	if x != nil {
		return x.AgentInstanceId
	}
	return ""
}

func (x *Test) GetTargetAddress() string {
	if x != nil {
		return x.TargetAddress
	}
	return ""
}

func (x *Test) GetTargetPort() int64 {
	if x != nil {
		return x.TargetPort
	}
	return 0
}

func (x *Test) GetTargetVersion() string {
	if x != nil {
		return x.TargetVersion
	}
	return ""
}

func (x *Test) GetConfig() string {
	if x != nil {
		return x.Config
	}
	return ""
}

func (x *Test) GetAmmo() isTest_Ammo {
	if x != nil {
		return x.Ammo
	}
	return nil
}

func (x *Test) GetAmmoUrls() string {
	if x != nil {
		if x, ok := x.Ammo.(*Test_AmmoUrls); ok {
			return x.AmmoUrls
		}
	}
	return ""
}

func (x *Test) GetAmmoId() string {
	if x != nil {
		if x, ok := x.Ammo.(*Test_AmmoId); ok {
			return x.AmmoId
		}
	}
	return ""
}

func (x *Test) GetCases() []string {
	if x != nil {
		return x.Cases
	}
	return nil
}

func (x *Test) GetStatus() Test_Status {
	if x != nil {
		return x.Status
	}
	return Test_STATUS_UNSPECIFIED
}

func (x *Test) GetErrors() []string {
	if x != nil {
		return x.Errors
	}
	return nil
}

func (x *Test) GetFavorite() bool {
	if x != nil {
		return x.Favorite
	}
	return false
}

type isTest_Ammo interface {
	isTest_Ammo()
}

type Test_AmmoUrls struct {
	AmmoUrls string `protobuf:"bytes,16,opt,name=ammo_urls,json=ammoUrls,proto3,oneof"`
}

type Test_AmmoId struct {
	AmmoId string `protobuf:"bytes,17,opt,name=ammo_id,json=ammoId,proto3,oneof"`
}

func (*Test_AmmoUrls) isTest_Ammo() {}

func (*Test_AmmoId) isTest_Ammo() {}

var File_yandex_cloud_loadtesting_agent_v1_test_proto protoreflect.FileDescriptor

const file_yandex_cloud_loadtesting_agent_v1_test_proto_rawDesc = "" +
	"\n" +
	",yandex/cloud/loadtesting/agent/v1/test.proto\x12!yandex.cloud.loadtesting.agent.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"\xfa\t\n" +
	"\x04Test\x12\x0e\n" +
	"\x02id\x18\x01 \x01(\tR\x02id\x12\x1b\n" +
	"\tfolder_id\x18\x02 \x01(\tR\bfolderId\x12\x12\n" +
	"\x04name\x18\x03 \x01(\tR\x04name\x12 \n" +
	"\vdescription\x18\x04 \x01(\tR\vdescription\x12K\n" +
	"\x06labels\x18\x05 \x03(\v23.yandex.cloud.loadtesting.agent.v1.Test.LabelsEntryR\x06labels\x129\n" +
	"\n" +
	"created_at\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" +
	"\n" +
	"started_at\x18\a \x01(\v2\x1a.google.protobuf.TimestampR\tstartedAt\x12;\n" +
	"\vfinished_at\x18\b \x01(\v2\x1a.google.protobuf.TimestampR\n" +
	"finishedAt\x129\n" +
	"\n" +
	"updated_at\x18\t \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAt\x12O\n" +
	"\tgenerator\x18\n" +
	" \x01(\x0e21.yandex.cloud.loadtesting.agent.v1.Test.GeneratorR\tgenerator\x12*\n" +
	"\x11agent_instance_id\x18\v \x01(\tR\x0fagentInstanceId\x12%\n" +
	"\x0etarget_address\x18\f \x01(\tR\rtargetAddress\x12\x1f\n" +
	"\vtarget_port\x18\r \x01(\x03R\n" +
	"targetPort\x12%\n" +
	"\x0etarget_version\x18\x0e \x01(\tR\rtargetVersion\x12\x16\n" +
	"\x06config\x18\x0f \x01(\tR\x06config\x12\x1d\n" +
	"\tammo_urls\x18\x10 \x01(\tH\x00R\bammoUrls\x12\x19\n" +
	"\aammo_id\x18\x11 \x01(\tH\x00R\x06ammoId\x12\x14\n" +
	"\x05cases\x18\x12 \x03(\tR\x05cases\x12F\n" +
	"\x06status\x18\x13 \x01(\x0e2..yandex.cloud.loadtesting.agent.v1.Test.StatusR\x06status\x12\x16\n" +
	"\x06errors\x18\x14 \x03(\tR\x06errors\x12\x1a\n" +
	"\bfavorite\x18\x15 \x01(\bR\bfavorite\x1a9\n" +
	"\vLabelsEntry\x12\x10\n" +
	"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
	"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\xf2\x01\n" +
	"\x06Status\x12\x16\n" +
	"\x12STATUS_UNSPECIFIED\x10\x00\x12\v\n" +
	"\aCREATED\x10\x01\x12\r\n" +
	"\tINITIATED\x10\x02\x12\r\n" +
	"\tPREPARING\x10\x03\x12\v\n" +
	"\aRUNNING\x10\x04\x12\r\n" +
	"\tFINISHING\x10\x05\x12\b\n" +
	"\x04DONE\x10\x06\x12\x13\n" +
	"\x0fPOST_PROCESSING\x10\a\x12\n" +
	"\n" +
	"\x06FAILED\x10\b\x12\f\n" +
	"\bSTOPPING\x10\t\x12\v\n" +
	"\aSTOPPED\x10\n" +
	"\x12\x0f\n" +
	"\vAUTOSTOPPED\x10\v\x12\v\n" +
	"\aWAITING\x10\f\x12\f\n" +
	"\bDELETING\x10\r\x12\b\n" +
	"\x04LOST\x10\x0e\x12\r\n" +
	"\tCANCELLED\x10\x0f\"L\n" +
	"\tGenerator\x12\x19\n" +
	"\x15GENERATOR_UNSPECIFIED\x10\x00\x12\v\n" +
	"\aPANDORA\x10\x01\x12\v\n" +
	"\aPHANTOM\x10\x02\x12\n" +
	"\n" +
	"\x06JMETER\x10\x03B\x06\n" +
	"\x04ammoBt\n" +
	"%yandex.cloud.api.loadtesting.agent.v1ZKgithub.com/yandex-cloud/go-genproto/yandex/cloud/loadtesting/agent/v1;agentb\x06proto3"

var (
	file_yandex_cloud_loadtesting_agent_v1_test_proto_rawDescOnce sync.Once
	file_yandex_cloud_loadtesting_agent_v1_test_proto_rawDescData []byte
)

func file_yandex_cloud_loadtesting_agent_v1_test_proto_rawDescGZIP() []byte {
	file_yandex_cloud_loadtesting_agent_v1_test_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_loadtesting_agent_v1_test_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_loadtesting_agent_v1_test_proto_rawDesc), len(file_yandex_cloud_loadtesting_agent_v1_test_proto_rawDesc)))
	})
	return file_yandex_cloud_loadtesting_agent_v1_test_proto_rawDescData
}

var file_yandex_cloud_loadtesting_agent_v1_test_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
var file_yandex_cloud_loadtesting_agent_v1_test_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_yandex_cloud_loadtesting_agent_v1_test_proto_goTypes = []any{
	(Test_Status)(0),              // 0: yandex.cloud.loadtesting.agent.v1.Test.Status
	(Test_Generator)(0),           // 1: yandex.cloud.loadtesting.agent.v1.Test.Generator
	(*Test)(nil),                  // 2: yandex.cloud.loadtesting.agent.v1.Test
	nil,                           // 3: yandex.cloud.loadtesting.agent.v1.Test.LabelsEntry
	(*timestamppb.Timestamp)(nil), // 4: google.protobuf.Timestamp
}
var file_yandex_cloud_loadtesting_agent_v1_test_proto_depIdxs = []int32{
	3, // 0: yandex.cloud.loadtesting.agent.v1.Test.labels:type_name -> yandex.cloud.loadtesting.agent.v1.Test.LabelsEntry
	4, // 1: yandex.cloud.loadtesting.agent.v1.Test.created_at:type_name -> google.protobuf.Timestamp
	4, // 2: yandex.cloud.loadtesting.agent.v1.Test.started_at:type_name -> google.protobuf.Timestamp
	4, // 3: yandex.cloud.loadtesting.agent.v1.Test.finished_at:type_name -> google.protobuf.Timestamp
	4, // 4: yandex.cloud.loadtesting.agent.v1.Test.updated_at:type_name -> google.protobuf.Timestamp
	1, // 5: yandex.cloud.loadtesting.agent.v1.Test.generator:type_name -> yandex.cloud.loadtesting.agent.v1.Test.Generator
	0, // 6: yandex.cloud.loadtesting.agent.v1.Test.status:type_name -> yandex.cloud.loadtesting.agent.v1.Test.Status
	7, // [7:7] is the sub-list for method output_type
	7, // [7:7] is the sub-list for method input_type
	7, // [7:7] is the sub-list for extension type_name
	7, // [7:7] is the sub-list for extension extendee
	0, // [0:7] is the sub-list for field type_name
}

func init() { file_yandex_cloud_loadtesting_agent_v1_test_proto_init() }
func file_yandex_cloud_loadtesting_agent_v1_test_proto_init() {
	if File_yandex_cloud_loadtesting_agent_v1_test_proto != nil {
		return
	}
	file_yandex_cloud_loadtesting_agent_v1_test_proto_msgTypes[0].OneofWrappers = []any{
		(*Test_AmmoUrls)(nil),
		(*Test_AmmoId)(nil),
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_loadtesting_agent_v1_test_proto_rawDesc), len(file_yandex_cloud_loadtesting_agent_v1_test_proto_rawDesc)),
			NumEnums:      2,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_loadtesting_agent_v1_test_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_loadtesting_agent_v1_test_proto_depIdxs,
		EnumInfos:         file_yandex_cloud_loadtesting_agent_v1_test_proto_enumTypes,
		MessageInfos:      file_yandex_cloud_loadtesting_agent_v1_test_proto_msgTypes,
	}.Build()
	File_yandex_cloud_loadtesting_agent_v1_test_proto = out.File
	file_yandex_cloud_loadtesting_agent_v1_test_proto_goTypes = nil
	file_yandex_cloud_loadtesting_agent_v1_test_proto_depIdxs = nil
}
