| // Copyright 2022 The LUCI Authors. |
| // |
| // Licensed under the Apache License, Version 2.0 (the "License"); |
| // you may not use this file except in compliance with the License. |
| // You may obtain a copy of the License at |
| // |
| // http://www.apache.org/licenses/LICENSE-2.0 |
| // |
| // Unless required by applicable law or agreed to in writing, software |
| // distributed under the License is distributed on an "AS IS" BASIS, |
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| // See the License for the specific language governing permissions and |
| // limitations under the License. |
| |
| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // versions: |
| // protoc-gen-go v1.27.1 |
| // protoc v3.17.3 |
| // source: go.chromium.org/luci/provenance/api/snooperpb/v1/report.proto |
| |
| package snooperpb |
| |
| import ( |
| v1 "go.chromium.org/luci/cipd/api/cipd/v1" |
| protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| emptypb "google.golang.org/protobuf/types/known/emptypb" |
| timestamppb "google.golang.org/protobuf/types/known/timestamppb" |
| 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) |
| ) |
| |
| // Indicator to task status. This is used to annotate logs when a task starts |
| // ends or reaches a certain "interesting" stage. |
| // |
| // This is crucial to enforce security policies based on current state of the |
| // task. For example, more restrictive network connections can be applied when a |
| // task reaches `compile` stage. |
| // |
| // Below is a brief rationale behind each steps: |
| // * STARTED: provenance of an artifact captures sources that goes into a |
| // build. A single compute resource typically outlives a task, in |
| // other words, a single machine can run multiple tasks in it's |
| // lifetime. Task start indicates the capturing time window began. |
| // * FETCH: typically a task depends on a bunch of dependencies that are |
| // fetched to set up the environment before compiling the artifact. |
| // Fetch indicates that the task is currently installing these deps. |
| // * COMPILE: ideally in compile step, there shouldn't be any new fetching. |
| // * UPLOAD: after finishing compilation, this step indicates built artifacts |
| // are being uploaded to its destination. A single task can have |
| // multiple produced artifacts. |
| // * UPLOAD_COMPLETE: it indicates all produced artifacts have been uploaded. |
| // This is crucial to closing the capturing time window for |
| // provenance generation. |
| // * TEST: often a task runs regression tests after an artifact has been |
| // produced. Some times requirements around this tests is an open |
| // environment which might not be safe for other task phases. To |
| // support effective tests, some policies can be lifted at this stage. |
| // (Although it is highly encouraged to schedule tests on a separate |
| // machine when possible to minimize risks of cross-contamination). |
| // * COMPLETE: complete indicates whether a task execution finished. This is |
| // crucial for server to set as this creates a clear boundary |
| // between subsequent tasks on a same machine. |
| type TaskStage int32 |
| |
| const ( |
| TaskStage_STAGE_UNSPECIFIED TaskStage = 0 |
| TaskStage_STARTED TaskStage = 1 |
| TaskStage_FETCH TaskStage = 2 |
| TaskStage_COMPILE TaskStage = 3 |
| TaskStage_UPLOAD TaskStage = 4 |
| TaskStage_UPLOAD_COMPLETE TaskStage = 5 |
| TaskStage_TEST TaskStage = 6 |
| TaskStage_COMPLETE TaskStage = 7 |
| ) |
| |
| // Enum value maps for TaskStage. |
| var ( |
| TaskStage_name = map[int32]string{ |
| 0: "STAGE_UNSPECIFIED", |
| 1: "STARTED", |
| 2: "FETCH", |
| 3: "COMPILE", |
| 4: "UPLOAD", |
| 5: "UPLOAD_COMPLETE", |
| 6: "TEST", |
| 7: "COMPLETE", |
| } |
| TaskStage_value = map[string]int32{ |
| "STAGE_UNSPECIFIED": 0, |
| "STARTED": 1, |
| "FETCH": 2, |
| "COMPILE": 3, |
| "UPLOAD": 4, |
| "UPLOAD_COMPLETE": 5, |
| "TEST": 6, |
| "COMPLETE": 7, |
| } |
| ) |
| |
| func (x TaskStage) Enum() *TaskStage { |
| p := new(TaskStage) |
| *p = x |
| return p |
| } |
| |
| func (x TaskStage) String() string { |
| return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| } |
| |
| func (TaskStage) Descriptor() protoreflect.EnumDescriptor { |
| return file_go_chromium_org_luci_provenance_api_snooperpb_v1_report_proto_enumTypes[0].Descriptor() |
| } |
| |
| func (TaskStage) Type() protoreflect.EnumType { |
| return &file_go_chromium_org_luci_provenance_api_snooperpb_v1_report_proto_enumTypes[0] |
| } |
| |
| func (x TaskStage) Number() protoreflect.EnumNumber { |
| return protoreflect.EnumNumber(x) |
| } |
| |
| // Deprecated: Use TaskStage.Descriptor instead. |
| func (TaskStage) EnumDescriptor() ([]byte, []int) { |
| return file_go_chromium_org_luci_provenance_api_snooperpb_v1_report_proto_rawDescGZIP(), []int{0} |
| } |
| |
| // Identifies storage location of a particular artifact. This will be used to |
| // attach provenance: |
| // * GCS: provenance will be uploaded alongside the artifact. |
| // * CIPD: provenance will be added to package metadata. |
| // Currently we support provenance for two types of artifacts (gcs, cipd). |
| type Artifact struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // Types that are assignable to Kind: |
| // *Artifact_Gcs |
| // *Artifact_Cipd |
| Kind isArtifact_Kind `protobuf_oneof:"kind"` |
| } |
| |
| func (x *Artifact) Reset() { |
| *x = Artifact{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_go_chromium_org_luci_provenance_api_snooperpb_v1_report_proto_msgTypes[0] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *Artifact) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*Artifact) ProtoMessage() {} |
| |
| func (x *Artifact) ProtoReflect() protoreflect.Message { |
| mi := &file_go_chromium_org_luci_provenance_api_snooperpb_v1_report_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 Artifact.ProtoReflect.Descriptor instead. |
| func (*Artifact) Descriptor() ([]byte, []int) { |
| return file_go_chromium_org_luci_provenance_api_snooperpb_v1_report_proto_rawDescGZIP(), []int{0} |
| } |
| |
| func (m *Artifact) GetKind() isArtifact_Kind { |
| if m != nil { |
| return m.Kind |
| } |
| return nil |
| } |
| |
| func (x *Artifact) GetGcs() string { |
| if x, ok := x.GetKind().(*Artifact_Gcs); ok { |
| return x.Gcs |
| } |
| return "" |
| } |
| |
| func (x *Artifact) GetCipd() *Artifact_CIPD { |
| if x, ok := x.GetKind().(*Artifact_Cipd); ok { |
| return x.Cipd |
| } |
| return nil |
| } |
| |
| type isArtifact_Kind interface { |
| isArtifact_Kind() |
| } |
| |
| type Artifact_Gcs struct { |
| // Artifacts stored on Google Cloud Storage, e.g. Chrome binaries. |
| // Identifier of artifact's storage location, e.g. |
| // gs://example-bucket/app/1.2.3.4/mac64/bin.dmg |
| Gcs string `protobuf:"bytes,1,opt,name=gcs,proto3,oneof"` |
| } |
| |
| type Artifact_Cipd struct { |
| Cipd *Artifact_CIPD `protobuf:"bytes,2,opt,name=cipd,proto3,oneof"` |
| } |
| |
| func (*Artifact_Gcs) isArtifact_Kind() {} |
| |
| func (*Artifact_Cipd) isArtifact_Kind() {} |
| |
| type CipdReport struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // An identifier to map multiple reports to a machine/task. This is |
| // going to be the hash(access_token) used by bots to make requests |
| // to luci services. |
| RequestorId string `protobuf:"bytes,1,opt,name=requestor_id,json=requestorId,proto3" json:"requestor_id,omitempty"` |
| // CIPD package name requested/installed on the machine. |
| PackageName string `protobuf:"bytes,2,opt,name=package_name,json=packageName,proto3" json:"package_name,omitempty"` |
| // Unique identifier of the package instance, a.k.a. instance_id. |
| Iid string `protobuf:"bytes,3,opt,name=iid,proto3" json:"iid,omitempty"` |
| // CIPD tags attached to the deployed package. |
| Tags []*v1.Tag `protobuf:"bytes,4,rep,name=tags,proto3" json:"tags,omitempty"` |
| // CIPD refs attached to the deployed package. |
| Refs []*v1.Ref `protobuf:"bytes,5,rep,name=refs,proto3" json:"refs,omitempty"` |
| // Event timestamp. This is local to the service, not necessarily same as |
| // the reflected recorded timestamp on the logs. |
| EventTs *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=event_ts,json=eventTs,proto3" json:"event_ts,omitempty"` |
| } |
| |
| func (x *CipdReport) Reset() { |
| *x = CipdReport{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_go_chromium_org_luci_provenance_api_snooperpb_v1_report_proto_msgTypes[1] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *CipdReport) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*CipdReport) ProtoMessage() {} |
| |
| func (x *CipdReport) ProtoReflect() protoreflect.Message { |
| mi := &file_go_chromium_org_luci_provenance_api_snooperpb_v1_report_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 CipdReport.ProtoReflect.Descriptor instead. |
| func (*CipdReport) Descriptor() ([]byte, []int) { |
| return file_go_chromium_org_luci_provenance_api_snooperpb_v1_report_proto_rawDescGZIP(), []int{1} |
| } |
| |
| func (x *CipdReport) GetRequestorId() string { |
| if x != nil { |
| return x.RequestorId |
| } |
| return "" |
| } |
| |
| func (x *CipdReport) GetPackageName() string { |
| if x != nil { |
| return x.PackageName |
| } |
| return "" |
| } |
| |
| func (x *CipdReport) GetIid() string { |
| if x != nil { |
| return x.Iid |
| } |
| return "" |
| } |
| |
| func (x *CipdReport) GetTags() []*v1.Tag { |
| if x != nil { |
| return x.Tags |
| } |
| return nil |
| } |
| |
| func (x *CipdReport) GetRefs() []*v1.Ref { |
| if x != nil { |
| return x.Refs |
| } |
| return nil |
| } |
| |
| func (x *CipdReport) GetEventTs() *timestamppb.Timestamp { |
| if x != nil { |
| return x.EventTs |
| } |
| return nil |
| } |
| |
| type GitReport struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // An identifier to map multiple reports to a machine/task. Reporter do not |
| // need to set this. It is used by the server to group reports together and |
| // bind them to a single task. |
| RequestorId string `protobuf:"bytes,1,opt,name=requestor_id,json=requestorId,proto3" json:"requestor_id,omitempty"` |
| // Git repository URL. |
| Repo string `protobuf:"bytes,2,opt,name=repo,proto3" json:"repo,omitempty"` |
| // Commit that was fetched for this repo. |
| Commit string `protobuf:"bytes,3,opt,name=commit,proto3" json:"commit,omitempty"` |
| // This is coming from an upstream dependency, although a checkout can be |
| // uniquely attributed by a repo and a commit, they don't often produce |
| // measurable inputs for security policy. |
| // For example, a git repo may have multiple refs/branches and only some of |
| // them may have `Code Review` required. |
| // |
| // To make a security policy decision about a particular commit, sometimes |
| // it is useful to know which branch/ref the commit is associated with, note |
| // a single commit can be associated with multiple branches, but the highest |
| // security policy will always be enforced. |
| // Scenario: |
| // Git repo: "http://repo.git" |
| // Commit : "deadbeef" |
| // Refs : ["refs/heads/main", "refs/feature/experimental"] |
| // In this example, the particular commit belongs to two branches, one does |
| // not have mandatory code review (experimental) but the other does. |
| // |
| // Irrespective of the order of where the commit belonged first, it is |
| // certain that the change was reviewed as this was merged to main branch. |
| Refs string `protobuf:"bytes,4,opt,name=refs,proto3" json:"refs,omitempty"` |
| // Event timestamp. This is local to the service, not necessarily same as |
| // the reflected recorded timestamp on the logs. |
| EventTs *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=event_ts,json=eventTs,proto3" json:"event_ts,omitempty"` |
| } |
| |
| func (x *GitReport) Reset() { |
| *x = GitReport{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_go_chromium_org_luci_provenance_api_snooperpb_v1_report_proto_msgTypes[2] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *GitReport) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*GitReport) ProtoMessage() {} |
| |
| func (x *GitReport) ProtoReflect() protoreflect.Message { |
| mi := &file_go_chromium_org_luci_provenance_api_snooperpb_v1_report_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 GitReport.ProtoReflect.Descriptor instead. |
| func (*GitReport) Descriptor() ([]byte, []int) { |
| return file_go_chromium_org_luci_provenance_api_snooperpb_v1_report_proto_rawDescGZIP(), []int{2} |
| } |
| |
| func (x *GitReport) GetRequestorId() string { |
| if x != nil { |
| return x.RequestorId |
| } |
| return "" |
| } |
| |
| func (x *GitReport) GetRepo() string { |
| if x != nil { |
| return x.Repo |
| } |
| return "" |
| } |
| |
| func (x *GitReport) GetCommit() string { |
| if x != nil { |
| return x.Commit |
| } |
| return "" |
| } |
| |
| func (x *GitReport) GetRefs() string { |
| if x != nil { |
| return x.Refs |
| } |
| return "" |
| } |
| |
| func (x *GitReport) GetEventTs() *timestamppb.Timestamp { |
| if x != nil { |
| return x.EventTs |
| } |
| return nil |
| } |
| |
| type ReportTaskStageRequest struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| TaskStage TaskStage `protobuf:"varint,1,opt,name=task_stage,json=taskStage,proto3,enum=provenance.snooperpb.TaskStage" json:"task_stage,omitempty"` |
| Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` |
| // Recipe is essentially the entry point for the given task, it can be a |
| // `build_rule` or a custom executable (like `luci recipes`) that dictates |
| // workflow of a task. |
| // |
| // (Required) when reporting a task start. |
| Recipe string `protobuf:"bytes,3,opt,name=recipe,proto3" json:"recipe,omitempty"` |
| // Process ID of the task that self-reports task stages. It is used by the |
| // server to periodically check health of running task and assert a close |
| // approximation of task end time. |
| // |
| // Accuracy on task end time estimation can vary between implementations, it |
| // directly depends on frequency at which provenance server checks status of |
| // reported pid. |
| // |
| // (Required) when reported a task start. |
| Pid int64 `protobuf:"varint,4,opt,name=pid,proto3" json:"pid,omitempty"` |
| } |
| |
| func (x *ReportTaskStageRequest) Reset() { |
| *x = ReportTaskStageRequest{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_go_chromium_org_luci_provenance_api_snooperpb_v1_report_proto_msgTypes[3] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *ReportTaskStageRequest) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*ReportTaskStageRequest) ProtoMessage() {} |
| |
| func (x *ReportTaskStageRequest) ProtoReflect() protoreflect.Message { |
| mi := &file_go_chromium_org_luci_provenance_api_snooperpb_v1_report_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 ReportTaskStageRequest.ProtoReflect.Descriptor instead. |
| func (*ReportTaskStageRequest) Descriptor() ([]byte, []int) { |
| return file_go_chromium_org_luci_provenance_api_snooperpb_v1_report_proto_rawDescGZIP(), []int{3} |
| } |
| |
| func (x *ReportTaskStageRequest) GetTaskStage() TaskStage { |
| if x != nil { |
| return x.TaskStage |
| } |
| return TaskStage_STAGE_UNSPECIFIED |
| } |
| |
| func (x *ReportTaskStageRequest) GetTimestamp() *timestamppb.Timestamp { |
| if x != nil { |
| return x.Timestamp |
| } |
| return nil |
| } |
| |
| func (x *ReportTaskStageRequest) GetRecipe() string { |
| if x != nil { |
| return x.Recipe |
| } |
| return "" |
| } |
| |
| func (x *ReportTaskStageRequest) GetPid() int64 { |
| if x != nil { |
| return x.Pid |
| } |
| return 0 |
| } |
| |
| type ReportArtifactDigestRequest struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // SHA256 digest of artifact. |
| Digest string `protobuf:"bytes,1,opt,name=digest,proto3" json:"digest,omitempty"` |
| // Identifies storage location of a particular artifact. This will be used |
| // by Spike to attach provenance: |
| // * GCS: provenance will be uploaded alongside the artifact. |
| // * CIPD: provenance will be added to package metadata. |
| Artifact *Artifact `protobuf:"bytes,2,opt,name=artifact,proto3" json:"artifact,omitempty"` |
| } |
| |
| func (x *ReportArtifactDigestRequest) Reset() { |
| *x = ReportArtifactDigestRequest{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_go_chromium_org_luci_provenance_api_snooperpb_v1_report_proto_msgTypes[4] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *ReportArtifactDigestRequest) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*ReportArtifactDigestRequest) ProtoMessage() {} |
| |
| func (x *ReportArtifactDigestRequest) ProtoReflect() protoreflect.Message { |
| mi := &file_go_chromium_org_luci_provenance_api_snooperpb_v1_report_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 ReportArtifactDigestRequest.ProtoReflect.Descriptor instead. |
| func (*ReportArtifactDigestRequest) Descriptor() ([]byte, []int) { |
| return file_go_chromium_org_luci_provenance_api_snooperpb_v1_report_proto_rawDescGZIP(), []int{4} |
| } |
| |
| func (x *ReportArtifactDigestRequest) GetDigest() string { |
| if x != nil { |
| return x.Digest |
| } |
| return "" |
| } |
| |
| func (x *ReportArtifactDigestRequest) GetArtifact() *Artifact { |
| if x != nil { |
| return x.Artifact |
| } |
| return nil |
| } |
| |
| type ReportCipdRequest struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // cipd_report will consist of package name, instance_id of a cipd package. |
| CipdReport *CipdReport `protobuf:"bytes,1,opt,name=cipd_report,json=cipdReport,proto3" json:"cipd_report,omitempty"` |
| } |
| |
| func (x *ReportCipdRequest) Reset() { |
| *x = ReportCipdRequest{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_go_chromium_org_luci_provenance_api_snooperpb_v1_report_proto_msgTypes[5] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *ReportCipdRequest) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*ReportCipdRequest) ProtoMessage() {} |
| |
| func (x *ReportCipdRequest) ProtoReflect() protoreflect.Message { |
| mi := &file_go_chromium_org_luci_provenance_api_snooperpb_v1_report_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 ReportCipdRequest.ProtoReflect.Descriptor instead. |
| func (*ReportCipdRequest) Descriptor() ([]byte, []int) { |
| return file_go_chromium_org_luci_provenance_api_snooperpb_v1_report_proto_rawDescGZIP(), []int{5} |
| } |
| |
| func (x *ReportCipdRequest) GetCipdReport() *CipdReport { |
| if x != nil { |
| return x.CipdReport |
| } |
| return nil |
| } |
| |
| type ReportGitRequest struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // git_report will consist of repo name, git hash of checked out repo. |
| GitReport *GitReport `protobuf:"bytes,1,opt,name=git_report,json=gitReport,proto3" json:"git_report,omitempty"` |
| } |
| |
| func (x *ReportGitRequest) Reset() { |
| *x = ReportGitRequest{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_go_chromium_org_luci_provenance_api_snooperpb_v1_report_proto_msgTypes[6] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *ReportGitRequest) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*ReportGitRequest) ProtoMessage() {} |
| |
| func (x *ReportGitRequest) ProtoReflect() protoreflect.Message { |
| mi := &file_go_chromium_org_luci_provenance_api_snooperpb_v1_report_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 ReportGitRequest.ProtoReflect.Descriptor instead. |
| func (*ReportGitRequest) Descriptor() ([]byte, []int) { |
| return file_go_chromium_org_luci_provenance_api_snooperpb_v1_report_proto_rawDescGZIP(), []int{6} |
| } |
| |
| func (x *ReportGitRequest) GetGitReport() *GitReport { |
| if x != nil { |
| return x.GitReport |
| } |
| return nil |
| } |
| |
| // Artifacts stored on CIPD. This defaults to prod instance of CIPD. |
| type Artifact_CIPD struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // Identifies a hierarchical package. This will be the absolute name |
| // of a package (including path). |
| PackageName string `protobuf:"bytes,1,opt,name=package_name,json=packageName,proto3" json:"package_name,omitempty"` |
| // Unique identifier of an instance of a package. |
| InstanceId string `protobuf:"bytes,2,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"` |
| // CIPD backend host (dev/prod) where the artifact is stored. |
| // If not provided, default is CIPD prod host. |
| Host string `protobuf:"bytes,3,opt,name=host,proto3" json:"host,omitempty"` |
| } |
| |
| func (x *Artifact_CIPD) Reset() { |
| *x = Artifact_CIPD{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_go_chromium_org_luci_provenance_api_snooperpb_v1_report_proto_msgTypes[7] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *Artifact_CIPD) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*Artifact_CIPD) ProtoMessage() {} |
| |
| func (x *Artifact_CIPD) ProtoReflect() protoreflect.Message { |
| mi := &file_go_chromium_org_luci_provenance_api_snooperpb_v1_report_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 Artifact_CIPD.ProtoReflect.Descriptor instead. |
| func (*Artifact_CIPD) Descriptor() ([]byte, []int) { |
| return file_go_chromium_org_luci_provenance_api_snooperpb_v1_report_proto_rawDescGZIP(), []int{0, 0} |
| } |
| |
| func (x *Artifact_CIPD) GetPackageName() string { |
| if x != nil { |
| return x.PackageName |
| } |
| return "" |
| } |
| |
| func (x *Artifact_CIPD) GetInstanceId() string { |
| if x != nil { |
| return x.InstanceId |
| } |
| return "" |
| } |
| |
| func (x *Artifact_CIPD) GetHost() string { |
| if x != nil { |
| return x.Host |
| } |
| return "" |
| } |
| |
| var File_go_chromium_org_luci_provenance_api_snooperpb_v1_report_proto protoreflect.FileDescriptor |
| |
| var file_go_chromium_org_luci_provenance_api_snooperpb_v1_report_proto_rawDesc = []byte{ |
| 0x0a, 0x3d, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, |
| 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x6e, 0x61, 0x6e, 0x63, |
| 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x73, 0x6e, 0x6f, 0x6f, 0x70, 0x65, 0x72, 0x70, 0x62, 0x2f, |
| 0x76, 0x31, 0x2f, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, |
| 0x14, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x2e, 0x73, 0x6e, 0x6f, 0x6f, |
| 0x70, 0x65, 0x72, 0x70, 0x62, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, |
| 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, |
| 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, |
| 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, |
| 0x6f, 0x74, 0x6f, 0x1a, 0x30, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, |
| 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x63, 0x69, 0x70, 0x64, 0x2f, 0x61, |
| 0x70, 0x69, 0x2f, 0x63, 0x69, 0x70, 0x64, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x70, 0x6f, 0x2e, |
| 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc1, 0x01, 0x0a, 0x08, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, |
| 0x63, 0x74, 0x12, 0x12, 0x0a, 0x03, 0x67, 0x63, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, |
| 0x00, 0x52, 0x03, 0x67, 0x63, 0x73, 0x12, 0x39, 0x0a, 0x04, 0x63, 0x69, 0x70, 0x64, 0x18, 0x02, |
| 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x6e, 0x61, 0x6e, 0x63, |
| 0x65, 0x2e, 0x73, 0x6e, 0x6f, 0x6f, 0x70, 0x65, 0x72, 0x70, 0x62, 0x2e, 0x41, 0x72, 0x74, 0x69, |
| 0x66, 0x61, 0x63, 0x74, 0x2e, 0x43, 0x49, 0x50, 0x44, 0x48, 0x00, 0x52, 0x04, 0x63, 0x69, 0x70, |
| 0x64, 0x1a, 0x5e, 0x0a, 0x04, 0x43, 0x49, 0x50, 0x44, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x61, 0x63, |
| 0x6b, 0x61, 0x67, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, |
| 0x0b, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, |
| 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, |
| 0x09, 0x52, 0x0a, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x12, 0x12, 0x0a, |
| 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, |
| 0x74, 0x42, 0x06, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x22, 0xd9, 0x01, 0x0a, 0x0a, 0x43, 0x69, |
| 0x70, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x71, 0x75, |
| 0x65, 0x73, 0x74, 0x6f, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, |
| 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x70, |
| 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, |
| 0x09, 0x52, 0x0b, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x10, |
| 0x0a, 0x03, 0x69, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x69, 0x69, 0x64, |
| 0x12, 0x1d, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x09, |
| 0x2e, 0x63, 0x69, 0x70, 0x64, 0x2e, 0x54, 0x61, 0x67, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x12, |
| 0x1d, 0x0a, 0x04, 0x72, 0x65, 0x66, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x09, 0x2e, |
| 0x63, 0x69, 0x70, 0x64, 0x2e, 0x52, 0x65, 0x66, 0x52, 0x04, 0x72, 0x65, 0x66, 0x73, 0x12, 0x35, |
| 0x0a, 0x08, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, |
| 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, |
| 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, 0x65, 0x76, |
| 0x65, 0x6e, 0x74, 0x54, 0x73, 0x22, 0xa5, 0x01, 0x0a, 0x09, 0x47, 0x69, 0x74, 0x52, 0x65, 0x70, |
| 0x6f, 0x72, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x6f, 0x72, |
| 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x65, 0x71, 0x75, 0x65, |
| 0x73, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x65, 0x70, 0x6f, 0x18, 0x02, |
| 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x72, 0x65, 0x70, 0x6f, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x6f, |
| 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x6f, 0x6d, 0x6d, |
| 0x69, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x65, 0x66, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, |
| 0x52, 0x04, 0x72, 0x65, 0x66, 0x73, 0x12, 0x35, 0x0a, 0x08, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, |
| 0x74, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, |
| 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x73, 0x22, 0xbc, 0x01, |
| 0x0a, 0x16, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x74, 0x61, 0x67, |
| 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3e, 0x0a, 0x0a, 0x74, 0x61, 0x73, 0x6b, |
| 0x5f, 0x73, 0x74, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x70, |
| 0x72, 0x6f, 0x76, 0x65, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x2e, 0x73, 0x6e, 0x6f, 0x6f, 0x70, 0x65, |
| 0x72, 0x70, 0x62, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x74, 0x61, 0x67, 0x65, 0x52, 0x09, 0x74, |
| 0x61, 0x73, 0x6b, 0x53, 0x74, 0x61, 0x67, 0x65, 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, |
| 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, |
| 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, |
| 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, |
| 0x6d, 0x70, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x63, 0x69, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, |
| 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x63, 0x69, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x70, 0x69, |
| 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x70, 0x69, 0x64, 0x22, 0x71, 0x0a, 0x1b, |
| 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x44, 0x69, |
| 0x67, 0x65, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x64, |
| 0x69, 0x67, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x69, 0x67, |
| 0x65, 0x73, 0x74, 0x12, 0x3a, 0x0a, 0x08, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x18, |
| 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x6e, 0x61, 0x6e, |
| 0x63, 0x65, 0x2e, 0x73, 0x6e, 0x6f, 0x6f, 0x70, 0x65, 0x72, 0x70, 0x62, 0x2e, 0x41, 0x72, 0x74, |
| 0x69, 0x66, 0x61, 0x63, 0x74, 0x52, 0x08, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x22, |
| 0x56, 0x0a, 0x11, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x43, 0x69, 0x70, 0x64, 0x52, 0x65, 0x71, |
| 0x75, 0x65, 0x73, 0x74, 0x12, 0x41, 0x0a, 0x0b, 0x63, 0x69, 0x70, 0x64, 0x5f, 0x72, 0x65, 0x70, |
| 0x6f, 0x72, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x70, 0x72, 0x6f, 0x76, |
| 0x65, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x2e, 0x73, 0x6e, 0x6f, 0x6f, 0x70, 0x65, 0x72, 0x70, 0x62, |
| 0x2e, 0x43, 0x69, 0x70, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x0a, 0x63, 0x69, 0x70, |
| 0x64, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x22, 0x52, 0x0a, 0x10, 0x52, 0x65, 0x70, 0x6f, 0x72, |
| 0x74, 0x47, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3e, 0x0a, 0x0a, 0x67, |
| 0x69, 0x74, 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, |
| 0x1f, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x2e, 0x73, 0x6e, 0x6f, |
| 0x6f, 0x70, 0x65, 0x72, 0x70, 0x62, 0x2e, 0x47, 0x69, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, |
| 0x52, 0x09, 0x67, 0x69, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2a, 0x80, 0x01, 0x0a, 0x09, |
| 0x54, 0x61, 0x73, 0x6b, 0x53, 0x74, 0x61, 0x67, 0x65, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x54, 0x41, |
| 0x47, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, |
| 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x54, 0x41, 0x52, 0x54, 0x45, 0x44, 0x10, 0x01, 0x12, 0x09, 0x0a, |
| 0x05, 0x46, 0x45, 0x54, 0x43, 0x48, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x4f, 0x4d, 0x50, |
| 0x49, 0x4c, 0x45, 0x10, 0x03, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x50, 0x4c, 0x4f, 0x41, 0x44, 0x10, |
| 0x04, 0x12, 0x13, 0x0a, 0x0f, 0x55, 0x50, 0x4c, 0x4f, 0x41, 0x44, 0x5f, 0x43, 0x4f, 0x4d, 0x50, |
| 0x4c, 0x45, 0x54, 0x45, 0x10, 0x05, 0x12, 0x08, 0x0a, 0x04, 0x54, 0x45, 0x53, 0x54, 0x10, 0x06, |
| 0x12, 0x0c, 0x0a, 0x08, 0x43, 0x4f, 0x4d, 0x50, 0x4c, 0x45, 0x54, 0x45, 0x10, 0x07, 0x32, 0xe4, |
| 0x02, 0x0a, 0x0a, 0x53, 0x65, 0x6c, 0x66, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x4d, 0x0a, |
| 0x0a, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x43, 0x69, 0x70, 0x64, 0x12, 0x27, 0x2e, 0x70, 0x72, |
| 0x6f, 0x76, 0x65, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x2e, 0x73, 0x6e, 0x6f, 0x6f, 0x70, 0x65, 0x72, |
| 0x70, 0x62, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x43, 0x69, 0x70, 0x64, 0x52, 0x65, 0x71, |
| 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, |
| 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x4b, 0x0a, 0x09, |
| 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x47, 0x69, 0x74, 0x12, 0x26, 0x2e, 0x70, 0x72, 0x6f, 0x76, |
| 0x65, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x2e, 0x73, 0x6e, 0x6f, 0x6f, 0x70, 0x65, 0x72, 0x70, 0x62, |
| 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x47, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, |
| 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, |
| 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x57, 0x0a, 0x0f, 0x52, 0x65, 0x70, |
| 0x6f, 0x72, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x74, 0x61, 0x67, 0x65, 0x12, 0x2c, 0x2e, 0x70, |
| 0x72, 0x6f, 0x76, 0x65, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x2e, 0x73, 0x6e, 0x6f, 0x6f, 0x70, 0x65, |
| 0x72, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x74, |
| 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, |
| 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, |
| 0x74, 0x79, 0x12, 0x61, 0x0a, 0x14, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x41, 0x72, 0x74, 0x69, |
| 0x66, 0x61, 0x63, 0x74, 0x44, 0x69, 0x67, 0x65, 0x73, 0x74, 0x12, 0x31, 0x2e, 0x70, 0x72, 0x6f, |
| 0x76, 0x65, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x2e, 0x73, 0x6e, 0x6f, 0x6f, 0x70, 0x65, 0x72, 0x70, |
| 0x62, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, |
| 0x44, 0x69, 0x67, 0x65, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, |
| 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, |
| 0x45, 0x6d, 0x70, 0x74, 0x79, 0x42, 0x3c, 0x5a, 0x3a, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, |
| 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x70, 0x72, |
| 0x6f, 0x76, 0x65, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x73, 0x6e, 0x6f, |
| 0x6f, 0x70, 0x65, 0x72, 0x70, 0x62, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x6e, 0x6f, 0x6f, 0x70, 0x65, |
| 0x72, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| } |
| |
| var ( |
| file_go_chromium_org_luci_provenance_api_snooperpb_v1_report_proto_rawDescOnce sync.Once |
| file_go_chromium_org_luci_provenance_api_snooperpb_v1_report_proto_rawDescData = file_go_chromium_org_luci_provenance_api_snooperpb_v1_report_proto_rawDesc |
| ) |
| |
| func file_go_chromium_org_luci_provenance_api_snooperpb_v1_report_proto_rawDescGZIP() []byte { |
| file_go_chromium_org_luci_provenance_api_snooperpb_v1_report_proto_rawDescOnce.Do(func() { |
| file_go_chromium_org_luci_provenance_api_snooperpb_v1_report_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_provenance_api_snooperpb_v1_report_proto_rawDescData) |
| }) |
| return file_go_chromium_org_luci_provenance_api_snooperpb_v1_report_proto_rawDescData |
| } |
| |
| var file_go_chromium_org_luci_provenance_api_snooperpb_v1_report_proto_enumTypes = make([]protoimpl.EnumInfo, 1) |
| var file_go_chromium_org_luci_provenance_api_snooperpb_v1_report_proto_msgTypes = make([]protoimpl.MessageInfo, 8) |
| var file_go_chromium_org_luci_provenance_api_snooperpb_v1_report_proto_goTypes = []interface{}{ |
| (TaskStage)(0), // 0: provenance.snooperpb.TaskStage |
| (*Artifact)(nil), // 1: provenance.snooperpb.Artifact |
| (*CipdReport)(nil), // 2: provenance.snooperpb.CipdReport |
| (*GitReport)(nil), // 3: provenance.snooperpb.GitReport |
| (*ReportTaskStageRequest)(nil), // 4: provenance.snooperpb.ReportTaskStageRequest |
| (*ReportArtifactDigestRequest)(nil), // 5: provenance.snooperpb.ReportArtifactDigestRequest |
| (*ReportCipdRequest)(nil), // 6: provenance.snooperpb.ReportCipdRequest |
| (*ReportGitRequest)(nil), // 7: provenance.snooperpb.ReportGitRequest |
| (*Artifact_CIPD)(nil), // 8: provenance.snooperpb.Artifact.CIPD |
| (*v1.Tag)(nil), // 9: cipd.Tag |
| (*v1.Ref)(nil), // 10: cipd.Ref |
| (*timestamppb.Timestamp)(nil), // 11: google.protobuf.Timestamp |
| (*emptypb.Empty)(nil), // 12: google.protobuf.Empty |
| } |
| var file_go_chromium_org_luci_provenance_api_snooperpb_v1_report_proto_depIdxs = []int32{ |
| 8, // 0: provenance.snooperpb.Artifact.cipd:type_name -> provenance.snooperpb.Artifact.CIPD |
| 9, // 1: provenance.snooperpb.CipdReport.tags:type_name -> cipd.Tag |
| 10, // 2: provenance.snooperpb.CipdReport.refs:type_name -> cipd.Ref |
| 11, // 3: provenance.snooperpb.CipdReport.event_ts:type_name -> google.protobuf.Timestamp |
| 11, // 4: provenance.snooperpb.GitReport.event_ts:type_name -> google.protobuf.Timestamp |
| 0, // 5: provenance.snooperpb.ReportTaskStageRequest.task_stage:type_name -> provenance.snooperpb.TaskStage |
| 11, // 6: provenance.snooperpb.ReportTaskStageRequest.timestamp:type_name -> google.protobuf.Timestamp |
| 1, // 7: provenance.snooperpb.ReportArtifactDigestRequest.artifact:type_name -> provenance.snooperpb.Artifact |
| 2, // 8: provenance.snooperpb.ReportCipdRequest.cipd_report:type_name -> provenance.snooperpb.CipdReport |
| 3, // 9: provenance.snooperpb.ReportGitRequest.git_report:type_name -> provenance.snooperpb.GitReport |
| 6, // 10: provenance.snooperpb.SelfReport.ReportCipd:input_type -> provenance.snooperpb.ReportCipdRequest |
| 7, // 11: provenance.snooperpb.SelfReport.ReportGit:input_type -> provenance.snooperpb.ReportGitRequest |
| 4, // 12: provenance.snooperpb.SelfReport.ReportTaskStage:input_type -> provenance.snooperpb.ReportTaskStageRequest |
| 5, // 13: provenance.snooperpb.SelfReport.ReportArtifactDigest:input_type -> provenance.snooperpb.ReportArtifactDigestRequest |
| 12, // 14: provenance.snooperpb.SelfReport.ReportCipd:output_type -> google.protobuf.Empty |
| 12, // 15: provenance.snooperpb.SelfReport.ReportGit:output_type -> google.protobuf.Empty |
| 12, // 16: provenance.snooperpb.SelfReport.ReportTaskStage:output_type -> google.protobuf.Empty |
| 12, // 17: provenance.snooperpb.SelfReport.ReportArtifactDigest:output_type -> google.protobuf.Empty |
| 14, // [14:18] is the sub-list for method output_type |
| 10, // [10:14] 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_go_chromium_org_luci_provenance_api_snooperpb_v1_report_proto_init() } |
| func file_go_chromium_org_luci_provenance_api_snooperpb_v1_report_proto_init() { |
| if File_go_chromium_org_luci_provenance_api_snooperpb_v1_report_proto != nil { |
| return |
| } |
| if !protoimpl.UnsafeEnabled { |
| file_go_chromium_org_luci_provenance_api_snooperpb_v1_report_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*Artifact); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_go_chromium_org_luci_provenance_api_snooperpb_v1_report_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*CipdReport); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_go_chromium_org_luci_provenance_api_snooperpb_v1_report_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*GitReport); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_go_chromium_org_luci_provenance_api_snooperpb_v1_report_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*ReportTaskStageRequest); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_go_chromium_org_luci_provenance_api_snooperpb_v1_report_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*ReportArtifactDigestRequest); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_go_chromium_org_luci_provenance_api_snooperpb_v1_report_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*ReportCipdRequest); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_go_chromium_org_luci_provenance_api_snooperpb_v1_report_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*ReportGitRequest); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_go_chromium_org_luci_provenance_api_snooperpb_v1_report_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*Artifact_CIPD); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| } |
| file_go_chromium_org_luci_provenance_api_snooperpb_v1_report_proto_msgTypes[0].OneofWrappers = []interface{}{ |
| (*Artifact_Gcs)(nil), |
| (*Artifact_Cipd)(nil), |
| } |
| type x struct{} |
| out := protoimpl.TypeBuilder{ |
| File: protoimpl.DescBuilder{ |
| GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| RawDescriptor: file_go_chromium_org_luci_provenance_api_snooperpb_v1_report_proto_rawDesc, |
| NumEnums: 1, |
| NumMessages: 8, |
| NumExtensions: 0, |
| NumServices: 1, |
| }, |
| GoTypes: file_go_chromium_org_luci_provenance_api_snooperpb_v1_report_proto_goTypes, |
| DependencyIndexes: file_go_chromium_org_luci_provenance_api_snooperpb_v1_report_proto_depIdxs, |
| EnumInfos: file_go_chromium_org_luci_provenance_api_snooperpb_v1_report_proto_enumTypes, |
| MessageInfos: file_go_chromium_org_luci_provenance_api_snooperpb_v1_report_proto_msgTypes, |
| }.Build() |
| File_go_chromium_org_luci_provenance_api_snooperpb_v1_report_proto = out.File |
| file_go_chromium_org_luci_provenance_api_snooperpb_v1_report_proto_rawDesc = nil |
| file_go_chromium_org_luci_provenance_api_snooperpb_v1_report_proto_goTypes = nil |
| file_go_chromium_org_luci_provenance_api_snooperpb_v1_report_proto_depIdxs = nil |
| } |