blob: 8b8c313f8aacaaf6dea87b8db6cc420039813418 [file] [log] [blame]
// Copyright 2021 The ChromiumOS Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.17.1
// source: chromiumos/test/api/test_case.proto
package api
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
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)
)
// Defines an atomic unit of test work that's independently executable.
//
// Test cases are the atomic building blocks used to define/generate test plans
// and then ultimately scheduling units of work (batched or independent).
//
// Test case definitions can come from any execution workflow/environment.
// E.g. Automated test cases will generally be defined/reported by the
// various test-drivers (e.g. Tast/Tauto/...) at build time.
//
// Manual test cases will be defined/managed directly in starlark config
// and then act as the building blocks for manual test planning/scheduling.
//
// Test cases also are the atom at which test results can be reported.
type TestCase struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Globally unique (for ChromeOS) string id for a given test case.
Id *TestCase_Id `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Human friendly name
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// Tags associated with a given test case, which drive scheduling logic
// based on tag inclusion or exclusion criteria.
Tags []*TestCase_Tag `protobuf:"bytes,3,rep,name=tags,proto3" json:"tags,omitempty"`
// Dependencies for a given test cases, which drive scheduling logic for
// dut matching.
Dependencies []*TestCase_Dependency `protobuf:"bytes,4,rep,name=dependencies,proto3" json:"dependencies,omitempty"`
}
func (x *TestCase) Reset() {
*x = TestCase{}
if protoimpl.UnsafeEnabled {
mi := &file_chromiumos_test_api_test_case_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TestCase) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TestCase) ProtoMessage() {}
func (x *TestCase) ProtoReflect() protoreflect.Message {
mi := &file_chromiumos_test_api_test_case_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TestCase.ProtoReflect.Descriptor instead.
func (*TestCase) Descriptor() ([]byte, []int) {
return file_chromiumos_test_api_test_case_proto_rawDescGZIP(), []int{0}
}
func (x *TestCase) GetId() *TestCase_Id {
if x != nil {
return x.Id
}
return nil
}
func (x *TestCase) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *TestCase) GetTags() []*TestCase_Tag {
if x != nil {
return x.Tags
}
return nil
}
func (x *TestCase) GetDependencies() []*TestCase_Dependency {
if x != nil {
return x.Dependencies
}
return nil
}
// List of globally unique test case identifiers
type TestCaseIdList struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
TestCaseIds []*TestCase_Id `protobuf:"bytes,1,rep,name=test_case_ids,json=testCaseIds,proto3" json:"test_case_ids,omitempty"`
}
func (x *TestCaseIdList) Reset() {
*x = TestCaseIdList{}
if protoimpl.UnsafeEnabled {
mi := &file_chromiumos_test_api_test_case_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TestCaseIdList) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TestCaseIdList) ProtoMessage() {}
func (x *TestCaseIdList) ProtoReflect() protoreflect.Message {
mi := &file_chromiumos_test_api_test_case_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TestCaseIdList.ProtoReflect.Descriptor instead.
func (*TestCaseIdList) Descriptor() ([]byte, []int) {
return file_chromiumos_test_api_test_case_proto_rawDescGZIP(), []int{1}
}
func (x *TestCaseIdList) GetTestCaseIds() []*TestCase_Id {
if x != nil {
return x.TestCaseIds
}
return nil
}
type TestCaseList struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
TestCases []*TestCase `protobuf:"bytes,1,rep,name=test_cases,json=testCases,proto3" json:"test_cases,omitempty"`
}
func (x *TestCaseList) Reset() {
*x = TestCaseList{}
if protoimpl.UnsafeEnabled {
mi := &file_chromiumos_test_api_test_case_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TestCaseList) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TestCaseList) ProtoMessage() {}
func (x *TestCaseList) ProtoReflect() protoreflect.Message {
mi := &file_chromiumos_test_api_test_case_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TestCaseList.ProtoReflect.Descriptor instead.
func (*TestCaseList) Descriptor() ([]byte, []int) {
return file_chromiumos_test_api_test_case_proto_rawDescGZIP(), []int{2}
}
func (x *TestCaseList) GetTestCases() []*TestCase {
if x != nil {
return x.TestCases
}
return nil
}
type TestCase_Id struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
}
func (x *TestCase_Id) Reset() {
*x = TestCase_Id{}
if protoimpl.UnsafeEnabled {
mi := &file_chromiumos_test_api_test_case_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TestCase_Id) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TestCase_Id) ProtoMessage() {}
func (x *TestCase_Id) ProtoReflect() protoreflect.Message {
mi := &file_chromiumos_test_api_test_case_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TestCase_Id.ProtoReflect.Descriptor instead.
func (*TestCase_Id) Descriptor() ([]byte, []int) {
return file_chromiumos_test_api_test_case_proto_rawDescGZIP(), []int{0, 0}
}
func (x *TestCase_Id) GetValue() string {
if x != nil {
return x.Value
}
return ""
}
type TestCase_Tag struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
}
func (x *TestCase_Tag) Reset() {
*x = TestCase_Tag{}
if protoimpl.UnsafeEnabled {
mi := &file_chromiumos_test_api_test_case_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TestCase_Tag) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TestCase_Tag) ProtoMessage() {}
func (x *TestCase_Tag) ProtoReflect() protoreflect.Message {
mi := &file_chromiumos_test_api_test_case_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TestCase_Tag.ProtoReflect.Descriptor instead.
func (*TestCase_Tag) Descriptor() ([]byte, []int) {
return file_chromiumos_test_api_test_case_proto_rawDescGZIP(), []int{0, 1}
}
func (x *TestCase_Tag) GetValue() string {
if x != nil {
return x.Value
}
return ""
}
type TestCase_Dependency struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
}
func (x *TestCase_Dependency) Reset() {
*x = TestCase_Dependency{}
if protoimpl.UnsafeEnabled {
mi := &file_chromiumos_test_api_test_case_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TestCase_Dependency) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TestCase_Dependency) ProtoMessage() {}
func (x *TestCase_Dependency) ProtoReflect() protoreflect.Message {
mi := &file_chromiumos_test_api_test_case_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TestCase_Dependency.ProtoReflect.Descriptor instead.
func (*TestCase_Dependency) Descriptor() ([]byte, []int) {
return file_chromiumos_test_api_test_case_proto_rawDescGZIP(), []int{0, 2}
}
func (x *TestCase_Dependency) GetValue() string {
if x != nil {
return x.Value
}
return ""
}
var File_chromiumos_test_api_test_case_proto protoreflect.FileDescriptor
var file_chromiumos_test_api_test_case_proto_rawDesc = []byte{
0x0a, 0x23, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x6f, 0x73, 0x2f, 0x74, 0x65, 0x73,
0x74, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x63, 0x61, 0x73, 0x65, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x13, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x6f,
0x73, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x22, 0xb2, 0x02, 0x0a, 0x08, 0x54,
0x65, 0x73, 0x74, 0x43, 0x61, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x6f, 0x73,
0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x43, 0x61,
0x73, 0x65, 0x2e, 0x49, 0x64, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d,
0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x35, 0x0a,
0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x68,
0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x6f, 0x73, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x61, 0x70,
0x69, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, 0x73, 0x65, 0x2e, 0x54, 0x61, 0x67, 0x52, 0x04,
0x74, 0x61, 0x67, 0x73, 0x12, 0x4c, 0x0a, 0x0c, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e,
0x63, 0x69, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x63, 0x68, 0x72,
0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x6f, 0x73, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x61, 0x70, 0x69,
0x2e, 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, 0x73, 0x65, 0x2e, 0x44, 0x65, 0x70, 0x65, 0x6e, 0x64,
0x65, 0x6e, 0x63, 0x79, 0x52, 0x0c, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69,
0x65, 0x73, 0x1a, 0x1a, 0x0a, 0x02, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75,
0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x1a, 0x1b,
0x0a, 0x03, 0x54, 0x61, 0x67, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01,
0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x1a, 0x22, 0x0a, 0x0a, 0x44,
0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c,
0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22,
0x56, 0x0a, 0x0e, 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, 0x73, 0x65, 0x49, 0x64, 0x4c, 0x69, 0x73,
0x74, 0x12, 0x44, 0x0a, 0x0d, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x63, 0x61, 0x73, 0x65, 0x5f, 0x69,
0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d,
0x69, 0x75, 0x6d, 0x6f, 0x73, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x54,
0x65, 0x73, 0x74, 0x43, 0x61, 0x73, 0x65, 0x2e, 0x49, 0x64, 0x52, 0x0b, 0x74, 0x65, 0x73, 0x74,
0x43, 0x61, 0x73, 0x65, 0x49, 0x64, 0x73, 0x22, 0x4c, 0x0a, 0x0c, 0x54, 0x65, 0x73, 0x74, 0x43,
0x61, 0x73, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x3c, 0x0a, 0x0a, 0x74, 0x65, 0x73, 0x74, 0x5f,
0x63, 0x61, 0x73, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x63, 0x68,
0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x6f, 0x73, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x61, 0x70,
0x69, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, 0x73, 0x65, 0x52, 0x09, 0x74, 0x65, 0x73, 0x74,
0x43, 0x61, 0x73, 0x65, 0x73, 0x42, 0x2f, 0x5a, 0x2d, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f,
0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75,
0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6f, 0x2f, 0x74, 0x65,
0x73, 0x74, 0x2f, 0x61, 0x70, 0x69, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_chromiumos_test_api_test_case_proto_rawDescOnce sync.Once
file_chromiumos_test_api_test_case_proto_rawDescData = file_chromiumos_test_api_test_case_proto_rawDesc
)
func file_chromiumos_test_api_test_case_proto_rawDescGZIP() []byte {
file_chromiumos_test_api_test_case_proto_rawDescOnce.Do(func() {
file_chromiumos_test_api_test_case_proto_rawDescData = protoimpl.X.CompressGZIP(file_chromiumos_test_api_test_case_proto_rawDescData)
})
return file_chromiumos_test_api_test_case_proto_rawDescData
}
var file_chromiumos_test_api_test_case_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
var file_chromiumos_test_api_test_case_proto_goTypes = []interface{}{
(*TestCase)(nil), // 0: chromiumos.test.api.TestCase
(*TestCaseIdList)(nil), // 1: chromiumos.test.api.TestCaseIdList
(*TestCaseList)(nil), // 2: chromiumos.test.api.TestCaseList
(*TestCase_Id)(nil), // 3: chromiumos.test.api.TestCase.Id
(*TestCase_Tag)(nil), // 4: chromiumos.test.api.TestCase.Tag
(*TestCase_Dependency)(nil), // 5: chromiumos.test.api.TestCase.Dependency
}
var file_chromiumos_test_api_test_case_proto_depIdxs = []int32{
3, // 0: chromiumos.test.api.TestCase.id:type_name -> chromiumos.test.api.TestCase.Id
4, // 1: chromiumos.test.api.TestCase.tags:type_name -> chromiumos.test.api.TestCase.Tag
5, // 2: chromiumos.test.api.TestCase.dependencies:type_name -> chromiumos.test.api.TestCase.Dependency
3, // 3: chromiumos.test.api.TestCaseIdList.test_case_ids:type_name -> chromiumos.test.api.TestCase.Id
0, // 4: chromiumos.test.api.TestCaseList.test_cases:type_name -> chromiumos.test.api.TestCase
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_chromiumos_test_api_test_case_proto_init() }
func file_chromiumos_test_api_test_case_proto_init() {
if File_chromiumos_test_api_test_case_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_chromiumos_test_api_test_case_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*TestCase); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_chromiumos_test_api_test_case_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*TestCaseIdList); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_chromiumos_test_api_test_case_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*TestCaseList); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_chromiumos_test_api_test_case_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*TestCase_Id); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_chromiumos_test_api_test_case_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*TestCase_Tag); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_chromiumos_test_api_test_case_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*TestCase_Dependency); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_chromiumos_test_api_test_case_proto_rawDesc,
NumEnums: 0,
NumMessages: 6,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_chromiumos_test_api_test_case_proto_goTypes,
DependencyIndexes: file_chromiumos_test_api_test_case_proto_depIdxs,
MessageInfos: file_chromiumos_test_api_test_case_proto_msgTypes,
}.Build()
File_chromiumos_test_api_test_case_proto = out.File
file_chromiumos_test_api_test_case_proto_rawDesc = nil
file_chromiumos_test_api_test_case_proto_goTypes = nil
file_chromiumos_test_api_test_case_proto_depIdxs = nil
}