luci: go.chromium.org/luci/buildbucket/proto Index | Files

package buildbucketpb

import "go.chromium.org/luci/buildbucket/proto"

Package buildbucketpb is generated from Buildbucket .proto files.

It contains pRPC and mock implementations of Builds RPC service.

See also ../protoutil for utility functions for types in this package.

Index

Package Files

build.pb.go common.pb.go doc.go gen.go launcher.pb.go notification.pb.go pb.discovery.go project_config.pb.go rpc.mock.pb.go rpc.pb.go service_config.pb.go step.pb.go

Variables

var Acl_Role_name = map[int32]string{
    0:  "READER",
    1:  "SCHEDULER",
    2:  "WRITER",
}
var Acl_Role_value = map[string]int32{
    "READER":    0,
    "SCHEDULER": 1,
    "WRITER":    2,
}
var Status_name = map[int32]string{
    0:  "STATUS_UNSPECIFIED",
    1:  "SCHEDULED",
    2:  "STARTED",
    4:  "ENDED_MASK",
    12: "SUCCESS",
    20: "FAILURE",
    36: "INFRA_FAILURE",
    68: "CANCELED",
}
var Status_value = map[string]int32{
    "STATUS_UNSPECIFIED": 0,
    "SCHEDULED":          1,
    "STARTED":            2,
    "ENDED_MASK":         4,
    "SUCCESS":            12,
    "FAILURE":            20,
    "INFRA_FAILURE":      36,
    "CANCELED":           68,
}
var Toggle_name = map[int32]string{
    0:  "UNSET",
    1:  "YES",
    2:  "NO",
}
var Toggle_value = map[string]int32{
    "UNSET": 0,
    "YES":   1,
    "NO":    2,
}
var Trinary_name = map[int32]string{
    0:  "UNSET",
    1:  "YES",
    2:  "NO",
}
var Trinary_value = map[string]int32{
    "UNSET": 0,
    "YES":   1,
    "NO":    2,
}

func FileDescriptorSet Uses

func FileDescriptorSet() *descriptor.FileDescriptorSet

FileDescriptorSet returns a descriptor set for this proto package, which includes all defined services, and all transitive dependencies.

Will not return nil.

Do NOT modify the returned descriptor.

func RegisterBuildsServer Uses

func RegisterBuildsServer(s prpc.Registrar, srv BuildsServer)

type Acl Uses

type Acl struct {
    // Role denotes a list of actions that an identity can perform.
    Role Acl_Role `protobuf:"varint,1,opt,name=role,proto3,enum=buildbucket.Acl_Role" json:"role,omitempty"`
    // Name of the group defined in the auth service.
    Group string `protobuf:"bytes,2,opt,name=group,proto3" json:"group,omitempty"`
    // An email address or a full identity string "kind:name". See auth service
    // on kinds of identities. Anonymous users are "anonymous:anonymous".
    // Either identity or group must be present, not both.
    Identity             string   `protobuf:"bytes,3,opt,name=identity,proto3" json:"identity,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

A single access control rule.

func (*Acl) Descriptor Uses

func (*Acl) Descriptor() ([]byte, []int)

func (*Acl) GetGroup Uses

func (m *Acl) GetGroup() string

func (*Acl) GetIdentity Uses

func (m *Acl) GetIdentity() string

func (*Acl) GetRole Uses

func (m *Acl) GetRole() Acl_Role

func (*Acl) ProtoMessage Uses

func (*Acl) ProtoMessage()

func (*Acl) Reset Uses

func (m *Acl) Reset()

func (*Acl) String Uses

func (m *Acl) String() string

func (*Acl) XXX_DiscardUnknown Uses

func (m *Acl) XXX_DiscardUnknown()

func (*Acl) XXX_Marshal Uses

func (m *Acl) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Acl) XXX_Merge Uses

func (m *Acl) XXX_Merge(src proto.Message)

func (*Acl) XXX_Size Uses

func (m *Acl) XXX_Size() int

func (*Acl) XXX_Unmarshal Uses

func (m *Acl) XXX_Unmarshal(b []byte) error

type AclSet Uses

type AclSet struct {
    // A name of the ACL set. Required. Must match regex '^[a-z0-9_]+$'.
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // List of access control rules.
    // The order does not matter.
    Acls                 []*Acl   `protobuf:"bytes,2,rep,name=acls,proto3" json:"acls,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

A set of Acl messages. Can be referenced in a bucket by name.

func (*AclSet) Descriptor Uses

func (*AclSet) Descriptor() ([]byte, []int)

func (*AclSet) GetAcls Uses

func (m *AclSet) GetAcls() []*Acl

func (*AclSet) GetName Uses

func (m *AclSet) GetName() string

func (*AclSet) ProtoMessage Uses

func (*AclSet) ProtoMessage()

func (*AclSet) Reset Uses

func (m *AclSet) Reset()

func (*AclSet) String Uses

func (m *AclSet) String() string

func (*AclSet) XXX_DiscardUnknown Uses

func (m *AclSet) XXX_DiscardUnknown()

func (*AclSet) XXX_Marshal Uses

func (m *AclSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AclSet) XXX_Merge Uses

func (m *AclSet) XXX_Merge(src proto.Message)

func (*AclSet) XXX_Size Uses

func (m *AclSet) XXX_Size() int

func (*AclSet) XXX_Unmarshal Uses

func (m *AclSet) XXX_Unmarshal(b []byte) error

type Acl_Role Uses

type Acl_Role int32

A buiildbucket user role. Defines what a user can do.

The order of enum member tags is important. A role with a higher tag number can perform any action that a role with a lower tag number can perform.

const (
    // Can do read-only operations, such as search for builds.
    Acl_READER Acl_Role = 0
    // Same as READER + can schedule and cancel builds.
    Acl_SCHEDULER Acl_Role = 1
    // Can do all write operations.
    Acl_WRITER Acl_Role = 2
)

func (Acl_Role) EnumDescriptor Uses

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

func (Acl_Role) String Uses

func (x Acl_Role) String() string

type BBAgentArgs Uses

type BBAgentArgs struct {
    // Path to the user executable.
    //
    // Required.
    ExecutablePath string `protobuf:"bytes,1,opt,name=executable_path,json=executablePath,proto3" json:"executable_path,omitempty"`
    // Path to a directory where each subdirectory is a cache dir.
    //
    // Required.
    CacheDir string `protobuf:"bytes,2,opt,name=cache_dir,json=cacheDir,proto3" json:"cache_dir,omitempty"`
    // List of Gerrit hosts to force git authentication for.
    //
    // By default public hosts are accessed anonymously, and the anonymous access
    // has very low quota. Context needs to know all such hostnames in advance to
    // be able to force authenticated access to them.
    KnownPublicGerritHosts []string `protobuf:"bytes,3,rep,name=known_public_gerrit_hosts,json=knownPublicGerritHosts,proto3" json:"known_public_gerrit_hosts,omitempty"`
    // Initial state of the build, including immutable state such as id and input
    // properties.
    Build                *Build   `protobuf:"bytes,4,opt,name=build,proto3" json:"build,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

Arguments for bbagent command.

All paths are relateive to bbagent's working directory.

func (*BBAgentArgs) Descriptor Uses

func (*BBAgentArgs) Descriptor() ([]byte, []int)

func (*BBAgentArgs) GetBuild Uses

func (m *BBAgentArgs) GetBuild() *Build

func (*BBAgentArgs) GetCacheDir Uses

func (m *BBAgentArgs) GetCacheDir() string

func (*BBAgentArgs) GetExecutablePath Uses

func (m *BBAgentArgs) GetExecutablePath() string

func (*BBAgentArgs) GetKnownPublicGerritHosts Uses

func (m *BBAgentArgs) GetKnownPublicGerritHosts() []string

func (*BBAgentArgs) ProtoMessage Uses

func (*BBAgentArgs) ProtoMessage()

func (*BBAgentArgs) Reset Uses

func (m *BBAgentArgs) Reset()

func (*BBAgentArgs) String Uses

func (m *BBAgentArgs) String() string

func (*BBAgentArgs) XXX_DiscardUnknown Uses

func (m *BBAgentArgs) XXX_DiscardUnknown()

func (*BBAgentArgs) XXX_Marshal Uses

func (m *BBAgentArgs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BBAgentArgs) XXX_Merge Uses

func (m *BBAgentArgs) XXX_Merge(src proto.Message)

func (*BBAgentArgs) XXX_Size Uses

func (m *BBAgentArgs) XXX_Size() int

func (*BBAgentArgs) XXX_Unmarshal Uses

func (m *BBAgentArgs) XXX_Unmarshal(b []byte) error

type BatchRequest Uses

type BatchRequest struct {
    // Requests to execute in a single batch.
    //
    // All requests are executed in their own individual transactions.
    // BatchRequest as a whole is not transactional.
    // Mutations are executed before read-only requests.
    Requests             []*BatchRequest_Request `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"`
    XXX_NoUnkeyedLiteral struct{}                `json:"-"`
    XXX_unrecognized     []byte                  `json:"-"`
    XXX_sizecache        int32                   `json:"-"`
}

A request message for Batch rpc.

func (*BatchRequest) Descriptor Uses

func (*BatchRequest) Descriptor() ([]byte, []int)

func (*BatchRequest) GetRequests Uses

func (m *BatchRequest) GetRequests() []*BatchRequest_Request

func (*BatchRequest) ProtoMessage Uses

func (*BatchRequest) ProtoMessage()

func (*BatchRequest) Reset Uses

func (m *BatchRequest) Reset()

func (*BatchRequest) String Uses

func (m *BatchRequest) String() string

func (*BatchRequest) XXX_DiscardUnknown Uses

func (m *BatchRequest) XXX_DiscardUnknown()

func (*BatchRequest) XXX_Marshal Uses

func (m *BatchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BatchRequest) XXX_Merge Uses

func (m *BatchRequest) XXX_Merge(src proto.Message)

func (*BatchRequest) XXX_Size Uses

func (m *BatchRequest) XXX_Size() int

func (*BatchRequest) XXX_Unmarshal Uses

func (m *BatchRequest) XXX_Unmarshal(b []byte) error

type BatchRequest_Request Uses

type BatchRequest_Request struct {
    // Types that are valid to be assigned to Request:
    //	*BatchRequest_Request_GetBuild
    //	*BatchRequest_Request_SearchBuilds
    //	*BatchRequest_Request_ScheduleBuild
    //	*BatchRequest_Request_CancelBuild
    Request              isBatchRequest_Request_Request `protobuf_oneof:"request"`
    XXX_NoUnkeyedLiteral struct{}                       `json:"-"`
    XXX_unrecognized     []byte                         `json:"-"`
    XXX_sizecache        int32                          `json:"-"`
}

One request in a batch.

func (*BatchRequest_Request) Descriptor Uses

func (*BatchRequest_Request) Descriptor() ([]byte, []int)

func (*BatchRequest_Request) GetCancelBuild Uses

func (m *BatchRequest_Request) GetCancelBuild() *CancelBuildRequest

func (*BatchRequest_Request) GetGetBuild Uses

func (m *BatchRequest_Request) GetGetBuild() *GetBuildRequest

func (*BatchRequest_Request) GetRequest Uses

func (m *BatchRequest_Request) GetRequest() isBatchRequest_Request_Request

func (*BatchRequest_Request) GetScheduleBuild Uses

func (m *BatchRequest_Request) GetScheduleBuild() *ScheduleBuildRequest

func (*BatchRequest_Request) GetSearchBuilds Uses

func (m *BatchRequest_Request) GetSearchBuilds() *SearchBuildsRequest

func (*BatchRequest_Request) ProtoMessage Uses

func (*BatchRequest_Request) ProtoMessage()

func (*BatchRequest_Request) Reset Uses

func (m *BatchRequest_Request) Reset()

func (*BatchRequest_Request) String Uses

func (m *BatchRequest_Request) String() string

func (*BatchRequest_Request) XXX_DiscardUnknown Uses

func (m *BatchRequest_Request) XXX_DiscardUnknown()

func (*BatchRequest_Request) XXX_Marshal Uses

func (m *BatchRequest_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BatchRequest_Request) XXX_Merge Uses

func (m *BatchRequest_Request) XXX_Merge(src proto.Message)

func (*BatchRequest_Request) XXX_OneofWrappers Uses

func (*BatchRequest_Request) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*BatchRequest_Request) XXX_Size Uses

func (m *BatchRequest_Request) XXX_Size() int

func (*BatchRequest_Request) XXX_Unmarshal Uses

func (m *BatchRequest_Request) XXX_Unmarshal(b []byte) error

type BatchRequest_Request_CancelBuild Uses

type BatchRequest_Request_CancelBuild struct {
    CancelBuild *CancelBuildRequest `protobuf:"bytes,4,opt,name=cancel_build,json=cancelBuild,proto3,oneof"`
}

type BatchRequest_Request_GetBuild Uses

type BatchRequest_Request_GetBuild struct {
    GetBuild *GetBuildRequest `protobuf:"bytes,1,opt,name=get_build,json=getBuild,proto3,oneof"`
}

type BatchRequest_Request_ScheduleBuild Uses

type BatchRequest_Request_ScheduleBuild struct {
    ScheduleBuild *ScheduleBuildRequest `protobuf:"bytes,3,opt,name=schedule_build,json=scheduleBuild,proto3,oneof"`
}

type BatchRequest_Request_SearchBuilds Uses

type BatchRequest_Request_SearchBuilds struct {
    SearchBuilds *SearchBuildsRequest `protobuf:"bytes,2,opt,name=search_builds,json=searchBuilds,proto3,oneof"`
}

type BatchResponse Uses

type BatchResponse struct {
    // Responses in the same order as BatchRequest.requests.
    Responses            []*BatchResponse_Response `protobuf:"bytes,1,rep,name=responses,proto3" json:"responses,omitempty"`
    XXX_NoUnkeyedLiteral struct{}                  `json:"-"`
    XXX_unrecognized     []byte                    `json:"-"`
    XXX_sizecache        int32                     `json:"-"`
}

A response message for Batch rpc.

func (*BatchResponse) Descriptor Uses

func (*BatchResponse) Descriptor() ([]byte, []int)

func (*BatchResponse) GetResponses Uses

func (m *BatchResponse) GetResponses() []*BatchResponse_Response

func (*BatchResponse) ProtoMessage Uses

func (*BatchResponse) ProtoMessage()

func (*BatchResponse) Reset Uses

func (m *BatchResponse) Reset()

func (*BatchResponse) String Uses

func (m *BatchResponse) String() string

func (*BatchResponse) XXX_DiscardUnknown Uses

func (m *BatchResponse) XXX_DiscardUnknown()

func (*BatchResponse) XXX_Marshal Uses

func (m *BatchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BatchResponse) XXX_Merge Uses

func (m *BatchResponse) XXX_Merge(src proto.Message)

func (*BatchResponse) XXX_Size Uses

func (m *BatchResponse) XXX_Size() int

func (*BatchResponse) XXX_Unmarshal Uses

func (m *BatchResponse) XXX_Unmarshal(b []byte) error

type BatchResponse_Response Uses

type BatchResponse_Response struct {
    // Types that are valid to be assigned to Response:
    //	*BatchResponse_Response_GetBuild
    //	*BatchResponse_Response_SearchBuilds
    //	*BatchResponse_Response_ScheduleBuild
    //	*BatchResponse_Response_CancelBuild
    //	*BatchResponse_Response_Error
    Response             isBatchResponse_Response_Response `protobuf_oneof:"response"`
    XXX_NoUnkeyedLiteral struct{}                          `json:"-"`
    XXX_unrecognized     []byte                            `json:"-"`
    XXX_sizecache        int32                             `json:"-"`
}

Response a BatchRequest.Response.

func (*BatchResponse_Response) Descriptor Uses

func (*BatchResponse_Response) Descriptor() ([]byte, []int)

func (*BatchResponse_Response) GetCancelBuild Uses

func (m *BatchResponse_Response) GetCancelBuild() *Build

func (*BatchResponse_Response) GetError Uses

func (m *BatchResponse_Response) GetError() *status.Status

func (*BatchResponse_Response) GetGetBuild Uses

func (m *BatchResponse_Response) GetGetBuild() *Build

func (*BatchResponse_Response) GetResponse Uses

func (m *BatchResponse_Response) GetResponse() isBatchResponse_Response_Response

func (*BatchResponse_Response) GetScheduleBuild Uses

func (m *BatchResponse_Response) GetScheduleBuild() *Build

func (*BatchResponse_Response) GetSearchBuilds Uses

func (m *BatchResponse_Response) GetSearchBuilds() *SearchBuildsResponse

func (*BatchResponse_Response) ProtoMessage Uses

func (*BatchResponse_Response) ProtoMessage()

func (*BatchResponse_Response) Reset Uses

func (m *BatchResponse_Response) Reset()

func (*BatchResponse_Response) String Uses

func (m *BatchResponse_Response) String() string

func (*BatchResponse_Response) XXX_DiscardUnknown Uses

func (m *BatchResponse_Response) XXX_DiscardUnknown()

func (*BatchResponse_Response) XXX_Marshal Uses

func (m *BatchResponse_Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BatchResponse_Response) XXX_Merge Uses

func (m *BatchResponse_Response) XXX_Merge(src proto.Message)

func (*BatchResponse_Response) XXX_OneofWrappers Uses

func (*BatchResponse_Response) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*BatchResponse_Response) XXX_Size Uses

func (m *BatchResponse_Response) XXX_Size() int

func (*BatchResponse_Response) XXX_Unmarshal Uses

func (m *BatchResponse_Response) XXX_Unmarshal(b []byte) error

type BatchResponse_Response_CancelBuild Uses

type BatchResponse_Response_CancelBuild struct {
    CancelBuild *Build `protobuf:"bytes,4,opt,name=cancel_build,json=cancelBuild,proto3,oneof"`
}

type BatchResponse_Response_Error Uses

type BatchResponse_Response_Error struct {
    Error *status.Status `protobuf:"bytes,100,opt,name=error,proto3,oneof"`
}

type BatchResponse_Response_GetBuild Uses

type BatchResponse_Response_GetBuild struct {
    GetBuild *Build `protobuf:"bytes,1,opt,name=get_build,json=getBuild,proto3,oneof"`
}

type BatchResponse_Response_ScheduleBuild Uses

type BatchResponse_Response_ScheduleBuild struct {
    ScheduleBuild *Build `protobuf:"bytes,3,opt,name=schedule_build,json=scheduleBuild,proto3,oneof"`
}

type BatchResponse_Response_SearchBuilds Uses

type BatchResponse_Response_SearchBuilds struct {
    SearchBuilds *SearchBuildsResponse `protobuf:"bytes,2,opt,name=search_builds,json=searchBuilds,proto3,oneof"`
}

type Bucket Uses

type Bucket struct {
    // Name of the bucket. Names are unique within one instance of buildbucket.
    // If another project already uses this name, a config will be rejected.
    // Name reservation is first-come first-serve.
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // List of access control rules for the bucket.
    // The order does not matter.
    Acls []*Acl `protobuf:"bytes,2,rep,name=acls,proto3" json:"acls,omitempty"`
    // A list of ACL set names. Each ACL in each referenced ACL set will be
    // included in this bucket.
    // The order does not matter.
    AclSets []string `protobuf:"bytes,4,rep,name=acl_sets,json=aclSets,proto3" json:"acl_sets,omitempty"`
    // Buildbucket-swarming integration.
    Swarming             *Swarming `protobuf:"bytes,3,opt,name=swarming,proto3" json:"swarming,omitempty"`
    XXX_NoUnkeyedLiteral struct{}  `json:"-"`
    XXX_unrecognized     []byte    `json:"-"`
    XXX_sizecache        int32     `json:"-"`
}

Defines one bucket in buildbucket.cfg

func (*Bucket) Descriptor Uses

func (*Bucket) Descriptor() ([]byte, []int)

func (*Bucket) GetAclSets Uses

func (m *Bucket) GetAclSets() []string

func (*Bucket) GetAcls Uses

func (m *Bucket) GetAcls() []*Acl

func (*Bucket) GetName Uses

func (m *Bucket) GetName() string

func (*Bucket) GetSwarming Uses

func (m *Bucket) GetSwarming() *Swarming

func (*Bucket) ProtoMessage Uses

func (*Bucket) ProtoMessage()

func (*Bucket) Reset Uses

func (m *Bucket) Reset()

func (*Bucket) String Uses

func (m *Bucket) String() string

func (*Bucket) XXX_DiscardUnknown Uses

