| // 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/dut_attribute.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) |
| ) |
| |
| // NEXT TAG: 8 |
| // DutAttribute defines how attributes of a DUT are encoded into key-value pairs |
| // for use in test coverage rules. |
| type DutAttribute struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| Id *DutAttribute_Id `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` |
| // Alternate names to make the label available under (for migration and |
| // backwards compatibility support). No restrictions on name format. |
| Aliases []string `protobuf:"bytes,2,rep,name=aliases,proto3" json:"aliases,omitempty"` |
| // Definition of the attribute source data |
| // |
| // Types that are assignable to DataSource: |
| // *DutAttribute_FlatConfigSource_ |
| // *DutAttribute_HwidSource_ |
| // *DutAttribute_TleSource_ |
| DataSource isDutAttribute_DataSource `protobuf_oneof:"data_source"` |
| // Optional values and excluded values. |
| // If these are specified then if the attribute matches _any_ value in |
| // allowed_values and _zero_ values in exclude_values, the attribute is |
| // exposed with a True value and otherwise it is exposed with a False value. |
| // |
| // Values are compared case insensitively. |
| // |
| // Example: |
| // { |
| // "id" : { |
| // "value": "starts-with-a-but-not-atlas" |
| // }, |
| // "static_field" : { |
| // "field_specs" : ["program.platform.soc_arch"] |
| // }, |
| // "allowed_values" : ["asuka", "asurada"], |
| // "exclude_values" : ["atlas"] |
| // } |
| AllowedValues []string `protobuf:"bytes,5,rep,name=allowed_values,json=allowedValues,proto3" json:"allowed_values,omitempty"` |
| ExcludeValues []string `protobuf:"bytes,6,rep,name=exclude_values,json=excludeValues,proto3" json:"exclude_values,omitempty"` |
| } |
| |
| func (x *DutAttribute) Reset() { |
| *x = DutAttribute{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_chromiumos_test_api_dut_attribute_proto_msgTypes[0] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *DutAttribute) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*DutAttribute) ProtoMessage() {} |
| |
| func (x *DutAttribute) ProtoReflect() protoreflect.Message { |
| mi := &file_chromiumos_test_api_dut_attribute_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 DutAttribute.ProtoReflect.Descriptor instead. |
| func (*DutAttribute) Descriptor() ([]byte, []int) { |
| return file_chromiumos_test_api_dut_attribute_proto_rawDescGZIP(), []int{0} |
| } |
| |
| func (x *DutAttribute) GetId() *DutAttribute_Id { |
| if x != nil { |
| return x.Id |
| } |
| return nil |
| } |
| |
| func (x *DutAttribute) GetAliases() []string { |
| if x != nil { |
| return x.Aliases |
| } |
| return nil |
| } |
| |
| func (m *DutAttribute) GetDataSource() isDutAttribute_DataSource { |
| if m != nil { |
| return m.DataSource |
| } |
| return nil |
| } |
| |
| func (x *DutAttribute) GetFlatConfigSource() *DutAttribute_FlatConfigSource { |
| if x, ok := x.GetDataSource().(*DutAttribute_FlatConfigSource_); ok { |
| return x.FlatConfigSource |
| } |
| return nil |
| } |
| |
| func (x *DutAttribute) GetHwidSource() *DutAttribute_HwidSource { |
| if x, ok := x.GetDataSource().(*DutAttribute_HwidSource_); ok { |
| return x.HwidSource |
| } |
| return nil |
| } |
| |
| func (x *DutAttribute) GetTleSource() *DutAttribute_TleSource { |
| if x, ok := x.GetDataSource().(*DutAttribute_TleSource_); ok { |
| return x.TleSource |
| } |
| return nil |
| } |
| |
| func (x *DutAttribute) GetAllowedValues() []string { |
| if x != nil { |
| return x.AllowedValues |
| } |
| return nil |
| } |
| |
| func (x *DutAttribute) GetExcludeValues() []string { |
| if x != nil { |
| return x.ExcludeValues |
| } |
| return nil |
| } |
| |
| type isDutAttribute_DataSource interface { |
| isDutAttribute_DataSource() |
| } |
| |
| type DutAttribute_FlatConfigSource_ struct { |
| FlatConfigSource *DutAttribute_FlatConfigSource `protobuf:"bytes,3,opt,name=flat_config_source,json=flatConfigSource,proto3,oneof"` |
| } |
| |
| type DutAttribute_HwidSource_ struct { |
| HwidSource *DutAttribute_HwidSource `protobuf:"bytes,4,opt,name=hwid_source,json=hwidSource,proto3,oneof"` |
| } |
| |
| type DutAttribute_TleSource_ struct { |
| TleSource *DutAttribute_TleSource `protobuf:"bytes,7,opt,name=tle_source,json=tleSource,proto3,oneof"` |
| } |
| |
| func (*DutAttribute_FlatConfigSource_) isDutAttribute_DataSource() {} |
| |
| func (*DutAttribute_HwidSource_) isDutAttribute_DataSource() {} |
| |
| func (*DutAttribute_TleSource_) isDutAttribute_DataSource() {} |
| |
| type DutAttributeList struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| DutAttributes []*DutAttribute `protobuf:"bytes,1,rep,name=dut_attributes,json=dutAttributes,proto3" json:"dut_attributes,omitempty"` |
| } |
| |
| func (x *DutAttributeList) Reset() { |
| *x = DutAttributeList{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_chromiumos_test_api_dut_attribute_proto_msgTypes[1] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *DutAttributeList) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*DutAttributeList) ProtoMessage() {} |
| |
| func (x *DutAttributeList) ProtoReflect() protoreflect.Message { |
| mi := &file_chromiumos_test_api_dut_attribute_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 DutAttributeList.ProtoReflect.Descriptor instead. |
| func (*DutAttributeList) Descriptor() ([]byte, []int) { |
| return file_chromiumos_test_api_dut_attribute_proto_rawDescGZIP(), []int{1} |
| } |
| |
| func (x *DutAttributeList) GetDutAttributes() []*DutAttribute { |
| if x != nil { |
| return x.DutAttributes |
| } |
| return nil |
| } |
| |
| // DutCriterion describes a groups of DUTs, based on DUT attributes. |
| type DutCriterion struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // ID of the DUT attribute that must meet the criterion. |
| AttributeId *DutAttribute_Id `protobuf:"bytes,1,opt,name=attribute_id,json=attributeId,proto3" json:"attribute_id,omitempty"` |
| // List of ANY acceptable values to match (OR logic is applied). |
| // Values are compared as simple strings case insensitively. |
| Values []string `protobuf:"bytes,2,rep,name=values,proto3" json:"values,omitempty"` |
| } |
| |
| func (x *DutCriterion) Reset() { |
| *x = DutCriterion{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_chromiumos_test_api_dut_attribute_proto_msgTypes[2] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *DutCriterion) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*DutCriterion) ProtoMessage() {} |
| |
| func (x *DutCriterion) ProtoReflect() protoreflect.Message { |
| mi := &file_chromiumos_test_api_dut_attribute_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 DutCriterion.ProtoReflect.Descriptor instead. |
| func (*DutCriterion) Descriptor() ([]byte, []int) { |
| return file_chromiumos_test_api_dut_attribute_proto_rawDescGZIP(), []int{2} |
| } |
| |
| func (x *DutCriterion) GetAttributeId() *DutAttribute_Id { |
| if x != nil { |
| return x.AttributeId |
| } |
| return nil |
| } |
| |
| func (x *DutCriterion) GetValues() []string { |
| if x != nil { |
| return x.Values |
| } |
| return nil |
| } |
| |
| // DutTarget is a list of DutCriterion that must be met by the DUT executing |
| // tests. All criteria must be met (AND logic is applied) by the DUT. |
| type DutTarget struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| Criteria []*DutCriterion `protobuf:"bytes,1,rep,name=criteria,proto3" json:"criteria,omitempty"` |
| // Provisioning configuration for this device |
| ProvisionConfig *ProvisionConfig `protobuf:"bytes,2,opt,name=provision_config,json=provisionConfig,proto3" json:"provision_config,omitempty"` |
| } |
| |
| func (x *DutTarget) Reset() { |
| *x = DutTarget{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_chromiumos_test_api_dut_attribute_proto_msgTypes[3] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *DutTarget) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*DutTarget) ProtoMessage() {} |
| |
| func (x *DutTarget) ProtoReflect() protoreflect.Message { |
| mi := &file_chromiumos_test_api_dut_attribute_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 DutTarget.ProtoReflect.Descriptor instead. |
| func (*DutTarget) Descriptor() ([]byte, []int) { |
| return file_chromiumos_test_api_dut_attribute_proto_rawDescGZIP(), []int{3} |
| } |
| |
| func (x *DutTarget) GetCriteria() []*DutCriterion { |
| if x != nil { |
| return x.Criteria |
| } |
| return nil |
| } |
| |
| func (x *DutTarget) GetProvisionConfig() *ProvisionConfig { |
| if x != nil { |
| return x.ProvisionConfig |
| } |
| return nil |
| } |
| |
| // Globally unique identifier for the attribute. Value must match: |
| // ^([a-zA-Z0-9]+-?)+[a-zA-Z0-9]+$ |
| // |
| // That is, valid identifiers are alphanumberic strings with - joining them. |
| // |
| // Examples: |
| // valid |
| // attr-device-model |
| // attr-label-2 |
| // |
| // invalid |
| // attr_device_model |
| // _attr-device-model |
| // attr-device-model- |
| type DutAttribute_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 *DutAttribute_Id) Reset() { |
| *x = DutAttribute_Id{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_chromiumos_test_api_dut_attribute_proto_msgTypes[4] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *DutAttribute_Id) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*DutAttribute_Id) ProtoMessage() {} |
| |
| func (x *DutAttribute_Id) ProtoReflect() protoreflect.Message { |
| mi := &file_chromiumos_test_api_dut_attribute_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 DutAttribute_Id.ProtoReflect.Descriptor instead. |
| func (*DutAttribute_Id) Descriptor() ([]byte, []int) { |
| return file_chromiumos_test_api_dut_attribute_proto_rawDescGZIP(), []int{0, 0} |
| } |
| |
| func (x *DutAttribute_Id) GetValue() string { |
| if x != nil { |
| return x.Value |
| } |
| return "" |
| } |
| |
| // A field spec is a chain of field names ending in a scalar or enum, excluding |
| // floating point values. |
| // eg: 'program.platform.soc_arch' |
| type DutAttribute_FieldSpec struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` |
| } |
| |
| func (x *DutAttribute_FieldSpec) Reset() { |
| *x = DutAttribute_FieldSpec{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_chromiumos_test_api_dut_attribute_proto_msgTypes[5] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *DutAttribute_FieldSpec) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*DutAttribute_FieldSpec) ProtoMessage() {} |
| |
| func (x *DutAttribute_FieldSpec) ProtoReflect() protoreflect.Message { |
| mi := &file_chromiumos_test_api_dut_attribute_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 DutAttribute_FieldSpec.ProtoReflect.Descriptor instead. |
| func (*DutAttribute_FieldSpec) Descriptor() ([]byte, []int) { |
| return file_chromiumos_test_api_dut_attribute_proto_rawDescGZIP(), []int{0, 1} |
| } |
| |
| func (x *DutAttribute_FieldSpec) GetPath() string { |
| if x != nil { |
| return x.Path |
| } |
| return "" |
| } |
| |
| // FlatConfigSource specifies an attribute value that comes directly from the |
| // FlatConfig payload. Fields are tried in-order, taking the first one that |
| // matches. |
| type DutAttribute_FlatConfigSource struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| Fields []*DutAttribute_FieldSpec `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty"` |
| } |
| |
| func (x *DutAttribute_FlatConfigSource) Reset() { |
| *x = DutAttribute_FlatConfigSource{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_chromiumos_test_api_dut_attribute_proto_msgTypes[6] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *DutAttribute_FlatConfigSource) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*DutAttribute_FlatConfigSource) ProtoMessage() {} |
| |
| func (x *DutAttribute_FlatConfigSource) ProtoReflect() protoreflect.Message { |
| mi := &file_chromiumos_test_api_dut_attribute_proto_msgTypes[6] |
| 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 DutAttribute_FlatConfigSource.ProtoReflect.Descriptor instead. |
| func (*DutAttribute_FlatConfigSource) Descriptor() ([]byte, []int) { |
| return file_chromiumos_test_api_dut_attribute_proto_rawDescGZIP(), []int{0, 2} |
| } |
| |
| func (x *DutAttribute_FlatConfigSource) GetFields() []*DutAttribute_FieldSpec { |
| if x != nil { |
| return x.Fields |
| } |
| return nil |
| } |
| |
| // HwidSource specifies an attribute value that's mediated by HWID server |
| // Fields are tried in-order, taking the first one that matches. |
| type DutAttribute_HwidSource struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| ComponentType string `protobuf:"bytes,1,opt,name=component_type,json=componentType,proto3" json:"component_type,omitempty"` |
| Fields []*DutAttribute_FieldSpec `protobuf:"bytes,2,rep,name=fields,proto3" json:"fields,omitempty"` |
| } |
| |
| func (x *DutAttribute_HwidSource) Reset() { |
| *x = DutAttribute_HwidSource{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_chromiumos_test_api_dut_attribute_proto_msgTypes[7] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *DutAttribute_HwidSource) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*DutAttribute_HwidSource) ProtoMessage() {} |
| |
| func (x *DutAttribute_HwidSource) ProtoReflect() protoreflect.Message { |
| mi := &file_chromiumos_test_api_dut_attribute_proto_msgTypes[7] |
| 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 DutAttribute_HwidSource.ProtoReflect.Descriptor instead. |
| func (*DutAttribute_HwidSource) Descriptor() ([]byte, []int) { |
| return file_chromiumos_test_api_dut_attribute_proto_rawDescGZIP(), []int{0, 3} |
| } |
| |
| func (x *DutAttribute_HwidSource) GetComponentType() string { |
| if x != nil { |
| return x.ComponentType |
| } |
| return "" |
| } |
| |
| func (x *DutAttribute_HwidSource) GetFields() []*DutAttribute_FieldSpec { |
| if x != nil { |
| return x.Fields |
| } |
| return nil |
| } |
| |
| // TleSource specifies the information for querying attribute values based on |
| // the definition provided at the TLE level. |
| type DutAttribute_TleSource struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| } |
| |
| func (x *DutAttribute_TleSource) Reset() { |
| *x = DutAttribute_TleSource{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_chromiumos_test_api_dut_attribute_proto_msgTypes[8] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *DutAttribute_TleSource) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*DutAttribute_TleSource) ProtoMessage() {} |
| |
| func (x *DutAttribute_TleSource) ProtoReflect() protoreflect.Message { |
| mi := &file_chromiumos_test_api_dut_attribute_proto_msgTypes[8] |
| 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 DutAttribute_TleSource.ProtoReflect.Descriptor instead. |
| func (*DutAttribute_TleSource) Descriptor() ([]byte, []int) { |
| return file_chromiumos_test_api_dut_attribute_proto_rawDescGZIP(), []int{0, 4} |
| } |
| |
| var File_chromiumos_test_api_dut_attribute_proto protoreflect.FileDescriptor |
| |
| var file_chromiumos_test_api_dut_attribute_proto_rawDesc = []byte{ |
| 0x0a, 0x27, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x6f, 0x73, 0x2f, 0x74, 0x65, 0x73, |
| 0x74, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x64, 0x75, 0x74, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, |
| 0x75, 0x74, 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, 0x1a, 0x29, |
| 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x6f, 0x73, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x2f, |
| 0x61, 0x70, 0x69, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x74, |
| 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xdb, 0x05, 0x0a, 0x0c, 0x44, 0x75, |
| 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x12, 0x34, 0x0a, 0x02, 0x69, 0x64, |
| 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, |
| 0x6d, 0x6f, 0x73, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x44, 0x75, 0x74, |
| 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2e, 0x49, 0x64, 0x52, 0x02, 0x69, 0x64, |
| 0x12, 0x18, 0x0a, 0x07, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, |
| 0x09, 0x52, 0x07, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, 0x12, 0x62, 0x0a, 0x12, 0x66, 0x6c, |
| 0x61, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, |
| 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, |
| 0x6d, 0x6f, 0x73, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x44, 0x75, 0x74, |
| 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2e, 0x46, 0x6c, 0x61, 0x74, 0x43, 0x6f, |
| 0x6e, 0x66, 0x69, 0x67, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x48, 0x00, 0x52, 0x10, 0x66, 0x6c, |
| 0x61, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x4f, |
| 0x0a, 0x0b, 0x68, 0x77, 0x69, 0x64, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x04, 0x20, |
| 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x6f, 0x73, |
| 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x44, 0x75, 0x74, 0x41, 0x74, 0x74, |
| 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2e, 0x48, 0x77, 0x69, 0x64, 0x53, 0x6f, 0x75, 0x72, 0x63, |
| 0x65, 0x48, 0x00, 0x52, 0x0a, 0x68, 0x77, 0x69, 0x64, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, |
| 0x4c, 0x0a, 0x0a, 0x74, 0x6c, 0x65, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x07, 0x20, |
| 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x6f, 0x73, |
| 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x44, 0x75, 0x74, 0x41, 0x74, 0x74, |
| 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2e, 0x54, 0x6c, 0x65, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, |
| 0x48, 0x00, 0x52, 0x09, 0x74, 0x6c, 0x65, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x25, 0x0a, |
| 0x0e, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, |
| 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x56, 0x61, |
| 0x6c, 0x75, 0x65, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x65, 0x78, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, |
| 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x65, 0x78, |
| 0x63, 0x6c, 0x75, 0x64, 0x65, 0x56, 0x61, 0x6c, 0x75, 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, 0x1f, 0x0a, 0x09, 0x46, 0x69, 0x65, 0x6c, 0x64, |
| 0x53, 0x70, 0x65, 0x63, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, |
| 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x1a, 0x57, 0x0a, 0x10, 0x46, 0x6c, 0x61, 0x74, |
| 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x43, 0x0a, 0x06, |
| 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x63, |
| 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x6f, 0x73, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x61, |
| 0x70, 0x69, 0x2e, 0x44, 0x75, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2e, |
| 0x46, 0x69, 0x65, 0x6c, 0x64, 0x53, 0x70, 0x65, 0x63, 0x52, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, |
| 0x73, 0x1a, 0x78, 0x0a, 0x0a, 0x48, 0x77, 0x69, 0x64, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, |
| 0x25, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, |
| 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, |
| 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x43, 0x0a, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, |
| 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, |
| 0x6d, 0x6f, 0x73, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x44, 0x75, 0x74, |
| 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x53, |
| 0x70, 0x65, 0x63, 0x52, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x1a, 0x0b, 0x0a, 0x09, 0x54, |
| 0x6c, 0x65, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x0d, 0x0a, 0x0b, 0x64, 0x61, 0x74, 0x61, |
| 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0x5c, 0x0a, 0x10, 0x44, 0x75, 0x74, 0x41, 0x74, |
| 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x48, 0x0a, 0x0e, 0x64, |
| 0x75, 0x74, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x01, 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, 0x44, 0x75, 0x74, 0x41, 0x74, 0x74, |
| 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x52, 0x0d, 0x64, 0x75, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, |
| 0x62, 0x75, 0x74, 0x65, 0x73, 0x22, 0x6f, 0x0a, 0x0c, 0x44, 0x75, 0x74, 0x43, 0x72, 0x69, 0x74, |
| 0x65, 0x72, 0x69, 0x6f, 0x6e, 0x12, 0x47, 0x0a, 0x0c, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, |
| 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x63, 0x68, |
| 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x6f, 0x73, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x61, 0x70, |
| 0x69, 0x2e, 0x44, 0x75, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2e, 0x49, |
| 0x64, 0x52, 0x0b, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x49, 0x64, 0x12, 0x16, |
| 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, |
| 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x22, 0x9b, 0x01, 0x0a, 0x09, 0x44, 0x75, 0x74, 0x54, 0x61, |
| 0x72, 0x67, 0x65, 0x74, 0x12, 0x3d, 0x0a, 0x08, 0x63, 0x72, 0x69, 0x74, 0x65, 0x72, 0x69, 0x61, |
| 0x18, 0x01, 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, 0x44, 0x75, 0x74, |
| 0x43, 0x72, 0x69, 0x74, 0x65, 0x72, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x63, 0x72, 0x69, 0x74, 0x65, |
| 0x72, 0x69, 0x61, 0x12, 0x4f, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, |
| 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, |
| 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x6f, 0x73, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, |
| 0x61, 0x70, 0x69, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, |
| 0x66, 0x69, 0x67, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x6f, |
| 0x6e, 0x66, 0x69, 0x67, 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_dut_attribute_proto_rawDescOnce sync.Once |
| file_chromiumos_test_api_dut_attribute_proto_rawDescData = file_chromiumos_test_api_dut_attribute_proto_rawDesc |
| ) |
| |
| func file_chromiumos_test_api_dut_attribute_proto_rawDescGZIP() []byte { |
| file_chromiumos_test_api_dut_attribute_proto_rawDescOnce.Do(func() { |
| file_chromiumos_test_api_dut_attribute_proto_rawDescData = protoimpl.X.CompressGZIP(file_chromiumos_test_api_dut_attribute_proto_rawDescData) |
| }) |
| return file_chromiumos_test_api_dut_attribute_proto_rawDescData |
| } |
| |
| var file_chromiumos_test_api_dut_attribute_proto_msgTypes = make([]protoimpl.MessageInfo, 9) |
| var file_chromiumos_test_api_dut_attribute_proto_goTypes = []interface{}{ |
| (*DutAttribute)(nil), // 0: chromiumos.test.api.DutAttribute |
| (*DutAttributeList)(nil), // 1: chromiumos.test.api.DutAttributeList |
| (*DutCriterion)(nil), // 2: chromiumos.test.api.DutCriterion |
| (*DutTarget)(nil), // 3: chromiumos.test.api.DutTarget |
| (*DutAttribute_Id)(nil), // 4: chromiumos.test.api.DutAttribute.Id |
| (*DutAttribute_FieldSpec)(nil), // 5: chromiumos.test.api.DutAttribute.FieldSpec |
| (*DutAttribute_FlatConfigSource)(nil), // 6: chromiumos.test.api.DutAttribute.FlatConfigSource |
| (*DutAttribute_HwidSource)(nil), // 7: chromiumos.test.api.DutAttribute.HwidSource |
| (*DutAttribute_TleSource)(nil), // 8: chromiumos.test.api.DutAttribute.TleSource |
| (*ProvisionConfig)(nil), // 9: chromiumos.test.api.ProvisionConfig |
| } |
| var file_chromiumos_test_api_dut_attribute_proto_depIdxs = []int32{ |
| 4, // 0: chromiumos.test.api.DutAttribute.id:type_name -> chromiumos.test.api.DutAttribute.Id |
| 6, // 1: chromiumos.test.api.DutAttribute.flat_config_source:type_name -> chromiumos.test.api.DutAttribute.FlatConfigSource |
| 7, // 2: chromiumos.test.api.DutAttribute.hwid_source:type_name -> chromiumos.test.api.DutAttribute.HwidSource |
| 8, // 3: chromiumos.test.api.DutAttribute.tle_source:type_name -> chromiumos.test.api.DutAttribute.TleSource |
| 0, // 4: chromiumos.test.api.DutAttributeList.dut_attributes:type_name -> chromiumos.test.api.DutAttribute |
| 4, // 5: chromiumos.test.api.DutCriterion.attribute_id:type_name -> chromiumos.test.api.DutAttribute.Id |
| 2, // 6: chromiumos.test.api.DutTarget.criteria:type_name -> chromiumos.test.api.DutCriterion |
| 9, // 7: chromiumos.test.api.DutTarget.provision_config:type_name -> chromiumos.test.api.ProvisionConfig |
| 5, // 8: chromiumos.test.api.DutAttribute.FlatConfigSource.fields:type_name -> chromiumos.test.api.DutAttribute.FieldSpec |
| 5, // 9: chromiumos.test.api.DutAttribute.HwidSource.fields:type_name -> chromiumos.test.api.DutAttribute.FieldSpec |
| 10, // [10:10] is the sub-list for method output_type |
| 10, // [10:10] is the sub-list for method input_type |
| 10, // [10:10] is the sub-list for extension type_name |
| 10, // [10:10] is the sub-list for extension extendee |
| 0, // [0:10] is the sub-list for field type_name |
| } |
| |
| func init() { file_chromiumos_test_api_dut_attribute_proto_init() } |
| func file_chromiumos_test_api_dut_attribute_proto_init() { |
| if File_chromiumos_test_api_dut_attribute_proto != nil { |
| return |
| } |
| file_chromiumos_test_api_provision_state_proto_init() |
| if !protoimpl.UnsafeEnabled { |
| file_chromiumos_test_api_dut_attribute_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*DutAttribute); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_chromiumos_test_api_dut_attribute_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*DutAttributeList); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_chromiumos_test_api_dut_attribute_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*DutCriterion); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_chromiumos_test_api_dut_attribute_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*DutTarget); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_chromiumos_test_api_dut_attribute_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*DutAttribute_Id); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_chromiumos_test_api_dut_attribute_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*DutAttribute_FieldSpec); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_chromiumos_test_api_dut_attribute_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*DutAttribute_FlatConfigSource); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_chromiumos_test_api_dut_attribute_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*DutAttribute_HwidSource); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_chromiumos_test_api_dut_attribute_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*DutAttribute_TleSource); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| } |
| file_chromiumos_test_api_dut_attribute_proto_msgTypes[0].OneofWrappers = []interface{}{ |
| (*DutAttribute_FlatConfigSource_)(nil), |
| (*DutAttribute_HwidSource_)(nil), |
| (*DutAttribute_TleSource_)(nil), |
| } |
| type x struct{} |
| out := protoimpl.TypeBuilder{ |
| File: protoimpl.DescBuilder{ |
| GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| RawDescriptor: file_chromiumos_test_api_dut_attribute_proto_rawDesc, |
| NumEnums: 0, |
| NumMessages: 9, |
| NumExtensions: 0, |
| NumServices: 0, |
| }, |
| GoTypes: file_chromiumos_test_api_dut_attribute_proto_goTypes, |
| DependencyIndexes: file_chromiumos_test_api_dut_attribute_proto_depIdxs, |
| MessageInfos: file_chromiumos_test_api_dut_attribute_proto_msgTypes, |
| }.Build() |
| File_chromiumos_test_api_dut_attribute_proto = out.File |
| file_chromiumos_test_api_dut_attribute_proto_rawDesc = nil |
| file_chromiumos_test_api_dut_attribute_proto_goTypes = nil |
| file_chromiumos_test_api_dut_attribute_proto_depIdxs = nil |
| } |