{"modulePath":"github.com/uber/submitqueue","version":"v0.2.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package protopb\n\n## Variables\n\n```go\nvar (\n\tOutcome_name = map[int32]string{\n\t\t0: \"OUTCOME_UNSPECIFIED\",\n\t\t1: \"SUCCEEDED\",\n\t\t2: \"FAILED\",\n\t}\n\tOutcome_value = map[string]int32{\n\t\t\"OUTCOME_UNSPECIFIED\": 0,\n\t\t\"SUCCEEDED\":           1,\n\t\t\"FAILED\":              2,\n\t}\n)\n```\nEnum value maps for Outcome.\n\n```go\nvar File_merge_proto protoreflect.FileDescriptor\n```\n\n## Types\n\n```go\ntype MergeRequest struct {\n\n\t// id is the client-owned correlation id for this request (one per request).\n\t// Runway echoes it back on the result unchanged.\n\tId string `protobuf:\"bytes,1,opt,name=id,proto3\" json:\"id,omitempty\"`\n\t// queue_name is the caller-provided queue name the request belongs to.\n\t// Runway resolves the merge target and provider config per-queue from this\n\t// name; no target ref is passed.\n\tQueueName string `protobuf:\"bytes,2,opt,name=queue_name,json=queueName,proto3\" json:\"queue_name,omitempty\"`\n\t// steps is the ordered application sequence: in-flight steps first, the\n\t// candidate last. A single-element list expresses \"candidate vs merge\n\t// target\".\n\tSteps []*MergeStep `protobuf:\"bytes,3,rep,name=steps,proto3\" json:\"steps,omitempty\"`\n\t// contains filtered or unexported fields\n}\n```\nMergeRequest is the payload a client publishes to one of Runway's merge queues: the merge-conflict-check topic for a dry-run check, the merge topic for a committing merge. The id is owned by the client so it can record the in-flight work before publishing and correlate the asynchronous result; Runway echoes it back unchanged.\n\n```go\nfunc (*MergeRequest) Descriptor() ([]byte, []int)\n```\nDeprecated: Use MergeRequest.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *MergeRequest) GetId() string\n```\n\n```go\nfunc (x *MergeRequest) GetQueueName() string\n```\n\n```go\nfunc (x *MergeRequest) GetSteps() []*MergeStep\n```\n\n```go\nfunc (*MergeRequest) ProtoMessage()\n```\n\n```go\nfunc (x *MergeRequest) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *MergeRequest) Reset()\n```\n\n```go\nfunc (x *MergeRequest) String() string\n```\n\n```go\ntype MergeResult struct {\n\n\t// id echoes the client-owned correlation id from the request.\n\tId string `protobuf:\"bytes,1,opt,name=id,proto3\" json:\"id,omitempty\"`\n\t// outcome is SUCCEEDED if the whole ordered step sequence applied cleanly\n\t// (mergeable for a dry-run check, merged for a committing merge), FAILED\n\t// otherwise.\n\tOutcome Outcome `protobuf:\"varint,2,opt,name=outcome,proto3,enum=uber.runway.messagequeue.Outcome\" json:\"outcome,omitempty\"`\n\t// reason is a human-readable explanation when outcome is FAILED. Empty on\n\t// success.\n\tReason string `protobuf:\"bytes,3,opt,name=reason,proto3\" json:\"reason,omitempty\"`\n\t// steps optionally reports per-step outcomes, in request order. A committing\n\t// merge populates each step's outputs with the revisions it produced; a\n\t// dry-run check leaves them empty.\n\tSteps []*StepResult `protobuf:\"bytes,4,rep,name=steps,proto3\" json:\"steps,omitempty\"`\n\t// contains filtered or unexported fields\n}\n```\nMergeResult is the payload Runway publishes to the corresponding signal queue (merge-conflict-check-signal for a check, merge-signal for a merge) once a request completes.\n\n```go\nfunc (*MergeResult) Descriptor() ([]byte, []int)\n```\nDeprecated: Use MergeResult.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *MergeResult) GetId() string\n```\n\n```go\nfunc (x *MergeResult) GetOutcome() Outcome\n```\n\n```go\nfunc (x *MergeResult) GetReason() string\n```\n\n```go\nfunc (x *MergeResult) GetSteps() []*StepResult\n```\n\n```go\nfunc (*MergeResult) ProtoMessage()\n```\n\n```go\nfunc (x *MergeResult) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *MergeResult) Reset()\n```\n\n```go\nfunc (x *MergeResult) String() string\n```\n\n```go\ntype MergeStep struct {\n\n\t// step_id is an opaque, caller-assigned identifier for this step. Runway\n\t// treats it as an attribution token only -- it echoes it back per-step in\n\t// StepResult so a multi-step result is attributable -- and never interprets\n\t// its contents.\n\tStepId string `protobuf:\"bytes,1,opt,name=step_id,json=stepId,proto3\" json:\"step_id,omitempty\"`\n\t// changes are the code change(s) to apply for this step.\n\tChanges []*protopb.Change `protobuf:\"bytes,2,rep,name=changes,proto3\" json:\"changes,omitempty\"`\n\t// strategy is how this step's changes are integrated into the merge target.\n\tStrategy protopb1.Strategy `protobuf:\"varint,3,opt,name=strategy,proto3,enum=uber.base.mergestrategy.Strategy\" json:\"strategy,omitempty\"`\n\t// contains filtered or unexported fields\n}\n```\nMergeStep is one step of an ordered merge: a single set of change(s) applied with a strategy. Runway applies the steps of a request in order on top of the merge target; the ordering encodes the base-layering (earlier steps are the in-flight base, the last step is the candidate).\n\n```go\nfunc (*MergeStep) Descriptor() ([]byte, []int)\n```\nDeprecated: Use MergeStep.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *MergeStep) GetChanges() []*protopb.Change\n```\n\n```go\nfunc (x *MergeStep) GetStepId() string\n```\n\n```go\nfunc (x *MergeStep) GetStrategy() protopb1.Strategy\n```\n\n```go\nfunc (*MergeStep) ProtoMessage()\n```\n\n```go\nfunc (x *MergeStep) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *MergeStep) Reset()\n```\n\n```go\nfunc (x *MergeStep) String() string\n```\n\n```go\ntype Outcome int32\n```\nOutcome is the overall result of applying a MergeRequest's ordered step sequence.\n\n```go\nconst (\n\t// OUTCOME_UNSPECIFIED is the zero value; a well-formed result never uses it.\n\tOutcome_OUTCOME_UNSPECIFIED Outcome = 0\n\t// SUCCEEDED means the whole sequence applied cleanly: mergeable for a\n\t// dry-run check, merged for a committing merge.\n\tOutcome_SUCCEEDED Outcome = 1\n\t// FAILED means the sequence could not be applied: a conflict for a dry-run\n\t// check, a failed apply for a committing merge.\n\tOutcome_FAILED Outcome = 2\n)\n```\n\n```go\nfunc (Outcome) Descriptor() protoreflect.EnumDescriptor\n```\n\n```go\nfunc (x Outcome) Enum() *Outcome\n```\n\n```go\nfunc (Outcome) EnumDescriptor() ([]byte, []int)\n```\nDeprecated: Use Outcome.Descriptor instead.\n\n```go\nfunc (x Outcome) Number() protoreflect.EnumNumber\n```\n\n```go\nfunc (x Outcome) String() string\n```\n\n```go\nfunc (Outcome) Type() protoreflect.EnumType\n```\n\n```go\ntype StepOutput struct {\n\n\t// id is the VCS-neutral revision identifier -- a git commit SHA, a Mercurial\n\t// changeset hash, a Subversion revision number, a Perforce changelist, and so\n\t// on.\n\tId string `protobuf:\"bytes,1,opt,name=id,proto3\" json:\"id,omitempty\"` // (room to grow: author, committed_at, parent, ...)\n\t// contains filtered or unexported fields\n}\n```\nStepOutput is a single output a merge step produced on the merge target.\n\n```go\nfunc (*StepOutput) Descriptor() ([]byte, []int)\n```\nDeprecated: Use StepOutput.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *StepOutput) GetId() string\n```\n\n```go\nfunc (*StepOutput) ProtoMessage()\n```\n\n```go\nfunc (x *StepOutput) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *StepOutput) Reset()\n```\n\n```go\nfunc (x *StepOutput) String() string\n```\n\n```go\ntype StepResult struct {\n\n\t// step_id echoes the step_id of the step this result is for.\n\tStepId string `protobuf:\"bytes,1,opt,name=step_id,json=stepId,proto3\" json:\"step_id,omitempty\"`\n\t// outputs are the revisions this step produced on the merge target, in\n\t// application order (the order the step created them on the target). Empty\n\t// for a dry-run check, for a change already present on the target, or for a\n\t// step that failed to apply.\n\tOutputs []*StepOutput `protobuf:\"bytes,2,rep,name=outputs,proto3\" json:\"outputs,omitempty\"`\n\t// reason is a human-readable explanation when the step failed to apply.\n\t// Empty on success.\n\tReason string `protobuf:\"bytes,3,opt,name=reason,proto3\" json:\"reason,omitempty\"`\n\t// contains filtered or unexported fields\n}\n```\nStepResult reports what happened to a single MergeStep, so a multi-step result is attributable to the step that produced (or failed to produce) it.\n\n```go\nfunc (*StepResult) Descriptor() ([]byte, []int)\n```\nDeprecated: Use StepResult.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *StepResult) GetOutputs() []*StepOutput\n```\n\n```go\nfunc (x *StepResult) GetReason() string\n```\n\n```go\nfunc (x *StepResult) GetStepId() string\n```\n\n```go\nfunc (*StepResult) ProtoMessage()\n```\n\n```go\nfunc (x *StepResult) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *StepResult) Reset()\n```\n\n```go\nfunc (x *StepResult) String() string\n```\n\n","path":"github.com/uber/submitqueue/api/runway/messagequeue/protopb","name":"protopb","synopsis":"","isRedistributable":true}