func (m *Bucket) XXX_DiscardUnknown()

func (*Bucket) XXX_Marshal Uses

func (m *Bucket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Bucket) XXX_Merge Uses

func (m *Bucket) XXX_Merge(src proto.Message)

func (*Bucket) XXX_Size Uses

func (m *Bucket) XXX_Size() int

func (*Bucket) XXX_Unmarshal Uses

func (m *Bucket) XXX_Unmarshal(b []byte) error

type Build Uses

type Build struct {
    // Identifier of the build, unique per LUCI deployment.
    // IDs are monotonically decreasing.
    Id  int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
    // Required. The builder this build belongs to.
    //
    // Tuple (builder.project, builder.bucket) defines build ACL
    // which may change after build has ended.
    Builder *BuilderID `protobuf:"bytes,2,opt,name=builder,proto3" json:"builder,omitempty"`
    // Human-readable identifier of the build with the following properties:
    // - unique within the builder
    // - a monotonically increasing number
    // - mostly contiguous
    // - much shorter than id
    //
    // Caution: populated (positive number) iff build numbers were enabled
    // in the builder configuration at the time of build creation.
    //
    // Caution: Build numbers are not guaranteed to be contiguous.
    // There may be gaps during outages.
    //
    // Caution: Build numbers, while monotonically increasing, do not
    // necessarily reflect source-code order. For example, force builds
    // or rebuilds can allocate new, higher, numbers, but build an older-
    // than-HEAD version of the source.
    Number int32 `protobuf:"varint,3,opt,name=number,proto3" json:"number,omitempty"`
    // Verified LUCI identity that created this build.
    CreatedBy string `protobuf:"bytes,4,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"`
    // Verified LUCI identity that canceled this build.
    CanceledBy string `protobuf:"bytes,23,opt,name=canceled_by,json=canceledBy,proto3" json:"canceled_by,omitempty"`
    // When the build was created.
    CreateTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
    // When the build started.
    // Required iff status is STARTED, SUCCESS or FAILURE.
    StartTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
    // When the build ended.
    // Present iff status is terminal.
    // MUST NOT be before start_time.
    EndTime *timestamp.Timestamp `protobuf:"bytes,8,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
    // When the build was most recently updated.
    //
    // RPC: can be > end_time if, e.g. new tags were attached to a completed
    // build.
    UpdateTime *timestamp.Timestamp `protobuf:"bytes,9,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
    // Status of the build.
    // Must be specified, i.e. not STATUS_UNSPECIFIED.
    //
    // RPC: Responses have most current status.
    //
    // BigQuery: Final status of the build. Cannot be SCHEDULED or STARTED.
    Status Status `protobuf:"varint,12,opt,name=status,proto3,enum=buildbucket.v2.Status" json:"status,omitempty"`
    // Human-readable summary of the build in Markdown format
    // (https://spec.commonmark.org/0.28/).
    // Explains status.
    // Up to 4 KB.
    //
    // BigQuery: excluded from rows.
    SummaryMarkdown string `protobuf:"bytes,20,opt,name=summary_markdown,json=summaryMarkdown,proto3" json:"summary_markdown,omitempty"`
    // If NO, then the build status SHOULD NOT be used to assess correctness of
    // the input gitiles_commit or gerrit_changes.
    // For example, if a pre-submit build has failed, CQ MAY still land the CL.
    // For example, if a post-submit build has failed, CLs MAY continue landing.
    Critical Trinary `protobuf:"varint,21,opt,name=critical,proto3,enum=buildbucket.v2.Trinary" json:"critical,omitempty"`
    // Machine-readable details of the current status.
    // Human-readable status reason is available in summary_markdown.
    StatusDetails *StatusDetails `protobuf:"bytes,22,opt,name=status_details,json=statusDetails,proto3" json:"status_details,omitempty"`
    // Input to the build executable.
    Input *Build_Input `protobuf:"bytes,15,opt,name=input,proto3" json:"input,omitempty"`
    // Output of the build executable.
    // SHOULD depend only on input field and NOT other fields.
    // MUST be unset if build status is SCHEDULED.
    //
    // RPC: By default, this field is excluded from responses.
    // Updated while the build is running and finalized when the build ends.
    Output *Build_Output `protobuf:"bytes,16,opt,name=output,proto3" json:"output,omitempty"`
    // Current list of build steps.
    // Updated as build runs.
    //
    // May take up to 1MB after zlib compression.
    // MUST be unset if build status is SCHEDULED.
    //
    // RPC: By default, this field is excluded from responses.
    Steps []*Step `protobuf:"bytes,17,rep,name=steps,proto3" json:"steps,omitempty"`
    // Build infrastructure used by the build.
    //
    // RPC: By default, this field is excluded from responses.
    Infra *BuildInfra `protobuf:"bytes,18,opt,name=infra,proto3" json:"infra,omitempty"`
    // Arbitrary annotations for the build.
    // One key may have multiple values, which is why this is not a map<string,string>.
    // Indexed by the server, see also BuildFilter.tags.
    Tags []*StringPair `protobuf:"bytes,19,rep,name=tags,proto3" json:"tags,omitempty"`
    // What to run when the build is ready to start.
    Exe *Executable `protobuf:"bytes,24,opt,name=exe,proto3" json:"exe,omitempty"`
    // If true, use the canary build infrastructure.
    Canary bool `protobuf:"varint,25,opt,name=canary,proto3" json:"canary,omitempty"`
    // Maximum build pending time.
    // If the timeout is reached, the build is marked as INFRA_FAILURE status
    // and both status_details.{timeout, resource_exhaustion} are set.
    SchedulingTimeout *duration.Duration `protobuf:"bytes,26,opt,name=scheduling_timeout,json=schedulingTimeout,proto3" json:"scheduling_timeout,omitempty"`
    // Maximum build execution time.
    // Not to be confused with scheduling_timeout.
    // If the timeout is reached, the build is marked as INFRA_FAILURE status
    // and status_details.timeout is set.
    ExecutionTimeout     *duration.Duration `protobuf:"bytes,27,opt,name=execution_timeout,json=executionTimeout,proto3" json:"execution_timeout,omitempty"`
    XXX_NoUnkeyedLiteral struct{}           `json:"-"`
    XXX_unrecognized     []byte             `json:"-"`
    XXX_sizecache        int32              `json:"-"`
}

A single build, identified by an int64 id. Belongs to a builder.

RPC: see Builds service for build creation and retrieval. Some Build fields are marked as excluded from responses by default. Use build_fields request field to specify that a field must be included.

BigQuery: this message also defines schema of a BigQuery table of completed builds. A BigQuery row is inserted soon after build ends, i.e. a row represents a state of a build at completion time and does not change after that. All fields are included.

Next id: 28.

func (*Build) Descriptor Uses

func (*Build) Descriptor() ([]byte, []int)

func (*Build) GetBuilder Uses

func (m *Build) GetBuilder() *BuilderID

func (*Build) GetCanary Uses

func (m *Build) GetCanary() bool

func (*Build) GetCanceledBy Uses

func (m *Build) GetCanceledBy() string

func (*Build) GetCreateTime Uses

func (m *Build) GetCreateTime() *timestamp.Timestamp

func (*Build) GetCreatedBy Uses

func (m *Build) GetCreatedBy() string

func (*Build) GetCritical Uses

func (m *Build) GetCritical() Trinary

func (*Build) GetEndTime Uses

func (m *Build) GetEndTime() *timestamp.Timestamp

func (*Build) GetExe Uses

func (m *Build) GetExe() *Executable

func (*Build) GetExecutionTimeout Uses

func (m *Build) GetExecutionTimeout() *duration.Duration

func (*Build) GetId Uses

func (m *Build) GetId() int64

func (*Build) GetInfra Uses

func (m *Build) GetInfra() *BuildInfra

func (*Build) GetInput Uses

func (m *Build) GetInput() *Build_Input

func (*Build) GetNumber Uses

func (m *Build) GetNumber() int32

func (*Build) GetOutput Uses

func (m *Build) GetOutput() *Build_Output

func (*Build) GetSchedulingTimeout Uses

func (m *Build) GetSchedulingTimeout() *duration.Duration

func (*Build) GetStartTime Uses

func (m *Build) GetStartTime() *timestamp.Timestamp

func (*Build) GetStatus Uses

func (m *Build) GetStatus() Status

func (*Build) GetStatusDetails Uses

func (m *Build) GetStatusDetails() *StatusDetails

func (*Build) GetSteps Uses

func (m *Build) GetSteps() []*Step

func (*Build) GetSummaryMarkdown Uses

func (m *Build) GetSummaryMarkdown() string

func (*Build) GetTags Uses

func (m *Build) GetTags() []*StringPair

func (*Build) GetUpdateTime Uses

func (m *Build) GetUpdateTime() *timestamp.Timestamp

func (*Build) ProtoMessage Uses

func (*Build) ProtoMessage()

func (*Build) Reset Uses

func (m *Build) Reset()

func (*Build) String Uses

func (m *Build) String() string

func (*Build) XXX_DiscardUnknown Uses

func (m *Build) XXX_DiscardUnknown()

func (*Build) XXX_Marshal Uses

func (m *Build) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Build) XXX_Merge Uses

func (m *Build) XXX_Merge(src proto.Message)

func (*Build) XXX_Size Uses

func (m *Build) XXX_Size() int

func (*Build) XXX_Unmarshal Uses

func (m *Build) XXX_Unmarshal(b []byte) error

type BuildInfra Uses

type BuildInfra struct {
    Buildbucket          *BuildInfra_Buildbucket `protobuf:"bytes,1,opt,name=buildbucket,proto3" json:"buildbucket,omitempty"`
    Swarming             *BuildInfra_Swarming    `protobuf:"bytes,2,opt,name=swarming,proto3" json:"swarming,omitempty"`
    Logdog               *BuildInfra_LogDog      `protobuf:"bytes,3,opt,name=logdog,proto3" json:"logdog,omitempty"`
    Recipe               *BuildInfra_Recipe      `protobuf:"bytes,4,opt,name=recipe,proto3" json:"recipe,omitempty"`
    XXX_NoUnkeyedLiteral struct{}                `json:"-"`
    XXX_unrecognized     []byte                  `json:"-"`
    XXX_sizecache        int32                   `json:"-"`
}

Build infrastructure that was used for a particular build.

func (*BuildInfra) Descriptor Uses

func (*BuildInfra) Descriptor() ([]byte, []int)

func (*BuildInfra) GetBuildbucket Uses

func (m *BuildInfra) GetBuildbucket() *BuildInfra_Buildbucket

func (*BuildInfra) GetLogdog Uses

func (m *BuildInfra) GetLogdog() *BuildInfra_LogDog

func (*BuildInfra) GetRecipe Uses

func (m *BuildInfra) GetRecipe() *BuildInfra_Recipe

func (*BuildInfra) GetSwarming Uses

func (m *BuildInfra) GetSwarming() *BuildInfra_Swarming

func (*BuildInfra) ProtoMessage Uses

func (*BuildInfra) ProtoMessage()

func (*BuildInfra) Reset Uses

func (m *BuildInfra) Reset()

func (*BuildInfra) String Uses

func (m *BuildInfra) String() string

func (*BuildInfra) XXX_DiscardUnknown Uses

func (m *BuildInfra) XXX_DiscardUnknown()

func (*BuildInfra) XXX_Marshal Uses

func (m *BuildInfra) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BuildInfra) XXX_Merge Uses

func (m *BuildInfra) XXX_Merge(src proto.Message)

func (*BuildInfra) XXX_Size Uses

func (m *BuildInfra) XXX_Size() int

func (*BuildInfra) XXX_Unmarshal Uses

func (m *BuildInfra) XXX_Unmarshal(b []byte) error

type BuildInfra_Buildbucket Uses

