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

package test

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

// Process of test and some results
type Summary struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Status of the test.
	Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=yandex.cloud.loadtesting.api.v1.test.Status" json:"status,omitempty"`
	// Creation timestamp.
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// UA or SA that created the test.
	CreatedBy string `protobuf:"bytes,3,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"`
	// Test start timestamp.
	//
	// Empty if the test has not been started yet.
	StartedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"`
	// Test finish timestamp.
	//
	// Empty if the test has not been finished yet.
	FinishedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=finished_at,json=finishedAt,proto3" json:"finished_at,omitempty"`
	// Indicates whether the test is finished.
	IsFinished bool `protobuf:"varint,6,opt,name=is_finished,json=isFinished,proto3" json:"is_finished,omitempty"`
	// Error message.
	Error string `protobuf:"bytes,7,opt,name=error,proto3" json:"error,omitempty"`
	// Detected imbalance point.
	//
	// Contains information about a state at the moment it has been
	// [auto-stopped](/docs/load-testing/concepts/auto-stop).
	//
	// Empty if no auto-stop occured.
	ImbalancePoint *ImbalancePoint `protobuf:"bytes,8,opt,name=imbalance_point,json=imbalancePoint,proto3" json:"imbalance_point,omitempty"`
	// ID of the agent that executed the test.
	AssignedAgentId string `protobuf:"bytes,9,opt,name=assigned_agent_id,json=assignedAgentId,proto3" json:"assigned_agent_id,omitempty"`
	// Test output artifacts.
	//
	// Link to the artifacts output target containing `.log` and other files collected
	// during test execution.
	Artifacts     *FilePointer `protobuf:"bytes,10,opt,name=artifacts,proto3" json:"artifacts,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Summary) ProtoMessage() {}

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

func (x *Summary) GetStatus() Status {
	if x != nil {
		return x.Status
	}
	return Status_STATUS_UNSPECIFIED
}

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

func (x *Summary) GetCreatedBy() string {
	if x != nil {
		return x.CreatedBy
	}
	return ""
}

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

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

func (x *Summary) GetIsFinished() bool {
	if x != nil {
		return x.IsFinished
	}
	return false
}

func (x *Summary) GetError() string {
	if x != nil {
		return x.Error
	}
	return ""
}

func (x *Summary) GetImbalancePoint() *ImbalancePoint {
	if x != nil {
		return x.ImbalancePoint
	}
	return nil
}

func (x *Summary) GetAssignedAgentId() string {
	if x != nil {
		return x.AssignedAgentId
	}
	return ""
}

func (x *Summary) GetArtifacts() *FilePointer {
	if x != nil {
		return x.Artifacts
	}
	return nil
}

var File_yandex_cloud_loadtesting_api_v1_test_summary_proto protoreflect.FileDescriptor

const file_yandex_cloud_loadtesting_api_v1_test_summary_proto_rawDesc = "" +
	"\n" +
	"2yandex/cloud/loadtesting/api/v1/test/summary.proto\x12$yandex.cloud.loadtesting.api.v1.test\x1a7yandex/cloud/loadtesting/api/v1/test/file_pointer.proto\x1a:yandex/cloud/loadtesting/api/v1/test/imbalance_point.proto\x1a1yandex/cloud/loadtesting/api/v1/test/status.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb4\x04\n" +
	"\aSummary\x12D\n" +
	"\x06status\x18\x01 \x01(\x0e2,.yandex.cloud.loadtesting.api.v1.test.StatusR\x06status\x129\n" +
	"\n" +
	"created_at\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x12\x1d\n" +
	"\n" +
	"created_by\x18\x03 \x01(\tR\tcreatedBy\x129\n" +
	"\n" +
	"started_at\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\tstartedAt\x12;\n" +
	"\vfinished_at\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\n" +
	"finishedAt\x12\x1f\n" +
	"\vis_finished\x18\x06 \x01(\bR\n" +
	"isFinished\x12\x14\n" +
	"\x05error\x18\a \x01(\tR\x05error\x12]\n" +
	"\x0fimbalance_point\x18\b \x01(\v24.yandex.cloud.loadtesting.api.v1.test.ImbalancePointR\x0eimbalancePoint\x12*\n" +
	"\x11assigned_agent_id\x18\t \x01(\tR\x0fassignedAgentId\x12O\n" +
	"\tartifacts\x18\n" +
	" \x01(\v21.yandex.cloud.loadtesting.api.v1.test.FilePointerR\tartifactsBy\n" +
	"(yandex.cloud.api.loadtesting.api.v1.testZMgithub.com/yandex-cloud/go-genproto/yandex/cloud/loadtesting/api/v1/test;testb\x06proto3"

var (
	file_yandex_cloud_loadtesting_api_v1_test_summary_proto_rawDescOnce sync.Once
	file_yandex_cloud_loadtesting_api_v1_test_summary_proto_rawDescData []byte
)

func file_yandex_cloud_loadtesting_api_v1_test_summary_proto_rawDescGZIP() []byte {
	file_yandex_cloud_loadtesting_api_v1_test_summary_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_loadtesting_api_v1_test_summary_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_loadtesting_api_v1_test_summary_proto_rawDesc), len(file_yandex_cloud_loadtesting_api_v1_test_summary_proto_rawDesc)))
	})
	return file_yandex_cloud_loadtesting_api_v1_test_summary_proto_rawDescData
}

var file_yandex_cloud_loadtesting_api_v1_test_summary_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_yandex_cloud_loadtesting_api_v1_test_summary_proto_goTypes = []any{
	(*Summary)(nil),               // 0: yandex.cloud.loadtesting.api.v1.test.Summary
	(Status)(0),                   // 1: yandex.cloud.loadtesting.api.v1.test.Status
	(*timestamppb.Timestamp)(nil), // 2: google.protobuf.Timestamp
	(*ImbalancePoint)(nil),        // 3: yandex.cloud.loadtesting.api.v1.test.ImbalancePoint
	(*FilePointer)(nil),           // 4: yandex.cloud.loadtesting.api.v1.test.FilePointer
}
var file_yandex_cloud_loadtesting_api_v1_test_summary_proto_depIdxs = []int32{
	1, // 0: yandex.cloud.loadtesting.api.v1.test.Summary.status:type_name -> yandex.cloud.loadtesting.api.v1.test.Status
	2, // 1: yandex.cloud.loadtesting.api.v1.test.Summary.created_at:type_name -> google.protobuf.Timestamp
	2, // 2: yandex.cloud.loadtesting.api.v1.test.Summary.started_at:type_name -> google.protobuf.Timestamp
	2, // 3: yandex.cloud.loadtesting.api.v1.test.Summary.finished_at:type_name -> google.protobuf.Timestamp
	3, // 4: yandex.cloud.loadtesting.api.v1.test.Summary.imbalance_point:type_name -> yandex.cloud.loadtesting.api.v1.test.ImbalancePoint
	4, // 5: yandex.cloud.loadtesting.api.v1.test.Summary.artifacts:type_name -> yandex.cloud.loadtesting.api.v1.test.FilePointer
	6, // [6:6] is the sub-list for method output_type
	6, // [6:6] is the sub-list for method input_type
	6, // [6:6] is the sub-list for extension type_name
	6, // [6:6] is the sub-list for extension extendee
	0, // [0:6] is the sub-list for field type_name
}

func init() { file_yandex_cloud_loadtesting_api_v1_test_summary_proto_init() }
func file_yandex_cloud_loadtesting_api_v1_test_summary_proto_init() {
	if File_yandex_cloud_loadtesting_api_v1_test_summary_proto != nil {
		return
	}
	file_yandex_cloud_loadtesting_api_v1_test_file_pointer_proto_init()
	file_yandex_cloud_loadtesting_api_v1_test_imbalance_point_proto_init()
	file_yandex_cloud_loadtesting_api_v1_test_status_proto_init()
	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_test_summary_proto_rawDesc), len(file_yandex_cloud_loadtesting_api_v1_test_summary_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_loadtesting_api_v1_test_summary_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_loadtesting_api_v1_test_summary_proto_depIdxs,
		MessageInfos:      file_yandex_cloud_loadtesting_api_v1_test_summary_proto_msgTypes,
	}.Build()
	File_yandex_cloud_loadtesting_api_v1_test_summary_proto = out.File
	file_yandex_cloud_loadtesting_api_v1_test_summary_proto_goTypes = nil
	file_yandex_cloud_loadtesting_api_v1_test_summary_proto_depIdxs = nil
}
