| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // versions: |
| // protoc-gen-go v1.36.10 |
| // protoc v3.21.12 |
| // source: cabe/proto/v1/spec.proto |
| |
| package proto |
| |
| import ( |
| reflect "reflect" |
| sync "sync" |
| unsafe "unsafe" |
| |
| protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| timestamppb "google.golang.org/protobuf/types/known/timestamppb" |
| ) |
| |
| 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) |
| ) |
| |
| // BuildSpec defines what set of executable bits we ship to test machines. |
| // It should include enough information to tell chrome build infrastructure how |
| // build the executable from scratch, or how to identify an exact version of a |
| // pre-built installation (e.g. 3rd party browser other than chrome) |
| type BuildSpec struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| // Source checkout (git repo, branch, commit position) |
| GitilesCommit *GitilesCommit `protobuf:"bytes,1,opt,name=gitiles_commit,json=gitilesCommit,proto3" json:"gitiles_commit,omitempty"` |
| // Applied patches (get repos, branches, commit positions) |
| GerritChanges []*GerritChange `protobuf:"bytes,2,rep,name=gerrit_changes,json=gerritChanges,proto3" json:"gerrit_changes,omitempty"` |
| // For binaries that use a pre-built installer for CBB experiments. |
| InstalledBrowser *InstalledBrowser `protobuf:"bytes,3,opt,name=installed_browser,json=installedBrowser,proto3" json:"installed_browser,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *BuildSpec) Reset() { |
| *x = BuildSpec{} |
| mi := &file_cabe_proto_v1_spec_proto_msgTypes[0] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *BuildSpec) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*BuildSpec) ProtoMessage() {} |
| |
| func (x *BuildSpec) ProtoReflect() protoreflect.Message { |
| mi := &file_cabe_proto_v1_spec_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 BuildSpec.ProtoReflect.Descriptor instead. |
| func (*BuildSpec) Descriptor() ([]byte, []int) { |
| return file_cabe_proto_v1_spec_proto_rawDescGZIP(), []int{0} |
| } |
| |
| func (x *BuildSpec) GetGitilesCommit() *GitilesCommit { |
| if x != nil { |
| return x.GitilesCommit |
| } |
| return nil |
| } |
| |
| func (x *BuildSpec) GetGerritChanges() []*GerritChange { |
| if x != nil { |
| return x.GerritChanges |
| } |
| return nil |
| } |
| |
| func (x *BuildSpec) GetInstalledBrowser() *InstalledBrowser { |
| if x != nil { |
| return x.InstalledBrowser |
| } |
| return nil |
| } |
| |
| // A Gerrit patchset. |
| type GerritChange struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| // Gerrit hostname, e.g. "chromium-review.googlesource.com". |
| Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` |
| // Gerrit project, e.g. "chromium/src". |
| Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` |
| // Change number, e.g. 12345. |
| Change int64 `protobuf:"varint,3,opt,name=change,proto3" json:"change,omitempty"` |
| // Patch set number, e.g. 1. |
| Patchset int64 `protobuf:"varint,4,opt,name=patchset,proto3" json:"patchset,omitempty"` |
| // Git hash for patchset |
| PatchsetHash string `protobuf:"bytes,5,opt,name=patchset_hash,json=patchsetHash,proto3" json:"patchset_hash,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *GerritChange) Reset() { |
| *x = GerritChange{} |
| mi := &file_cabe_proto_v1_spec_proto_msgTypes[1] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *GerritChange) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*GerritChange) ProtoMessage() {} |
| |
| func (x *GerritChange) ProtoReflect() protoreflect.Message { |
| mi := &file_cabe_proto_v1_spec_proto_msgTypes[1] |
| 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 GerritChange.ProtoReflect.Descriptor instead. |
| func (*GerritChange) Descriptor() ([]byte, []int) { |
| return file_cabe_proto_v1_spec_proto_rawDescGZIP(), []int{1} |
| } |
| |
| func (x *GerritChange) GetHost() string { |
| if x != nil { |
| return x.Host |
| } |
| return "" |
| } |
| |
| func (x *GerritChange) GetProject() string { |
| if x != nil { |
| return x.Project |
| } |
| return "" |
| } |
| |
| func (x *GerritChange) GetChange() int64 { |
| if x != nil { |
| return x.Change |
| } |
| return 0 |
| } |
| |
| func (x *GerritChange) GetPatchset() int64 { |
| if x != nil { |
| return x.Patchset |
| } |
| return 0 |
| } |
| |
| func (x *GerritChange) GetPatchsetHash() string { |
| if x != nil { |
| return x.PatchsetHash |
| } |
| return "" |
| } |
| |
| // A landed Git commit hosted on Gitiles. |
| type GitilesCommit struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| // Gitiles hostname, e.g. "chromium.googlesource.com". |
| Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` |
| // Repository name on the host, e.g. "chromium/src". |
| Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` |
| // Commit HEX SHA1. |
| Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` |
| // Commit ref, e.g. "refs/heads/master". |
| // NOT a branch name: if specified, must start with "refs/". |
| // If id is set, ref SHOULD also be set, so that git clients can |
| // know how to obtain the commit by id. |
| Ref string `protobuf:"bytes,4,opt,name=ref,proto3" json:"ref,omitempty"` |
| // Defines a total order of commits on the ref. Requires ref field. |
| // Typically 1-based, monotonically increasing, contiguous integer |
| // defined by a Gerrit plugin, goto.google.com/git-numberer. |
| Position uint32 `protobuf:"varint,5,opt,name=position,proto3" json:"position,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *GitilesCommit) Reset() { |
| *x = GitilesCommit{} |
| mi := &file_cabe_proto_v1_spec_proto_msgTypes[2] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *GitilesCommit) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*GitilesCommit) ProtoMessage() {} |
| |
| func (x *GitilesCommit) ProtoReflect() protoreflect.Message { |
| mi := &file_cabe_proto_v1_spec_proto_msgTypes[2] |
| 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 GitilesCommit.ProtoReflect.Descriptor instead. |
| func (*GitilesCommit) Descriptor() ([]byte, []int) { |
| return file_cabe_proto_v1_spec_proto_rawDescGZIP(), []int{2} |
| } |
| |
| func (x *GitilesCommit) GetHost() string { |
| if x != nil { |
| return x.Host |
| } |
| return "" |
| } |
| |
| func (x *GitilesCommit) GetProject() string { |
| if x != nil { |
| return x.Project |
| } |
| return "" |
| } |
| |
| func (x *GitilesCommit) GetId() string { |
| if x != nil { |
| return x.Id |
| } |
| return "" |
| } |
| |
| func (x *GitilesCommit) GetRef() string { |
| if x != nil { |
| return x.Ref |
| } |
| return "" |
| } |
| |
| func (x *GitilesCommit) GetPosition() uint32 { |
| if x != nil { |
| return x.Position |
| } |
| return 0 |
| } |
| |
| // Third-party browser builds, not necessarily Chrome. |
| // These are primarily intended for use by CBB, since it needs to |
| // compare Chrome to Safari, Edge etc. These obviously aren't built from source |
| // but we still need to describe what set of executable bits the benchmark |
| // exercised. |
| type InstalledBrowser struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| // e.g. "chrome" or "safari" |
| Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| // e.g. "104.0.5112.101" or "15.5" |
| Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *InstalledBrowser) Reset() { |
| *x = InstalledBrowser{} |
| mi := &file_cabe_proto_v1_spec_proto_msgTypes[3] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *InstalledBrowser) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*InstalledBrowser) ProtoMessage() {} |
| |
| func (x *InstalledBrowser) ProtoReflect() protoreflect.Message { |
| mi := &file_cabe_proto_v1_spec_proto_msgTypes[3] |
| 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 InstalledBrowser.ProtoReflect.Descriptor instead. |
| func (*InstalledBrowser) Descriptor() ([]byte, []int) { |
| return file_cabe_proto_v1_spec_proto_rawDescGZIP(), []int{3} |
| } |
| |
| func (x *InstalledBrowser) GetName() string { |
| if x != nil { |
| return x.Name |
| } |
| return "" |
| } |
| |
| func (x *InstalledBrowser) GetVersion() string { |
| if x != nil { |
| return x.Version |
| } |
| return "" |
| } |
| |
| // Finch config for Chrome. |
| type FinchConfig struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| // e.g. seed hash, seed change list, and seed timestamp. |
| SeedHash string `protobuf:"bytes,1,opt,name=seed_hash,json=seedHash,proto3" json:"seed_hash,omitempty"` |
| SeedChangelist uint64 `protobuf:"varint,2,opt,name=seed_changelist,json=seedChangelist,proto3" json:"seed_changelist,omitempty"` |
| SeedTimestamp *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=seed_timestamp,json=seedTimestamp,proto3" json:"seed_timestamp,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *FinchConfig) Reset() { |
| *x = FinchConfig{} |
| mi := &file_cabe_proto_v1_spec_proto_msgTypes[4] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *FinchConfig) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*FinchConfig) ProtoMessage() {} |
| |
| func (x *FinchConfig) ProtoReflect() protoreflect.Message { |
| mi := &file_cabe_proto_v1_spec_proto_msgTypes[4] |
| 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 FinchConfig.ProtoReflect.Descriptor instead. |
| func (*FinchConfig) Descriptor() ([]byte, []int) { |
| return file_cabe_proto_v1_spec_proto_rawDescGZIP(), []int{4} |
| } |
| |
| func (x *FinchConfig) GetSeedHash() string { |
| if x != nil { |
| return x.SeedHash |
| } |
| return "" |
| } |
| |
| func (x *FinchConfig) GetSeedChangelist() uint64 { |
| if x != nil { |
| return x.SeedChangelist |
| } |
| return 0 |
| } |
| |
| func (x *FinchConfig) GetSeedTimestamp() *timestamppb.Timestamp { |
| if x != nil { |
| return x.SeedTimestamp |
| } |
| return nil |
| } |
| |
| // RunSpec defines where and how to execute the executable bits from a |
| // BuildSpec. It should include enough information to schedule or locate a set |
| // of Swarming tasks for a given BuildSpec and AnalysisSpec. |
| type RunSpec struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| // OS strings will contain both the OS name and any OS-specific version |
| // details. |
| Os string `protobuf:"bytes,1,opt,name=os,proto3" json:"os,omitempty"` |
| // Synthetic product names come from Swarming, and uniquely identify specific |
| // hardware device configurations. |
| SyntheticProductName string `protobuf:"bytes,2,opt,name=synthetic_product_name,json=syntheticProductName,proto3" json:"synthetic_product_name,omitempty"` |
| // Finch config (seed hash, change list, and timestamp). |
| FinchConfig *FinchConfig `protobuf:"bytes,3,opt,name=finch_config,json=finchConfig,proto3" json:"finch_config,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *RunSpec) Reset() { |
| *x = RunSpec{} |
| mi := &file_cabe_proto_v1_spec_proto_msgTypes[5] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *RunSpec) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*RunSpec) ProtoMessage() {} |
| |
| func (x *RunSpec) ProtoReflect() protoreflect.Message { |
| mi := &file_cabe_proto_v1_spec_proto_msgTypes[5] |
| 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 RunSpec.ProtoReflect.Descriptor instead. |
| func (*RunSpec) Descriptor() ([]byte, []int) { |
| return file_cabe_proto_v1_spec_proto_rawDescGZIP(), []int{5} |
| } |
| |
| func (x *RunSpec) GetOs() string { |
| if x != nil { |
| return x.Os |
| } |
| return "" |
| } |
| |
| func (x *RunSpec) GetSyntheticProductName() string { |
| if x != nil { |
| return x.SyntheticProductName |
| } |
| return "" |
| } |
| |
| func (x *RunSpec) GetFinchConfig() *FinchConfig { |
| if x != nil { |
| return x.FinchConfig |
| } |
| return nil |
| } |
| |
| // AnalysisSpec defines what benchmarks and measurements we expect to analyze |
| // from a set of RunSpecs. This type should include all observed potential |
| // response variables for the experiment. |
| type AnalysisSpec struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| // List of benchmarks, stories, metrics. CABE ETL will use this as sort of |
| // a manifest for results data - it will check to make sure all of these |
| // are actually present in the benchmark jobs' collected output. |
| Benchmark []*Benchmark `protobuf:"bytes,1,rep,name=benchmark,proto3" json:"benchmark,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *AnalysisSpec) Reset() { |
| *x = AnalysisSpec{} |
| mi := &file_cabe_proto_v1_spec_proto_msgTypes[6] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *AnalysisSpec) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*AnalysisSpec) ProtoMessage() {} |
| |
| func (x *AnalysisSpec) ProtoReflect() protoreflect.Message { |
| mi := &file_cabe_proto_v1_spec_proto_msgTypes[6] |
| 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 AnalysisSpec.ProtoReflect.Descriptor instead. |
| func (*AnalysisSpec) Descriptor() ([]byte, []int) { |
| return file_cabe_proto_v1_spec_proto_rawDescGZIP(), []int{6} |
| } |
| |
| func (x *AnalysisSpec) GetBenchmark() []*Benchmark { |
| if x != nil { |
| return x.Benchmark |
| } |
| return nil |
| } |
| |
| // Benchmark encapsulates both the coarse grained benchmark suite name |
| // and all of the more specific workloads (or "stories", to use older |
| // terminology) that generate measurements. |
| type Benchmark struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // e.g. "Speedometer2" |
| Workload []string `protobuf:"bytes,2,rep,name=workload,proto3" json:"workload,omitempty"` // e.g. "React-TodoMVC" |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *Benchmark) Reset() { |
| *x = Benchmark{} |
| mi := &file_cabe_proto_v1_spec_proto_msgTypes[7] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *Benchmark) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*Benchmark) ProtoMessage() {} |
| |
| func (x *Benchmark) ProtoReflect() protoreflect.Message { |
| mi := &file_cabe_proto_v1_spec_proto_msgTypes[7] |
| 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 Benchmark.ProtoReflect.Descriptor instead. |
| func (*Benchmark) Descriptor() ([]byte, []int) { |
| return file_cabe_proto_v1_spec_proto_rawDescGZIP(), []int{7} |
| } |
| |
| func (x *Benchmark) GetName() string { |
| if x != nil { |
| return x.Name |
| } |
| return "" |
| } |
| |
| func (x *Benchmark) GetWorkload() []string { |
| if x != nil { |
| return x.Workload |
| } |
| return nil |
| } |
| |
| // ArmSpec defines how to build and execute one arm of a performance benchmark |
| // A/B test. This type should include all observed potential explanatory |
| // variables for the experiment. |
| type ArmSpec struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| BuildSpec []*BuildSpec `protobuf:"bytes,1,rep,name=build_spec,json=buildSpec,proto3" json:"build_spec,omitempty"` |
| RunSpec []*RunSpec `protobuf:"bytes,2,rep,name=run_spec,json=runSpec,proto3" json:"run_spec,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *ArmSpec) Reset() { |
| *x = ArmSpec{} |
| mi := &file_cabe_proto_v1_spec_proto_msgTypes[8] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *ArmSpec) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*ArmSpec) ProtoMessage() {} |
| |
| func (x *ArmSpec) ProtoReflect() protoreflect.Message { |
| mi := &file_cabe_proto_v1_spec_proto_msgTypes[8] |
| 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 ArmSpec.ProtoReflect.Descriptor instead. |
| func (*ArmSpec) Descriptor() ([]byte, []int) { |
| return file_cabe_proto_v1_spec_proto_rawDescGZIP(), []int{8} |
| } |
| |
| func (x *ArmSpec) GetBuildSpec() []*BuildSpec { |
| if x != nil { |
| return x.BuildSpec |
| } |
| return nil |
| } |
| |
| func (x *ArmSpec) GetRunSpec() []*RunSpec { |
| if x != nil { |
| return x.RunSpec |
| } |
| return nil |
| } |
| |
| // ExperimentSpec contains all of the necessary information to build, execute |
| // and analyze a set of benchmark metrics for a controlled experiment. |
| type ExperimentSpec struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| // common contains all of the build/run details that are common to all |
| // arms of an experiment. For instance, if you are comparing two different |
| // browser build versions across mac, windows and linux, then the mac, windows |
| // and linux details would go in the common ArmSpec. The control and |
| // treatment armspecs wouldn't mention mac, windows or linux details since |
| // the are implied by the common armspec. |
| // Any details specified in both the common ArmSpec and any other arms' |
| // ArmSpecs should indicate an unsresolved, invalid ExperimentSpec. |
| Common *ArmSpec `protobuf:"bytes,1,opt,name=common,proto3" json:"common,omitempty"` |
| // Control and Treatment are somewhat arbitrary distinctions and their meaning |
| // is use-case dependent. Values in their ArmSpecs should not conflict |
| // with anything in the common ArmSpec. |
| Control *ArmSpec `protobuf:"bytes,2,opt,name=control,proto3" json:"control,omitempty"` |
| // Treatment may change in the future to be a repeated field to better |
| // represent multi-arm trials but for now we'll limit it to a single value. |
| Treatment *ArmSpec `protobuf:"bytes,3,opt,name=treatment,proto3" json:"treatment,omitempty"` |
| // Analysis describes how we expect CABE to compare the arms of the |
| // experiment. |
| Analysis *AnalysisSpec `protobuf:"bytes,4,opt,name=analysis,proto3" json:"analysis,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *ExperimentSpec) Reset() { |
| *x = ExperimentSpec{} |
| mi := &file_cabe_proto_v1_spec_proto_msgTypes[9] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *ExperimentSpec) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*ExperimentSpec) ProtoMessage() {} |
| |
| func (x *ExperimentSpec) ProtoReflect() protoreflect.Message { |
| mi := &file_cabe_proto_v1_spec_proto_msgTypes[9] |
| 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 ExperimentSpec.ProtoReflect.Descriptor instead. |
| func (*ExperimentSpec) Descriptor() ([]byte, []int) { |
| return file_cabe_proto_v1_spec_proto_rawDescGZIP(), []int{9} |
| } |
| |
| func (x *ExperimentSpec) GetCommon() *ArmSpec { |
| if x != nil { |
| return x.Common |
| } |
| return nil |
| } |
| |
| func (x *ExperimentSpec) GetControl() *ArmSpec { |
| if x != nil { |
| return x.Control |
| } |
| return nil |
| } |
| |
| func (x *ExperimentSpec) GetTreatment() *ArmSpec { |
| if x != nil { |
| return x.Treatment |
| } |
| return nil |
| } |
| |
| func (x *ExperimentSpec) GetAnalysis() *AnalysisSpec { |
| if x != nil { |
| return x.Analysis |
| } |
| return nil |
| } |
| |
| var File_cabe_proto_v1_spec_proto protoreflect.FileDescriptor |
| |
| const file_cabe_proto_v1_spec_proto_rawDesc = "" + |
| "\n" + |
| "\x18cabe/proto/v1/spec.proto\x12\acabe.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"\xd0\x01\n" + |
| "\tBuildSpec\x12=\n" + |
| "\x0egitiles_commit\x18\x01 \x01(\v2\x16.cabe.v1.GitilesCommitR\rgitilesCommit\x12<\n" + |
| "\x0egerrit_changes\x18\x02 \x03(\v2\x15.cabe.v1.GerritChangeR\rgerritChanges\x12F\n" + |
| "\x11installed_browser\x18\x03 \x01(\v2\x19.cabe.v1.InstalledBrowserR\x10installedBrowser\"\x95\x01\n" + |
| "\fGerritChange\x12\x12\n" + |
| "\x04host\x18\x01 \x01(\tR\x04host\x12\x18\n" + |
| "\aproject\x18\x02 \x01(\tR\aproject\x12\x16\n" + |
| "\x06change\x18\x03 \x01(\x03R\x06change\x12\x1a\n" + |
| "\bpatchset\x18\x04 \x01(\x03R\bpatchset\x12#\n" + |
| "\rpatchset_hash\x18\x05 \x01(\tR\fpatchsetHash\"{\n" + |
| "\rGitilesCommit\x12\x12\n" + |
| "\x04host\x18\x01 \x01(\tR\x04host\x12\x18\n" + |
| "\aproject\x18\x02 \x01(\tR\aproject\x12\x0e\n" + |
| "\x02id\x18\x03 \x01(\tR\x02id\x12\x10\n" + |
| "\x03ref\x18\x04 \x01(\tR\x03ref\x12\x1a\n" + |
| "\bposition\x18\x05 \x01(\rR\bposition\"@\n" + |
| "\x10InstalledBrowser\x12\x12\n" + |
| "\x04name\x18\x01 \x01(\tR\x04name\x12\x18\n" + |
| "\aversion\x18\x02 \x01(\tR\aversion\"\x96\x01\n" + |
| "\vFinchConfig\x12\x1b\n" + |
| "\tseed_hash\x18\x01 \x01(\tR\bseedHash\x12'\n" + |
| "\x0fseed_changelist\x18\x02 \x01(\x04R\x0eseedChangelist\x12A\n" + |
| "\x0eseed_timestamp\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\rseedTimestamp\"\x88\x01\n" + |
| "\aRunSpec\x12\x0e\n" + |
| "\x02os\x18\x01 \x01(\tR\x02os\x124\n" + |
| "\x16synthetic_product_name\x18\x02 \x01(\tR\x14syntheticProductName\x127\n" + |
| "\ffinch_config\x18\x03 \x01(\v2\x14.cabe.v1.FinchConfigR\vfinchConfig\"@\n" + |
| "\fAnalysisSpec\x120\n" + |
| "\tbenchmark\x18\x01 \x03(\v2\x12.cabe.v1.BenchmarkR\tbenchmark\";\n" + |
| "\tBenchmark\x12\x12\n" + |
| "\x04name\x18\x01 \x01(\tR\x04name\x12\x1a\n" + |
| "\bworkload\x18\x02 \x03(\tR\bworkload\"i\n" + |
| "\aArmSpec\x121\n" + |
| "\n" + |
| "build_spec\x18\x01 \x03(\v2\x12.cabe.v1.BuildSpecR\tbuildSpec\x12+\n" + |
| "\brun_spec\x18\x02 \x03(\v2\x10.cabe.v1.RunSpecR\arunSpec\"\xc9\x01\n" + |
| "\x0eExperimentSpec\x12(\n" + |
| "\x06common\x18\x01 \x01(\v2\x10.cabe.v1.ArmSpecR\x06common\x12*\n" + |
| "\acontrol\x18\x02 \x01(\v2\x10.cabe.v1.ArmSpecR\acontrol\x12.\n" + |
| "\ttreatment\x18\x03 \x01(\v2\x10.cabe.v1.ArmSpecR\ttreatment\x121\n" + |
| "\banalysis\x18\x04 \x01(\v2\x15.cabe.v1.AnalysisSpecR\banalysisB!Z\x1fgo.skia.org/infra/cabe/go/protob\x06proto3" |
| |
| var ( |
| file_cabe_proto_v1_spec_proto_rawDescOnce sync.Once |
| file_cabe_proto_v1_spec_proto_rawDescData []byte |
| ) |
| |
| func file_cabe_proto_v1_spec_proto_rawDescGZIP() []byte { |
| file_cabe_proto_v1_spec_proto_rawDescOnce.Do(func() { |
| file_cabe_proto_v1_spec_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_cabe_proto_v1_spec_proto_rawDesc), len(file_cabe_proto_v1_spec_proto_rawDesc))) |
| }) |
| return file_cabe_proto_v1_spec_proto_rawDescData |
| } |
| |
| var file_cabe_proto_v1_spec_proto_msgTypes = make([]protoimpl.MessageInfo, 10) |
| var file_cabe_proto_v1_spec_proto_goTypes = []any{ |
| (*BuildSpec)(nil), // 0: cabe.v1.BuildSpec |
| (*GerritChange)(nil), // 1: cabe.v1.GerritChange |
| (*GitilesCommit)(nil), // 2: cabe.v1.GitilesCommit |
| (*InstalledBrowser)(nil), // 3: cabe.v1.InstalledBrowser |
| (*FinchConfig)(nil), // 4: cabe.v1.FinchConfig |
| (*RunSpec)(nil), // 5: cabe.v1.RunSpec |
| (*AnalysisSpec)(nil), // 6: cabe.v1.AnalysisSpec |
| (*Benchmark)(nil), // 7: cabe.v1.Benchmark |
| (*ArmSpec)(nil), // 8: cabe.v1.ArmSpec |
| (*ExperimentSpec)(nil), // 9: cabe.v1.ExperimentSpec |
| (*timestamppb.Timestamp)(nil), // 10: google.protobuf.Timestamp |
| } |
| var file_cabe_proto_v1_spec_proto_depIdxs = []int32{ |
| 2, // 0: cabe.v1.BuildSpec.gitiles_commit:type_name -> cabe.v1.GitilesCommit |
| 1, // 1: cabe.v1.BuildSpec.gerrit_changes:type_name -> cabe.v1.GerritChange |
| 3, // 2: cabe.v1.BuildSpec.installed_browser:type_name -> cabe.v1.InstalledBrowser |
| 10, // 3: cabe.v1.FinchConfig.seed_timestamp:type_name -> google.protobuf.Timestamp |
| 4, // 4: cabe.v1.RunSpec.finch_config:type_name -> cabe.v1.FinchConfig |
| 7, // 5: cabe.v1.AnalysisSpec.benchmark:type_name -> cabe.v1.Benchmark |
| 0, // 6: cabe.v1.ArmSpec.build_spec:type_name -> cabe.v1.BuildSpec |
| 5, // 7: cabe.v1.ArmSpec.run_spec:type_name -> cabe.v1.RunSpec |
| 8, // 8: cabe.v1.ExperimentSpec.common:type_name -> cabe.v1.ArmSpec |
| 8, // 9: cabe.v1.ExperimentSpec.control:type_name -> cabe.v1.ArmSpec |
| 8, // 10: cabe.v1.ExperimentSpec.treatment:type_name -> cabe.v1.ArmSpec |
| 6, // 11: cabe.v1.ExperimentSpec.analysis:type_name -> cabe.v1.AnalysisSpec |
| 12, // [12:12] is the sub-list for method output_type |
| 12, // [12:12] is the sub-list for method input_type |
| 12, // [12:12] is the sub-list for extension type_name |
| 12, // [12:12] is the sub-list for extension extendee |
| 0, // [0:12] is the sub-list for field type_name |
| } |
| |
| func init() { file_cabe_proto_v1_spec_proto_init() } |
| func file_cabe_proto_v1_spec_proto_init() { |
| if File_cabe_proto_v1_spec_proto != nil { |
| return |
| } |
| type x struct{} |
| out := protoimpl.TypeBuilder{ |
| File: protoimpl.DescBuilder{ |
| GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| RawDescriptor: unsafe.Slice(unsafe.StringData(file_cabe_proto_v1_spec_proto_rawDesc), len(file_cabe_proto_v1_spec_proto_rawDesc)), |
| NumEnums: 0, |
| NumMessages: 10, |
| NumExtensions: 0, |
| NumServices: 0, |
| }, |
| GoTypes: file_cabe_proto_v1_spec_proto_goTypes, |
| DependencyIndexes: file_cabe_proto_v1_spec_proto_depIdxs, |
| MessageInfos: file_cabe_proto_v1_spec_proto_msgTypes, |
| }.Build() |
| File_cabe_proto_v1_spec_proto = out.File |
| file_cabe_proto_v1_spec_proto_goTypes = nil |
| file_cabe_proto_v1_spec_proto_depIdxs = nil |
| } |