protopb

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2026 License: Apache-2.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Strategy_name = map[int32]string{
		0: "DEFAULT",
		1: "REBASE",
		2: "SQUASH_REBASE",
		3: "MERGE",
		4: "PROMOTE",
	}
	Strategy_value = map[string]int32{
		"DEFAULT":       0,
		"REBASE":        1,
		"SQUASH_REBASE": 2,
		"MERGE":         3,
		"PROMOTE":       4,
	}
)

Enum value maps for Strategy.

View Source
var File_mergestrategy_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Strategy

type Strategy int32

Strategy defines the possible source control integration methods — how a change is integrated into the target branch.

This is the shared wire contract for merge strategy, reused across SubmitQueue and other repo-local domains — the proto-level analog of the platform/base/mergestrategy Go entity. Domains import it rather than redefining their own.

const (
	// Default strategy (let the server decide based on configuration).
	Strategy_DEFAULT Strategy = 0
	// Rebase commits onto the target branch before landing.
	Strategy_REBASE Strategy = 1
	// Same as REBASE but squash commits into a single commit before rebase.
	Strategy_SQUASH_REBASE Strategy = 2
	// Merge commits into the target branch by creating a separate merge commit, preserving commit history along with hashes.
	Strategy_MERGE Strategy = 3
	// Integrate the exact revision as-is, with no content transform — advance the target branch to an already-existing
	// commit rather than producing new revisions. The implementer maps it to its backend: git fast-forward, Mercurial
	// bookmark advance, Subversion/Perforce copy. Used to promote an already-landed/verified commit onto another branch.
	Strategy_PROMOTE Strategy = 4
)

func (Strategy) Descriptor

func (Strategy) Descriptor() protoreflect.EnumDescriptor

func (Strategy) Enum

func (x Strategy) Enum() *Strategy

func (Strategy) EnumDescriptor deprecated

func (Strategy) EnumDescriptor() ([]byte, []int)

Deprecated: Use Strategy.Descriptor instead.

func (Strategy) Number

func (x Strategy) Number() protoreflect.EnumNumber

func (Strategy) String

func (x Strategy) String() string

func (Strategy) Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL