// 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/test/artifact_settings.proto

package test

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

// Artifact upload settings.
//
// Defines where to upload test artifacts and which files should be included.
type ArtifactSettings struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Types that are valid to be assigned to UploadTo:
	//
	//	*ArtifactSettings_ObjectStorageBucket
	UploadTo isArtifactSettings_UploadTo `protobuf_oneof:"upload_to"`
	// Setting which defines whether artifact files should be archived prior to uploading.
	IsArchive bool `protobuf:"varint,6,opt,name=is_archive,json=isArchive,proto3" json:"is_archive,omitempty"`
	// Filter strings defining which files should be included to artifacts. GLOB format.
	//
	// Example:
	// - ['*'] - all files will be uploaded.
	// - ['*.log', '*.yaml] - all `.log` and `.yaml` files will be uploaded.
	FilterInclude []string `protobuf:"bytes,7,rep,name=filter_include,json=filterInclude,proto3" json:"filter_include,omitempty"`
	// Filter strings defining which files should be excluded from artifacts. GLOB format.
	//
	// Example:
	// - filter_include=['*'], filter_exclude=['phout.log'] - upload all `.log` files excluding `phout.log`.
	FilterExclude []string `protobuf:"bytes,8,rep,name=filter_exclude,json=filterExclude,proto3" json:"filter_exclude,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ArtifactSettings) ProtoMessage() {}

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

func (x *ArtifactSettings) GetUploadTo() isArtifactSettings_UploadTo {
	if x != nil {
		return x.UploadTo
	}
	return nil
}

func (x *ArtifactSettings) GetObjectStorageBucket() string {
	if x != nil {
		if x, ok := x.UploadTo.(*ArtifactSettings_ObjectStorageBucket); ok {
			return x.ObjectStorageBucket
		}
	}
	return ""
}

func (x *ArtifactSettings) GetIsArchive() bool {
	if x != nil {
		return x.IsArchive
	}
	return false
}

func (x *ArtifactSettings) GetFilterInclude() []string {
	if x != nil {
		return x.FilterInclude
	}
	return nil
}

func (x *ArtifactSettings) GetFilterExclude() []string {
	if x != nil {
		return x.FilterExclude
	}
	return nil
}

type isArtifactSettings_UploadTo interface {
	isArtifactSettings_UploadTo()
}

type ArtifactSettings_ObjectStorageBucket struct {
	// Name of output object storage bucket in test's folder.
	ObjectStorageBucket string `protobuf:"bytes,1,opt,name=object_storage_bucket,json=objectStorageBucket,proto3,oneof"`
}

func (*ArtifactSettings_ObjectStorageBucket) isArtifactSettings_UploadTo() {}

var File_yandex_cloud_loadtesting_api_v1_test_artifact_settings_proto protoreflect.FileDescriptor

const file_yandex_cloud_loadtesting_api_v1_test_artifact_settings_proto_rawDesc = "" +
	"\n" +
	"<yandex/cloud/loadtesting/api/v1/test/artifact_settings.proto\x12$yandex.cloud.loadtesting.api.v1.test\"\xc8\x01\n" +
	"\x10ArtifactSettings\x124\n" +
	"\x15object_storage_bucket\x18\x01 \x01(\tH\x00R\x13objectStorageBucket\x12\x1d\n" +
	"\n" +
	"is_archive\x18\x06 \x01(\bR\tisArchive\x12%\n" +
	"\x0efilter_include\x18\a \x03(\tR\rfilterInclude\x12%\n" +
	"\x0efilter_exclude\x18\b \x03(\tR\rfilterExcludeB\v\n" +
	"\tupload_toJ\x04\b\x02\x10\x06By\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_artifact_settings_proto_rawDescOnce sync.Once
	file_yandex_cloud_loadtesting_api_v1_test_artifact_settings_proto_rawDescData []byte
)

func file_yandex_cloud_loadtesting_api_v1_test_artifact_settings_proto_rawDescGZIP() []byte {
	file_yandex_cloud_loadtesting_api_v1_test_artifact_settings_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_loadtesting_api_v1_test_artifact_settings_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_loadtesting_api_v1_test_artifact_settings_proto_rawDesc), len(file_yandex_cloud_loadtesting_api_v1_test_artifact_settings_proto_rawDesc)))
	})
	return file_yandex_cloud_loadtesting_api_v1_test_artifact_settings_proto_rawDescData
}

var file_yandex_cloud_loadtesting_api_v1_test_artifact_settings_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_yandex_cloud_loadtesting_api_v1_test_artifact_settings_proto_goTypes = []any{
	(*ArtifactSettings)(nil), // 0: yandex.cloud.loadtesting.api.v1.test.ArtifactSettings
}
var file_yandex_cloud_loadtesting_api_v1_test_artifact_settings_proto_depIdxs = []int32{
	0, // [0:0] is the sub-list for method output_type
	0, // [0:0] is the sub-list for method input_type
	0, // [0:0] is the sub-list for extension type_name
	0, // [0:0] is the sub-list for extension extendee
	0, // [0:0] is the sub-list for field type_name
}

func init() { file_yandex_cloud_loadtesting_api_v1_test_artifact_settings_proto_init() }
func file_yandex_cloud_loadtesting_api_v1_test_artifact_settings_proto_init() {
	if File_yandex_cloud_loadtesting_api_v1_test_artifact_settings_proto != nil {
		return
	}
	file_yandex_cloud_loadtesting_api_v1_test_artifact_settings_proto_msgTypes[0].OneofWrappers = []any{
		(*ArtifactSettings_ObjectStorageBucket)(nil),
	}
	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_artifact_settings_proto_rawDesc), len(file_yandex_cloud_loadtesting_api_v1_test_artifact_settings_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_loadtesting_api_v1_test_artifact_settings_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_loadtesting_api_v1_test_artifact_settings_proto_depIdxs,
		MessageInfos:      file_yandex_cloud_loadtesting_api_v1_test_artifact_settings_proto_msgTypes,
	}.Build()
	File_yandex_cloud_loadtesting_api_v1_test_artifact_settings_proto = out.File
	file_yandex_cloud_loadtesting_api_v1_test_artifact_settings_proto_goTypes = nil
	file_yandex_cloud_loadtesting_api_v1_test_artifact_settings_proto_depIdxs = nil
}
