github.com/nya3jp/tast@v0.0.0-20230601000426-85c8e4d83a9b/src/go.chromium.org/tast/core/internal/protocol/features.pb.go (about) 1 // Copyright 2021 The ChromiumOS Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 // Code generated by protoc-gen-go. DO NOT EDIT. 6 // versions: 7 // protoc-gen-go v1.27.1 8 // protoc v3.21.9 9 // source: features.proto 10 11 package protocol 12 13 import ( 14 protocol "go.chromium.org/tast/core/framework/protocol" 15 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 16 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 17 reflect "reflect" 18 sync "sync" 19 ) 20 21 const ( 22 // Verify that this generated code is sufficiently up-to-date. 23 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 24 // Verify that runtime/protoimpl is sufficiently up-to-date. 25 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 26 ) 27 28 // Features represents a set of features available for tests. 29 type Features struct { 30 state protoimpl.MessageState 31 sizeCache protoimpl.SizeCache 32 unknownFields protoimpl.UnknownFields 33 34 // CheckDeps indicates whether to skip tests whose dependencies are not 35 // satisfied by available features. 36 CheckDeps bool `protobuf:"varint,5,opt,name=check_deps,json=checkDeps,proto3" json:"check_deps,omitempty"` 37 Dut *protocol.DUTFeatures `protobuf:"bytes,6,opt,name=dut,proto3" json:"dut,omitempty"` 38 Infra *InfraFeatures `protobuf:"bytes,7,opt,name=infra,proto3" json:"infra,omitempty"` 39 CompanionFeatures map[string]*protocol.DUTFeatures `protobuf:"bytes,8,rep,name=companionFeatures,proto3" json:"companionFeatures,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 40 // ForceSkip provides a mapping of the tests forced to skip and the reasons. 41 ForceSkips map[string]*ForceSkip `protobuf:"bytes,9,rep,name=force_skips,json=forceSkips,proto3" json:"force_skips,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 42 } 43 44 func (x *Features) Reset() { 45 *x = Features{} 46 if protoimpl.UnsafeEnabled { 47 mi := &file_features_proto_msgTypes[0] 48 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 49 ms.StoreMessageInfo(mi) 50 } 51 } 52 53 func (x *Features) String() string { 54 return protoimpl.X.MessageStringOf(x) 55 } 56 57 func (*Features) ProtoMessage() {} 58 59 func (x *Features) ProtoReflect() protoreflect.Message { 60 mi := &file_features_proto_msgTypes[0] 61 if protoimpl.UnsafeEnabled && x != nil { 62 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 63 if ms.LoadMessageInfo() == nil { 64 ms.StoreMessageInfo(mi) 65 } 66 return ms 67 } 68 return mi.MessageOf(x) 69 } 70 71 // Deprecated: Use Features.ProtoReflect.Descriptor instead. 72 func (*Features) Descriptor() ([]byte, []int) { 73 return file_features_proto_rawDescGZIP(), []int{0} 74 } 75 76 func (x *Features) GetCheckDeps() bool { 77 if x != nil { 78 return x.CheckDeps 79 } 80 return false 81 } 82 83 func (x *Features) GetDut() *protocol.DUTFeatures { 84 if x != nil { 85 return x.Dut 86 } 87 return nil 88 } 89 90 func (x *Features) GetInfra() *InfraFeatures { 91 if x != nil { 92 return x.Infra 93 } 94 return nil 95 } 96 97 func (x *Features) GetCompanionFeatures() map[string]*protocol.DUTFeatures { 98 if x != nil { 99 return x.CompanionFeatures 100 } 101 return nil 102 } 103 104 func (x *Features) GetForceSkips() map[string]*ForceSkip { 105 if x != nil { 106 return x.ForceSkips 107 } 108 return nil 109 } 110 111 // InfraFeatures represents a set of features made available by testing 112 // infrastructure. 113 type InfraFeatures struct { 114 state protoimpl.MessageState 115 sizeCache protoimpl.SizeCache 116 unknownFields protoimpl.UnknownFields 117 118 Vars map[string]string `protobuf:"bytes,1,rep,name=vars,proto3" json:"vars,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 119 MaybeMissingVars string `protobuf:"bytes,2,opt,name=maybe_missing_vars,json=maybeMissingVars,proto3" json:"maybe_missing_vars,omitempty"` 120 } 121 122 func (x *InfraFeatures) Reset() { 123 *x = InfraFeatures{} 124 if protoimpl.UnsafeEnabled { 125 mi := &file_features_proto_msgTypes[1] 126 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 127 ms.StoreMessageInfo(mi) 128 } 129 } 130 131 func (x *InfraFeatures) String() string { 132 return protoimpl.X.MessageStringOf(x) 133 } 134 135 func (*InfraFeatures) ProtoMessage() {} 136 137 func (x *InfraFeatures) ProtoReflect() protoreflect.Message { 138 mi := &file_features_proto_msgTypes[1] 139 if protoimpl.UnsafeEnabled && x != nil { 140 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 141 if ms.LoadMessageInfo() == nil { 142 ms.StoreMessageInfo(mi) 143 } 144 return ms 145 } 146 return mi.MessageOf(x) 147 } 148 149 // Deprecated: Use InfraFeatures.ProtoReflect.Descriptor instead. 150 func (*InfraFeatures) Descriptor() ([]byte, []int) { 151 return file_features_proto_rawDescGZIP(), []int{1} 152 } 153 154 func (x *InfraFeatures) GetVars() map[string]string { 155 if x != nil { 156 return x.Vars 157 } 158 return nil 159 } 160 161 func (x *InfraFeatures) GetMaybeMissingVars() string { 162 if x != nil { 163 return x.MaybeMissingVars 164 } 165 return "" 166 } 167 168 // ForceSkip provides the reason of skipping a test by force. 169 type ForceSkip struct { 170 state protoimpl.MessageState 171 sizeCache protoimpl.SizeCache 172 unknownFields protoimpl.UnknownFields 173 174 Reason string `protobuf:"bytes,1,opt,name=reason,proto3" json:"reason,omitempty"` 175 } 176 177 func (x *ForceSkip) Reset() { 178 *x = ForceSkip{} 179 if protoimpl.UnsafeEnabled { 180 mi := &file_features_proto_msgTypes[2] 181 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 182 ms.StoreMessageInfo(mi) 183 } 184 } 185 186 func (x *ForceSkip) String() string { 187 return protoimpl.X.MessageStringOf(x) 188 } 189 190 func (*ForceSkip) ProtoMessage() {} 191 192 func (x *ForceSkip) ProtoReflect() protoreflect.Message { 193 mi := &file_features_proto_msgTypes[2] 194 if protoimpl.UnsafeEnabled && x != nil { 195 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 196 if ms.LoadMessageInfo() == nil { 197 ms.StoreMessageInfo(mi) 198 } 199 return ms 200 } 201 return mi.MessageOf(x) 202 } 203 204 // Deprecated: Use ForceSkip.ProtoReflect.Descriptor instead. 205 func (*ForceSkip) Descriptor() ([]byte, []int) { 206 return file_features_proto_rawDescGZIP(), []int{2} 207 } 208 209 func (x *ForceSkip) GetReason() string { 210 if x != nil { 211 return x.Reason 212 } 213 return "" 214 } 215 216 var File_features_proto protoreflect.FileDescriptor 217 218 var file_features_proto_rawDesc = []byte{ 219 0x0a, 0x0e, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 220 0x12, 0x09, 0x74, 0x61, 0x73, 0x74, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x1a, 0x3e, 0x67, 0x6f, 0x2e, 221 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x74, 0x61, 0x73, 222 0x74, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x66, 0x72, 0x61, 0x6d, 0x65, 0x77, 0x6f, 0x72, 0x6b, 223 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x64, 0x75, 0x74, 0x66, 0x65, 0x61, 224 0x74, 0x75, 0x72, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xdc, 0x03, 0x0a, 0x08, 225 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x68, 0x65, 0x63, 226 0x6b, 0x5f, 0x64, 0x65, 0x70, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x63, 0x68, 227 0x65, 0x63, 0x6b, 0x44, 0x65, 0x70, 0x73, 0x12, 0x28, 0x0a, 0x03, 0x64, 0x75, 0x74, 0x18, 0x06, 228 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x74, 0x61, 0x73, 0x74, 0x2e, 0x63, 0x6f, 0x72, 0x65, 229 0x2e, 0x44, 0x55, 0x54, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x52, 0x03, 0x64, 0x75, 230 0x74, 0x12, 0x2e, 0x0a, 0x05, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 231 0x32, 0x18, 0x2e, 0x74, 0x61, 0x73, 0x74, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x6e, 0x66, 232 0x72, 0x61, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x52, 0x05, 0x69, 0x6e, 0x66, 0x72, 233 0x61, 0x12, 0x58, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x69, 0x6f, 0x6e, 0x46, 0x65, 234 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x74, 235 0x61, 0x73, 0x74, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 236 0x73, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x69, 0x6f, 0x6e, 0x46, 0x65, 0x61, 0x74, 0x75, 237 0x72, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x11, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 238 0x69, 0x6f, 0x6e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x12, 0x44, 0x0a, 0x0b, 0x66, 239 0x6f, 0x72, 0x63, 0x65, 0x5f, 0x73, 0x6b, 0x69, 0x70, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 240 0x32, 0x23, 0x2e, 0x74, 0x61, 0x73, 0x74, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x46, 0x65, 0x61, 241 0x74, 0x75, 0x72, 0x65, 0x73, 0x2e, 0x46, 0x6f, 0x72, 0x63, 0x65, 0x53, 0x6b, 0x69, 0x70, 0x73, 242 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x53, 0x6b, 0x69, 0x70, 243 0x73, 0x1a, 0x5c, 0x0a, 0x16, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x69, 0x6f, 0x6e, 0x46, 0x65, 244 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 245 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2c, 0x0a, 246 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x74, 247 0x61, 0x73, 0x74, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x44, 0x55, 0x54, 0x46, 0x65, 0x61, 0x74, 248 0x75, 0x72, 0x65, 0x73, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 249 0x53, 0x0a, 0x0f, 0x46, 0x6f, 0x72, 0x63, 0x65, 0x53, 0x6b, 0x69, 0x70, 0x73, 0x45, 0x6e, 0x74, 250 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 251 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2a, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 252 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x74, 0x61, 0x73, 0x74, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 253 0x46, 0x6f, 0x72, 0x63, 0x65, 0x53, 0x6b, 0x69, 0x70, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 254 0x3a, 0x02, 0x38, 0x01, 0x4a, 0x04, 0x08, 0x01, 0x10, 0x05, 0x22, 0xae, 0x01, 0x0a, 0x0d, 0x49, 255 0x6e, 0x66, 0x72, 0x61, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x12, 0x36, 0x0a, 0x04, 256 0x76, 0x61, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x74, 0x61, 0x73, 257 0x74, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x6e, 0x66, 0x72, 0x61, 0x46, 0x65, 0x61, 0x74, 258 0x75, 0x72, 0x65, 0x73, 0x2e, 0x56, 0x61, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 259 0x76, 0x61, 0x72, 0x73, 0x12, 0x2c, 0x0a, 0x12, 0x6d, 0x61, 0x79, 0x62, 0x65, 0x5f, 0x6d, 0x69, 260 0x73, 0x73, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x61, 0x72, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 261 0x52, 0x10, 0x6d, 0x61, 0x79, 0x62, 0x65, 0x4d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x56, 0x61, 262 0x72, 0x73, 0x1a, 0x37, 0x0a, 0x09, 0x56, 0x61, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 263 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 264 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 265 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x23, 0x0a, 0x09, 0x46, 266 0x6f, 0x72, 0x63, 0x65, 0x53, 0x6b, 0x69, 0x70, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 267 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 268 0x42, 0x2d, 0x5a, 0x2b, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 269 0x6f, 0x72, 0x67, 0x2f, 0x74, 0x61, 0x73, 0x74, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x6e, 270 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x62, 271 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 272 } 273 274 var ( 275 file_features_proto_rawDescOnce sync.Once 276 file_features_proto_rawDescData = file_features_proto_rawDesc 277 ) 278 279 func file_features_proto_rawDescGZIP() []byte { 280 file_features_proto_rawDescOnce.Do(func() { 281 file_features_proto_rawDescData = protoimpl.X.CompressGZIP(file_features_proto_rawDescData) 282 }) 283 return file_features_proto_rawDescData 284 } 285 286 var file_features_proto_msgTypes = make([]protoimpl.MessageInfo, 6) 287 var file_features_proto_goTypes = []interface{}{ 288 (*Features)(nil), // 0: tast.core.Features 289 (*InfraFeatures)(nil), // 1: tast.core.InfraFeatures 290 (*ForceSkip)(nil), // 2: tast.core.ForceSkip 291 nil, // 3: tast.core.Features.CompanionFeaturesEntry 292 nil, // 4: tast.core.Features.ForceSkipsEntry 293 nil, // 5: tast.core.InfraFeatures.VarsEntry 294 (*protocol.DUTFeatures)(nil), // 6: tast.core.DUTFeatures 295 } 296 var file_features_proto_depIdxs = []int32{ 297 6, // 0: tast.core.Features.dut:type_name -> tast.core.DUTFeatures 298 1, // 1: tast.core.Features.infra:type_name -> tast.core.InfraFeatures 299 3, // 2: tast.core.Features.companionFeatures:type_name -> tast.core.Features.CompanionFeaturesEntry 300 4, // 3: tast.core.Features.force_skips:type_name -> tast.core.Features.ForceSkipsEntry 301 5, // 4: tast.core.InfraFeatures.vars:type_name -> tast.core.InfraFeatures.VarsEntry 302 6, // 5: tast.core.Features.CompanionFeaturesEntry.value:type_name -> tast.core.DUTFeatures 303 2, // 6: tast.core.Features.ForceSkipsEntry.value:type_name -> tast.core.ForceSkip 304 7, // [7:7] is the sub-list for method output_type 305 7, // [7:7] is the sub-list for method input_type 306 7, // [7:7] is the sub-list for extension type_name 307 7, // [7:7] is the sub-list for extension extendee 308 0, // [0:7] is the sub-list for field type_name 309 } 310 311 func init() { file_features_proto_init() } 312 func file_features_proto_init() { 313 if File_features_proto != nil { 314 return 315 } 316 if !protoimpl.UnsafeEnabled { 317 file_features_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 318 switch v := v.(*Features); i { 319 case 0: 320 return &v.state 321 case 1: 322 return &v.sizeCache 323 case 2: 324 return &v.unknownFields 325 default: 326 return nil 327 } 328 } 329 file_features_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 330 switch v := v.(*InfraFeatures); i { 331 case 0: 332 return &v.state 333 case 1: 334 return &v.sizeCache 335 case 2: 336 return &v.unknownFields 337 default: 338 return nil 339 } 340 } 341 file_features_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 342 switch v := v.(*ForceSkip); i { 343 case 0: 344 return &v.state 345 case 1: 346 return &v.sizeCache 347 case 2: 348 return &v.unknownFields 349 default: 350 return nil 351 } 352 } 353 } 354 type x struct{} 355 out := protoimpl.TypeBuilder{ 356 File: protoimpl.DescBuilder{ 357 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 358 RawDescriptor: file_features_proto_rawDesc, 359 NumEnums: 0, 360 NumMessages: 6, 361 NumExtensions: 0, 362 NumServices: 0, 363 }, 364 GoTypes: file_features_proto_goTypes, 365 DependencyIndexes: file_features_proto_depIdxs, 366 MessageInfos: file_features_proto_msgTypes, 367 }.Build() 368 File_features_proto = out.File 369 file_features_proto_rawDesc = nil 370 file_features_proto_goTypes = nil 371 file_features_proto_depIdxs = nil 372 }