type BuildInfra_Buildbucket struct {
    // Version of swarming task template. Defines
    // versions of kitchen, git, git wrapper, python, vpython, etc.
    ServiceConfigRevision string `protobuf:"bytes,2,opt,name=service_config_revision,json=serviceConfigRevision,proto3" json:"service_config_revision,omitempty"`
    // Properties that were specified in ScheduleBuildRequest to create this
    // build.
    //
    // In particular, CQ uses this to decide whether the build created by
    // someone else is appropriate for CQ, e.g. it was created with the same
    // properties that CQ would use.
    RequestedProperties *_struct.Struct `protobuf:"bytes,5,opt,name=requested_properties,json=requestedProperties,proto3" json:"requested_properties,omitempty"`
    // Dimensions that were specified in ScheduleBuildRequest to create this
    // build.
    RequestedDimensions []*RequestedDimension `protobuf:"bytes,6,rep,name=requested_dimensions,json=requestedDimensions,proto3" json:"requested_dimensions,omitempty"`
    // Buildbucket hostname, e.g. "cr-buildbucket.appspot.com".
    Hostname             string   `protobuf:"bytes,7,opt,name=hostname,proto3" json:"hostname,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

Buildbucket-specific information, captured at the build creation time.

func (*BuildInfra_Buildbucket) Descriptor Uses

func (*BuildInfra_Buildbucket) Descriptor() ([]byte, []int)

func (*BuildInfra_Buildbucket) GetHostname Uses

func (m *BuildInfra_Buildbucket) GetHostname() string

func (*BuildInfra_Buildbucket) GetRequestedDimensions Uses

func (m *BuildInfra_Buildbucket) GetRequestedDimensions() []*RequestedDimension

func (*BuildInfra_Buildbucket) GetRequestedProperties Uses

func (m *BuildInfra_Buildbucket) GetRequestedProperties() *_struct.Struct

func (*BuildInfra_Buildbucket) GetServiceConfigRevision Uses

func (m *BuildInfra_Buildbucket) GetServiceConfigRevision() string

func (*BuildInfra_Buildbucket) ProtoMessage Uses

func (*BuildInfra_Buildbucket) ProtoMessage()

func (*BuildInfra_Buildbucket) Reset Uses

func (m *BuildInfra_Buildbucket) Reset()

func (*BuildInfra_Buildbucket) String Uses

func (m *BuildInfra_Buildbucket) String() string

func (*BuildInfra_Buildbucket) XXX_DiscardUnknown Uses

func (m *BuildInfra_Buildbucket) XXX_DiscardUnknown()

func (*BuildInfra_Buildbucket) XXX_Marshal Uses

func (m *BuildInfra_Buildbucket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BuildInfra_Buildbucket) XXX_Merge Uses

func (m *BuildInfra_Buildbucket) XXX_Merge(src proto.Message)

func (*BuildInfra_Buildbucket) XXX_Size Uses

func (m *BuildInfra_Buildbucket) XXX_Size() int

func (*BuildInfra_Buildbucket) XXX_Unmarshal Uses

func (m *BuildInfra_Buildbucket) XXX_Unmarshal(b []byte) error

type BuildInfra_LogDog Uses

type BuildInfra_LogDog struct {
    // LogDog hostname, e.g. "logs.chromium.org".
    Hostname string `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"`
    // LogDog project, e.g. "chromium".
    // Typically matches Build.builder.project.
    Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"`
    // A slash-separated path prefix shared by all logs and artifacts of this
    // build.
    // No other build can have the same prefix.
    // Can be used to discover logs and/or load log contents.
    //
    // Can be used to construct URL of a page that displays stdout/stderr of all
    // steps of a build. In pseudo-JS:
    //   q_stdout = `${project}/${prefix}/+/**/stdout`;
    //   q_stderr = `${project}/${prefix}/+/**/stderr`;
    //   url = `https://${host}/v/?s=${urlquote(q_stdout)}&s=${urlquote(q_stderr)}`;
    Prefix               string   `protobuf:"bytes,3,opt,name=prefix,proto3" json:"prefix,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

LogDog-specific information.

func (*BuildInfra_LogDog) Descriptor Uses

func (*BuildInfra_LogDog) Descriptor() ([]byte, []int)

func (*BuildInfra_LogDog) GetHostname Uses

func (m *BuildInfra_LogDog) GetHostname() string

func (*BuildInfra_LogDog) GetPrefix Uses

func (m *BuildInfra_LogDog) GetPrefix() string

func (*BuildInfra_LogDog) GetProject Uses

func (m *BuildInfra_LogDog) GetProject() string

func (*BuildInfra_LogDog) ProtoMessage Uses

func (*BuildInfra_LogDog) ProtoMessage()

func (*BuildInfra_LogDog) Reset Uses

func (m *BuildInfra_LogDog) Reset()

func (*BuildInfra_LogDog) String Uses

func (m *BuildInfra_LogDog) String() string

func (*BuildInfra_LogDog) XXX_DiscardUnknown Uses

func (m *BuildInfra_LogDog) XXX_DiscardUnknown()

func (*BuildInfra_LogDog) XXX_Marshal Uses

func (m *BuildInfra_LogDog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BuildInfra_LogDog) XXX_Merge Uses

func (m *BuildInfra_LogDog) XXX_Merge(src proto.Message)

func (*BuildInfra_LogDog) XXX_Size Uses

func (m *BuildInfra_LogDog) XXX_Size() int

func (*BuildInfra_LogDog) XXX_Unmarshal Uses

func (m *BuildInfra_LogDog) XXX_Unmarshal(b []byte) error

type BuildInfra_Recipe Uses

type BuildInfra_Recipe struct {
    // CIPD package name containing the recipe used to run this build.
    CipdPackage string `protobuf:"bytes,1,opt,name=cipd_package,json=cipdPackage,proto3" json:"cipd_package,omitempty"`
    // Name of the recipe used to run this build.
    Name                 string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

Recipe-specific information.

func (*BuildInfra_Recipe) Descriptor Uses

func (*BuildInfra_Recipe) Descriptor() ([]byte, []int)

func (*BuildInfra_Recipe) GetCipdPackage Uses

func (m *BuildInfra_Recipe) GetCipdPackage() string

func (*BuildInfra_Recipe) GetName Uses

func (m *BuildInfra_Recipe) GetName() string

func (*BuildInfra_Recipe) ProtoMessage Uses

func (*BuildInfra_Recipe) ProtoMessage()

func (*BuildInfra_Recipe) Reset Uses

func (m *BuildInfra_Recipe) Reset()

func (*BuildInfra_Recipe) String Uses

func (m *BuildInfra_Recipe) String() string

func (*BuildInfra_Recipe) XXX_DiscardUnknown Uses

func (m *BuildInfra_Recipe) XXX_DiscardUnknown()

func (*BuildInfra_Recipe) XXX_Marshal Uses

func (m *BuildInfra_Recipe) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BuildInfra_Recipe) XXX_Merge Uses

func (m *BuildInfra_Recipe) XXX_Merge(src proto.Message)

func (*BuildInfra_Recipe) XXX_Size Uses

func (m *BuildInfra_Recipe) XXX_Size() int

func (*BuildInfra_Recipe) XXX_Unmarshal Uses

func (m *BuildInfra_Recipe) XXX_Unmarshal(b []byte) error

type BuildInfra_Swarming Uses

type BuildInfra_Swarming struct {
    // Swarming hostname, e.g. "chromium-swarm.appspot.com".
    // Populated at the build creation time.
    Hostname string `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"`
    // Swarming task id.
    // Not guaranteed to be populated at the build creation time.
    TaskId string `protobuf:"bytes,2,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
    // Swarming run id of the parent task from which this build is triggered.
    // If set, swarming promises to ensure this build won't outlive its parent
    // swarming task (which may or may not itself be a Buildbucket build).
    // Populated at the build creation time.
    ParentRunId string `protobuf:"bytes,9,opt,name=parent_run_id,json=parentRunId,proto3" json:"parent_run_id,omitempty"`
    // Task service account email address.
    // This is the service account used for all authenticated requests by the
    // build.
    TaskServiceAccount string `protobuf:"bytes,3,opt,name=task_service_account,json=taskServiceAccount,proto3" json:"task_service_account,omitempty"`
    // Priority of the task. The lower the more important.
    // Valid values are [20..255].
    Priority int32 `protobuf:"varint,4,opt,name=priority,proto3" json:"priority,omitempty"`
    // Swarming dimensions for the task.
    TaskDimensions []*RequestedDimension `protobuf:"bytes,5,rep,name=task_dimensions,json=taskDimensions,proto3" json:"task_dimensions,omitempty"`
    // Swarming dimensions of the bot used for the task.
    BotDimensions []*StringPair `protobuf:"bytes,6,rep,name=bot_dimensions,json=botDimensions,proto3" json:"bot_dimensions,omitempty"`
    // Caches requested by this build.
    Caches []*BuildInfra_Swarming_CacheEntry `protobuf:"bytes,7,rep,name=caches,proto3" json:"caches,omitempty"`
    // Swarming task containment for the task.
    Containment          *api.Containment `protobuf:"bytes,8,opt,name=containment,proto3" json:"containment,omitempty"`
    XXX_NoUnkeyedLiteral struct{}         `json:"-"`
    XXX_unrecognized     []byte           `json:"-"`
    XXX_sizecache        int32            `json:"-"`
}

Swarming-specific information.

Next ID: 10.

func (*BuildInfra_Swarming) Descriptor Uses

func (*BuildInfra_Swarming) Descriptor() ([]byte, []int)

func (*BuildInfra_Swarming) GetBotDimensions Uses

func (m *BuildInfra_Swarming) GetBotDimensions() []*StringPair

func (*BuildInfra_Swarming) GetCaches Uses

func (m *BuildInfra_Swarming) GetCaches() []*BuildInfra_Swarming_CacheEntry

func (*BuildInfra_Swarming) GetContainment Uses

func (m *BuildInfra_Swarming) GetContainment() *api.Containment

func (*BuildInfra_Swarming) GetHostname Uses

func (m *BuildInfra_Swarming) GetHostname() string

func (*BuildInfra_Swarming) GetParentRunId Uses

func (m *BuildInfra_Swarming) GetParentRunId() string

func (*BuildInfra_Swarming) GetPriority Uses

func (m *BuildInfra_Swarming) GetPriority() int32

func (*BuildInfra_Swarming) GetTaskDimensions Uses

func (m *BuildInfra_Swarming) GetTaskDimensions() []*RequestedDimension

func (*BuildInfra_Swarming) GetTaskId Uses

func (m *BuildInfra_Swarming) GetTaskId() string

func (*BuildInfra_Swarming) GetTaskServiceAccount Uses

func (m *BuildInfra_Swarming) GetTaskServiceAccount() string

func (*BuildInfra_Swarming) ProtoMessage Uses

func (*BuildInfra_Swarming) ProtoMessage()

func (*BuildInfra_Swarming) Reset Uses

func (m *BuildInfra_Swarming) Reset()

func (*BuildInfra_Swarming) String Uses

func (m *BuildInfra_Swarming) String() string

func (*BuildInfra_Swarming) XXX_DiscardUnknown Uses

func (m *BuildInfra_Swarming) XXX_DiscardUnknown()

func (*BuildInfra_Swarming) XXX_Marshal Uses

func (m *BuildInfra_Swarming) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BuildInfra_Swarming) XXX_Merge Uses

func (m *BuildInfra_Swarming) XXX_Merge(src proto.Message)

func (*BuildInfra_Swarming) XXX_Size Uses

func (m *BuildInfra_Swarming) XXX_Size() int

func (*BuildInfra_Swarming) XXX_Unmarshal Uses

func (m *BuildInfra_Swarming) XXX_Unmarshal(b []byte) error

type BuildInfra_Swarming_CacheEntry Uses

type BuildInfra_Swarming_CacheEntry struct {
    // Identifier of the cache. Required. Length is limited to 128.
    // Must be unique in the build.
    //
    // If the pool of swarming bots is shared among multiple LUCI projects and
    // projects use same cache name, the cache will be shared across projects.
    // To avoid affecting and being affected by other projects, prefix the
    // cache name with something project-specific, e.g. "v8-".
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // Relative path where the cache in mapped into. Required.
    //
    // Must use POSIX format (forward slashes).
    // In most cases, it does not need slashes at all.
    //
    // In recipes, use api.path['cache'].join(path) to get absolute path.
    //
    // Must be unique in the build.
    Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
    // Duration to wait for a bot with a warm cache to pick up the
    // task, before falling back to a bot with a cold (non-existent) cache.
    //
    // The default is 0, which means that no preference will be chosen for a
    // bot with this or without this cache, and a bot without this cache may
    // be chosen instead.
    //
    // If no bot has this cache warm, the task will skip this wait and will
    // immediately fallback to a cold cache request.
    //
    // The value must be multiples of 60 seconds.
    WaitForWarmCache *duration.Duration `protobuf:"bytes,3,opt,name=wait_for_warm_cache,json=waitForWarmCache,proto3" json:"wait_for_warm_cache,omitempty"`
    // Environment variable with this name will be set to the path to the cache
    // directory.
    EnvVar               string   `protobuf:"bytes,4,opt,name=env_var,json=envVar,proto3" json:"env_var,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

Describes a cache directory persisted on a bot.

If a build requested a cache, the cache directory is available on build startup. If the cache was present on the bot, the directory contains files from the previous run on that bot. The build can read/write to the cache directory while it runs. After build completes, the cache directory is persisted. The next time another build requests the same cache and runs on the same bot, the files will still be there (unless the cache was evicted, perhaps due to disk space reasons).

One bot can keep multiple caches at the same time and one build can request multiple different caches. A cache is identified by its name and mapped to a path.

If the bot is running out of space, caches are evicted in LRU manner before the next build on this bot starts.

Builder cache.

Buildbucket implicitly declares cache

{"name": "<hash(project/bucket/builder)>", "path": "builder"}.

This means that any LUCI builder has a "personal disk space" on the bot. Builder cache is often a good start before customizing caching. In recipes, it is available at api.buildbucket.builder_cache_path.

func (*BuildInfra_Swarming_CacheEntry) Descriptor Uses

func (*BuildInfra_Swarming_CacheEntry) Descriptor() ([]byte, []int)

func (*BuildInfra_Swarming_CacheEntry) GetEnvVar Uses

func (m *BuildInfra_Swarming_CacheEntry) GetEnvVar() string

func (*BuildInfra_Swarming_CacheEntry) GetName Uses

func (m *BuildInfra_Swarming_CacheEntry) GetName() string

func (*BuildInfra_Swarming_CacheEntry) GetPath Uses

func (m *BuildInfra_Swarming_CacheEntry) GetPath() string

func (*BuildInfra_Swarming_CacheEntry) GetWaitForWarmCache Uses

func (m *BuildInfra_Swarming_CacheEntry) GetWaitForWarmCache() *duration.Duration

func (*BuildInfra_Swarming_CacheEntry) ProtoMessage Uses

func (*BuildInfra_Swarming_CacheEntry) ProtoMessage()

func (*BuildInfra_Swarming_CacheEntry) Reset Uses

func (m *BuildInfra_Swarming_CacheEntry) Reset()

func (*BuildInfra_Swarming_CacheEntry) String Uses

func (m *BuildInfra_Swarming_CacheEntry) String() string

func (*BuildInfra_Swarming_CacheEntry) XXX_DiscardUnknown Uses

func (m *BuildInfra_Swarming_CacheEntry) XXX_DiscardUnknown()

func (*BuildInfra_Swarming_CacheEntry) XXX_Marshal Uses

func (m *BuildInfra_Swarming_CacheEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BuildInfra_Swarming_CacheEntry) XXX_Merge Uses

func (m *BuildInfra_Swarming_CacheEntry) XXX_Merge(src proto.Message)

func (*BuildInfra_Swarming_CacheEntry) XXX_Size Uses

func (m *BuildInfra_Swarming_CacheEntry) XXX_Size() int

func (*BuildInfra_Swarming_CacheEntry) XXX_Unmarshal Uses

func (m *BuildInfra_Swarming_CacheEntry) XXX_Unmarshal(b []byte) error

type BuildPredicate Uses

type BuildPredicate struct {
    // A build must be in this builder.
    Builder *BuilderID `protobuf:"bytes,1,opt,name=builder,proto3" json:"builder,omitempty"`
    // A build must have this status.
    Status Status `protobuf:"varint,2,opt,name=status,proto3,enum=buildbucket.v2.Status" json:"status,omitempty"`
    // A build's Build.Input.gerrit_changes must include ALL of these changes.
    GerritChanges []*GerritChange `protobuf:"bytes,3,rep,name=gerrit_changes,json=gerritChanges,proto3" json:"gerrit_changes,omitempty"`
    // A build's Build.Output.gitiles_commit must match this commit.
    // One of the following subfield sets must specified:
    // - host, project, id
    // - host, project, ref
    // - host, project, ref, position
    OutputGitilesCommit *GitilesCommit `protobuf:"bytes,4,opt,name=output_gitiles_commit,json=outputGitilesCommit,proto3" json:"output_gitiles_commit,omitempty"`
    // A build must be created by this identity.
    CreatedBy string `protobuf:"bytes,5,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"`
    // A build must have ALL of these tags.
    // For "ANY of these tags" make separate RPCs.
    Tags []*StringPair `protobuf:"bytes,6,rep,name=tags,proto3" json:"tags,omitempty"`
    // A build must have been created within the specified range.
    // Both boundaries are optional.
    CreateTime *TimeRange `protobuf:"bytes,7,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
    // If false (default), a build must be non-experimental.
    // Otherwise it may be experimental or non-experimental.
    IncludeExperimental bool `protobuf:"varint,8,opt,name=include_experimental,json=includeExperimental,proto3" json:"include_experimental,omitempty"`
    // A build must be in this build range.
    // A pair of SearchBuildsRequest.predicate.build.start_build_id and
    // SearchBuildsRequest.page_size=1 can be used to find the previous build.
    Build *BuildRange `protobuf:"bytes,9,opt,name=build,proto3" json:"build,omitempty"`
    // A build must have a matching value of Build.infra.buildbucket.canary.
    Canary               Trinary  `protobuf:"varint,10,opt,name=canary,proto3,enum=buildbucket.v2.Trinary" json:"canary,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

A build predicate.

At least one of the following fields is required: builder, gerrit_changes and git_commits.. If a field value is empty, it is ignored, unless stated otherwise.

func (*BuildPredicate) Descriptor Uses

func (*BuildPredicate) Descriptor() ([]byte, []int)

func (*BuildPredicate) GetBuild Uses

func (m *BuildPredicate) GetBuild() *BuildRange

func (*BuildPredicate) GetBuilder Uses

func (m *BuildPredicate) GetBuilder() *BuilderID

func (*BuildPredicate) GetCanary Uses

func (m *BuildPredicate) GetCanary() Trinary

func (*BuildPredicate) GetCreateTime Uses

func (m *BuildPredicate) GetCreateTime() *TimeRange

func (*BuildPredicate) GetCreatedBy Uses

func (m *BuildPredicate) GetCreatedBy() string

func (*BuildPredicate) GetGerritChanges Uses

func (m *BuildPredicate) GetGerritChanges() []*GerritChange

func (*BuildPredicate) GetIncludeExperimental Uses

func (m *BuildPredicate) GetIncludeExperimental() bool

func (*BuildPredicate) GetOutputGitilesCommit Uses

func (m *BuildPredicate) GetOutputGitilesCommit() *GitilesCommit

func (*BuildPredicate) GetStatus Uses

func (m *BuildPredicate) GetStatus() Status

func (*BuildPredicate) GetTags Uses

func (m *BuildPredicate) GetTags() []*StringPair

func (*BuildPredicate) ProtoMessage Uses

func (*BuildPredicate) ProtoMessage()

func (*BuildPredicate) Reset Uses

func (m *BuildPredicate) Reset()

func (*BuildPredicate) String Uses

func (m *BuildPredicate) String() string

func (*BuildPredicate) XXX_DiscardUnknown Uses

func (m *BuildPredicate) XXX_DiscardUnknown()

func (*BuildPredicate) XXX_Marshal Uses

func (m *BuildPredicate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BuildPredicate) XXX_Merge Uses

func (m *BuildPredicate) XXX_Merge(src proto.Message)

func (*BuildPredicate) XXX_Size Uses

func (m *BuildPredicate) XXX_Size() int

func (*BuildPredicate) XXX_Unmarshal Uses

func (m *BuildPredicate) XXX_Unmarshal(b []byte) error

type BuildRange Uses

type BuildRange struct {
    // Inclusive lower boundary. Optional.
    StartBuildId int64 `protobuf:"varint,1,opt,name=start_build_id,json=startBuildId,proto3" json:"start_build_id,omitempty"`
    // Exclusive upper boundary. Optional.
    EndBuildId           int64    `protobuf:"varint,2,opt,name=end_build_id,json=endBuildId,proto3" json:"end_build_id,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

Half-open build range. The range is defined on the build order in the context. Usually the order is newest-to-oldest, so start_build_id is a newer build and end_build_id is an older build.

func (*BuildRange) Descriptor Uses

func (*BuildRange) Descriptor() ([]byte, []int)

func (*BuildRange) GetEndBuildId Uses

func (m *BuildRange) GetEndBuildId() int64

func (*BuildRange) GetStartBuildId Uses

func (m *BuildRange) GetStartBuildId() int64

func (*BuildRange) ProtoMessage Uses

func (*BuildRange) ProtoMessage()

func (*BuildRange) Reset Uses

func (m *BuildRange) Reset()

func (*BuildRange) String Uses

func (m *BuildRange) String() string

func (*BuildRange) XXX_DiscardUnknown Uses

func (m *BuildRange) XXX_DiscardUnknown()

func (*BuildRange) XXX_Marshal Uses

func (m *BuildRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BuildRange) XXX_Merge Uses

func (m *BuildRange) XXX_Merge(src proto.Message)

func (*BuildRange) XXX_Size Uses

func (m *BuildRange) XXX_Size() int

func (*BuildRange) XXX_Unmarshal Uses

func (m *BuildRange) XXX_Unmarshal(b []byte) error

type BuildSecrets Uses

type BuildSecrets struct {
    // Token to identify RPCs associated with the same build.
    BuildToken           string   `protobuf:"bytes,1,opt,name=build_token,json=buildToken,proto3" json:"build_token,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

A collection of build-related secrets we might pass from Buildbucket to Kitchen.

func (*BuildSecrets) Descriptor Uses

func (*BuildSecrets) Descriptor() ([]byte, []int)

func (*BuildSecrets) GetBuildToken Uses

func (m *BuildSecrets) GetBuildToken() string

func (*BuildSecrets) ProtoMessage Uses

func (*BuildSecrets) ProtoMessage()

func (*BuildSecrets) Reset Uses

func (m *BuildSecrets) Reset()

func (*BuildSecrets) String Uses

func (m *BuildSecrets) String() string

func (*BuildSecrets) XXX_DiscardUnknown Uses

func (m *BuildSecrets) XXX_DiscardUnknown()

func (*BuildSecrets) XXX_Marshal Uses

func (m *BuildSecrets) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BuildSecrets) XXX_Merge Uses

func (m *BuildSecrets) XXX_Merge(src proto.Message)

func (*BuildSecrets) XXX_Size Uses

func (m *BuildSecrets) XXX_Size() int

func (*BuildSecrets) XXX_Unmarshal Uses

func (m *BuildSecrets) XXX_Unmarshal(b []byte) error

type Build_Input Uses

type Build_Input struct {
    // Arbitrary JSON object. Available at build run time.
    //
    // RPC: By default, this field is excluded from responses.
    //
    // V1 equivalent: corresponds to "properties" key in "parameters_json".
    Properties *_struct.Struct `protobuf:"bytes,1,opt,name=properties,proto3" json:"properties,omitempty"`
    // The Gitiles commit to run against.
    // Usually present in CI builds, set by LUCI Scheduler.
    // If not present, the build may checkout "refs/heads/master".
    // NOT a blamelist.
    //
    // V1 equivalent: supersedes "revision" property and "buildset"
    // tag that starts with "commit/gitiles/".
    GitilesCommit *GitilesCommit `protobuf:"bytes,2,opt,name=gitiles_commit,json=gitilesCommit,proto3" json:"gitiles_commit,omitempty"`
    // Gerrit patchsets to run against.
    // Usually present in tryjobs, set by CQ, Gerrit, git-cl-try.
    // Applied on top of gitiles_commit if specified, otherwise tip of the tree.
    //
    // V1 equivalent: supersedes patch_* properties and "buildset"
    // tag that starts with "patch/gerrit/".
    GerritChanges []*GerritChange `protobuf:"bytes,3,rep,name=gerrit_changes,json=gerritChanges,proto3" json:"gerrit_changes,omitempty"`
    // If true, the build does not affect prod. In recipe land, runtime.is_experimental will
    // return true and recipes should not make prod-visible side effects.
    // By default, experimental builds are not surfaced in RPCs, PubSub
    // notifications (unless it is callback), and reported in metrics / BigQuery tables
    // under a different name.
    // See also include_experimental fields to in request messages.
    Experimental         bool     `protobuf:"varint,5,opt,name=experimental,proto3" json:"experimental,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

Defines what to build/test.

Behavior of a build executable MAY depend on Input. It MAY NOT modify its behavior based on anything outside of Input. It MAY read non-Input fields to display for debugging or to pass-through to triggered builds. For example the "tags" field may be passed to triggered builds, or the "infra" field may be printed for debugging purposes.

func (*Build_Input) Descriptor Uses

func (*Build_Input) Descriptor() ([]byte, []int)

func (*Build_Input) GetExperimental Uses

func (m *Build_Input) GetExperimental() bool

func (*Build_Input) GetGerritChanges Uses

func (m *Build_Input) GetGerritChanges() []*GerritChange

func (*Build_Input) GetGitilesCommit Uses

func (m *Build_Input) GetGitilesCommit() *GitilesCommit

func (*Build_Input) GetProperties Uses

func (m *Build_Input) GetProperties() *_struct.Struct

func (*Build_Input) ProtoMessage Uses

func (*Build_Input) ProtoMessage()

func (*Build_Input) Reset Uses

func (m *Build_Input) Reset()

func (*Build_Input) String Uses

func (m *Build_Input) String() string

func (*Build_Input) XXX_DiscardUnknown Uses

func (m *Build_Input) XXX_DiscardUnknown()

func (*Build_Input) XXX_Marshal Uses

func (m *Build_Input) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Build_Input) XXX_Merge Uses

func (m *Build_Input) XXX_Merge(src proto.Message)

func (*Build_Input) XXX_Size Uses

func (m *Build_Input) XXX_Size() int

func (*Build_Input) XXX_Unmarshal Uses

func (m *Build_Input) XXX_Unmarshal(b []byte) error

type Build_Output Uses

type Build_Output struct {
    // Arbitrary JSON object produced by the build.
    //
    // In recipes, use step_result.presentation.properties to set these,
    // for example
    //
    //   step_result = api.step(['echo'])
    //   step_result.presentation.properties['foo'] = 'bar'
    //
    // More docs: https://chromium.googlesource.com/infra/luci/recipes-py/+/HEAD/doc/old_user_guide.md#Setting-properties
    //
    // V1 equivalent: corresponds to "properties" key in
    // "result_details_json".
    // In V1 output properties are not populated until build ends.
    Properties *_struct.Struct `protobuf:"bytes,1,opt,name=properties,proto3" json:"properties,omitempty"`
    // Build checked out and executed on this commit.
    //
    // Should correspond to Build.Input.gitiles_commit.
    // May be present even if Build.Input.gitiles_commit is not set, for example
    // in cron builders.
    //
    // V1 equivalent: this supersedes all got_revision output property.
    GitilesCommit *GitilesCommit `protobuf:"bytes,3,opt,name=gitiles_commit,json=gitilesCommit,proto3" json:"gitiles_commit,omitempty"`
    // Logs produced by the build script, typically "stdout" and "stderr".
    Logs                 []*Log   `protobuf:"bytes,5,rep,name=logs,proto3" json:"logs,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

Result of the build executable.

func (*Build_Output) Descriptor Uses

func (*Build_Output) Descriptor() ([]byte, []int)

func (*Build_Output) GetGitilesCommit Uses

func (m *Build_Output) GetGitilesCommit() *GitilesCommit

func (*Build_Output) GetLogs Uses

func (m *Build_Output) GetLogs() []*Log

func (*Build_Output) GetProperties Uses

func (m *Build_Output) GetProperties() *_struct.Struct

func (*Build_Output) ProtoMessage Uses

func (*Build_Output) ProtoMessage()

func (*Build_Output) Reset Uses

func (m *Build_Output) Reset()

func (*Build_Output) String Uses

func (m *Build_Output) String() string

func (*Build_Output) XXX_DiscardUnknown Uses

func (m *Build_Output) XXX_DiscardUnknown()

func (*Build_Output) XXX_Marshal Uses

func (m *Build_Output) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Build_Output) XXX_Merge Uses

func (m *Build_Output) XXX_Merge(src proto.Message)

func (*Build_Output) XXX_Size Uses

func (m *Build_Output) XXX_Size() int

func (*Build_Output) XXX_Unmarshal Uses

func (m *Build_Output) XXX_Unmarshal(b []byte) error

type BuildbucketCfg Uses

type BuildbucketCfg struct {
    // All buckets defined for this project.
    Buckets []*Bucket `protobuf:"bytes,1,rep,name=buckets,proto3" json:"buckets,omitempty"`
    // A list of ACL sets. Names must be unique.
    AclSets []*AclSet `protobuf:"bytes,2,rep,name=acl_sets,json=aclSets,proto3" json:"acl_sets,omitempty"`
    // A list of builder mixin definitions.
    // A mixin can be referenced in any builder defined within the BuildbucketCfg.
    // See also Buider.mixins field.
    BuilderMixins        []*Builder `protobuf:"bytes,3,rep,name=builder_mixins,json=builderMixins,proto3" json:"builder_mixins,omitempty"`
    XXX_NoUnkeyedLiteral struct{}   `json:"-"`
    XXX_unrecognized     []byte     `json:"-"`
    XXX_sizecache        int32      `json:"-"`
}

Schema of buildbucket.cfg file, a project config.

func (*BuildbucketCfg) Descriptor Uses

func (*BuildbucketCfg) Descriptor() ([]byte, []int)

func (*BuildbucketCfg) GetAclSets Uses

func (m *BuildbucketCfg) GetAclSets() []*AclSet

func (*BuildbucketCfg) GetBuckets Uses

func (m *BuildbucketCfg) GetBuckets() []*Bucket

func (*BuildbucketCfg) GetBuilderMixins Uses

func (m *BuildbucketCfg) GetBuilderMixins() []*Builder

func (*BuildbucketCfg) ProtoMessage Uses

func (*BuildbucketCfg) ProtoMessage()

func (*BuildbucketCfg) Reset Uses

func (m *BuildbucketCfg) Reset()

func (*BuildbucketCfg) String Uses

func (m *BuildbucketCfg) String() string

func (*BuildbucketCfg) XXX_DiscardUnknown Uses

func (m *BuildbucketCfg) XXX_DiscardUnknown()

func (*BuildbucketCfg) XXX_Marshal Uses

func (m *BuildbucketCfg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BuildbucketCfg) XXX_Merge Uses

func (m *BuildbucketCfg) XXX_Merge(src proto.Message)

func (*BuildbucketCfg) XXX_Size Uses

func (m *BuildbucketCfg) XXX_Size() int

func (*BuildbucketCfg) XXX_Unmarshal Uses

func (m *BuildbucketCfg) XXX_Unmarshal(b []byte) error

type Builder Uses

type Builder struct {
    // Name of the builder or builder mixin.
    //
    // If a builder name, will be propagated to "builder" build tag and
    // "buildername" recipe property.
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // Hostname of the swarming instance, e.g. "chromium-swarm.appspot.com".
    // Required, but defaults to deprecated Swarming.hostname.
    SwarmingHost string `protobuf:"bytes,21,opt,name=swarming_host,json=swarmingHost,proto3" json:"swarming_host,omitempty"`
    // Names of mixins to apply to this builder definition.
    //
    // FLATTENING
    //
    // Final builder/mixin values are computed as follows:
    // - start with an empty builder definition.
    // - if this is a builder, apply values in a bucket's builder_defaults,
    //   flattened in advance.
    // - apply each mixin, flattened in advance, in the same order.
    // - apply values in this builder/mixin.
    //
    // EXAMPLE
    //
    //   A definition
    //
    //     builder_mixins {
    //       name: "foo"
    //       dimensions: "os:Linux"
    //       dimensions: "cpu:x86"
    //       recipe {
    //         repository: "https://example.com"
    //         name: "x"
    //       }
    //     }
    //     builder_mixins {
    //       name: "bar"
    //       dimensions: "cores:8"
    //       dimensions: "cpu:x86-64"
    //     }
    //     bucket {
    //       name: "luci.x.try"
    //       swarming {
    //         builders {
    //           name: "release"
    //           mixins: "foo"
    //           mixins: "bar"
    //           recipe {
    //             name: "y"
    //           }
    //         }
    //       }
    //     }
    //
    //   is equivalent to
    //
    //     bucket {
    //      name: "luci.x.try"
    //      swarming {
    //         builders {
    //           name: "release"
    //           dimensions: "os:Linux"
    //           dimensions: "cpu:x86-64"
    //           dimensions: "cores:8"
    //           recipe {
    //             repository: "https://example.com"
    //             name: "y"
    //           }
    //         }
    //       }
    //     }
    //
    // A NOTE ON DIAMOND MERGES
    //
    // Given
    //   B mixes in A and overrides some values defined in A
    //   C mixes in A
    //   D mixes in B and C
    // B's overrides won't affect D because D mixes in C after B.
    //
    //   builder_mixins {
    //     name: "A"
    //     dimensions: "dim:a"
    //   }
    //   builder_mixins {
    //     name: "B"
    //     mixins: "A"
    //     dimensions: "dim:b"
    //   }
    //   builder_mixins {
    //     name: "C"
    //     mixins: "A"
    //   }
    //   ...
    //   builders {
    //     name: "D"
    //     mixins: "B"
    //     mixins: "C"
    //   }
    //
    // D's dim will be "a", not "b" because it is "a" in C which is applied after
    // B.
    //
    // OTHER
    //
    // Circular references are prohibited.
    Mixins []string `protobuf:"bytes,10,rep,name=mixins,proto3" json:"mixins,omitempty"`
    // Builder category. Will be used for visual grouping, for example in Code Review.
    Category string `protobuf:"bytes,6,opt,name=category,proto3" json:"category,omitempty"`
    // DEPRECATED.
    // Used only to enable "vpython:native-python-wrapper"
    // Does NOT actually propagate to swarming.
    SwarmingTags []string `protobuf:"bytes,2,rep,name=swarming_tags,json=swarmingTags,proto3" json:"swarming_tags,omitempty"`
    // A requirement for a bot to execute the build.
    //
    // Supports 3 forms:
    // - "<key>:" - exclude the defaults for the key.
    //   Mutually exclusive with other forms.
    // - "<key>:<value>" - require a bot with this dimension.
    //   This is a shortcut for "0:<key>:<value>", see below.
    // - "<expiration_secs>:<key>:<value>" - wait for up to expiration_secs.
    //   for a bot with the dimension.
    //   Supports multiple values for different keys and expiration_secs.
    //   expiration_secs must be a multiple of 60.
    //
    // When merging a set of dimensions S1 into S2, all dimensions in S1 with a
    // key K replace all dimensions in S2 with K. This logic is used when applying
    // builder mixins and dimensions specified in a build request.
    //
    // If this builder is defined in a bucket, dimension "pool" is defaulted
    // to the name of the bucket. See Bucket message below.
    Dimensions []string `protobuf:"bytes,3,rep,name=dimensions,proto3" json:"dimensions,omitempty"`
    // Specifies that a recipe to run.
    // DEPRECATED: use exe.
    Recipe *Builder_Recipe `protobuf:"bytes,4,opt,name=recipe,proto3" json:"recipe,omitempty"`
    // What to run when a build is ready to start.
    Exe *Executable `protobuf:"bytes,23,opt,name=exe,proto3" json:"exe,omitempty"`
    // A JSON object representing Build.input.properties.
    // Individual object properties can be overridden with
    // ScheduleBuildRequest.properties.
    Properties string `protobuf:"bytes,24,opt,name=properties,proto3" json:"properties,omitempty"`
    // Swarming task priority.
    // A value between 20 and 255, inclusive.
    // Lower means more important.
    //
    // The default value is configured in
    // https://chrome-internal.googlesource.com/infradata/config/+/master/configs/cr-buildbucket/swarming_task_template.json
    //
    // See also https://chromium.googlesource.com/infra/luci/luci-py.git/+/master/appengine/swarming/doc/User-Guide.md#request
    Priority uint32 `protobuf:"varint,5,opt,name=priority,proto3" json:"priority,omitempty"`
    // Maximum build execution time. Not to be confused with pending time.
    ExecutionTimeoutSecs uint32 `protobuf:"varint,7,opt,name=execution_timeout_secs,json=executionTimeoutSecs,proto3" json:"execution_timeout_secs,omitempty"`
    // Maximum build pending time.
    ExpirationSecs uint32 `protobuf:"varint,20,opt,name=expiration_secs,json=expirationSecs,proto3" json:"expiration_secs,omitempty"`
    // Caches that should be present on the bot.
    Caches []*Builder_CacheEntry `protobuf:"bytes,9,rep,name=caches,proto3" json:"caches,omitempty"`
    // If YES, generate monotonically increasing contiguous numbers for each
    // build, unique within the builder.
    // Note: this limits the build creation rate in this builder to 5 per second.
    BuildNumbers Toggle `protobuf:"varint,16,opt,name=build_numbers,json=buildNumbers,proto3,enum=buildbucket.Toggle" json:"build_numbers,omitempty"`
    // Email of a service account to run the build as or literal 'bot' string to
    // use Swarming bot's account (if available). Passed directly to Swarming.
    // Subject to Swarming's ACLs.
    ServiceAccount string `protobuf:"bytes,12,opt,name=service_account,json=serviceAccount,proto3" json:"service_account,omitempty"`
    // If YES, each builder will get extra dimension "builder:<builder name>"
    // added. Default is UNSET.
    //
    // For example, this config
    //
    //   builder {
    //     name: "linux-compiler"
    //     dimension: "builder:linux-compiler"
    //   }
    //
    // is equivalent to this:
    //
    //   builders {
    //     name: "linux-compiler"
    //     auto_builder_dimension: YES
    //   }
    //
    // We've considered providing interpolation like this
    //   builder_defaults {
    //     dimensions: "builder:${BUILDER}"
    //   }
    // (see also http://docs.buildbot.net/0.8.9/manual/cfg-properties.html#interpolate)
    // but are currently against complicating config with this.
    AutoBuilderDimension Toggle `protobuf:"varint,17,opt,name=auto_builder_dimension,json=autoBuilderDimension,proto3,enum=buildbucket.Toggle" json:"auto_builder_dimension,omitempty"`
    // If YES, by default a new build in this builder will be marked as
    // experimental.
    //
    // This is useful for inherently experimental builders that use production
    // recipes.
    Experimental Toggle `protobuf:"varint,18,opt,name=experimental,proto3,enum=buildbucket.Toggle" json:"experimental,omitempty"`
    // DEPRECATED
    //
    // Using this field will result in buildbucket rejecting your config. Just
    // remove it from your config and you should be good to go :).
    LuciMigrationHost string `protobuf:"bytes,19,opt,name=luci_migration_host,json=luciMigrationHost,proto3" json:"luci_migration_host,omitempty"`
    // Percentage of builds that should use a canary swarming task template.
    // A value from 0 to 100.
    // If omitted, a global server-defined default percentage is used.
    TaskTemplateCanaryPercentage *wrappers.UInt32Value `protobuf:"bytes,22,opt,name=task_template_canary_percentage,json=taskTemplateCanaryPercentage,proto3" json:"task_template_canary_percentage,omitempty"`
    // This field will set the default value of the "critical" field of
    // all the builds of this builder. Please refer to build.proto for
    // the meaning of this field.
    //
    // This value can be overridden by ScheduleBuildRequest.critical
    Critical             Trinary  `protobuf:"varint,25,opt,name=critical,proto3,enum=buildbucket.v2.Trinary" json:"critical,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

Defines a swarmbucket builder or a builder mixin. A builder has a name, a category and specifies what should happen if a build is scheduled to that builder.

SECURITY WARNING: if adding more fields to this message, keep in mind that a user that has permissions to schedule a build to the bucket, can override this config.

Next tag: 26.

func (*Builder) Descriptor Uses

func (*Builder) Descriptor() ([]byte, []int)

func (*Builder) GetAutoBuilderDimension Uses

func (m *Builder) GetAutoBuilderDimension() Toggle

func (*Builder) GetBuildNumbers Uses

func (m *Builder) GetBuildNumbers() Toggle

func (*Builder) GetCaches Uses

func (m *Builder) GetCaches() []*Builder_CacheEntry

func (*Builder) GetCategory Uses

func (m *Builder) GetCategory() string

func (*Builder) GetCritical Uses

func (m *Builder) GetCritical() Trinary

func (*Builder) GetDimensions Uses

func (m *Builder) GetDimensions() []string

func (*Builder) GetExe Uses

func (m *Builder) GetExe() *Executable

func (*Builder) GetExecutionTimeoutSecs Uses

func (m *Builder) GetExecutionTimeoutSecs() uint32

func (*Builder) GetExperimental Uses

func (m *Builder) GetExperimental() Toggle

func (*Builder) GetExpirationSecs Uses

func (m *Builder) GetExpirationSecs() uint32

func (*Builder) GetLuciMigrationHost Uses

func (m *Builder) GetLuciMigrationHost() string

func (*Builder) GetMixins Uses

func (m *Builder) GetMixins() []string

func (*Builder) GetName Uses

func (m *Builder) GetName() string

func (*Builder) GetPriority Uses

func (m *Builder) GetPriority() uint32

func (*Builder) GetProperties Uses

func (m *Builder) GetProperties() string

func (*Builder) GetRecipe Uses

func (m *Builder) GetRecipe() *Builder_Recipe

func (*Builder) GetServiceAccount Uses

func (m *Builder) GetServiceAccount() string

func (*Builder) GetSwarmingHost Uses

func (m *Builder) GetSwarmingHost() string

func (*Builder) GetSwarmingTags Uses

func (m *Builder) GetSwarmingTags() []string

func (*Builder) GetTaskTemplateCanaryPercentage Uses

func (m *Builder) GetTaskTemplateCanaryPercentage() *wrappers.UInt32Value

func (*Builder) ProtoMessage Uses

func (*Builder) ProtoMessage()

func (*Builder) Reset Uses

func (m *Builder) Reset()

func (*Builder) String Uses

func (m *Builder) String() string

func (*Builder) XXX_DiscardUnknown Uses

func (m *Builder) XXX_DiscardUnknown()

func (*Builder) XXX_Marshal Uses

func (m *Builder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Builder) XXX_Merge Uses

func (m *Builder) XXX_Merge(src proto.Message)

func (*Builder) XXX_Size Uses

func (m *Builder) XXX_Size() int

func (*Builder) XXX_Unmarshal Uses

func (m *Builder) XXX_Unmarshal(b []byte) error

type BuilderID Uses

type BuilderID struct {
    // Project ID, e.g. "chromium". Unique within a LUCI deployment.
    Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
    // Bucket name, e.g. "try". Unique within the project.
    // Together with project, defines an ACL.
    Bucket string `protobuf:"bytes,2,opt,name=bucket,proto3" json:"bucket,omitempty"`
    // Builder name, e.g. "linux-rel". Unique within the bucket.
    Builder              string   `protobuf:"bytes,3,opt,name=builder,proto3" json:"builder,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

Identifies a builder. Canonical string representation: “{project}/{bucket}/{builder}”.

func (*BuilderID) Descriptor Uses

func (*BuilderID) Descriptor() ([]byte, []int)

func (*BuilderID) GetBucket Uses

func (m *BuilderID) GetBucket() string

func (*BuilderID) GetBuilder Uses

func (m *BuilderID) GetBuilder() string

func (*BuilderID) GetProject Uses

func (m *BuilderID) GetProject() string

func (*BuilderID) ProtoMessage Uses

func (*BuilderID) ProtoMessage()

func (*BuilderID) Reset Uses

func (m *BuilderID) Reset()

func (*BuilderID) String Uses

func (m *BuilderID) String() string

func (*BuilderID) XXX_DiscardUnknown Uses

func (m *BuilderID) XXX_DiscardUnknown()

func (*BuilderID) XXX_Marshal Uses

func (m *BuilderID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BuilderID) XXX_Merge Uses

func (m *BuilderID) XXX_Merge(src proto.Message)

func (*BuilderID) XXX_Size Uses

func (m *BuilderID) XXX_Size() int

func (*BuilderID) XXX_Unmarshal Uses

func (m *BuilderID) XXX_Unmarshal(b []byte) error

type BuilderPredicate Uses

type BuilderPredicate struct {
    // OR-connected list of regular expressions for a string
    // "{project}/{bucket}/{builder}".
    // Each regex is wrapped in ^ and $ automatically.
    // Examples:
    //
    //   # All builders in "chromium" project
    //   regex: "chromium/.+"
    //   # A specific builder.
    //   regex: "infra/ci/infra-continuous-trusty-64"
    //
    // Defaults to [".*"].
    Regex []string `protobuf:"bytes,1,rep,name=regex,proto3" json:"regex,omitempty"`
    // Like regex field, but negation. Negation always wins.
    RegexExclude         []string `protobuf:"bytes,2,rep,name=regex_exclude,json=regexExclude,proto3" json:"regex_exclude,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

A predicate for a builder.

func (*BuilderPredicate) Descriptor Uses

func (*BuilderPredicate) Descriptor() ([]byte, []int)

func (*BuilderPredicate) GetRegex Uses

func (m *BuilderPredicate) GetRegex() []string

func (*BuilderPredicate) GetRegexExclude Uses

func (m *BuilderPredicate) GetRegexExclude() []string

func (*BuilderPredicate) ProtoMessage Uses

func (*BuilderPredicate) ProtoMessage()

func (*BuilderPredicate) Reset Uses

func (m *BuilderPredicate) Reset()

func (*BuilderPredicate) String Uses

func (m *BuilderPredicate) String() string

func (*BuilderPredicate) XXX_DiscardUnknown Uses

func (m *BuilderPredicate) XXX_DiscardUnknown()

func (*BuilderPredicate) XXX_Marshal Uses

func (m *BuilderPredicate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BuilderPredicate) XXX_Merge Uses

func (m *BuilderPredicate) XXX_Merge(src proto.Message)

func (*BuilderPredicate) XXX_Size Uses

func (m *BuilderPredicate) XXX_Size() int

func (*BuilderPredicate) XXX_Unmarshal Uses

func (m *BuilderPredicate) XXX_Unmarshal(b []byte) error

type Builder_CacheEntry Uses

type Builder_CacheEntry struct {
    // Identifier of the cache. Length is limited to 128.
    // Defaults to path.
    // See also BuildInfra.Swarming.CacheEntry.name in build.proto.
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // Relative path where the cache in mapped into. Required.
    // See also BuildInfra.Swarming.CacheEntry.path in build.proto.
    Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
    // Number of seconds to wait for a bot with a warm cache to pick up the
    // task, before falling back to a bot with a cold (non-existent) cache.
    // See also BuildInfra.Swarming.CacheEntry.wait_for_warm_cache in build.proto.
    // The value must be multiples of 60 seconds.
    WaitForWarmCacheSecs int32 `protobuf:"varint,3,opt,name=wait_for_warm_cache_secs,json=waitForWarmCacheSecs,proto3" json:"wait_for_warm_cache_secs,omitempty"`
    // Environment variable with this name will be set to the path to the cache
    // directory.
    EnvVar               string   `protobuf:"bytes,4,opt,name=env_var,json=envVar,proto3" json:"env_var,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

Describes a cache directory persisted on a bot. Prerequisite reading in BuildInfra.Swarming.CacheEntry message in build.proto.

To share a builder cache among multiple builders, it can be overridden:

builders {
  name: "a"
  caches {
    path: "builder"
    name: "my_shared_cache"
  }
}
builders {
  name: "b"
  caches {
    path: "builder"
    name: "my_shared_cache"
  }
}

Builders "a" and "b" share their builder cache. If an "a" build ran on a bot and left some files in the builder cache and then a "b" build runs on the same bot, the same files will be available in the builder cache.

func (*Builder_CacheEntry) Descriptor Uses

func (*Builder_CacheEntry) Descriptor() ([]byte, []int)

func (*Builder_CacheEntry) GetEnvVar Uses

func (m *Builder_CacheEntry) GetEnvVar() string

func (*Builder_CacheEntry) GetName Uses

func (m *Builder_CacheEntry) GetName() string

func (*Builder_CacheEntry) GetPath Uses

func (m *Builder_CacheEntry) GetPath() string

func (*Builder_CacheEntry) GetWaitForWarmCacheSecs Uses

func (m *Builder_CacheEntry) GetWaitForWarmCacheSecs() int32

func (*Builder_CacheEntry) ProtoMessage Uses

func (*Builder_CacheEntry) ProtoMessage()

func (*Builder_CacheEntry) Reset Uses

func (m *Builder_CacheEntry) Reset()

func (*Builder_CacheEntry) String Uses

func (m *Builder_CacheEntry) String() string

func (*Builder_CacheEntry) XXX_DiscardUnknown Uses

func (m *Builder_CacheEntry) XXX_DiscardUnknown()

func (*Builder_CacheEntry) XXX_Marshal Uses

func (m *Builder_CacheEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Builder_CacheEntry) XXX_Merge Uses

func (m *Builder_CacheEntry) XXX_Merge(src proto.Message)

func (*Builder_CacheEntry) XXX_Size Uses

func (m *Builder_CacheEntry) XXX_Size() int

func (*Builder_CacheEntry) XXX_Unmarshal Uses

func (m *Builder_CacheEntry) XXX_Unmarshal(b []byte) error

type Builder_Recipe Uses

type Builder_Recipe struct {
    // Name of the recipe to run.
    Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
    // The CIPD package to fetch the recipes from.
    //
    // Typically the package will look like:
    //
    //   infra/recipe_bundles/chromium.googlesource.com/chromium/tools/build
    //
    // Recipes bundled from internal repositories are typically under
    // `infra_internal/recipe_bundles/...`.
    //
    // But if you're building your own recipe bundles, they could be located
    // elsewhere.
    CipdPackage string `protobuf:"bytes,6,opt,name=cipd_package,json=cipdPackage,proto3" json:"cipd_package,omitempty"`
    // The CIPD version to fetch. This can be a lower-cased git ref (like
    // `refs/heads/master` or `head`), or it can be a cipd tag (like
    // `git_revision:dead...beef`).
    //
    // The default is `head`, which corresponds to the git repo's HEAD ref. This
    // is typically (but not always) a symbolic ref for `refs/heads/master`.
    CipdVersion string `protobuf:"bytes,5,opt,name=cipd_version,json=cipdVersion,proto3" json:"cipd_version,omitempty"`
    // Colon-separated build properties to set.
    // Ignored if Builder.properties is set.
    //
    // Use this field for string properties and use properties_j for other
    // types.
    Properties []string `protobuf:"bytes,3,rep,name=properties,proto3" json:"properties,omitempty"`
    // Same as properties, but the value must valid JSON. For example
    //   properties_j: "a:1"
    // means property a is a number 1, not string "1".
    //
    // If null, it means no property must be defined. In particular, it removes
    // a default value for the property, if any.
    //
    // Fields properties and properties_j can be used together, but cannot both
    // specify values for same property.
    PropertiesJ          []string `protobuf:"bytes,4,rep,name=properties_j,json=propertiesJ,proto3" json:"properties_j,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

DEPRECATED. See Builder.executable and Builder.properties

To specify a recipe name, pass "$recipe_engine" property which is a JSON object having "recipe" property.

func (*Builder_Recipe) Descriptor Uses

func (*Builder_Recipe) Descriptor() ([]byte, []int)

func (*Builder_Recipe) GetCipdPackage Uses

func (m *Builder_Recipe) GetCipdPackage() string

func (*Builder_Recipe) GetCipdVersion Uses

func (m *Builder_Recipe) GetCipdVersion() string

func (*Builder_Recipe) GetName Uses

func (m *Builder_Recipe) GetName() string

func (*Builder_Recipe) GetProperties Uses

func (m *Builder_Recipe) GetProperties() []string

func (*Builder_Recipe) GetPropertiesJ Uses

func (m *Builder_Recipe) GetPropertiesJ() []string

func (*Builder_Recipe) ProtoMessage Uses

func (*Builder_Recipe) ProtoMessage()

func (*Builder_Recipe) Reset Uses

func (m *Builder_Recipe) Reset()

func (*Builder_Recipe) String Uses

func (m *Builder_Recipe) String() string

func (*Builder_Recipe) XXX_DiscardUnknown Uses

func (m *Builder_Recipe) XXX_DiscardUnknown()

func (*Builder_Recipe) XXX_Marshal Uses

func (m *Builder_Recipe) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Builder_Recipe) XXX_Merge Uses

func (m *Builder_Recipe) XXX_Merge(src proto.Message)

func (*Builder_Recipe) XXX_Size Uses

func (m *Builder_Recipe) XXX_Size() int

func (*Builder_Recipe) XXX_Unmarshal Uses

func (m *Builder_Recipe) XXX_Unmarshal(b []byte) error

type BuildsClient Uses

type BuildsClient interface {
    // Gets a build.
    //
    // By default the returned build does not include all fields.
    // See GetBuildRequest.fields.
    //
    // Buildbot: if the specified build is a buildbot build, converts it to Build
    // message with the following rules:
    // * bucket names are full, e.g. "master.chromium". Note that LUCI buckets
    //   in v2 are shortened, e.g. "ci".
    // * if a v2 Build field does not make sense in V1, it is unset/empty.
    // * step support is not implemented for Buildbot builds.
    // Note that it does not support getting a buildbot build by build number.
    GetBuild(ctx context.Context, in *GetBuildRequest, opts ...grpc.CallOption) (*Build, error)
    // Searches for builds.
    //
    // Buildbot: can return Buildbot builds, see GetBuild for conversion rules.
    // For example, response may include a mix of LUCI and Buildbot builds if the
    // predicate is a CL.
    // Cannot search in a buildbot bucket or buildbot builder, e.g.
    // {
    //   "predicate": {
    //     "builder": {
    //       "project": "chromium",
    //       "bucket": "master.chromium",
    //       "builder": "linux-rel"
    //     }
    //   }
    // }
    // will look for builds in "master.chromium" LUCI bucket which probably does
    // not exist.
    SearchBuilds(ctx context.Context, in *SearchBuildsRequest, opts ...grpc.CallOption) (*SearchBuildsResponse, error)
    // Updates a build. Returns an empty build.
    //
    // RPC metadata must include "X-Build-Token" key with a token
    // generated by the server when scheduling the build.
    UpdateBuild(ctx context.Context, in *UpdateBuildRequest, opts ...grpc.CallOption) (*Build, error)
    // Schedules a new build.
    // The requester must have at least SCHEDULER role in the destination bucket.
    ScheduleBuild(ctx context.Context, in *ScheduleBuildRequest, opts ...grpc.CallOption) (*Build, error)
    // Cancels a build.
    // The requester must have at least SCHEDULER role in the destination bucket.
    CancelBuild(ctx context.Context, in *CancelBuildRequest, opts ...grpc.CallOption) (*Build, error)
    // Executes multiple requests in a batch.
    // The response code is always OK.
    Batch(ctx context.Context, in *BatchRequest, opts ...grpc.CallOption) (*BatchResponse, error)
}

BuildsClient is the client API for Builds service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewBuildsClient Uses

func NewBuildsClient(cc *grpc.ClientConn) BuildsClient

func NewBuildsPRPCClient Uses

func NewBuildsPRPCClient(client *prpc.Client) BuildsClient

type BuildsServer Uses

type BuildsServer interface {
    // Gets a build.
    //
    // By default the returned build does not include all fields.
    // See GetBuildRequest.fields.
    //
    // Buildbot: if the specified build is a buildbot build, converts it to Build
    // message with the following rules:
    // * bucket names are full, e.g. "master.chromium". Note that LUCI buckets
    //   in v2 are shortened, e.g. "ci".
    // * if a v2 Build field does not make sense in V1, it is unset/empty.
    // * step support is not implemented for Buildbot builds.
    // Note that it does not support getting a buildbot build by build number.
    GetBuild(context.Context, *GetBuildRequest) (*Build, error)
    // Searches for builds.
    //
    // Buildbot: can return Buildbot builds, see GetBuild for conversion rules.
    // For example, response may include a mix of LUCI and Buildbot builds if the
    // predicate is a CL.
    // Cannot search in a buildbot bucket or buildbot builder, e.g.
    // {
    //   "predicate": {
    //     "builder": {
    //       "project": "chromium",
    //       "bucket": "master.chromium",
    //       "builder": "linux-rel"
    //     }
    //   }
    // }
    // will look for builds in "master.chromium" LUCI bucket which probably does
    // not exist.
    SearchBuilds(context.Context, *SearchBuildsRequest) (*SearchBuildsResponse, error)
    // Updates a build. Returns an empty build.
    //
    // RPC metadata must include "X-Build-Token" key with a token
    // generated by the server when scheduling the build.
    UpdateBuild(context.Context, *UpdateBuildRequest) (*Build, error)
    // Schedules a new build.
    // The requester must have at least SCHEDULER role in the destination bucket.
    ScheduleBuild(context.Context, *ScheduleBuildRequest) (*Build, error)
    // Cancels a build.
    // The requester must have at least SCHEDULER role in the destination bucket.
    CancelBuild(context.Context, *CancelBuildRequest) (*Build, error)
    // Executes multiple requests in a batch.
    // The response code is always OK.
    Batch(context.Context, *BatchRequest) (*BatchResponse, error)
}

BuildsServer is the server API for Builds service.

type CancelBuildRequest Uses

type CancelBuildRequest struct {
    // ID of the build to cancel.
    Id  int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
    // Required. Value for Build.summary_markdown.
    SummaryMarkdown string `protobuf:"bytes,2,opt,name=summary_markdown,json=summaryMarkdown,proto3" json:"summary_markdown,omitempty"`
    // Fields to include in the response. See also GetBuildRequest.fields.
    Fields               *field_mask.FieldMask `protobuf:"bytes,100,opt,name=fields,proto3" json:"fields,omitempty"`
    XXX_NoUnkeyedLiteral struct{}              `json:"-"`
    XXX_unrecognized     []byte                `json:"-"`
    XXX_sizecache        int32                 `json:"-"`
}

A request message for CancelBuild rpc.

func (*CancelBuildRequest) Descriptor Uses

func (*CancelBuildRequest) Descriptor() ([]byte, []int)

func (*CancelBuildRequest) GetFields Uses

func (m *CancelBuildRequest) GetFields() *field_mask.FieldMask

func (*CancelBuildRequest) GetId Uses

func (m *CancelBuildRequest) GetId() int64

func (*CancelBuildRequest) GetSummaryMarkdown Uses

func (m *CancelBuildRequest) GetSummaryMarkdown() string

func (*CancelBuildRequest) ProtoMessage Uses

func (*CancelBuildRequest) ProtoMessage()

func (*CancelBuildRequest) Reset Uses

func (m *CancelBuildRequest) Reset()

func (*CancelBuildRequest) String Uses

func (m *CancelBuildRequest) String() string

func (*CancelBuildRequest) XXX_DiscardUnknown Uses

func (m *CancelBuildRequest) XXX_DiscardUnknown()

func (*CancelBuildRequest) XXX_Marshal Uses

func (m *CancelBuildRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CancelBuildRequest) XXX_Merge Uses

func (m *CancelBuildRequest) XXX_Merge(src proto.Message)

func (*CancelBuildRequest) XXX_Size Uses

func (m *CancelBuildRequest) XXX_Size() int

func (*CancelBuildRequest) XXX_Unmarshal Uses

func (m *CancelBuildRequest) XXX_Unmarshal(b []byte) error

type Executable Uses

type Executable struct {
    // The CIPD package containing the executable.
    // On Linux/Mac, the executable MUST be named "run_build".
    // On Windows, it MUST be named "run_build.exe" or "run_build.bat",
    // in this order of precedence.
    CipdPackage string `protobuf:"bytes,1,opt,name=cipd_package,json=cipdPackage,proto3" json:"cipd_package,omitempty"`
    // The CIPD version to fetch. Defaults to `latest`.
    CipdVersion          string   `protobuf:"bytes,2,opt,name=cipd_version,json=cipdVersion,proto3" json:"cipd_version,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

An executable to run when the build is ready to start.

The following describes the protocol between buildbucket and the executable. The executable MUST NOT assume/rely on anything that is not explicitly specified below.

The executable will be started with the following input: - empty current working directory (CWD). - stdin: binary-encoded buildbucket.v2.Build message. - $TMPDIR, $TEMP, $TMP: env variables point to an empty directory, on the

same file system as CWD.

- $LOGDOG_COORDINATOR_HOST, $LOGDOG_STREAM_PROJECT, $LOGDOG_STREAM_PREFIX,

$LOGDOG_NAMESPACE, $LOGDOG_STREAM_SERVER_PATH: env variables describing
LogDog context, part of the LogDog Butler protocol.
The executable MAY create logdog streams using these variables.
Read more at https://godoc.org/go.chromium.org/luci/logdog/client/butlerlib/bootstrap

- LUCI_CONTEXT["run_build"]["cache_dir"]: a LUCI context value pointing to

the root directory of Swarming named caches.
MAY be on the same file system as CWD.
For example, builder cache is available at "<cache_dir>/builder".
For LUCI Context doc, see
https://chromium.googlesource.com/infra/luci/luci-py/+/HEAD/client/LUCI_CONTEXT.md
See also CacheEntry.

- LUCI_CONTEXT["buildbucket"]["hostname"]: Buildbucket hostname,

e.g. "cr-buildbucket.appspot.com".

The executable MUST write "$LOGDOG_NAMESPACE/build.proto" stream using the LogDog streamserver at $LOGDOG_STREAM_SERVER_PATH. The stream MUST have a binary-encoded buildbucket.v2.Build message datagrams, with content type "application/luci+proto; message=buildbucket.v2.Build". Each build message must be valid, as defined by the comments in proto files. Server-side build will be updated with the values from the latest message.

A build step S without children in the datagram MAY have a Step.Log named "$build.proto". It MUST point to a LogDog datagram stream with binary-encoded buildbucket.v2.Build messages and content type "application/luci+proto; message=buildbucket.v2.Build". The step tree from the second datagram will appear as substeps of step S. This rule applies recursively, i.e. a leaf step in the datagram MAY also have a "$build.proto" log. The graph of datagram streams MUST be a tree, i.e. acyclic.

All build step log urls of all Build messages MUST be relative to $LOGDOG_STREAM_PREFIX (only stream name) and start with $LOGDOG_NAMESPACE.

func (*Executable) Descriptor Uses

func (*Executable) Descriptor() ([]byte, []int)

func (*Executable) GetCipdPackage Uses

func (m *Executable) GetCipdPackage() string

func (*Executable) GetCipdVersion Uses

func (m *Executable) GetCipdVersion() string

func (*Executable) ProtoMessage Uses

func (*Executable) ProtoMessage()

func (*Executable) Reset Uses

func (m *Executable) Reset()

func (*Executable) String Uses

func (m *Executable) String() string

func (*Executable) XXX_DiscardUnknown Uses

func (m *Executable) XXX_DiscardUnknown()

func (*Executable) XXX_Marshal Uses

func (m *Executable) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Executable) XXX_Merge Uses

func (m *Executable) XXX_Merge(src proto.Message)

func (*Executable) XXX_Size Uses

func (m *Executable) XXX_Size() int

func (*Executable) XXX_Unmarshal Uses

func (m *Executable) XXX_Unmarshal(b []byte) error

type GerritChange Uses

type GerritChange struct {
    // 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"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

A Gerrit patchset.

func (*GerritChange) Descriptor Uses

func (*GerritChange) Descriptor() ([]byte, []int)

func (*GerritChange) GetChange Uses

func (m *GerritChange) GetChange() int64

func (*GerritChange) GetHost Uses

func (m *GerritChange) GetHost() string

func (*GerritChange) GetPatchset Uses

func (m *GerritChange) GetPatchset() int64

func (*GerritChange) GetProject Uses

func (m *GerritChange) GetProject() string

func (*GerritChange) ProtoMessage Uses

func (*GerritChange) ProtoMessage()

func (*GerritChange) Reset Uses

func (m *GerritChange) Reset()

func (*GerritChange) String Uses

func (m *GerritChange) String() string

func (*GerritChange) XXX_DiscardUnknown Uses

func (m *GerritChange) XXX_DiscardUnknown()

func (*GerritChange) XXX_Marshal Uses

func (m *GerritChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GerritChange) XXX_Merge Uses

func (m *GerritChange) XXX_Merge(src proto.Message)

func (*GerritChange) XXX_Size Uses

func (m *GerritChange) XXX_Size() int

func (*GerritChange) XXX_Unmarshal Uses

func (m *GerritChange) XXX_Unmarshal(b []byte) error

type GetBuildRequest Uses

type GetBuildRequest struct {
    // Build id.
    // Mutually exclusive with builder and number.
    Id  int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
    // Builder of the build.
    // Requires number. Mutually exclusive with id.
    Builder *BuilderID `protobuf:"bytes,2,opt,name=builder,proto3" json:"builder,omitempty"`
    // Build number.
    // Requires builder. Mutually exclusive with id.
    BuildNumber int32 `protobuf:"varint,3,opt,name=build_number,json=buildNumber,proto3" json:"build_number,omitempty"`
    // Fields to include in the response.
    // If not set, the default mask is used, see Build message comments for the
    // list of fields returned by default.
    //
    // Supports advanced semantics, see
    // https://chromium.googlesource.com/infra/luci/luci-py/+/f9ae69a37c4bdd0e08a8b0f7e123f6e403e774eb/appengine/components/components/protoutil/field_masks.py#7
    // In particular, if the client needs only some output properties, they
    // can be requested with paths "output.properties.fields.foo".
    Fields               *field_mask.FieldMask `protobuf:"bytes,100,opt,name=fields,proto3" json:"fields,omitempty"`
    XXX_NoUnkeyedLiteral struct{}              `json:"-"`
    XXX_unrecognized     []byte                `json:"-"`
    XXX_sizecache        int32                 `json:"-"`
}

A request message for GetBuild rpc.

func (*GetBuildRequest) Descriptor Uses

func (*GetBuildRequest) Descriptor() ([]byte, []int)

func (*GetBuildRequest) GetBuildNumber Uses

func (m *GetBuildRequest) GetBuildNumber() int32

func (*GetBuildRequest) GetBuilder Uses

func (m *GetBuildRequest) GetBuilder() *BuilderID

func (*GetBuildRequest) GetFields Uses

func (m *GetBuildRequest) GetFields() *field_mask.FieldMask

func (*GetBuildRequest) GetId Uses

func (m *GetBuildRequest) GetId() int64

func (*GetBuildRequest) ProtoMessage Uses

func (*GetBuildRequest) ProtoMessage()

func (*GetBuildRequest) Reset Uses

func (m *GetBuildRequest) Reset()

func (*GetBuildRequest) String Uses

func (m *GetBuildRequest) String() string

func (*GetBuildRequest) XXX_DiscardUnknown Uses

func (m *GetBuildRequest) XXX_DiscardUnknown()

func (*GetBuildRequest) XXX_Marshal Uses

func (m *GetBuildRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetBuildRequest) XXX_Merge Uses

func (m *GetBuildRequest) XXX_Merge(src proto.Message)

func (*GetBuildRequest) XXX_Size Uses

func (m *GetBuildRequest) XXX_Size() int

func (*GetBuildRequest) XXX_Unmarshal Uses

func (m *GetBuildRequest) XXX_Unmarshal(b []byte) error

type GitilesCommit Uses

type GitilesCommit struct {
    // 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/".
    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.
    // TODO(tandrii): make it a public doc.
    Position             uint32   `protobuf:"varint,5,opt,name=position,proto3" json:"position,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

A landed Git commit hosted on Gitiles.

func (*GitilesCommit) Descriptor Uses

func (*GitilesCommit) Descriptor() ([]byte, []int)

func (*GitilesCommit) GetHost Uses

func (m *GitilesCommit) GetHost() string

func (*GitilesCommit) GetId Uses

func (m *GitilesCommit) GetId() string

func (*GitilesCommit) GetPosition Uses

func (m *GitilesCommit) GetPosition() uint32

func (*GitilesCommit) GetProject Uses

func (m *GitilesCommit) GetProject() string

func (*GitilesCommit) GetRef Uses

func (m *GitilesCommit) GetRef() string

func (*GitilesCommit) ProtoMessage Uses

func (*GitilesCommit) ProtoMessage()

func (*GitilesCommit) Reset Uses

func (m *GitilesCommit) Reset()

func (*GitilesCommit) String Uses

func (m *GitilesCommit) String() string

func (*GitilesCommit) XXX_DiscardUnknown Uses

func (m *GitilesCommit) XXX_DiscardUnknown()

func (*GitilesCommit) XXX_Marshal Uses

func (m *GitilesCommit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GitilesCommit) XXX_Merge Uses

func (m *GitilesCommit) XXX_Merge(src proto.Message)

func (*GitilesCommit) XXX_Size Uses

func (m *GitilesCommit) XXX_Size() int

func (*GitilesCommit) XXX_Unmarshal Uses

func (m *GitilesCommit) XXX_Unmarshal(b []byte) error

type Log Uses

type Log struct {
    // Log name, standard ("stdout", "stderr") or custom (e.g. "json.output").
    // Unique within the containing message (step or build).
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // URL of a Human-readable page that displays log contents.
    ViewUrl string `protobuf:"bytes,2,opt,name=view_url,json=viewUrl,proto3" json:"view_url,omitempty"`
    // URL of the log content.
    // As of 2018-09-06, the only supported scheme is "logdog".
    // Typically it has form
    // "logdog://<host>/<project>/<prefix>/+/<stream_name>".
    // See also
    // https://godoc.org/go.chromium.org/luci/logdog/common/types#ParseURL
    Url                  string   `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

A named log of a step or build.

func (*Log) Descriptor Uses

func (*Log) Descriptor() ([]byte, []int)

func (*Log) GetName Uses

func (m *Log) GetName() string

func (*Log) GetUrl Uses

func (m *Log) GetUrl() string

func (*Log) GetViewUrl Uses

func (m *Log) GetViewUrl() string

func (*Log) ProtoMessage Uses

func (*Log) ProtoMessage()

func (*Log) Reset Uses

func (m *Log) Reset()

func (*Log) String Uses

func (m *Log) String() string

func (*Log) XXX_DiscardUnknown Uses

func (m *Log) XXX_DiscardUnknown()

func (*Log) XXX_Marshal Uses

func (m *Log) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Log) XXX_Merge Uses

func (m *Log) XXX_Merge(src proto.Message)

func (*Log) XXX_Size Uses

func (m *Log) XXX_Size() int

func (*Log) XXX_Unmarshal Uses

func (m *Log) XXX_Unmarshal(b []byte) error

type LogDogSettings Uses

type LogDogSettings struct {
    // Hostname of the LogDog instance to use, e.g. "logs.chromium.org".
    Hostname             string   `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*LogDogSettings) Descriptor Uses

func (*LogDogSettings) Descriptor() ([]byte, []int)

func (*LogDogSettings) GetHostname Uses

func (m *LogDogSettings) GetHostname() string

func (*LogDogSettings) ProtoMessage Uses

func (*LogDogSettings) ProtoMessage()

func (*LogDogSettings) Reset Uses

func (m *LogDogSettings) Reset()

func (*LogDogSettings) String Uses

func (m *LogDogSettings) String() string

func (*LogDogSettings) XXX_DiscardUnknown Uses

func (m *LogDogSettings) XXX_DiscardUnknown()

func (*LogDogSettings) XXX_Marshal Uses

func (m *LogDogSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LogDogSettings) XXX_Merge Uses

func (m *LogDogSettings) XXX_Merge(src proto.Message)

func (*LogDogSettings) XXX_Size Uses

func (m *LogDogSettings) XXX_Size() int

func (*LogDogSettings) XXX_Unmarshal Uses

func (m *LogDogSettings) XXX_Unmarshal(b []byte) error

type MockBuildsClient Uses

type MockBuildsClient struct {
    // contains filtered or unexported fields
}

MockBuildsClient is a mock of BuildsClient interface

func NewMockBuildsClient Uses

func NewMockBuildsClient(ctrl *gomock.Controller) *MockBuildsClient

NewMockBuildsClient creates a new mock instance

func (*MockBuildsClient) Batch Uses

func (m *MockBuildsClient) Batch(ctx context.Context, in *BatchRequest, opts ...grpc.CallOption) (*BatchResponse, error)

Batch mocks base method

func (*MockBuildsClient) CancelBuild Uses

func (m *MockBuildsClient) CancelBuild(ctx context.Context, in *CancelBuildRequest, opts ...grpc.CallOption) (*Build, error)

CancelBuild mocks base method

func (*MockBuildsClient) EXPECT Uses

func (m *MockBuildsClient) EXPECT() *MockBuildsClientMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockBuildsClient) GetBuild Uses

func (m *MockBuildsClient) GetBuild(ctx context.Context, in *GetBuildRequest, opts ...grpc.CallOption) (*Build, error)

GetBuild mocks base method

func (*MockBuildsClient) ScheduleBuild Uses

func (m *MockBuildsClient) ScheduleBuild(ctx context.Context, in *ScheduleBuildRequest, opts ...grpc.CallOption) (*Build, error)

ScheduleBuild mocks base method

func (*MockBuildsClient) SearchBuilds Uses

func (m *MockBuildsClient) SearchBuilds(ctx context.Context, in *SearchBuildsRequest, opts ...grpc.CallOption) (*SearchBuildsResponse, error)

SearchBuilds mocks base method

func (*MockBuildsClient) UpdateBuild Uses

func (m *MockBuildsClient) UpdateBuild(ctx context.Context, in *UpdateBuildRequest, opts ...grpc.CallOption) (*Build, error)

UpdateBuild mocks base method

type MockBuildsClientMockRecorder Uses

type MockBuildsClientMockRecorder struct {
    // contains filtered or unexported fields
}

MockBuildsClientMockRecorder is the mock recorder for MockBuildsClient

func (*MockBuildsClientMockRecorder) Batch Uses

func (mr *MockBuildsClientMockRecorder) Batch(ctx, in interface{}, opts ...interface{}) *gomock.Call

Batch indicates an expected call of Batch

func (*MockBuildsClientMockRecorder) CancelBuild Uses

func (mr *MockBuildsClientMockRecorder) CancelBuild(ctx, in interface{}, opts ...interface{}) *gomock.Call

CancelBuild indicates an expected call of CancelBuild

func (*MockBuildsClientMockRecorder) GetBuild Uses

func (mr *MockBuildsClientMockRecorder) GetBuild(ctx, in interface{}, opts ...interface{}) *gomock.Call

GetBuild indicates an expected call of GetBuild

func (*MockBuildsClientMockRecorder) ScheduleBuild Uses

func (mr *MockBuildsClientMockRecorder) ScheduleBuild(ctx, in interface{}, opts ...interface{}) *gomock.Call

ScheduleBuild indicates an expected call of ScheduleBuild

func (*MockBuildsClientMockRecorder) SearchBuilds Uses

func (mr *MockBuildsClientMockRecorder) SearchBuilds(ctx, in interface{}, opts ...interface{}) *gomock.Call

SearchBuilds indicates an expected call of SearchBuilds

func (*MockBuildsClientMockRecorder) UpdateBuild Uses

func (mr *MockBuildsClientMockRecorder) UpdateBuild(ctx, in interface{}, opts ...interface{}) *gomock.Call

UpdateBuild indicates an expected call of UpdateBuild

type MockBuildsServer Uses

type MockBuildsServer struct {
    // contains filtered or unexported fields
}

MockBuildsServer is a mock of BuildsServer interface

func NewMockBuildsServer Uses

func NewMockBuildsServer(ctrl *gomock.Controller) *MockBuildsServer

NewMockBuildsServer creates a new mock instance

func (*MockBuildsServer) Batch Uses

func (m *MockBuildsServer) Batch(arg0 context.Context, arg1 *BatchRequest) (*BatchResponse, error)

Batch mocks base method

func (*MockBuildsServer) CancelBuild Uses

func (m *MockBuildsServer) CancelBuild(arg0 context.Context, arg1 *CancelBuildRequest) (*Build, error)

CancelBuild mocks base method

func (*MockBuildsServer) EXPECT Uses

func (m *MockBuildsServer) EXPECT() *MockBuildsServerMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockBuildsServer) GetBuild Uses

func (m *MockBuildsServer) GetBuild(arg0 context.Context, arg1 *GetBuildRequest) (*Build, error)

GetBuild mocks base method

func (*MockBuildsServer) ScheduleBuild Uses

func (m *MockBuildsServer) ScheduleBuild(arg0 context.Context, arg1 *ScheduleBuildRequest) (*Build, error)

ScheduleBuild mocks base method

func (*MockBuildsServer) SearchBuilds Uses

func (m *MockBuildsServer) SearchBuilds(arg0 context.Context, arg1 *SearchBuildsRequest) (*SearchBuildsResponse, error)

SearchBuilds mocks base method

func (*MockBuildsServer) UpdateBuild Uses

func (m *MockBuildsServer) UpdateBuild(arg0 context.Context, arg1 *UpdateBuildRequest) (*Build, error)

UpdateBuild mocks base method

type MockBuildsServerMockRecorder Uses

type MockBuildsServerMockRecorder struct {
    // contains filtered or unexported fields
}

MockBuildsServerMockRecorder is the mock recorder for MockBuildsServer

func (*MockBuildsServerMockRecorder) Batch Uses

func (mr *MockBuildsServerMockRecorder) Batch(arg0, arg1 interface{}) *gomock.Call

Batch indicates an expected call of Batch

func (*MockBuildsServerMockRecorder) CancelBuild Uses

func (mr *MockBuildsServerMockRecorder) CancelBuild(arg0, arg1 interface{}) *gomock.Call

CancelBuild indicates an expected call of CancelBuild

func (*MockBuildsServerMockRecorder) GetBuild Uses

func (mr *MockBuildsServerMockRecorder) GetBuild(arg0, arg1 interface{}) *gomock.Call

GetBuild indicates an expected call of GetBuild

func (*MockBuildsServerMockRecorder) ScheduleBuild Uses

func (mr *MockBuildsServerMockRecorder) ScheduleBuild(arg0, arg1 interface{}) *gomock.Call

ScheduleBuild indicates an expected call of ScheduleBuild

func (*MockBuildsServerMockRecorder) SearchBuilds Uses

func (mr *MockBuildsServerMockRecorder) SearchBuilds(arg0, arg1 interface{}) *gomock.Call

SearchBuilds indicates an expected call of SearchBuilds

func (*MockBuildsServerMockRecorder) UpdateBuild Uses

func (mr *MockBuildsServerMockRecorder) UpdateBuild(arg0, arg1 interface{}) *gomock.Call

UpdateBuild indicates an expected call of UpdateBuild

type MockisBatchRequest_Request_Request Uses

type MockisBatchRequest_Request_Request struct {
    // contains filtered or unexported fields
}

MockisBatchRequest_Request_Request is a mock of isBatchRequest_Request_Request interface

func NewMockisBatchRequest_Request_Request Uses

func NewMockisBatchRequest_Request_Request(ctrl *gomock.Controller) *MockisBatchRequest_Request_Request

NewMockisBatchRequest_Request_Request creates a new mock instance

func (*MockisBatchRequest_Request_Request) EXPECT Uses

func (m *MockisBatchRequest_Request_Request) EXPECT() *MockisBatchRequest_Request_RequestMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

type MockisBatchRequest_Request_RequestMockRecorder Uses

type MockisBatchRequest_Request_RequestMockRecorder struct {
    // contains filtered or unexported fields
}

MockisBatchRequest_Request_RequestMockRecorder is the mock recorder for MockisBatchRequest_Request_Request

type MockisBatchResponse_Response_Response Uses

type MockisBatchResponse_Response_Response struct {
    // contains filtered or unexported fields
}

MockisBatchResponse_Response_Response is a mock of isBatchResponse_Response_Response interface

func NewMockisBatchResponse_Response_Response Uses

func NewMockisBatchResponse_Response_Response(ctrl *gomock.Controller) *MockisBatchResponse_Response_Response

NewMockisBatchResponse_Response_Response creates a new mock instance

func (*MockisBatchResponse_Response_Response) EXPECT Uses

func (m *MockisBatchResponse_Response_Response) EXPECT() *MockisBatchResponse_Response_ResponseMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

type MockisBatchResponse_Response_ResponseMockRecorder Uses

type MockisBatchResponse_Response_ResponseMockRecorder struct {
    // contains filtered or unexported fields
}

MockisBatchResponse_Response_ResponseMockRecorder is the mock recorder for MockisBatchResponse_Response_Response

type Notification Uses

type Notification struct {
    // When this notification was created.
    Timestamp *timestamp.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
    // Cloud Project ID of the Buildbucket instance that sent this notification,
    // e.g. "cr-buildbucket".
    // Useful if a service listens to both prod and dev instances of buildbucket.
    AppId string `protobuf:"bytes,2,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty"`
    // Buildbucket build id.
    // Use GetBuild rpc to load the contents.
    BuildId int64 `protobuf:"varint,3,opt,name=build_id,json=buildId,proto3" json:"build_id,omitempty"`
    // User-defined opaque blob specified in NotificationConfig.user_data.
    UserData             []byte   `protobuf:"bytes,4,opt,name=user_data,json=userData,proto3" json:"user_data,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

A notification about a build.

func (*Notification) Descriptor Uses

func (*Notification) Descriptor() ([]byte, []int)

func (*Notification) GetAppId Uses

func (m *Notification) GetAppId() string

func (*Notification) GetBuildId Uses

func (m *Notification) GetBuildId() int64

func (*Notification) GetTimestamp Uses

func (m *Notification) GetTimestamp() *timestamp.Timestamp

func (*Notification) GetUserData Uses

func (m *Notification) GetUserData() []byte

func (*Notification) ProtoMessage Uses

func (*Notification) ProtoMessage()

func (*Notification) Reset Uses

func (m *Notification) Reset()

func (*Notification) String Uses

func (m *Notification) String() string

func (*Notification) XXX_DiscardUnknown Uses

func (m *Notification) XXX_DiscardUnknown()

func (*Notification) XXX_Marshal Uses

func (m *Notification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Notification) XXX_Merge Uses

func (m *Notification) XXX_Merge(src proto.Message)

func (*Notification) XXX_Size Uses

func (m *Notification) XXX_Size() int

func (*Notification) XXX_Unmarshal Uses

func (m *Notification) XXX_Unmarshal(b []byte) error

type NotificationConfig Uses

type NotificationConfig struct {
    // Target Cloud PubSub topic.
    // Usually has format "projects/{cloud project}/topics/{topic name}".
    //
    // The PubSub message data is a Notification message in binary format.
    //
    // <buildbucket-app-id>@appspot.gserviceaccount.com must have
    // "pubsub.topics.publish" permissions on the topic, where
    // <buildbucket-app-id> is usually "cr-buildbucket."
    PubsubTopic string `protobuf:"bytes,1,opt,name=pubsub_topic,json=pubsubTopic,proto3" json:"pubsub_topic,omitempty"`
    // Will be available in Notification.user_data.
    // Max length: 4096.
    UserData             []byte   `protobuf:"bytes,2,opt,name=user_data,json=userData,proto3" json:"user_data,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

Configuration of notifications.

func (*NotificationConfig) Descriptor Uses

func (*NotificationConfig) Descriptor() ([]byte, []int)

func (*NotificationConfig) GetPubsubTopic Uses

func (m *NotificationConfig) GetPubsubTopic() string

func (*NotificationConfig) GetUserData Uses

func (m *NotificationConfig) GetUserData() []byte

func (*NotificationConfig) ProtoMessage Uses

func (*NotificationConfig) ProtoMessage()

func (*NotificationConfig) Reset Uses

func (m *NotificationConfig) Reset()

func (*NotificationConfig) String Uses

func (m *NotificationConfig) String() string

func (*NotificationConfig) XXX_DiscardUnknown Uses

func (m *NotificationConfig) XXX_DiscardUnknown()

func (*NotificationConfig) XXX_Marshal Uses

func (m *NotificationConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NotificationConfig) XXX_Merge Uses

func (m *NotificationConfig) XXX_Merge(src proto.Message)

func (*NotificationConfig) XXX_Size Uses

func (m *NotificationConfig) XXX_Size() int

func (*NotificationConfig) XXX_Unmarshal Uses

func (m *NotificationConfig) XXX_Unmarshal(b []byte) error

type RequestedDimension Uses

type RequestedDimension struct {
    Key   string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
    Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
    // If set, ignore this dimension after this duration.
    Expiration           *duration.Duration `protobuf:"bytes,3,opt,name=expiration,proto3" json:"expiration,omitempty"`
    XXX_NoUnkeyedLiteral struct{}           `json:"-"`
    XXX_unrecognized     []byte             `json:"-"`
    XXX_sizecache        int32              `json:"-"`
}

A requested dimension. Looks like StringPair, but also has an expiration.

func (*RequestedDimension) Descriptor Uses

func (*RequestedDimension) Descriptor() ([]byte, []int)

func (*RequestedDimension) GetExpiration Uses

func (m *RequestedDimension) GetExpiration() *duration.Duration

func (*RequestedDimension) GetKey Uses

func (m *RequestedDimension) GetKey() string

func (*RequestedDimension) GetValue Uses

func (m *RequestedDimension) GetValue() string

func (*RequestedDimension) ProtoMessage Uses

func (*RequestedDimension) ProtoMessage()

func (*RequestedDimension) Reset Uses

func (m *RequestedDimension) Reset()

func (*RequestedDimension) String Uses

func (m *RequestedDimension) String() string

func (*RequestedDimension) XXX_DiscardUnknown Uses

func (m *RequestedDimension) XXX_DiscardUnknown()

func (*RequestedDimension) XXX_Marshal Uses

func (m *RequestedDimension) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RequestedDimension) XXX_Merge Uses

func (m *RequestedDimension) XXX_Merge(src proto.Message)

func (*RequestedDimension) XXX_Size Uses

func (m *RequestedDimension) XXX_Size() int

func (*RequestedDimension) XXX_Unmarshal Uses

func (m *RequestedDimension) XXX_Unmarshal(b []byte) error

type ScheduleBuildRequest Uses

type ScheduleBuildRequest struct {
    // ** STRONGLY RECOMMENDED **.
    // A unique string id used for detecting duplicate requests.
    // Should be unique at least per requesting identity.
    // Used to dedup build scheduling requests with same id within 1 min.
    // If a build was successfully scheduled with the same request id in the past
    // minute, the existing build will be returned.
    RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
    // ID of a build to retry as is or altered.
    // When specified, fields below default to the values in the template build.
    TemplateBuildId int64 `protobuf:"varint,2,opt,name=template_build_id,json=templateBuildId,proto3" json:"template_build_id,omitempty"`
    // Value for Build.builder. See its comments.
    // Required, unless template_build_id is specified.
    Builder *BuilderID `protobuf:"bytes,3,opt,name=builder,proto3" json:"builder,omitempty"`
    // If specified, overrides server-defined value of
    // Build.infra.buildbucket.canary.
    // Otherwise the value is computed based on the builder config.
    // See Swarming.task_template_canary_percentage in
    // ./config/project_config.proto.
    Canary Trinary `protobuf:"varint,4,opt,name=canary,proto3,enum=buildbucket.v2.Trinary" json:"canary,omitempty"`
    // If specified, overrides server-defined value of Build.input.experimental.
    // Otherwise the value is computed based on the builder config.
    // See Builder.experimental in ./config/project_config.proto.
    Experimental Trinary `protobuf:"varint,5,opt,name=experimental,proto3,enum=buildbucket.v2.Trinary" json:"experimental,omitempty"`
    // Properties to include in Build.input.properties.
    //
    // Input properties of the created build are result of merging server-defined
    // properties and properties in this field.
    // Each property in this field defines a new or replaces an existing property
    // on the server.
    // If the server config does not allow overriding/adding the property, the
    // request will fail with InvalidArgument error code.
    // A server-defined property cannot be removed, but its value can be
    // replaced with null.
    //
    // Reserved property paths:
    // * ["buildbucket"]
    // * ["buildername"]
    // * ["blamelist""]
    // * ["$recipe_engine/runtime", "is_luci"]
    // * ["$recipe_engine/runtime", "is_experimental"]
    //
    // V1 equivalent: corresponds to "properties" key in "parameters_json".
    Properties *_struct.Struct `protobuf:"bytes,6,opt,name=properties,proto3" json:"properties,omitempty"`
    // Value for Build.input.gitiles_commit.
    //
    // Setting this field will cause the created build to have a "buildset"
    // tag with value "commit/gitiles/{hostname}/{project}/+/{id}".
    //
    // GitilesCommit objects MUST have host, project, ref fields set.
    //
    // V1 equivalent: supersedes "revision" property and "buildset"
    // tag that starts with "commit/gitiles/".
    GitilesCommit *GitilesCommit `protobuf:"bytes,7,opt,name=gitiles_commit,json=gitilesCommit,proto3" json:"gitiles_commit,omitempty"`
    // Value for Build.input.gerrit_changes.
    // Usually present in tryjobs, set by CQ, Gerrit, git-cl-try.
    // Applied on top of gitiles_commit if specified, otherwise tip of the tree.
    // All GerritChange fields are required.
    //
    // Setting this field will cause the created build to have a "buildset"
    // tag with value "patch/gerrit/{hostname}/{change}/{patchset}"
    // for each change.
    //
    // V1 equivalent: supersedes patch_* properties and "buildset"
    // tag that starts with "patch/gerrit/".
    GerritChanges []*GerritChange `protobuf:"bytes,8,rep,name=gerrit_changes,json=gerritChanges,proto3" json:"gerrit_changes,omitempty"`
    // Tags to include in Build.tags of the created build, see Build.tags
    // comments.
    // Note: tags of the created build may include other tags defined on the
    // server.
    Tags []*StringPair `protobuf:"bytes,9,rep,name=tags,proto3" json:"tags,omitempty"`
    // Overrides default dimensions defined by builder config or template build.
    //
    // A set of entries with the same key defines a new or replaces an existing
    // dimension with the same key.
    // If the config does not allow overriding/adding the dimension, the request
    // will fail with InvalidArgument error code.
    //
    // After merging, dimensions with empty value will be excluded.
    //
    // A dimension expiration must be a multiple of 1min.
    Dimensions []*RequestedDimension `protobuf:"bytes,10,rep,name=dimensions,proto3" json:"dimensions,omitempty"`
    // If not zero, overrides swarming task priority.
    // See also Build.infra.swarming.priority.
    Priority int32 `protobuf:"varint,11,opt,name=priority,proto3" json:"priority,omitempty"`
    // A per-build notification configuration.
    Notify *NotificationConfig `protobuf:"bytes,12,opt,name=notify,proto3" json:"notify,omitempty"`
    // Fields to include in the response. See also GetBuildRequest.fields.
    Fields *field_mask.FieldMask `protobuf:"bytes,100,opt,name=fields,proto3" json:"fields,omitempty"`
    // Value for Build.critical.
    Critical Trinary `protobuf:"varint,13,opt,name=critical,proto3,enum=buildbucket.v2.Trinary" json:"critical,omitempty"`
    // Overrides Builder.exe in the config.
    // Supported subfields: cipd_version.
    Exe *Executable `protobuf:"bytes,14,opt,name=exe,proto3" json:"exe,omitempty"`
    // Swarming specific part of the build request.
    Swarming             *ScheduleBuildRequest_Swarming `protobuf:"bytes,15,opt,name=swarming,proto3" json:"swarming,omitempty"`
    XXX_NoUnkeyedLiteral struct{}                       `json:"-"`
    XXX_unrecognized     []byte                         `json:"-"`
    XXX_sizecache        int32                          `json:"-"`
}

A request message for ScheduleBuild rpc.

Next ID: 16.

func (*ScheduleBuildRequest) Descriptor Uses

func (*ScheduleBuildRequest) Descriptor() ([]byte, []int)

func (*ScheduleBuildRequest) GetBuilder Uses

func (m *ScheduleBuildRequest) GetBuilder() *BuilderID

func (*ScheduleBuildRequest) GetCanary Uses

func (m *ScheduleBuildRequest) GetCanary() Trinary

func (*ScheduleBuildRequest) GetCritical Uses

func (m *ScheduleBuildRequest) GetCritical() Trinary

func (*ScheduleBuildRequest) GetDimensions Uses

func (m *ScheduleBuildRequest) GetDimensions() []*RequestedDimension

func (*ScheduleBuildRequest) GetExe Uses

func (m *ScheduleBuildRequest) GetExe() *Executable

func (*ScheduleBuildRequest) GetExperimental Uses

func (m *ScheduleBuildRequest) GetExperimental() Trinary

func (*ScheduleBuildRequest) GetFields Uses

func (m *ScheduleBuildRequest) GetFields() *field_mask.FieldMask

func (*ScheduleBuildRequest) GetGerritChanges Uses

func (m *ScheduleBuildRequest) GetGerritChanges() []*GerritChange

func (*ScheduleBuildRequest) GetGitilesCommit Uses

func (m *ScheduleBuildRequest) GetGitilesCommit() *GitilesCommit

func (*ScheduleBuildRequest) GetNotify Uses

func (m *ScheduleBuildRequest) GetNotify() *NotificationConfig

func (*ScheduleBuildRequest) GetPriority Uses

func (m *ScheduleBuildRequest) GetPriority() int32

func (*ScheduleBuildRequest) GetProperties Uses

func (m *ScheduleBuildRequest) GetProperties() *_struct.Struct

func (*ScheduleBuildRequest) GetRequestId Uses

func (m *ScheduleBuildRequest) GetRequestId() string

func (*ScheduleBuildRequest) GetSwarming Uses

func (m *ScheduleBuildRequest) GetSwarming() *ScheduleBuildRequest_Swarming

func (*ScheduleBuildRequest) GetTags Uses

func (m *ScheduleBuildRequest) GetTags() []*StringPair

func (*ScheduleBuildRequest) GetTemplateBuildId Uses

func (m *ScheduleBuildRequest) GetTemplateBuildId() int64

func (*ScheduleBuildRequest) ProtoMessage Uses

func (*ScheduleBuildRequest) ProtoMessage()

func (*ScheduleBuildRequest) Reset Uses

func (m *ScheduleBuildRequest) Reset()

func (*ScheduleBuildRequest) String Uses

func (m *ScheduleBuildRequest) String() string

func (*ScheduleBuildRequest) XXX_DiscardUnknown Uses

func (m *ScheduleBuildRequest) XXX_DiscardUnknown()

func (*ScheduleBuildRequest) XXX_Marshal Uses

func (m *ScheduleBuildRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ScheduleBuildRequest) XXX_Merge Uses

func (m *ScheduleBuildRequest) XXX_Merge(src proto.Message)

func (*ScheduleBuildRequest) XXX_Size Uses

func (m *ScheduleBuildRequest) XXX_Size() int

func (*ScheduleBuildRequest) XXX_Unmarshal Uses

func (m *ScheduleBuildRequest) XXX_Unmarshal(b []byte) error

type ScheduleBuildRequest_Swarming Uses

type ScheduleBuildRequest_Swarming struct {
    // If specified, parent_run_id should match actual Swarming task run ID the
    // caller is running as and results in swarming server ensuring that the newly
    // triggered build will not outlive its parent.
    //
    // Typical use is for triggering and waiting on child build(s) from within
    // 1 parent build and if child build(s) on their own aren't useful. Then,
    // if parent build ends for whatever reason, all not yet finished child
    // builds aren't useful and it's desirable to terminate them, too.
    //
    // If the Builder config does not specify a swarming backend, the request
    // will fail with InvalidArgument error code.
    //
    // The parent_run_id is assumed to be from the same swarming server as the
    // one the new build is to be executed on. The ScheduleBuildRequest doesn't
    // check if parent_run_id refers to actually existing task, but eventually
    // the new build will fail if so.
    ParentRunId          string   `protobuf:"bytes,1,opt,name=parent_run_id,json=parentRunId,proto3" json:"parent_run_id,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

Swarming specific part of the build request.

func (*ScheduleBuildRequest_Swarming) Descriptor Uses

func (*ScheduleBuildRequest_Swarming) Descriptor() ([]byte, []int)

func (*ScheduleBuildRequest_Swarming) GetParentRunId Uses

func (m *ScheduleBuildRequest_Swarming) GetParentRunId() string

func (*ScheduleBuildRequest_Swarming) ProtoMessage Uses

func (*ScheduleBuildRequest_Swarming) ProtoMessage()

func (*ScheduleBuildRequest_Swarming) Reset Uses

func (m *ScheduleBuildRequest_Swarming) Reset()

func (*ScheduleBuildRequest_Swarming) String Uses

func (m *ScheduleBuildRequest_Swarming) String() string

func (*ScheduleBuildRequest_Swarming) XXX_DiscardUnknown Uses

func (m *ScheduleBuildRequest_Swarming) XXX_DiscardUnknown()

func (*ScheduleBuildRequest_Swarming) XXX_Marshal Uses

func (m *ScheduleBuildRequest_Swarming) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ScheduleBuildRequest_Swarming) XXX_Merge Uses

func (m *ScheduleBuildRequest_Swarming) XXX_Merge(src proto.Message)

func (*ScheduleBuildRequest_Swarming) XXX_Size Uses

func (m *ScheduleBuildRequest_Swarming) XXX_Size() int

func (*ScheduleBuildRequest_Swarming) XXX_Unmarshal Uses

func (m *ScheduleBuildRequest_Swarming) XXX_Unmarshal(b []byte) error

type SearchBuildsRequest Uses

type SearchBuildsRequest struct {
    // Returned builds must satisfy this predicate. Required.
    Predicate *BuildPredicate `protobuf:"bytes,1,opt,name=predicate,proto3" json:"predicate,omitempty"`
    // Fields to include in the response, see GetBuildRequest.fields.
    // Note that this applies to the response, not each build, so e.g. steps must
    // be requested with a path "builds.*.steps".
    Fields *field_mask.FieldMask `protobuf:"bytes,100,opt,name=fields,proto3" json:"fields,omitempty"`
    // Number of builds to return.
    // Defaults to 100.
    // Any value >1000 is interpreted as 1000.
    PageSize int32 `protobuf:"varint,101,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
    // Value of SearchBuildsResponse.next_page_token from the previous response.
    // Use it to continue searching.
    // The predicate and page_size in this request MUST be exactly same as in the
    // previous request.
    PageToken            string   `protobuf:"bytes,102,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

A request message for SearchBuilds rpc.

func (*SearchBuildsRequest) Descriptor Uses

func (*SearchBuildsRequest) Descriptor() ([]byte, []int)

func (*SearchBuildsRequest) GetFields Uses

func (m *SearchBuildsRequest) GetFields() *field_mask.FieldMask

func (*SearchBuildsRequest) GetPageSize Uses

func (m *SearchBuildsRequest) GetPageSize() int32

func (*SearchBuildsRequest) GetPageToken Uses

func (m *SearchBuildsRequest) GetPageToken() string

func (*SearchBuildsRequest) GetPredicate Uses

func (m *SearchBuildsRequest) GetPredicate() *BuildPredicate

func (*SearchBuildsRequest) ProtoMessage Uses

func (*SearchBuildsRequest) ProtoMessage()

func (*SearchBuildsRequest) Reset Uses

func (m *SearchBuildsRequest) Reset()

func (*SearchBuildsRequest) String Uses

func (m *SearchBuildsRequest) String() string

func (*SearchBuildsRequest) XXX_DiscardUnknown Uses

func (m *SearchBuildsRequest) XXX_DiscardUnknown()

func (*SearchBuildsRequest) XXX_Marshal Uses

func (m *SearchBuildsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SearchBuildsRequest) XXX_Merge Uses

func (m *SearchBuildsRequest) XXX_Merge(src proto.Message)

func (*SearchBuildsRequest) XXX_Size Uses

func (m *SearchBuildsRequest) XXX_Size() int

func (*SearchBuildsRequest) XXX_Unmarshal Uses

func (m *SearchBuildsRequest) XXX_Unmarshal(b []byte) error

type SearchBuildsResponse Uses

type SearchBuildsResponse struct {
    // Search results.
    //
    // Ordered by build id, descending. Ids are monotonically decreasing, so in
    // other words the order is newest-to-oldest.
    Builds []*Build `protobuf:"bytes,1,rep,name=builds,proto3" json:"builds,omitempty"`
    // Value for SearchBuildsRequest.page_token to continue searching.
    NextPageToken        string   `protobuf:"bytes,100,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

A response message for SearchBuilds rpc.

func (*SearchBuildsResponse) Descriptor Uses

func (*SearchBuildsResponse) Descriptor() ([]byte, []int)

func (*SearchBuildsResponse) GetBuilds Uses

func (m *SearchBuildsResponse) GetBuilds() []*Build

func (*SearchBuildsResponse) GetNextPageToken Uses

func (m *SearchBuildsResponse) GetNextPageToken() string

func (*SearchBuildsResponse) ProtoMessage Uses

func (*SearchBuildsResponse) ProtoMessage()

func (*SearchBuildsResponse) Reset Uses

func (m *SearchBuildsResponse) Reset()

func (*SearchBuildsResponse) String Uses

func (m *SearchBuildsResponse) String() string

func (*SearchBuildsResponse) XXX_DiscardUnknown Uses

func (m *SearchBuildsResponse) XXX_DiscardUnknown()

func (*SearchBuildsResponse) XXX_Marshal Uses

func (m *SearchBuildsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SearchBuildsResponse) XXX_Merge Uses

func (m *SearchBuildsResponse) XXX_Merge(src proto.Message)

func (*SearchBuildsResponse) XXX_Size Uses

func (m *SearchBuildsResponse) XXX_Size() int

func (*SearchBuildsResponse) XXX_Unmarshal Uses

func (m *SearchBuildsResponse) XXX_Unmarshal(b []byte) error

type SettingsCfg Uses

type SettingsCfg struct {
    // Swarmbucket settings.
    Swarming *SwarmingSettings `protobuf:"bytes,1,opt,name=swarming,proto3" json:"swarming,omitempty"`
    Logdog   *LogDogSettings   `protobuf:"bytes,2,opt,name=logdog,proto3" json:"logdog,omitempty"`
    // List of Gerrit hosts to force git authentication for.
    //
    // By default public hosts are accessed anonymously, and the anonymous access
    // has very low quota. Context needs to know all such hostnames in advance to
    // be able to force authenticated access to them.
    KnownPublicGerritHosts []string `protobuf:"bytes,3,rep,name=known_public_gerrit_hosts,json=knownPublicGerritHosts,proto3" json:"known_public_gerrit_hosts,omitempty"`
    XXX_NoUnkeyedLiteral   struct{} `json:"-"`
    XXX_unrecognized       []byte   `json:"-"`
    XXX_sizecache          int32    `json:"-"`
}

Schema of settings.cfg file, a service config.

func (*SettingsCfg) Descriptor Uses

func (*SettingsCfg) Descriptor() ([]byte, []int)

func (*SettingsCfg) GetKnownPublicGerritHosts Uses

func (m *SettingsCfg) GetKnownPublicGerritHosts() []string

func (*SettingsCfg) GetLogdog Uses

func (m *SettingsCfg) GetLogdog() *LogDogSettings

func (*SettingsCfg) GetSwarming Uses

func (m *SettingsCfg) GetSwarming() *SwarmingSettings

func (*SettingsCfg) ProtoMessage Uses

func (*SettingsCfg) ProtoMessage()

func (*SettingsCfg) Reset Uses

func (m *SettingsCfg) Reset()

func (*SettingsCfg) String Uses

func (m *SettingsCfg) String() string

func (*SettingsCfg) XXX_DiscardUnknown Uses

func (m *SettingsCfg) XXX_DiscardUnknown()

func (*SettingsCfg) XXX_Marshal Uses

func (m *SettingsCfg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SettingsCfg) XXX_Merge Uses

func (m *SettingsCfg) XXX_Merge(src proto.Message)

func (*SettingsCfg) XXX_Size Uses

func (m *SettingsCfg) XXX_Size() int

func (*SettingsCfg) XXX_Unmarshal Uses

func (m *SettingsCfg) XXX_Unmarshal(b []byte) error

type Status Uses

type Status int32

Status of a build or a step.

const (
    // Unspecified state. Meaning depends on the context.
    Status_STATUS_UNSPECIFIED Status = 0
    // Build was scheduled, but did not start or end yet.
    Status_SCHEDULED Status = 1
    // Build/step has started.
    Status_STARTED Status = 2
    // A union of all terminal statuses.
    // Can be used in BuildPredicate.status.
    // A concrete build/step cannot have this status.
    // Can be used as a bitmask to check that a build/step ended.
    Status_ENDED_MASK Status = 4
    // A build/step ended successfully.
    // This is a terminal status. It may not transition to another status.
    Status_SUCCESS Status = 12
    // A build/step ended unsuccessfully due to its Build.Input,
    // e.g. tests failed, and NOT due to a build infrastructure failure.
    // This is a terminal status. It may not transition to another status.
    Status_FAILURE Status = 20
    // A build/step ended unsuccessfully due to a failure independent of the
    // input, e.g. swarming failed, not enough capacity or the recipe was unable
    // to read the patch from gerrit.
    // start_time is not required for this status.
    // This is a terminal status. It may not transition to another status.
    Status_INFRA_FAILURE Status = 36
    // A build was cancelled explicitly, e.g. via an RPC.
    // This is a terminal status. It may not transition to another status.
    Status_CANCELED Status = 68
)

func (Status) EnumDescriptor Uses

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

func (Status) String Uses

func (x Status) String() string

type StatusDetails Uses

type StatusDetails struct {
    // If set, indicates that the failure was due to a resource exhaustion / quota
    // denial.
    // Applicable in FAILURE and INFRA_FAILURE statuses.
    ResourceExhaustion *StatusDetails_ResourceExhaustion `protobuf:"bytes,3,opt,name=resource_exhaustion,json=resourceExhaustion,proto3" json:"resource_exhaustion,omitempty"`
    // If set, indicates that the failure was due to a timeout.
    // Applicable in FAILURE and INFRA_FAILURE statuses.
    Timeout              *StatusDetails_Timeout `protobuf:"bytes,4,opt,name=timeout,proto3" json:"timeout,omitempty"`
    XXX_NoUnkeyedLiteral struct{}               `json:"-"`
    XXX_unrecognized     []byte                 `json:"-"`
    XXX_sizecache        int32                  `json:"-"`
}

Machine-readable details of a status. Human-readble details are present in a sibling summary_markdown field.

func (*StatusDetails) Descriptor Uses

func (*StatusDetails) Descriptor() ([]byte, []int)

func (*StatusDetails) GetResourceExhaustion Uses

func (m *StatusDetails) GetResourceExhaustion() *StatusDetails_ResourceExhaustion

func (*StatusDetails) GetTimeout Uses

func (m *StatusDetails) GetTimeout() *StatusDetails_Timeout

func (*StatusDetails) ProtoMessage Uses

func (*StatusDetails) ProtoMessage()

func (*StatusDetails) Reset Uses

func (m *StatusDetails) Reset()

func (*StatusDetails) String Uses

func (m *StatusDetails) String() string

func (*StatusDetails) XXX_DiscardUnknown Uses

func (m *StatusDetails) XXX_DiscardUnknown()

func (*StatusDetails) XXX_Marshal Uses

func (m *StatusDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StatusDetails) XXX_Merge Uses

func (m *StatusDetails) XXX_Merge(src proto.Message)

func (*StatusDetails) XXX_Size Uses

func (m *StatusDetails) XXX_Size() int

func (*StatusDetails) XXX_Unmarshal Uses

func (m *StatusDetails) XXX_Unmarshal(b []byte) error

type StatusDetails_ResourceExhaustion Uses

type StatusDetails_ResourceExhaustion struct {
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*StatusDetails_ResourceExhaustion) Descriptor Uses

func (*StatusDetails_ResourceExhaustion) Descriptor() ([]byte, []int)

func (*StatusDetails_ResourceExhaustion) ProtoMessage Uses

func (*StatusDetails_ResourceExhaustion) ProtoMessage()

func (*StatusDetails_ResourceExhaustion) Reset Uses

func (m *StatusDetails_ResourceExhaustion) Reset()

func (*StatusDetails_ResourceExhaustion) String Uses

func (m *StatusDetails_ResourceExhaustion) String() string

func (*StatusDetails_ResourceExhaustion) XXX_DiscardUnknown Uses

func (m *StatusDetails_ResourceExhaustion) XXX_DiscardUnknown()

func (*StatusDetails_ResourceExhaustion) XXX_Marshal Uses

func (m *StatusDetails_ResourceExhaustion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StatusDetails_ResourceExhaustion) XXX_Merge Uses

func (m *StatusDetails_ResourceExhaustion) XXX_Merge(src proto.Message)

func (*StatusDetails_ResourceExhaustion) XXX_Size Uses

func (m *StatusDetails_ResourceExhaustion) XXX_Size() int

func (*StatusDetails_ResourceExhaustion) XXX_Unmarshal Uses

func (m *StatusDetails_ResourceExhaustion) XXX_Unmarshal(b []byte) error

type StatusDetails_Timeout Uses

type StatusDetails_Timeout struct {
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*StatusDetails_Timeout) Descriptor Uses

func (*StatusDetails_Timeout) Descriptor() ([]byte, []int)

func (*StatusDetails_Timeout) ProtoMessage Uses

func (*StatusDetails_Timeout) ProtoMessage()

func (*StatusDetails_Timeout) Reset Uses

func (m *StatusDetails_Timeout) Reset()

func (*StatusDetails_Timeout) String Uses

func (m *StatusDetails_Timeout) String() string

func (*StatusDetails_Timeout) XXX_DiscardUnknown Uses

func (m *StatusDetails_Timeout) XXX_DiscardUnknown()

func (*StatusDetails_Timeout) XXX_Marshal Uses

func (m *StatusDetails_Timeout) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StatusDetails_Timeout) XXX_Merge Uses

func (m *StatusDetails_Timeout) XXX_Merge(src proto.Message)

func (*StatusDetails_Timeout) XXX_Size Uses

func (m *StatusDetails_Timeout) XXX_Size() int

func (*StatusDetails_Timeout) XXX_Unmarshal Uses

func (m *StatusDetails_Timeout) XXX_Unmarshal(b []byte) error

type Step Uses

type Step struct {
    // Name of the step, unique within the build.
    // Identifies the step.
    //
    // Pipe character ("|") is reserved to separate parent and child step names.
    // For example, value "a|b" indicates step "b" under step "a".
    // If this is a child step, a parent MUST exist and MUST precede this step in
    // the list of steps.
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // The timestamp when the step started.
    // Required iff status is STARTED, SUCCESS or FAILURE, or if the step has
    // children.
    // MUST NOT be after start_time/end_time of any of the children.
    StartTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
    // The timestamp when the step ended.
    // Present iff status is terminal.
    // MUST NOT be before start_time.
    // MUST NOT be before start/end_time of any of the children.
    EndTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
    // Status of the step.
    // Must be specified, i.e. not STATUS_UNSPECIFIED.
    //
    // If the step has children
    //   status MUST NOT be SCHEDULED.
    //   status MUST be STARTED if status of any child is not terminal.
    //
    //   status MUST NOT be "better" than statuses of its children,
    //   where "better" relation is defined by the following order,
    //   from good to bad:
    //     SUCCESS
    //     FAILURE
    //     INFRA_FAILURE
    //     CANCELED
    //   Note that this defines "better" relation only for some statuses.
    //   For those statuses where "better" is not defined, this rule does not
    //   apply.
    Status Status `protobuf:"varint,4,opt,name=status,proto3,enum=buildbucket.v2.Status" json:"status,omitempty"`
    // Logs produced by the step.
    // Log order is up to the step.
    //
    // BigQuery: excluded from rows.
    Logs []*Log `protobuf:"bytes,5,rep,name=logs,proto3" json:"logs,omitempty"`
    // Human-readable summary of the step provided by the step itself,
    // in Markdown format (https://spec.commonmark.org/0.28/).
    //
    // V1 equivalent: combines and supersedes Buildbot's step_text and step links and also supports
    // other formatted text.
    //
    // BigQuery: excluded from rows.
    SummaryMarkdown      string   `protobuf:"bytes,7,opt,name=summary_markdown,json=summaryMarkdown,proto3" json:"summary_markdown,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

A build step.

A step may have children, see name field.

func (*Step) Descriptor Uses

func (*Step) Descriptor() ([]byte, []int)

func (*Step) GetEndTime Uses

func (m *Step) GetEndTime() *timestamp.Timestamp

func (*Step) GetLogs Uses

func (m *Step) GetLogs() []*Log

func (*Step) GetName Uses

func (m *Step) GetName() string

func (*Step) GetStartTime Uses

func (m *Step) GetStartTime() *timestamp.Timestamp

func (*Step) GetStatus Uses

func (m *Step) GetStatus() Status

func (*Step) GetSummaryMarkdown Uses

func (m *Step) GetSummaryMarkdown() string

func (*Step) ProtoMessage Uses

func (*Step) ProtoMessage()

func (*Step) Reset Uses

func (m *Step) Reset()

func (*Step) String Uses

func (m *Step) String() string

func (*Step) XXX_DiscardUnknown Uses

func (m *Step) XXX_DiscardUnknown()

func (*Step) XXX_Marshal Uses

func (m *Step) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Step) XXX_Merge Uses

func (m *Step) XXX_Merge(src proto.Message)

func (*Step) XXX_Size Uses

func (m *Step) XXX_Size() int

func (*Step) XXX_Unmarshal Uses

func (m *Step) XXX_Unmarshal(b []byte) error

type StringPair Uses

type StringPair struct {
    Key                  string   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
    Value                string   `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

A key-value pair of strings.

func (*StringPair) Descriptor Uses

func (*StringPair) Descriptor() ([]byte, []int)

func (*StringPair) GetKey Uses

func (m *StringPair) GetKey() string

func (*StringPair) GetValue Uses

func (m *StringPair) GetValue() string

func (*StringPair) ProtoMessage Uses

func (*StringPair) ProtoMessage()

func (*StringPair) Reset Uses

func (m *StringPair) Reset()

func (*StringPair) String Uses

func (m *StringPair) String() string

func (*StringPair) XXX_DiscardUnknown Uses

func (m *StringPair) XXX_DiscardUnknown()

func (*StringPair) XXX_Marshal Uses

func (m *StringPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StringPair) XXX_Merge Uses

func (m *StringPair) XXX_Merge(src proto.Message)

func (*StringPair) XXX_Size Uses

func (m *StringPair) XXX_Size() int

func (*StringPair) XXX_Unmarshal Uses

func (m *StringPair) XXX_Unmarshal(b []byte) error

type Swarming Uses

type Swarming struct {
    // DEPRECATED. Use builder_defaults.swarming_host instead.
    // Setting this fields sets builder_defaults.swarming_host.
    Hostname string `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"`
    // DEPRECATED, IGNORED.
    // Used to generate a URL for Build, may contain parameters
    // {swarming_hostname}, {task_id}, {bucket} and {builder}. Defaults to:
    // https://{swarming_hostname}/user/task/{task_id}
    UrlFormat string `protobuf:"bytes,2,opt,name=url_format,json=urlFormat,proto3" json:"url_format,omitempty"`
    // Defines default values for builders.
    BuilderDefaults *Builder `protobuf:"bytes,3,opt,name=builder_defaults,json=builderDefaults,proto3" json:"builder_defaults,omitempty"`
    // Configuration for each builder.
    // Swarming tasks are created only for builds for builders that are not
    // explicitly specified.
    Builders []*Builder `protobuf:"bytes,4,rep,name=builders,proto3" json:"builders,omitempty"`
    // DEPRECATED. Use builder_defaults.task_template_canary_percentage instead.
    // Setting this field sets builder_defaults.task_template_canary_percentage.
    TaskTemplateCanaryPercentage *wrappers.UInt32Value `protobuf:"bytes,5,opt,name=task_template_canary_percentage,json=taskTemplateCanaryPercentage,proto3" json:"task_template_canary_percentage,omitempty"`
    XXX_NoUnkeyedLiteral         struct{}              `json:"-"`
    XXX_unrecognized             []byte                `json:"-"`
    XXX_sizecache                int32                 `json:"-"`
}

Configuration of buildbucket-swarming integration for one bucket.

func (*Swarming) Descriptor Uses

func (*Swarming) Descriptor() ([]byte, []int)

func (*Swarming) GetBuilderDefaults Uses

func (m *Swarming) GetBuilderDefaults() *Builder

func (*Swarming) GetBuilders Uses

func (m *Swarming) GetBuilders() []*Builder

func (*Swarming) GetHostname Uses

func (m *Swarming) GetHostname() string

func (*Swarming) GetTaskTemplateCanaryPercentage Uses

func (m *Swarming) GetTaskTemplateCanaryPercentage() *wrappers.UInt32Value

func (*Swarming) GetUrlFormat Uses

func (m *Swarming) GetUrlFormat() string

func (*Swarming) ProtoMessage Uses

func (*Swarming) ProtoMessage()

func (*Swarming) Reset Uses

func (m *Swarming) Reset()

func (*Swarming) String Uses

func (m *Swarming) String() string

func (*Swarming) XXX_DiscardUnknown Uses

func (m *Swarming) XXX_DiscardUnknown()

func (*Swarming) XXX_Marshal Uses

func (m *Swarming) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Swarming) XXX_Merge Uses

func (m *Swarming) XXX_Merge(src proto.Message)

func (*Swarming) XXX_Size Uses

func (m *Swarming) XXX_Size() int

func (*Swarming) XXX_Unmarshal Uses

func (m *Swarming) XXX_Unmarshal(b []byte) error

type SwarmingSettings Uses

type SwarmingSettings struct {
    // Swarmbucket build URLs will point to this Milo instance.
    MiloHostname string `protobuf:"bytes,2,opt,name=milo_hostname,json=miloHostname,proto3" json:"milo_hostname,omitempty"`
    // These caches are available to all builders implicitly.
    // A builder may override a cache specified here.
    GlobalCaches []*Builder_CacheEntry `protobuf:"bytes,4,rep,name=global_caches,json=globalCaches,proto3" json:"global_caches,omitempty"`
    // Packages available to the user executable in $PATH.
    // Installed in "{TASK_RUN_DIR}/cipd_bin_packages".
    // "{TASK_RUN_DIR}/cipd_bin_packages" and
    // "{TASK_RUN_DIR}/cipd_bin_packages/bin" are prepended to $PATH.
    UserPackages []*SwarmingSettings_Package `protobuf:"bytes,5,rep,name=user_packages,json=userPackages,proto3" json:"user_packages,omitempty"`
    // Package of buildbucket agent,
    // https://chromium.googlesource.com/infra/luci/luci-go/+/HEAD/buildbucket/cmd/bbagent
    // used to run LUCI executables.
    BbagentPackage *SwarmingSettings_Package `protobuf:"bytes,8,opt,name=bbagent_package,json=bbagentPackage,proto3" json:"bbagent_package,omitempty"`
    // CIPD package of kitchen binary. DEPRECATED. TODO(nodir): remove.
    KitchenPackage       *SwarmingSettings_Package `protobuf:"bytes,7,opt,name=kitchen_package,json=kitchenPackage,proto3" json:"kitchen_package,omitempty"`
    XXX_NoUnkeyedLiteral struct{}                  `json:"-"`
    XXX_unrecognized     []byte                    `json:"-"`
    XXX_sizecache        int32                     `json:"-"`
}

Swarmbucket settings.

func (*SwarmingSettings) Descriptor Uses

func (*SwarmingSettings) Descriptor() ([]byte, []int)

func (*SwarmingSettings) GetBbagentPackage Uses

func (m *SwarmingSettings) GetBbagentPackage() *SwarmingSettings_Package

func (*SwarmingSettings) GetGlobalCaches Uses

func (m *SwarmingSettings) GetGlobalCaches() []*Builder_CacheEntry

func (*SwarmingSettings) GetKitchenPackage Uses

func (m *SwarmingSettings) GetKitchenPackage() *SwarmingSettings_Package

func (*SwarmingSettings) GetMiloHostname Uses

func (m *SwarmingSettings) GetMiloHostname() string

func (*SwarmingSettings) GetUserPackages Uses

func (m *SwarmingSettings) GetUserPackages() []*SwarmingSettings_Package

func (*SwarmingSettings) ProtoMessage Uses

func (*SwarmingSettings) ProtoMessage()

func (*SwarmingSettings) Reset Uses

func (m *SwarmingSettings) Reset()

func (*SwarmingSettings) String Uses

func (m *SwarmingSettings) String() string

func (*SwarmingSettings) XXX_DiscardUnknown Uses

func (m *SwarmingSettings) XXX_DiscardUnknown()

func (*SwarmingSettings) XXX_Marshal Uses

func (m *SwarmingSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SwarmingSettings) XXX_Merge Uses

func (m *SwarmingSettings) XXX_Merge(src proto.Message)

func (*SwarmingSettings) XXX_Size Uses

func (m *SwarmingSettings) XXX_Size() int

func (*SwarmingSettings) XXX_Unmarshal Uses

func (m *SwarmingSettings) XXX_Unmarshal(b []byte) error

type SwarmingSettings_Package Uses

type SwarmingSettings_Package struct {
    // CIPD package name, e.g. "infra/python/cpython/${platform}"
    PackageName string `protobuf:"bytes,1,opt,name=package_name,json=packageName,proto3" json:"package_name,omitempty"`
    // CIPD instance version, e.g. "version:2.7.15.chromium14".
    // Used for non-canary builds.
    Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
    // CIPD instance version for canary builds.
    // Defaults to version.
    VersionCanary string `protobuf:"bytes,3,opt,name=version_canary,json=versionCanary,proto3" json:"version_canary,omitempty"`
    // Include in builders matching the predicate.
    Builders *BuilderPredicate `protobuf:"bytes,4,opt,name=builders,proto3" json:"builders,omitempty"`
    // Subdirectory to install the package into, relative to the installation
    // root. Useful if installing two packages at the same root would conflict.
    Subdir               string   `protobuf:"bytes,5,opt,name=subdir,proto3" json:"subdir,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

CIPD package. Does not specify installation path.

func (*SwarmingSettings_Package) Descriptor Uses

func (*SwarmingSettings_Package) Descriptor() ([]byte, []int)

func (*SwarmingSettings_Package) GetBuilders Uses

func (m *SwarmingSettings_Package) GetBuilders() *BuilderPredicate

func (*SwarmingSettings_Package) GetPackageName Uses

func (m *SwarmingSettings_Package) GetPackageName() string

func (*SwarmingSettings_Package) GetSubdir Uses

func (m *SwarmingSettings_Package) GetSubdir() string

func (*SwarmingSettings_Package) GetVersion Uses

func (m *SwarmingSettings_Package) GetVersion() string

func (*SwarmingSettings_Package) GetVersionCanary Uses

func (m *SwarmingSettings_Package) GetVersionCanary() string

func (*SwarmingSettings_Package) ProtoMessage Uses

func (*SwarmingSettings_Package) ProtoMessage()

func (*SwarmingSettings_Package) Reset Uses

func (m *SwarmingSettings_Package) Reset()

func (*SwarmingSettings_Package) String Uses

func (m *SwarmingSettings_Package) String() string

func (*SwarmingSettings_Package) XXX_DiscardUnknown Uses

func (m *SwarmingSettings_Package) XXX_DiscardUnknown()

func (*SwarmingSettings_Package) XXX_Marshal Uses

func (m *SwarmingSettings_Package) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SwarmingSettings_Package) XXX_Merge Uses

func (m *SwarmingSettings_Package) XXX_Merge(src proto.Message)

func (*SwarmingSettings_Package) XXX_Size Uses

func (m *SwarmingSettings_Package) XXX_Size() int

func (*SwarmingSettings_Package) XXX_Unmarshal Uses

func (m *SwarmingSettings_Package) XXX_Unmarshal(b []byte) error

type TimeRange Uses

type TimeRange struct {
    // Inclusive lower boundary. Optional.
    StartTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
    // Exclusive upper boundary. Optional.
    EndTime              *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
    XXX_NoUnkeyedLiteral struct{}             `json:"-"`
    XXX_unrecognized     []byte               `json:"-"`
    XXX_sizecache        int32                `json:"-"`
}

Half-open time range.

func (*TimeRange) Descriptor Uses

func (*TimeRange) Descriptor() ([]byte, []int)

func (*TimeRange) GetEndTime Uses

func (m *TimeRange) GetEndTime() *timestamp.Timestamp

func (*TimeRange) GetStartTime Uses

func (m *TimeRange) GetStartTime() *timestamp.Timestamp

func (*TimeRange) ProtoMessage Uses

func (*TimeRange) ProtoMessage()

func (*TimeRange) Reset Uses

func (m *TimeRange) Reset()

func (*TimeRange) String Uses

func (m *TimeRange) String() string

func (*TimeRange) XXX_DiscardUnknown Uses

func (m *TimeRange) XXX_DiscardUnknown()

func (*TimeRange) XXX_Marshal Uses

func (m *TimeRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TimeRange) XXX_Merge Uses

func (m *TimeRange) XXX_Merge(src proto.Message)

func (*TimeRange) XXX_Size Uses

func (m *TimeRange) XXX_Size() int

func (*TimeRange) XXX_Unmarshal Uses

func (m *TimeRange) XXX_Unmarshal(b []byte) error

type Toggle Uses

type Toggle int32

Toggle is a boolean with an extra state UNSET. When protobuf messages are merged, UNSET does not overwrite an existing value. TODO(nodir): replace with Trinary in ../common.proto.

const (
    Toggle_UNSET Toggle = 0
    Toggle_YES   Toggle = 1
    Toggle_NO    Toggle = 2
)

func (Toggle) EnumDescriptor Uses

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

func (Toggle) String Uses

func (x Toggle) String() string

type Trinary Uses

type Trinary int32

A boolean with an undefined value.

const (
    Trinary_UNSET Trinary = 0
    Trinary_YES   Trinary = 1
    Trinary_NO    Trinary = 2
)

func (Trinary) EnumDescriptor Uses

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

func (Trinary) String Uses

func (x Trinary) String() string

type UnimplementedBuildsServer Uses

type UnimplementedBuildsServer struct {
}

UnimplementedBuildsServer can be embedded to have forward compatible implementations.

func (*UnimplementedBuildsServer) Batch Uses

func (*UnimplementedBuildsServer) Batch(ctx context.Context, req *BatchRequest) (*BatchResponse, error)

func (*UnimplementedBuildsServer) CancelBuild Uses

func (*UnimplementedBuildsServer) CancelBuild(ctx context.Context, req *CancelBuildRequest) (*Build, error)

func (*UnimplementedBuildsServer) GetBuild Uses

func (*UnimplementedBuildsServer) GetBuild(ctx context.Context, req *GetBuildRequest) (*Build, error)

func (*UnimplementedBuildsServer) ScheduleBuild Uses

func (*UnimplementedBuildsServer) ScheduleBuild(ctx context.Context, req *ScheduleBuildRequest) (*Build, error)

func (*UnimplementedBuildsServer) SearchBuilds Uses

func (*UnimplementedBuildsServer) SearchBuilds(ctx context.Context, req *SearchBuildsRequest) (*SearchBuildsResponse, error)

func (*UnimplementedBuildsServer) UpdateBuild Uses

func (*UnimplementedBuildsServer) UpdateBuild(ctx context.Context, req *UpdateBuildRequest) (*Build, error)

type UpdateBuildRequest Uses

type UpdateBuildRequest struct {
    // Build to update, with new field values.
    Build *Build `protobuf:"bytes,1,opt,name=build,proto3" json:"build,omitempty"`
    // Build fields to update.
    // See also
    // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
    //
    // Currently supports only the following path strings:
    // - build.steps
    // - build.output.properties
    UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
    // Fields to include in the response. See also GetBuildRequest.fields.
    Fields               *field_mask.FieldMask `protobuf:"bytes,100,opt,name=fields,proto3" json:"fields,omitempty"`
    XXX_NoUnkeyedLiteral struct{}              `json:"-"`
    XXX_unrecognized     []byte                `json:"-"`
    XXX_sizecache        int32                 `json:"-"`
}

A request message for UpdateBuild rpc.

func (*UpdateBuildRequest) Descriptor Uses

func (*UpdateBuildRequest) Descriptor() ([]byte, []int)

func (*UpdateBuildRequest) GetBuild Uses

func (m *UpdateBuildRequest) GetBuild() *Build

func (*UpdateBuildRequest) GetFields Uses

func (m *UpdateBuildRequest) GetFields() *field_mask.FieldMask

func (*UpdateBuildRequest) GetUpdateMask Uses

func (m *UpdateBuildRequest) GetUpdateMask() *field_mask.FieldMask

func (*UpdateBuildRequest) ProtoMessage Uses

func (*UpdateBuildRequest) ProtoMessage()

func (*UpdateBuildRequest) Reset Uses

func (m *UpdateBuildRequest) Reset()

func (*UpdateBuildRequest) String Uses

func (m *UpdateBuildRequest) String() string

func (*UpdateBuildRequest) XXX_DiscardUnknown Uses

func (m *UpdateBuildRequest) XXX_DiscardUnknown()

func (*UpdateBuildRequest) XXX_Marshal Uses

func (m *UpdateBuildRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdateBuildRequest) XXX_Merge Uses

func (m *UpdateBuildRequest) XXX_Merge(src proto.Message)

func (*UpdateBuildRequest) XXX_Size Uses

func (m *UpdateBuildRequest) XXX_Size() int

func (*UpdateBuildRequest) XXX_Unmarshal Uses

func (m *UpdateBuildRequest) XXX_Unmarshal(b []byte) error

Package buildbucketpb imports 20 packages (graph) and is imported by 71 packages. Updated 2019-10-17. Refresh now. Tools for package owners.