cvpb

package
v0.0.0-...-d3da680 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Overview

Package cvpb contains v0 (preliminary) version of CV API.

!!!!! WARNING !!!!!

  • Use at your own risk.
  • We will stop supporting this v0 API without notice.
  • No backwards compatibility guaranteed.
  • Please, contact CV maintainers at luci-eng@ before using this and we may provide additional guarantees to you/your service.

Index

Constants

View Source
const (
	Runs_GetRun_FullMethodName     = "/cv.v0.Runs/GetRun"
	Runs_SearchRuns_FullMethodName = "/cv.v0.Runs/SearchRuns"
)
View Source
const (
	GerritIntegration_GetCLRunInfo_FullMethodName = "/cv.v0.GerritIntegration/GetCLRunInfo"
)

Variables

View Source
var (
	Run_Status_name = map[int32]string{
		0:  "STATUS_UNSPECIFIED",
		1:  "PENDING",
		2:  "RUNNING",
		4:  "WAITING_FOR_SUBMISSION",
		5:  "SUBMITTING",
		64: "ENDED_MASK",
		65: "SUCCEEDED",
		66: "FAILED",
		67: "CANCELLED",
	}
	Run_Status_value = map[string]int32{
		"STATUS_UNSPECIFIED":     0,
		"PENDING":                1,
		"RUNNING":                2,
		"WAITING_FOR_SUBMISSION": 4,
		"SUBMITTING":             5,
		"ENDED_MASK":             64,
		"SUCCEEDED":              65,
		"FAILED":                 66,
		"CANCELLED":              67,
	}
)

Enum value maps for Run_Status.

View Source
var (
	TryjobStatus_name = map[int32]string{
		0: "TRYJOB_STATUS_UNSPECIFIED",
		1: "PENDING",
		2: "RUNNING",
		3: "SUCCEEDED",
		4: "FAILED",
		5: "CANCELLED",
		6: "UNTRIGGERED",
	}
	TryjobStatus_value = map[string]int32{
		"TRYJOB_STATUS_UNSPECIFIED": 0,
		"PENDING":                   1,
		"RUNNING":                   2,
		"SUCCEEDED":                 3,
		"FAILED":                    4,
		"CANCELLED":                 5,
		"UNTRIGGERED":               6,
	}
)

Enum value maps for TryjobStatus.

View Source
var (
	Tryjob_Status_name = map[int32]string{
		0: "STATUS_UNSPECIFIED",
		1: "PENDING",
		2: "TRIGGERED",
		3: "ENDED",
		4: "CANCELLED",
		5: "UNTRIGGERED",
	}
	Tryjob_Status_value = map[string]int32{
		"STATUS_UNSPECIFIED": 0,
		"PENDING":            1,
		"TRIGGERED":          2,
		"ENDED":              3,
		"CANCELLED":          4,
		"UNTRIGGERED":        5,
	}
)

Enum value maps for Tryjob_Status.

View Source
var (
	Tryjob_Result_Status_name = map[int32]string{
		0: "RESULT_STATUS_UNSPECIFIED",
		1: "UNKNOWN",
		2: "SUCCEEDED",
		3: "FAILED_PERMANENTLY",
		4: "FAILED_TRANSIENTLY",
		5: "TIMEOUT",
	}
	Tryjob_Result_Status_value = map[string]int32{
		"RESULT_STATUS_UNSPECIFIED": 0,
		"UNKNOWN":                   1,
		"SUCCEEDED":                 2,
		"FAILED_PERMANENTLY":        3,
		"FAILED_TRANSIENTLY":        4,
		"TIMEOUT":                   5,
	}
)

Enum value maps for Tryjob_Result_Status.

View Source
var File_go_chromium_org_luci_cv_api_v0_run_proto protoreflect.FileDescriptor
View Source
var File_go_chromium_org_luci_cv_api_v0_service_gerrit_proto protoreflect.FileDescriptor
View Source
var File_go_chromium_org_luci_cv_api_v0_service_runs_proto protoreflect.FileDescriptor
View Source
var File_go_chromium_org_luci_cv_api_v0_tryjob_proto protoreflect.FileDescriptor
View Source
var GerritIntegration_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "cv.v0.GerritIntegration",
	HandlerType: (*GerritIntegrationServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetCLRunInfo",
			Handler:    _GerritIntegration_GetCLRunInfo_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "go.chromium.org/luci/cv/api/v0/service_gerrit.proto",
}

GerritIntegration_ServiceDesc is the grpc.ServiceDesc for GerritIntegration service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var Runs_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "cv.v0.Runs",
	HandlerType: (*RunsServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetRun",
			Handler:    _Runs_GetRun_Handler,
		},
		{
			MethodName: "SearchRuns",
			Handler:    _Runs_SearchRuns_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "go.chromium.org/luci/cv/api/v0/service_runs.proto",
}

Runs_ServiceDesc is the grpc.ServiceDesc for Runs service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func FileDescriptorSet

func FileDescriptorSet() *descriptorpb.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 RegisterGerritIntegrationServer

func RegisterGerritIntegrationServer(s grpc.ServiceRegistrar, srv GerritIntegrationServer)

func RegisterRunsServer

func RegisterRunsServer(s grpc.ServiceRegistrar, srv RunsServer)

Types

type GerritChange

type GerritChange struct {

	// Gerrit hostname, e.g. "chromium-review.googlesource.com".
	Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
	// Change number, e.g. 12345.
	Change int64 `protobuf:"varint,2,opt,name=change,proto3" json:"change,omitempty"`
	// Patch set number, e.g. 1.
	Patchset int32 `protobuf:"varint,3,opt,name=patchset,proto3" json:"patchset,omitempty"`
	// contains filtered or unexported fields
}

A Gerrit patchset.

func (*GerritChange) Descriptor deprecated

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

Deprecated: Use GerritChange.ProtoReflect.Descriptor instead.

func (*GerritChange) GetChange

func (x *GerritChange) GetChange() int64

func (*GerritChange) GetHost

func (x *GerritChange) GetHost() string

func (*GerritChange) GetPatchset

func (x *GerritChange) GetPatchset() int32

func (*GerritChange) ProtoMessage

func (*GerritChange) ProtoMessage()

func (*GerritChange) ProtoReflect

func (x *GerritChange) ProtoReflect() protoreflect.Message

func (*GerritChange) Reset

func (x *GerritChange) Reset()

func (*GerritChange) String

func (x *GerritChange) String() string

func (*GerritChange) Validate

func (m *GerritChange) Validate() error

Validate checks the field values on GerritChange with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GerritChange) ValidateAll

func (m *GerritChange) ValidateAll() error

ValidateAll checks the field values on GerritChange with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GerritChangeMultiError, or nil if none found.

type GerritChangeMultiError

type GerritChangeMultiError []error

GerritChangeMultiError is an error wrapping multiple validation errors returned by GerritChange.ValidateAll() if the designated constraints aren't met.

func (GerritChangeMultiError) AllErrors

func (m GerritChangeMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GerritChangeMultiError) Error

func (m GerritChangeMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GerritChangeValidationError

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

GerritChangeValidationError is the validation error returned by GerritChange.Validate if the designated constraints aren't met.

func (GerritChangeValidationError) Cause

Cause function returns cause value.

func (GerritChangeValidationError) Error

Error satisfies the builtin error interface

func (GerritChangeValidationError) ErrorName

func (e GerritChangeValidationError) ErrorName() string

ErrorName returns error name.

func (GerritChangeValidationError) Field

Field function returns field value.

func (GerritChangeValidationError) Key

Key function returns key value.

func (GerritChangeValidationError) Reason

Reason function returns reason value.

type GerritIntegrationClient

type GerritIntegrationClient interface {
	// GetCLRunInfo returns ongoing Run information for the given CL and the CLs
	// that the given CL depends on.
	GetCLRunInfo(ctx context.Context, in *GetCLRunInfoRequest, opts ...grpc.CallOption) (*GetCLRunInfoResponse, error)
}

GerritIntegrationClient is the client API for GerritIntegration service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

GerritIntegration exposes APIs that Gerrit will call when rendering CL pages.

type GerritIntegrationServer

type GerritIntegrationServer interface {
	// GetCLRunInfo returns ongoing Run information for the given CL and the CLs
	// that the given CL depends on.
	GetCLRunInfo(context.Context, *GetCLRunInfoRequest) (*GetCLRunInfoResponse, error)
	// contains filtered or unexported methods
}

GerritIntegrationServer is the server API for GerritIntegration service. All implementations must embed UnimplementedGerritIntegrationServer for forward compatibility.

GerritIntegration exposes APIs that Gerrit will call when rendering CL pages.

type GetCLRunInfoRequest

type GetCLRunInfoRequest struct {

	// GerritChange is the change that Gerrit is currently rendering.
	GerritChange *GerritChange `protobuf:"bytes,1,opt,name=gerrit_change,json=gerritChange,proto3" json:"gerrit_change,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCLRunInfoRequest) Descriptor deprecated

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

Deprecated: Use GetCLRunInfoRequest.ProtoReflect.Descriptor instead.

func (*GetCLRunInfoRequest) GetGerritChange

func (x *GetCLRunInfoRequest) GetGerritChange() *GerritChange

func (*GetCLRunInfoRequest) ProtoMessage

func (*GetCLRunInfoRequest) ProtoMessage()

func (*GetCLRunInfoRequest) ProtoReflect

func (x *GetCLRunInfoRequest) ProtoReflect() protoreflect.Message

func (*GetCLRunInfoRequest) Reset

func (x *GetCLRunInfoRequest) Reset()

func (*GetCLRunInfoRequest) String

func (x *GetCLRunInfoRequest) String() string

func (*GetCLRunInfoRequest) Validate

func (m *GetCLRunInfoRequest) Validate() error

Validate checks the field values on GetCLRunInfoRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetCLRunInfoRequest) ValidateAll

func (m *GetCLRunInfoRequest) ValidateAll() error

ValidateAll checks the field values on GetCLRunInfoRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetCLRunInfoRequestMultiError, or nil if none found.

type GetCLRunInfoRequestMultiError

type GetCLRunInfoRequestMultiError []error

GetCLRunInfoRequestMultiError is an error wrapping multiple validation errors returned by GetCLRunInfoRequest.ValidateAll() if the designated constraints aren't met.

func (GetCLRunInfoRequestMultiError) AllErrors

func (m GetCLRunInfoRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetCLRunInfoRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetCLRunInfoRequestValidationError

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

GetCLRunInfoRequestValidationError is the validation error returned by GetCLRunInfoRequest.Validate if the designated constraints aren't met.

func (GetCLRunInfoRequestValidationError) Cause

Cause function returns cause value.

func (GetCLRunInfoRequestValidationError) Error

Error satisfies the builtin error interface

func (GetCLRunInfoRequestValidationError) ErrorName

ErrorName returns error name.

func (GetCLRunInfoRequestValidationError) Field

Field function returns field value.

func (GetCLRunInfoRequestValidationError) Key

Key function returns key value.

func (GetCLRunInfoRequestValidationError) Reason

Reason function returns reason value.

type GetCLRunInfoResponse

type GetCLRunInfoResponse struct {

	// RunsAsOrigin are the ongoing runs originating from this CL.
	//
	// Typically, there would only be 1 that is the Run triggered by the
	// CQ vote on this CL.
	RunsAsOrigin []*GetCLRunInfoResponse_RunInfo `protobuf:"bytes,1,rep,name=runs_as_origin,json=runsAsOrigin,proto3" json:"runs_as_origin,omitempty"`
	// RunsAsDep are the ongoing runs that involves this CL but not originates
	// from the CL.
	//
	// Those Runs should be triggered by the CL that transitively depends on this
	// CL.
	RunsAsDep []*GetCLRunInfoResponse_RunInfo `protobuf:"bytes,2,rep,name=runs_as_dep,json=runsAsDep,proto3" json:"runs_as_dep,omitempty"`
	// DepChangeInfos are the information about the CLs that this CL depends on.
	//
	// If the developer ends up voting CQ+1/+2 on this CL, these would be all the
	// CLs that will be involved in the Run.
	//
	// Note that only active CLs will be returned.
	DepChangeInfos []*GetCLRunInfoResponse_DepChangeInfo `protobuf:"bytes,3,rep,name=dep_change_infos,json=depChangeInfos,proto3" json:"dep_change_infos,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCLRunInfoResponse) Descriptor deprecated

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

Deprecated: Use GetCLRunInfoResponse.ProtoReflect.Descriptor instead.

func (*GetCLRunInfoResponse) GetDepChangeInfos

func (x *GetCLRunInfoResponse) GetDepChangeInfos() []*GetCLRunInfoResponse_DepChangeInfo

func (*GetCLRunInfoResponse) GetRunsAsDep

func (*GetCLRunInfoResponse) GetRunsAsOrigin

func (x *GetCLRunInfoResponse) GetRunsAsOrigin() []*GetCLRunInfoResponse_RunInfo

func (*GetCLRunInfoResponse) ProtoMessage

func (*GetCLRunInfoResponse) ProtoMessage()

func (*GetCLRunInfoResponse) ProtoReflect

func (x *GetCLRunInfoResponse) ProtoReflect() protoreflect.Message

func (*GetCLRunInfoResponse) Reset

func (x *GetCLRunInfoResponse) Reset()

func (*GetCLRunInfoResponse) String

func (x *GetCLRunInfoResponse) String() string

func (*GetCLRunInfoResponse) Validate

func (m *GetCLRunInfoResponse) Validate() error

Validate checks the field values on GetCLRunInfoResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetCLRunInfoResponse) ValidateAll

func (m *GetCLRunInfoResponse) ValidateAll() error

ValidateAll checks the field values on GetCLRunInfoResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetCLRunInfoResponseMultiError, or nil if none found.

type GetCLRunInfoResponseMultiError

type GetCLRunInfoResponseMultiError []error

GetCLRunInfoResponseMultiError is an error wrapping multiple validation errors returned by GetCLRunInfoResponse.ValidateAll() if the designated constraints aren't met.

func (GetCLRunInfoResponseMultiError) AllErrors

func (m GetCLRunInfoResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetCLRunInfoResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetCLRunInfoResponseValidationError

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

GetCLRunInfoResponseValidationError is the validation error returned by GetCLRunInfoResponse.Validate if the designated constraints aren't met.

func (GetCLRunInfoResponseValidationError) Cause

Cause function returns cause value.

func (GetCLRunInfoResponseValidationError) Error

Error satisfies the builtin error interface

func (GetCLRunInfoResponseValidationError) ErrorName

ErrorName returns error name.

func (GetCLRunInfoResponseValidationError) Field

Field function returns field value.

func (GetCLRunInfoResponseValidationError) Key

Key function returns key value.

func (GetCLRunInfoResponseValidationError) Reason

Reason function returns reason value.

type GetCLRunInfoResponse_DepChangeInfo

type GetCLRunInfoResponse_DepChangeInfo struct {

	// GerritChange describes the dependency CL.
	GerritChange *GerritChange `protobuf:"bytes,1,opt,name=gerrit_change,json=gerritChange,proto3" json:"gerrit_change,omitempty"`
	// Runs are ongoing Runs that involves the dependency CLs.
	Runs []*GetCLRunInfoResponse_RunInfo `protobuf:"bytes,2,rep,name=runs,proto3" json:"runs,omitempty"`
	// ChangeOwner is the owner of the dependency CL.
	ChangeOwner string `protobuf:"bytes,3,opt,name=change_owner,json=changeOwner,proto3" json:"change_owner,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCLRunInfoResponse_DepChangeInfo) Descriptor deprecated

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

Deprecated: Use GetCLRunInfoResponse_DepChangeInfo.ProtoReflect.Descriptor instead.

func (*GetCLRunInfoResponse_DepChangeInfo) GetChangeOwner

func (x *GetCLRunInfoResponse_DepChangeInfo) GetChangeOwner() string

func (*GetCLRunInfoResponse_DepChangeInfo) GetGerritChange

func (x *GetCLRunInfoResponse_DepChangeInfo) GetGerritChange() *GerritChange

func (*GetCLRunInfoResponse_DepChangeInfo) GetRuns

func (*GetCLRunInfoResponse_DepChangeInfo) ProtoMessage

func (*GetCLRunInfoResponse_DepChangeInfo) ProtoMessage()

func (*GetCLRunInfoResponse_DepChangeInfo) ProtoReflect

func (*GetCLRunInfoResponse_DepChangeInfo) Reset

func (*GetCLRunInfoResponse_DepChangeInfo) String

func (*GetCLRunInfoResponse_DepChangeInfo) Validate

Validate checks the field values on GetCLRunInfoResponse_DepChangeInfo with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetCLRunInfoResponse_DepChangeInfo) ValidateAll

func (m *GetCLRunInfoResponse_DepChangeInfo) ValidateAll() error

ValidateAll checks the field values on GetCLRunInfoResponse_DepChangeInfo with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetCLRunInfoResponse_DepChangeInfoMultiError, or nil if none found.

type GetCLRunInfoResponse_DepChangeInfoMultiError

type GetCLRunInfoResponse_DepChangeInfoMultiError []error

GetCLRunInfoResponse_DepChangeInfoMultiError is an error wrapping multiple validation errors returned by GetCLRunInfoResponse_DepChangeInfo.ValidateAll() if the designated constraints aren't met.

func (GetCLRunInfoResponse_DepChangeInfoMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (GetCLRunInfoResponse_DepChangeInfoMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetCLRunInfoResponse_DepChangeInfoValidationError

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

GetCLRunInfoResponse_DepChangeInfoValidationError is the validation error returned by GetCLRunInfoResponse_DepChangeInfo.Validate if the designated constraints aren't met.

func (GetCLRunInfoResponse_DepChangeInfoValidationError) Cause

Cause function returns cause value.

func (GetCLRunInfoResponse_DepChangeInfoValidationError) Error

Error satisfies the builtin error interface

func (GetCLRunInfoResponse_DepChangeInfoValidationError) ErrorName

ErrorName returns error name.

func (GetCLRunInfoResponse_DepChangeInfoValidationError) Field

Field function returns field value.

func (GetCLRunInfoResponse_DepChangeInfoValidationError) Key

Key function returns key value.

func (GetCLRunInfoResponse_DepChangeInfoValidationError) Reason

Reason function returns reason value.

type GetCLRunInfoResponse_RunInfo

type GetCLRunInfoResponse_RunInfo struct {

	// ID of the Run.
	//
	// The format of an ID is "projects/$luci-project/runs/$id", where
	// - luci-project is the name of the LUCI project the Run belongs to
	// - id is an opaque key unique in the LUCI project.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The time when the Run was created.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// The time when the Run was started.
	StartTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	// The change that receives the vote and triggers this Run.
	OriginChange *GerritChange `protobuf:"bytes,4,opt,name=origin_change,json=originChange,proto3" json:"origin_change,omitempty"`
	// The mode of the Run.
	Mode string `protobuf:"bytes,5,opt,name=mode,proto3" json:"mode,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCLRunInfoResponse_RunInfo) Descriptor deprecated

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

Deprecated: Use GetCLRunInfoResponse_RunInfo.ProtoReflect.Descriptor instead.

func (*GetCLRunInfoResponse_RunInfo) GetCreateTime

func (*GetCLRunInfoResponse_RunInfo) GetId

func (*GetCLRunInfoResponse_RunInfo) GetMode

func (x *GetCLRunInfoResponse_RunInfo) GetMode() string

func (*GetCLRunInfoResponse_RunInfo) GetOriginChange

func (x *GetCLRunInfoResponse_RunInfo) GetOriginChange() *GerritChange

func (*GetCLRunInfoResponse_RunInfo) GetStartTime

func (*GetCLRunInfoResponse_RunInfo) ProtoMessage

func (*GetCLRunInfoResponse_RunInfo) ProtoMessage()

func (*GetCLRunInfoResponse_RunInfo) ProtoReflect

func (*GetCLRunInfoResponse_RunInfo) Reset

func (x *GetCLRunInfoResponse_RunInfo) Reset()

func (*GetCLRunInfoResponse_RunInfo) String

func (*GetCLRunInfoResponse_RunInfo) Validate

func (m *GetCLRunInfoResponse_RunInfo) Validate() error

Validate checks the field values on GetCLRunInfoResponse_RunInfo with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetCLRunInfoResponse_RunInfo) ValidateAll

func (m *GetCLRunInfoResponse_RunInfo) ValidateAll() error

ValidateAll checks the field values on GetCLRunInfoResponse_RunInfo with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetCLRunInfoResponse_RunInfoMultiError, or nil if none found.

type GetCLRunInfoResponse_RunInfoMultiError

type GetCLRunInfoResponse_RunInfoMultiError []error

GetCLRunInfoResponse_RunInfoMultiError is an error wrapping multiple validation errors returned by GetCLRunInfoResponse_RunInfo.ValidateAll() if the designated constraints aren't met.

func (GetCLRunInfoResponse_RunInfoMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (GetCLRunInfoResponse_RunInfoMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetCLRunInfoResponse_RunInfoValidationError

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

GetCLRunInfoResponse_RunInfoValidationError is the validation error returned by GetCLRunInfoResponse_RunInfo.Validate if the designated constraints aren't met.

func (GetCLRunInfoResponse_RunInfoValidationError) Cause

Cause function returns cause value.

func (GetCLRunInfoResponse_RunInfoValidationError) Error

Error satisfies the builtin error interface

func (GetCLRunInfoResponse_RunInfoValidationError) ErrorName

ErrorName returns error name.

func (GetCLRunInfoResponse_RunInfoValidationError) Field

Field function returns field value.

func (GetCLRunInfoResponse_RunInfoValidationError) Key

Key function returns key value.

func (GetCLRunInfoResponse_RunInfoValidationError) Reason

Reason function returns reason value.

type GetRunRequest

type GetRunRequest struct {

	// ID is CV Run ID, e.g. "projects/chromium/runs/9991234120-1-badcafe"
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRunRequest) Descriptor deprecated

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

Deprecated: Use GetRunRequest.ProtoReflect.Descriptor instead.

func (*GetRunRequest) GetId

func (x *GetRunRequest) GetId() string

func (*GetRunRequest) ProtoMessage

func (*GetRunRequest) ProtoMessage()

func (*GetRunRequest) ProtoReflect

func (x *GetRunRequest) ProtoReflect() protoreflect.Message

func (*GetRunRequest) Reset

func (x *GetRunRequest) Reset()

func (*GetRunRequest) String

func (x *GetRunRequest) String() string

func (*GetRunRequest) Validate

func (m *GetRunRequest) Validate() error

Validate checks the field values on GetRunRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetRunRequest) ValidateAll

func (m *GetRunRequest) ValidateAll() error

ValidateAll checks the field values on GetRunRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetRunRequestMultiError, or nil if none found.

type GetRunRequestMultiError

type GetRunRequestMultiError []error

GetRunRequestMultiError is an error wrapping multiple validation errors returned by GetRunRequest.ValidateAll() if the designated constraints aren't met.

func (GetRunRequestMultiError) AllErrors

func (m GetRunRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetRunRequestMultiError) Error

func (m GetRunRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GetRunRequestValidationError

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

GetRunRequestValidationError is the validation error returned by GetRunRequest.Validate if the designated constraints aren't met.

func (GetRunRequestValidationError) Cause

Cause function returns cause value.

func (GetRunRequestValidationError) Error

Error satisfies the builtin error interface

func (GetRunRequestValidationError) ErrorName

func (e GetRunRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetRunRequestValidationError) Field

Field function returns field value.

func (GetRunRequestValidationError) Key

Key function returns key value.

func (GetRunRequestValidationError) Reason

Reason function returns reason value.

type Run

type Run struct {

	// ID of the Run.
	//
	// The format of an ID is "projects/$luci-project/runs/$id", where
	// - luci-project is the name of the LUCI project the Run belongs to
	// - id is an opaque key unique in the LUCI project.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Status of the Run.
	Status Run_Status `protobuf:"varint,2,opt,name=status,proto3,enum=cv.v0.Run_Status" json:"status,omitempty"`
	// eversion is the entity version, which is monotonically increasing.
	Eversion int64 `protobuf:"varint,3,opt,name=eversion,proto3" json:"eversion,omitempty"`
	// Mode dictates the behavior of the Run.
	//
	// The possible values include
	// - FULL_RUN
	// - DRY_RUN
	// - NEW_PATCHSET_RUN
	// - Any additional run mode defined in the config
	//
	// If the mode is FULL_RUN, the Run triggers TryJobs and then submits the CL
	// if they succeeded.
	// If the mode is DRY_RUN, the Run trigger TryJobs w/o submission.
	Mode string `protobuf:"bytes,4,opt,name=mode,proto3" json:"mode,omitempty"`
	// Time when the Run was created.
	//
	// This is the timestamp of the vote, on a Gerrit CL, that triggered the Run.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// The time when the Run was started.
	StartTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	// The time when the Run was last updated.
	UpdateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// The time when the Run was ended.
	EndTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	// Owner of the Run.
	//
	// For a single-CL Run, this is the identity string of the owner of
	// the Gerrit CL (whoever authenticated to Gerrit to upload the first
	// patchset of the CL). Note that Gerrit CL owner may differ from author and
	// committer encoded in the Git commit. Also, depending on Gerrit
	// configuration, later patchsets could be uploaded by different accounts to
	// that of the CL owner.
	//
	// For a multi-CL Run, this is the owner of the Gerrit CL which has the latest
	// triggering timestamp (e.g. latest CQ+2 vote).
	Owner string `protobuf:"bytes,9,opt,name=owner,proto3" json:"owner,omitempty"`
	// Creator of the Run.
	//
	// This is the identity string of the user that triggers the run (i.e. first
	// user who votes CQ+1 or CQ+2). For multi-CL Run, the will be the triggerer
	// of the Gerrit CL which has the latest triggering timestamp (e.g. latest
	// CQ+2 vote).
	CreatedBy string `protobuf:"bytes,13,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"`
	// This is the identity string of the user whose run quota is consumed for the
	// run start.
	BilledTo string `protobuf:"bytes,15,opt,name=billed_to,json=billedTo,proto3" json:"billed_to,omitempty"`
	// The Gerrit changes involved in this Run.
	Cls []*GerritChange `protobuf:"bytes,10,rep,name=cls,proto3" json:"cls,omitempty"`
	// The tryjobs of the Run.
	//
	// Note that this data is a snapshot at the time Run has ended. Therefore,
	// some tryjobs may not have ended yet. If you need fresh data, query the
	// corresponding backend system using the returned ID.
	//
	// It may also contain tryjobs that are no longer required.
	// TODO(yiwzhang): Re-evaluate whether the statement above is true after
	// tryjobs are handled by LUCI CV instead of CQDaemon.
	//
	// Deprecated: Marked as deprecated in go.chromium.org/luci/cv/api/v0/run.proto.
	Tryjobs []*Tryjob `protobuf:"bytes,11,rep,name=tryjobs,proto3" json:"tryjobs,omitempty"`
	// TryjobInvocations record all attempts to invoke a tryjob defined in config.
	//
	// Note that this data is a snapshot at the time run has ended. It's possible
	// that the latest attempt in the TryjobInvocation may not be in terminal
	// status even though the run has ended. For example, the run has failed
	// because tryjob A has failed. However, tryjob B is still in RUNNING status
	// at the time run ends and tryjob B will be returned as RUNNING status
	// in this field. If you need fresh data, query the corresponding backend
	// system (i.e. buildbucket) using the returned ID.
	TryjobInvocations []*TryjobInvocation `protobuf:"bytes,14,rep,name=tryjob_invocations,json=tryjobInvocations,proto3" json:"tryjob_invocations,omitempty"`
	// The state of Run Submission.
	//
	// Unset if Submission hasn't started.
	Submission *Run_Submission `protobuf:"bytes,12,opt,name=submission,proto3" json:"submission,omitempty"`
	// contains filtered or unexported fields
}

Run includes the high-level information about a CV Run.

WARNING: this message is EXPERIMENTAL - The field definitions can change w/o notice. - No backward compatibility guaranteed. - Please contact CV maintainers at luci-eng@ before using this message.

func (*Run) Descriptor deprecated

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

Deprecated: Use Run.ProtoReflect.Descriptor instead.

func (*Run) GetBilledTo

func (x *Run) GetBilledTo() string

func (*Run) GetCls

func (x *Run) GetCls() []*GerritChange

func (*Run) GetCreateTime

func (x *Run) GetCreateTime() *timestamppb.Timestamp

func (*Run) GetCreatedBy

func (x *Run) GetCreatedBy() string

func (*Run) GetEndTime

func (x *Run) GetEndTime() *timestamppb.Timestamp

func (*Run) GetEversion

func (x *Run) GetEversion() int64

func (*Run) GetId

func (x *Run) GetId() string

func (*Run) GetMode

func (x *Run) GetMode() string

func (*Run) GetOwner

func (x *Run) GetOwner() string

func (*Run) GetStartTime

func (x *Run) GetStartTime() *timestamppb.Timestamp

func (*Run) GetStatus

func (x *Run) GetStatus() Run_Status

func (*Run) GetSubmission

func (x *Run) GetSubmission() *Run_Submission

func (*Run) GetTryjobInvocations

func (x *Run) GetTryjobInvocations() []*TryjobInvocation

func (*Run) GetTryjobs deprecated

func (x *Run) GetTryjobs() []*Tryjob

Deprecated: Marked as deprecated in go.chromium.org/luci/cv/api/v0/run.proto.

func (*Run) GetUpdateTime

func (x *Run) GetUpdateTime() *timestamppb.Timestamp

func (*Run) ProtoMessage

func (*Run) ProtoMessage()

func (*Run) ProtoReflect

func (x *Run) ProtoReflect() protoreflect.Message

func (*Run) Reset

func (x *Run) Reset()

func (*Run) String

func (x *Run) String() string

func (*Run) Validate

func (m *Run) Validate() error

Validate checks the field values on Run with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Run) ValidateAll

func (m *Run) ValidateAll() error

ValidateAll checks the field values on Run with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RunMultiError, or nil if none found.

type RunMultiError

type RunMultiError []error

RunMultiError is an error wrapping multiple validation errors returned by Run.ValidateAll() if the designated constraints aren't met.

func (RunMultiError) AllErrors

func (m RunMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RunMultiError) Error

func (m RunMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type RunPredicate

type RunPredicate struct {

	// Limit results to this LUCI project. Required.
	Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
	// The Run must include each of these Gerrit CLs, and may include others.
	//
	// The Patchset field in the GerritChanges is disallowed; Runs for the CL
	// across all patchsets will be returned.
	GerritChanges []*GerritChange `protobuf:"bytes,2,rep,name=gerrit_changes,json=gerritChanges,proto3" json:"gerrit_changes,omitempty"`
	// contains filtered or unexported fields
}

A predicate for a SearchRuns query.

If a field value is empty, it is ignored, unless stated otherwise.

func (*RunPredicate) Descriptor deprecated

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

Deprecated: Use RunPredicate.ProtoReflect.Descriptor instead.

func (*RunPredicate) GetGerritChanges

func (x *RunPredicate) GetGerritChanges() []*GerritChange

func (*RunPredicate) GetProject

func (x *RunPredicate) GetProject() string

func (*RunPredicate) ProtoMessage

func (*RunPredicate) ProtoMessage()

func (*RunPredicate) ProtoReflect

func (x *RunPredicate) ProtoReflect() protoreflect.Message

func (*RunPredicate) Reset

func (x *RunPredicate) Reset()

func (*RunPredicate) String

func (x *RunPredicate) String() string

func (*RunPredicate) Validate

func (m *RunPredicate) Validate() error

Validate checks the field values on RunPredicate with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*RunPredicate) ValidateAll

func (m *RunPredicate) ValidateAll() error

ValidateAll checks the field values on RunPredicate with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RunPredicateMultiError, or nil if none found.

type RunPredicateMultiError

type RunPredicateMultiError []error

RunPredicateMultiError is an error wrapping multiple validation errors returned by RunPredicate.ValidateAll() if the designated constraints aren't met.

func (RunPredicateMultiError) AllErrors

func (m RunPredicateMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RunPredicateMultiError) Error

func (m RunPredicateMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type RunPredicateValidationError

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

RunPredicateValidationError is the validation error returned by RunPredicate.Validate if the designated constraints aren't met.

func (RunPredicateValidationError) Cause

Cause function returns cause value.

func (RunPredicateValidationError) Error

Error satisfies the builtin error interface

func (RunPredicateValidationError) ErrorName

func (e RunPredicateValidationError) ErrorName() string

ErrorName returns error name.

func (RunPredicateValidationError) Field

Field function returns field value.

func (RunPredicateValidationError) Key

Key function returns key value.

func (RunPredicateValidationError) Reason

Reason function returns reason value.

type RunValidationError

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

RunValidationError is the validation error returned by Run.Validate if the designated constraints aren't met.

func (RunValidationError) Cause

func (e RunValidationError) Cause() error

Cause function returns cause value.

func (RunValidationError) Error

func (e RunValidationError) Error() string

Error satisfies the builtin error interface

func (RunValidationError) ErrorName

func (e RunValidationError) ErrorName() string

ErrorName returns error name.

func (RunValidationError) Field

func (e RunValidationError) Field() string

Field function returns field value.

func (RunValidationError) Key

func (e RunValidationError) Key() bool

Key function returns key value.

func (RunValidationError) Reason

func (e RunValidationError) Reason() string

Reason function returns reason value.

type Run_Status

type Run_Status int32

Status describes the status of a CV Run.

const (
	// Unspecified status.
	Run_STATUS_UNSPECIFIED Run_Status = 0
	// Run is pending to start.
	//
	// It is either because Run Manager hasn't processed the StartEvent yet or
	// the Run creator has exhausted all the quota and waiting for new quota to
	// be available.
	Run_PENDING Run_Status = 1
	// Run is running.
	Run_RUNNING Run_Status = 2
	// Run is waiting for submission.
	//
	// Run is in this status if one of the following scenario is true:
	//  1. Tree is closed at the time Run attempts to submit.
	//  2. There is another Run in the same LUCI Project that is currently
	//     submitting.
	//  3. The submission is rate limited according to the submit option in
	//     Project Config.
	//
	// This status is cancellable.
	Run_WAITING_FOR_SUBMISSION Run_Status = 4
	// Run is submitting.
	//
	// A Run can't be cancelled while submitting. A Run may transition from
	// this status to either `WAITING_FOR_SUBMISSION` status or a non-cancelled
	// terminal status.
	Run_SUBMITTING Run_Status = 5
	// ENDED_MASK can be used as a bitmask to check if a Run has ended.
	// This MUST NOT be used as the status of a Run.
	Run_ENDED_MASK Run_Status = 64
	// Run ends successfully.
	Run_SUCCEEDED Run_Status = 65
	// Run ends unsuccessfully.
	Run_FAILED Run_Status = 66
	// Run is cancelled.
	Run_CANCELLED Run_Status = 67
)

func (Run_Status) Descriptor

func (Run_Status) Descriptor() protoreflect.EnumDescriptor

func (Run_Status) Enum

func (x Run_Status) Enum() *Run_Status

func (Run_Status) EnumDescriptor deprecated

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

Deprecated: Use Run_Status.Descriptor instead.

func (Run_Status) Number

func (x Run_Status) Number() protoreflect.EnumNumber

func (Run_Status) String

func (x Run_Status) String() string

func (Run_Status) Type

type Run_Submission

type Run_Submission struct {

	// Indexes of CLs in Run.CL IDs that have been submitted successfully.
	SubmittedClIndexes []int32 `protobuf:"varint,2,rep,packed,name=submitted_cl_indexes,json=submittedClIndexes,proto3" json:"submitted_cl_indexes,omitempty"`
	// Indexes of CLs in Run.CL IDs that failed to be submitted.
	//
	// CLs that are neither in this list nor in the `submitted_cl_indexes`
	// should be treated as if CV has never attempted to submit them.
	FailedClIndexes []int32 `protobuf:"varint,3,rep,packed,name=failed_cl_indexes,json=failedClIndexes,proto3" json:"failed_cl_indexes,omitempty"`
	// contains filtered or unexported fields
}

Submission represents the state of a Run Submission.

func (*Run_Submission) Descriptor deprecated

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

Deprecated: Use Run_Submission.ProtoReflect.Descriptor instead.

func (*Run_Submission) GetFailedClIndexes

func (x *Run_Submission) GetFailedClIndexes() []int32

func (*Run_Submission) GetSubmittedClIndexes

func (x *Run_Submission) GetSubmittedClIndexes() []int32

func (*Run_Submission) ProtoMessage

func (*Run_Submission) ProtoMessage()

func (*Run_Submission) ProtoReflect

func (x *Run_Submission) ProtoReflect() protoreflect.Message

func (*Run_Submission) Reset

func (x *Run_Submission) Reset()

func (*Run_Submission) String

func (x *Run_Submission) String() string

func (*Run_Submission) Validate

func (m *Run_Submission) Validate() error

Validate checks the field values on Run_Submission with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Run_Submission) ValidateAll

func (m *Run_Submission) ValidateAll() error

ValidateAll checks the field values on Run_Submission with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Run_SubmissionMultiError, or nil if none found.

type Run_SubmissionMultiError

type Run_SubmissionMultiError []error

Run_SubmissionMultiError is an error wrapping multiple validation errors returned by Run_Submission.ValidateAll() if the designated constraints aren't met.

func (Run_SubmissionMultiError) AllErrors

func (m Run_SubmissionMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Run_SubmissionMultiError) Error

func (m Run_SubmissionMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type Run_SubmissionValidationError

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

Run_SubmissionValidationError is the validation error returned by Run_Submission.Validate if the designated constraints aren't met.

func (Run_SubmissionValidationError) Cause

Cause function returns cause value.

func (Run_SubmissionValidationError) Error

Error satisfies the builtin error interface

func (Run_SubmissionValidationError) ErrorName

func (e Run_SubmissionValidationError) ErrorName() string

ErrorName returns error name.

func (Run_SubmissionValidationError) Field

Field function returns field value.

func (Run_SubmissionValidationError) Key

Key function returns key value.

func (Run_SubmissionValidationError) Reason

Reason function returns reason value.

type RunsClient

type RunsClient interface {
	// GetRun returns Run details.
	GetRun(ctx context.Context, in *GetRunRequest, opts ...grpc.CallOption) (*Run, error)
	// SearchRuns searches for Runs.
	SearchRuns(ctx context.Context, in *SearchRunsRequest, opts ...grpc.CallOption) (*SearchRunsResponse, error)
}

RunsClient is the client API for Runs service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

Runs service exposes CV Runs and their sub-resources.

!!!!! WARNING !!!!!

  • Use at your own risk.
  • We will stop supporting this v0 API without notice.
  • No backwards compatibility guaranteed.
  • Please, contact CV maintainers at luci-eng@ before using this and we may provide additional guarantees to you/your service.

func NewRunsClient

func NewRunsClient(cc grpc.ClientConnInterface) RunsClient

type RunsServer

type RunsServer interface {
	// GetRun returns Run details.
	GetRun(context.Context, *GetRunRequest) (*Run, error)
	// SearchRuns searches for Runs.
	SearchRuns(context.Context, *SearchRunsRequest) (*SearchRunsResponse, error)
	// contains filtered or unexported methods
}

RunsServer is the server API for Runs service. All implementations must embed UnimplementedRunsServer for forward compatibility.

Runs service exposes CV Runs and their sub-resources.

!!!!! WARNING !!!!!

  • Use at your own risk.
  • We will stop supporting this v0 API without notice.
  • No backwards compatibility guaranteed.
  • Please, contact CV maintainers at luci-eng@ before using this and we may provide additional guarantees to you/your service.

type SearchRunsRequest

type SearchRunsRequest struct {

	// Returned Runs must satisfy this predicate. Required.
	Predicate *RunPredicate `protobuf:"bytes,1,opt,name=predicate,proto3" json:"predicate,omitempty"`
	// Maximum number of Runs to return at once.
	//
	// Default 32; maximum 128.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Value of SearchRunsResponse.next_page_token from the previous response.
	// Use it to continue searching.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

A request message for SearchRuns RPC.

func (*SearchRunsRequest) Descriptor deprecated

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

Deprecated: Use SearchRunsRequest.ProtoReflect.Descriptor instead.

func (*SearchRunsRequest) GetPageSize

func (x *SearchRunsRequest) GetPageSize() int32

func (*SearchRunsRequest) GetPageToken

func (x *SearchRunsRequest) GetPageToken() string

func (*SearchRunsRequest) GetPredicate

func (x *SearchRunsRequest) GetPredicate() *RunPredicate

func (*SearchRunsRequest) ProtoMessage

func (*SearchRunsRequest) ProtoMessage()

func (*SearchRunsRequest) ProtoReflect

func (x *SearchRunsRequest) ProtoReflect() protoreflect.Message

func (*SearchRunsRequest) Reset

func (x *SearchRunsRequest) Reset()

func (*SearchRunsRequest) String

func (x *SearchRunsRequest) String() string

func (*SearchRunsRequest) Validate

func (m *SearchRunsRequest) Validate() error

Validate checks the field values on SearchRunsRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*SearchRunsRequest) ValidateAll

func (m *SearchRunsRequest) ValidateAll() error

ValidateAll checks the field values on SearchRunsRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SearchRunsRequestMultiError, or nil if none found.

type SearchRunsRequestMultiError

type SearchRunsRequestMultiError []error

SearchRunsRequestMultiError is an error wrapping multiple validation errors returned by SearchRunsRequest.ValidateAll() if the designated constraints aren't met.

func (SearchRunsRequestMultiError) AllErrors

func (m SearchRunsRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SearchRunsRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type SearchRunsRequestValidationError

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

SearchRunsRequestValidationError is the validation error returned by SearchRunsRequest.Validate if the designated constraints aren't met.

func (SearchRunsRequestValidationError) Cause

Cause function returns cause value.

func (SearchRunsRequestValidationError) Error

Error satisfies the builtin error interface

func (SearchRunsRequestValidationError) ErrorName

ErrorName returns error name.

func (SearchRunsRequestValidationError) Field

Field function returns field value.

func (SearchRunsRequestValidationError) Key

Key function returns key value.

func (SearchRunsRequestValidationError) Reason

Reason function returns reason value.

type SearchRunsResponse

type SearchRunsResponse struct {

	// Search results.
	//
	// Ordered by Run ID ascending; as a result, the Runs will be ordered by LUCI
	// project in ascending lexicographic order and within each project will be
	// ordered from newest to oldest.
	Runs []*Run `protobuf:"bytes,1,rep,name=runs,proto3" json:"runs,omitempty"`
	// Value for SearchRunsRequest.page_token to continue searching.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

A response message for SearchRuns RPC.

func (*SearchRunsResponse) Descriptor deprecated

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

Deprecated: Use SearchRunsResponse.ProtoReflect.Descriptor instead.

func (*SearchRunsResponse) GetNextPageToken

func (x *SearchRunsResponse) GetNextPageToken() string

func (*SearchRunsResponse) GetRuns

func (x *SearchRunsResponse) GetRuns() []*Run

func (*SearchRunsResponse) ProtoMessage

func (*SearchRunsResponse) ProtoMessage()

func (*SearchRunsResponse) ProtoReflect

func (x *SearchRunsResponse) ProtoReflect() protoreflect.Message

func (*SearchRunsResponse) Reset

func (x *SearchRunsResponse) Reset()

func (*SearchRunsResponse) String

func (x *SearchRunsResponse) String() string

func (*SearchRunsResponse) Validate

func (m *SearchRunsResponse) Validate() error

Validate checks the field values on SearchRunsResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*SearchRunsResponse) ValidateAll

func (m *SearchRunsResponse) ValidateAll() error

ValidateAll checks the field values on SearchRunsResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SearchRunsResponseMultiError, or nil if none found.

type SearchRunsResponseMultiError

type SearchRunsResponseMultiError []error

SearchRunsResponseMultiError is an error wrapping multiple validation errors returned by SearchRunsResponse.ValidateAll() if the designated constraints aren't met.

func (SearchRunsResponseMultiError) AllErrors

func (m SearchRunsResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SearchRunsResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type SearchRunsResponseValidationError

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

SearchRunsResponseValidationError is the validation error returned by SearchRunsResponse.Validate if the designated constraints aren't met.

func (SearchRunsResponseValidationError) Cause

Cause function returns cause value.

func (SearchRunsResponseValidationError) Error

Error satisfies the builtin error interface

func (SearchRunsResponseValidationError) ErrorName

ErrorName returns error name.

func (SearchRunsResponseValidationError) Field

Field function returns field value.

func (SearchRunsResponseValidationError) Key

Key function returns key value.

func (SearchRunsResponseValidationError) Reason

Reason function returns reason value.

type Tryjob

type Tryjob struct {

	// Status of the Tryjob.
	Status Tryjob_Status `protobuf:"varint,2,opt,name=status,proto3,enum=cv.v0.Tryjob_Status" json:"status,omitempty"`
	// Result of the Tryjob.
	Result *Tryjob_Result `protobuf:"bytes,3,opt,name=result,proto3" json:"result,omitempty"`
	// Indicates whether this Tryjob is considered critical to a Run's final
	// status. If true, failure of this Tryjob will fail the Run immediately.
	// Run is considered SUCCEEDED iff all critical Tryjobs have passed.
	//
	// As of Mar. 2022, a Tryjob is considered critical if it is not experimental
	// or it is triggered directly by `Cq-Include-Trybots` footer.
	Critical bool `protobuf:"varint,4,opt,name=critical,proto3" json:"critical,omitempty"`
	// Indicates whether a Run is reusing this Tryjob rather than triggering
	// its own Tryjob. A Run may reuse Tryjobs triggered by some previous Runs or
	// maually by users as long as CV sees fit.
	Reuse bool `protobuf:"varint,5,opt,name=reuse,proto3" json:"reuse,omitempty"`
	// contains filtered or unexported fields
}

Tryjob represents a Run's view of a Tryjob.

func (*Tryjob) Descriptor deprecated

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

Deprecated: Use Tryjob.ProtoReflect.Descriptor instead.

func (*Tryjob) GetCritical

func (x *Tryjob) GetCritical() bool

func (*Tryjob) GetResult

func (x *Tryjob) GetResult() *Tryjob_Result

func (*Tryjob) GetReuse

func (x *Tryjob) GetReuse() bool

func (*Tryjob) GetStatus

func (x *Tryjob) GetStatus() Tryjob_Status

func (*Tryjob) ProtoMessage

func (*Tryjob) ProtoMessage()

func (*Tryjob) ProtoReflect

func (x *Tryjob) ProtoReflect() protoreflect.Message

func (*Tryjob) Reset

func (x *Tryjob) Reset()

func (*Tryjob) String

func (x *Tryjob) String() string

func (*Tryjob) Validate

func (m *Tryjob) Validate() error

Validate checks the field values on Tryjob with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Tryjob) ValidateAll

func (m *Tryjob) ValidateAll() error

ValidateAll checks the field values on Tryjob with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TryjobMultiError, or nil if none found.

type TryjobInvocation

type TryjobInvocation struct {

	// Config is the configuration of the tryjob defined in the project config.
	BuilderConfig *v2.Verifiers_Tryjob_Builder `protobuf:"bytes,1,opt,name=builder_config,json=builderConfig,proto3" json:"builder_config,omitempty"`
	// Final status of this tryjob invocation at the time run ends.
	//
	// This should be the status of the latest attempt (i.e. first element in
	// `attempts` field).
	Status TryjobStatus `protobuf:"varint,2,opt,name=status,proto3,enum=cv.v0.TryjobStatus" json:"status,omitempty"`
	// Indicates whether this tryjob invocation is considered critical to a run's
	// final status. If true, failure of this tryjob invocation will fail the run
	// immediately. Run is considered SUCCEEDED iff all critical tryjobs have
	// passed.
	//
	// As of Dec 2023, a tryjob invocation is considered critical if it is not
	// experimental or it is triggered directly by `Cq-Include-Trybots` footer.
	Critical bool `protobuf:"varint,3,opt,name=critical,proto3" json:"critical,omitempty"`
	// Attempts are all attempts for this tryjob invocation.
	//
	// Sorted from the latest attempt made to the earliest attempt made.
	// Must contain at least one element.
	Attempts []*TryjobInvocation_Attempt `protobuf:"bytes,4,rep,name=attempts,proto3" json:"attempts,omitempty"`
	// contains filtered or unexported fields
}

func (*TryjobInvocation) Descriptor deprecated

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

Deprecated: Use TryjobInvocation.ProtoReflect.Descriptor instead.

func (*TryjobInvocation) GetAttempts

func (x *TryjobInvocation) GetAttempts() []*TryjobInvocation_Attempt

func (*TryjobInvocation) GetBuilderConfig

func (x *TryjobInvocation) GetBuilderConfig() *v2.Verifiers_Tryjob_Builder

func (*TryjobInvocation) GetCritical

func (x *TryjobInvocation) GetCritical() bool

func (*TryjobInvocation) GetStatus

func (x *TryjobInvocation) GetStatus() TryjobStatus

func (*TryjobInvocation) ProtoMessage

func (*TryjobInvocation) ProtoMessage()

func (*TryjobInvocation) ProtoReflect

func (x *TryjobInvocation) ProtoReflect() protoreflect.Message

func (*TryjobInvocation) Reset

func (x *TryjobInvocation) Reset()

func (*TryjobInvocation) String

func (x *TryjobInvocation) String() string

func (*TryjobInvocation) Validate

func (m *TryjobInvocation) Validate() error

Validate checks the field values on TryjobInvocation with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*TryjobInvocation) ValidateAll

func (m *TryjobInvocation) ValidateAll() error

ValidateAll checks the field values on TryjobInvocation with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TryjobInvocationMultiError, or nil if none found.

type TryjobInvocationMultiError

type TryjobInvocationMultiError []error

TryjobInvocationMultiError is an error wrapping multiple validation errors returned by TryjobInvocation.ValidateAll() if the designated constraints aren't met.

func (TryjobInvocationMultiError) AllErrors

func (m TryjobInvocationMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TryjobInvocationMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type TryjobInvocationValidationError

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

TryjobInvocationValidationError is the validation error returned by TryjobInvocation.Validate if the designated constraints aren't met.

func (TryjobInvocationValidationError) Cause

Cause function returns cause value.

func (TryjobInvocationValidationError) Error

Error satisfies the builtin error interface

func (TryjobInvocationValidationError) ErrorName

ErrorName returns error name.

func (TryjobInvocationValidationError) Field

Field function returns field value.

func (TryjobInvocationValidationError) Key

Key function returns key value.

func (TryjobInvocationValidationError) Reason

Reason function returns reason value.

type TryjobInvocation_Attempt

type TryjobInvocation_Attempt struct {

	// Status is the status of this tryjob attempt at the time the run ends.
	Status TryjobStatus `protobuf:"varint,1,opt,name=status,proto3,enum=cv.v0.TryjobStatus" json:"status,omitempty"`
	// Result is the result of this tryjob attempt at the time the run ends.
	//
	// It's possible that result is empty. For example, the run ends even before
	// LUCI CV launches any tryjob.
	Result *TryjobResult `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"`
	// Indicates whether this attempt is a reuse of previously triggered tryjob
	// rather than launching its own tryjob.
	Reuse bool `protobuf:"varint,3,opt,name=reuse,proto3" json:"reuse,omitempty"`
	// contains filtered or unexported fields
}

Attempt represents an attempt to invoke the tryjob.

func (*TryjobInvocation_Attempt) Descriptor deprecated

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

Deprecated: Use TryjobInvocation_Attempt.ProtoReflect.Descriptor instead.

func (*TryjobInvocation_Attempt) GetResult

func (x *TryjobInvocation_Attempt) GetResult() *TryjobResult

func (*TryjobInvocation_Attempt) GetReuse

func (x *TryjobInvocation_Attempt) GetReuse() bool

func (*TryjobInvocation_Attempt) GetStatus

func (x *TryjobInvocation_Attempt) GetStatus() TryjobStatus

func (*TryjobInvocation_Attempt) ProtoMessage

func (*TryjobInvocation_Attempt) ProtoMessage()

func (*TryjobInvocation_Attempt) ProtoReflect

func (x *TryjobInvocation_Attempt) ProtoReflect() protoreflect.Message

func (*TryjobInvocation_Attempt) Reset

func (x *TryjobInvocation_Attempt) Reset()

func (*TryjobInvocation_Attempt) String

func (x *TryjobInvocation_Attempt) String() string

func (*TryjobInvocation_Attempt) Validate

func (m *TryjobInvocation_Attempt) Validate() error

Validate checks the field values on TryjobInvocation_Attempt with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*TryjobInvocation_Attempt) ValidateAll

func (m *TryjobInvocation_Attempt) ValidateAll() error

ValidateAll checks the field values on TryjobInvocation_Attempt with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TryjobInvocation_AttemptMultiError, or nil if none found.

type TryjobInvocation_AttemptMultiError

type TryjobInvocation_AttemptMultiError []error

TryjobInvocation_AttemptMultiError is an error wrapping multiple validation errors returned by TryjobInvocation_Attempt.ValidateAll() if the designated constraints aren't met.

func (TryjobInvocation_AttemptMultiError) AllErrors

func (m TryjobInvocation_AttemptMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TryjobInvocation_AttemptMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type TryjobInvocation_AttemptValidationError

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

TryjobInvocation_AttemptValidationError is the validation error returned by TryjobInvocation_Attempt.Validate if the designated constraints aren't met.

func (TryjobInvocation_AttemptValidationError) Cause

Cause function returns cause value.

func (TryjobInvocation_AttemptValidationError) Error

Error satisfies the builtin error interface

func (TryjobInvocation_AttemptValidationError) ErrorName

ErrorName returns error name.

func (TryjobInvocation_AttemptValidationError) Field

Field function returns field value.

func (TryjobInvocation_AttemptValidationError) Key

Key function returns key value.

func (TryjobInvocation_AttemptValidationError) Reason

Reason function returns reason value.

type TryjobMultiError

type TryjobMultiError []error

TryjobMultiError is an error wrapping multiple validation errors returned by Tryjob.ValidateAll() if the designated constraints aren't met.

func (TryjobMultiError) AllErrors

func (m TryjobMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TryjobMultiError) Error

func (m TryjobMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type TryjobResult

type TryjobResult struct {

	// Backend houses backend-specific output.
	//
	// Types that are assignable to Backend:
	//
	//	*TryjobResult_Buildbucket_
	Backend isTryjobResult_Backend `protobuf_oneof:"backend"`
	// contains filtered or unexported fields
}

TryjobResult is the result of a tryjob.

func (*TryjobResult) Descriptor deprecated

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

Deprecated: Use TryjobResult.ProtoReflect.Descriptor instead.

func (*TryjobResult) GetBackend

func (m *TryjobResult) GetBackend() isTryjobResult_Backend

func (*TryjobResult) GetBuildbucket

func (x *TryjobResult) GetBuildbucket() *TryjobResult_Buildbucket

func (*TryjobResult) ProtoMessage

func (*TryjobResult) ProtoMessage()

func (*TryjobResult) ProtoReflect

func (x *TryjobResult) ProtoReflect() protoreflect.Message

func (*TryjobResult) Reset

func (x *TryjobResult) Reset()

func (*TryjobResult) String

func (x *TryjobResult) String() string

func (*TryjobResult) Validate

func (m *TryjobResult) Validate() error

Validate checks the field values on TryjobResult with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*TryjobResult) ValidateAll

func (m *TryjobResult) ValidateAll() error

ValidateAll checks the field values on TryjobResult with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TryjobResultMultiError, or nil if none found.

type TryjobResultMultiError

type TryjobResultMultiError []error

TryjobResultMultiError is an error wrapping multiple validation errors returned by TryjobResult.ValidateAll() if the designated constraints aren't met.

func (TryjobResultMultiError) AllErrors

func (m TryjobResultMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TryjobResultMultiError) Error

func (m TryjobResultMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type TryjobResultValidationError

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

TryjobResultValidationError is the validation error returned by TryjobResult.Validate if the designated constraints aren't met.

func (TryjobResultValidationError) Cause

Cause function returns cause value.

func (TryjobResultValidationError) Error

Error satisfies the builtin error interface

func (TryjobResultValidationError) ErrorName

func (e TryjobResultValidationError) ErrorName() string

ErrorName returns error name.

func (TryjobResultValidationError) Field

Field function returns field value.

func (TryjobResultValidationError) Key

Key function returns key value.

func (TryjobResultValidationError) Reason

Reason function returns reason value.

type TryjobResult_Buildbucket

type TryjobResult_Buildbucket struct {

	// Buildbucket host.
	Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
	// ID of the build.
	Id int64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
	// Buildbucket builder.
	Builder *proto.BuilderID `protobuf:"bytes,3,opt,name=builder,proto3" json:"builder,omitempty"`
	// contains filtered or unexported fields
}

func (*TryjobResult_Buildbucket) Descriptor deprecated

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

Deprecated: Use TryjobResult_Buildbucket.ProtoReflect.Descriptor instead.

func (*TryjobResult_Buildbucket) GetBuilder

func (x *TryjobResult_Buildbucket) GetBuilder() *proto.BuilderID

func (*TryjobResult_Buildbucket) GetHost

func (x *TryjobResult_Buildbucket) GetHost() string

func (*TryjobResult_Buildbucket) GetId

func (x *TryjobResult_Buildbucket) GetId() int64

func (*TryjobResult_Buildbucket) ProtoMessage

func (*TryjobResult_Buildbucket) ProtoMessage()

func (*TryjobResult_Buildbucket) ProtoReflect

func (x *TryjobResult_Buildbucket) ProtoReflect() protoreflect.Message

func (*TryjobResult_Buildbucket) Reset

func (x *TryjobResult_Buildbucket) Reset()

func (*TryjobResult_Buildbucket) String

func (x *TryjobResult_Buildbucket) String() string

func (*TryjobResult_Buildbucket) Validate

func (m *TryjobResult_Buildbucket) Validate() error

Validate checks the field values on TryjobResult_Buildbucket with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*TryjobResult_Buildbucket) ValidateAll

func (m *TryjobResult_Buildbucket) ValidateAll() error

ValidateAll checks the field values on TryjobResult_Buildbucket with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TryjobResult_BuildbucketMultiError, or nil if none found.

type TryjobResult_BuildbucketMultiError

type TryjobResult_BuildbucketMultiError []error

TryjobResult_BuildbucketMultiError is an error wrapping multiple validation errors returned by TryjobResult_Buildbucket.ValidateAll() if the designated constraints aren't met.

func (TryjobResult_BuildbucketMultiError) AllErrors

func (m TryjobResult_BuildbucketMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TryjobResult_BuildbucketMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type TryjobResult_BuildbucketValidationError

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

TryjobResult_BuildbucketValidationError is the validation error returned by TryjobResult_Buildbucket.Validate if the designated constraints aren't met.

func (TryjobResult_BuildbucketValidationError) Cause

Cause function returns cause value.

func (TryjobResult_BuildbucketValidationError) Error

Error satisfies the builtin error interface

func (TryjobResult_BuildbucketValidationError) ErrorName

ErrorName returns error name.

func (TryjobResult_BuildbucketValidationError) Field

Field function returns field value.

func (TryjobResult_BuildbucketValidationError) Key

Key function returns key value.

func (TryjobResult_BuildbucketValidationError) Reason

Reason function returns reason value.

type TryjobResult_Buildbucket_

type TryjobResult_Buildbucket_ struct {
	Buildbucket *TryjobResult_Buildbucket `protobuf:"bytes,1,opt,name=buildbucket,proto3,oneof"`
}

type TryjobStatus

type TryjobStatus int32

TryjobStatus is the status of a tryjob.

const (
	// STATUS_UNSPECIFIED is never used.
	TryjobStatus_TRYJOB_STATUS_UNSPECIFIED TryjobStatus = 0
	// PENDING means tryjob is being triggered by CV.
	TryjobStatus_PENDING TryjobStatus = 1
	// RUNNING means tryjob is currently running.
	//
	// This status is from CV's PoV. As soon as LUCI CV successfully launches
	// the tryjob against the backend, it's considered running. However, it's
	// still possible the tryjob is pending the backend system (for example,
	// waiting for the swarming bot).
	TryjobStatus_RUNNING TryjobStatus = 2
	// SUCCEEDED means that run's CL(s) are considered OK by this tryjob.
	TryjobStatus_SUCCEEDED TryjobStatus = 3
	// FAILED means that run's CL(s) are considered NOT OK by this tryjob.
	TryjobStatus_FAILED TryjobStatus = 4
	// CANCELLED means the tryjob gets cancelled by LUCI CV.
	//
	// Note that, this only counts the cancellation initiated by LUCI CV. If
	// user requested cancelling a build through Buildbucket UI for example, the
	// status would be FAILED instead.
	TryjobStatus_CANCELLED TryjobStatus = 5
	// UNTRIGGERED means the tryjob was not triggered.
	//
	// Possible reasons includes getting permission denied from Buildbucket,
	// Buildbucket is temporarily down.
	TryjobStatus_UNTRIGGERED TryjobStatus = 6
)

func (TryjobStatus) Descriptor

func (TryjobStatus) Enum

func (x TryjobStatus) Enum() *TryjobStatus

func (TryjobStatus) EnumDescriptor deprecated

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

Deprecated: Use TryjobStatus.Descriptor instead.

func (TryjobStatus) Number

func (TryjobStatus) String

func (x TryjobStatus) String() string

func (TryjobStatus) Type

type TryjobValidationError

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

TryjobValidationError is the validation error returned by Tryjob.Validate if the designated constraints aren't met.

func (TryjobValidationError) Cause

func (e TryjobValidationError) Cause() error

Cause function returns cause value.

func (TryjobValidationError) Error

func (e TryjobValidationError) Error() string

Error satisfies the builtin error interface

func (TryjobValidationError) ErrorName

func (e TryjobValidationError) ErrorName() string

ErrorName returns error name.

func (TryjobValidationError) Field

func (e TryjobValidationError) Field() string

Field function returns field value.

func (TryjobValidationError) Key

func (e TryjobValidationError) Key() bool

Key function returns key value.

func (TryjobValidationError) Reason

func (e TryjobValidationError) Reason() string

Reason function returns reason value.

type Tryjob_Result

type Tryjob_Result struct {

	// Status of the Result.
	//
	// This is the verdict of verification of Run's CLs by this Tryjob.
	Status Tryjob_Result_Status `protobuf:"varint,1,opt,name=status,proto3,enum=cv.v0.Tryjob_Result_Status" json:"status,omitempty"`
	// Backend houses backend-specific output.
	//
	// Types that are assignable to Backend:
	//
	//	*Tryjob_Result_Buildbucket_
	Backend isTryjob_Result_Backend `protobuf_oneof:"backend"`
	// contains filtered or unexported fields
}

Result of a Tryjob.

func (*Tryjob_Result) Descriptor deprecated

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

Deprecated: Use Tryjob_Result.ProtoReflect.Descriptor instead.

func (*Tryjob_Result) GetBackend

func (m *Tryjob_Result) GetBackend() isTryjob_Result_Backend

func (*Tryjob_Result) GetBuildbucket

func (x *Tryjob_Result) GetBuildbucket() *Tryjob_Result_Buildbucket

func (*Tryjob_Result) GetStatus

func (x *Tryjob_Result) GetStatus() Tryjob_Result_Status

func (*Tryjob_Result) ProtoMessage

func (*Tryjob_Result) ProtoMessage()

func (*Tryjob_Result) ProtoReflect

func (x *Tryjob_Result) ProtoReflect() protoreflect.Message

func (*Tryjob_Result) Reset

func (x *Tryjob_Result) Reset()

func (*Tryjob_Result) String

func (x *Tryjob_Result) String() string

func (*Tryjob_Result) Validate

func (m *Tryjob_Result) Validate() error

Validate checks the field values on Tryjob_Result with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Tryjob_Result) ValidateAll

func (m *Tryjob_Result) ValidateAll() error

ValidateAll checks the field values on Tryjob_Result with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Tryjob_ResultMultiError, or nil if none found.

type Tryjob_ResultMultiError

type Tryjob_ResultMultiError []error

Tryjob_ResultMultiError is an error wrapping multiple validation errors returned by Tryjob_Result.ValidateAll() if the designated constraints aren't met.

func (Tryjob_ResultMultiError) AllErrors

func (m Tryjob_ResultMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Tryjob_ResultMultiError) Error

func (m Tryjob_ResultMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type Tryjob_ResultValidationError

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

Tryjob_ResultValidationError is the validation error returned by Tryjob_Result.Validate if the designated constraints aren't met.

func (Tryjob_ResultValidationError) Cause

Cause function returns cause value.

func (Tryjob_ResultValidationError) Error

Error satisfies the builtin error interface

func (Tryjob_ResultValidationError) ErrorName

func (e Tryjob_ResultValidationError) ErrorName() string

ErrorName returns error name.

func (Tryjob_ResultValidationError) Field

Field function returns field value.

func (Tryjob_ResultValidationError) Key

Key function returns key value.

func (Tryjob_ResultValidationError) Reason

Reason function returns reason value.

type Tryjob_Result_Buildbucket

type Tryjob_Result_Buildbucket struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*Tryjob_Result_Buildbucket) Descriptor deprecated

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

Deprecated: Use Tryjob_Result_Buildbucket.ProtoReflect.Descriptor instead.

func (*Tryjob_Result_Buildbucket) GetId

func (x *Tryjob_Result_Buildbucket) GetId() int64

func (*Tryjob_Result_Buildbucket) ProtoMessage

func (*Tryjob_Result_Buildbucket) ProtoMessage()

func (*Tryjob_Result_Buildbucket) ProtoReflect

func (*Tryjob_Result_Buildbucket) Reset

func (x *Tryjob_Result_Buildbucket) Reset()

func (*Tryjob_Result_Buildbucket) String

func (x *Tryjob_Result_Buildbucket) String() string

func (*Tryjob_Result_Buildbucket) Validate

func (m *Tryjob_Result_Buildbucket) Validate() error

Validate checks the field values on Tryjob_Result_Buildbucket with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Tryjob_Result_Buildbucket) ValidateAll

func (m *Tryjob_Result_Buildbucket) ValidateAll() error

ValidateAll checks the field values on Tryjob_Result_Buildbucket with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Tryjob_Result_BuildbucketMultiError, or nil if none found.

type Tryjob_Result_BuildbucketMultiError

type Tryjob_Result_BuildbucketMultiError []error

Tryjob_Result_BuildbucketMultiError is an error wrapping multiple validation errors returned by Tryjob_Result_Buildbucket.ValidateAll() if the designated constraints aren't met.

func (Tryjob_Result_BuildbucketMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (Tryjob_Result_BuildbucketMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type Tryjob_Result_BuildbucketValidationError

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

Tryjob_Result_BuildbucketValidationError is the validation error returned by Tryjob_Result_Buildbucket.Validate if the designated constraints aren't met.

func (Tryjob_Result_BuildbucketValidationError) Cause

Cause function returns cause value.

func (Tryjob_Result_BuildbucketValidationError) Error

Error satisfies the builtin error interface

func (Tryjob_Result_BuildbucketValidationError) ErrorName

ErrorName returns error name.

func (Tryjob_Result_BuildbucketValidationError) Field

Field function returns field value.

func (Tryjob_Result_BuildbucketValidationError) Key

Key function returns key value.

func (Tryjob_Result_BuildbucketValidationError) Reason

Reason function returns reason value.

type Tryjob_Result_Buildbucket_

type Tryjob_Result_Buildbucket_ struct {
	Buildbucket *Tryjob_Result_Buildbucket `protobuf:"bytes,5,opt,name=buildbucket,proto3,oneof"`
}

type Tryjob_Result_Status

type Tryjob_Result_Status int32
const (
	// RESULT_STATUS_UNSPECIFIED is never used.
	Tryjob_Result_RESULT_STATUS_UNSPECIFIED Tryjob_Result_Status = 0
	// UNKNOWN means Tryjob didn't reach a conclusion.
	Tryjob_Result_UNKNOWN Tryjob_Result_Status = 1
	// SUCCEEDED means that Run's CLs are considered OK by this Tryjob.
	Tryjob_Result_SUCCEEDED Tryjob_Result_Status = 2
	// FAILED_PERMANENTLY means that Run's CLs are most likely not good.
	Tryjob_Result_FAILED_PERMANENTLY Tryjob_Result_Status = 3
	// FAILED_TRANSIENTLY means that Run's CLs are most likely not to blame
	// for the failure.
	// TODO(crbug/1227363): consider removing transiency aspect if possible.
	Tryjob_Result_FAILED_TRANSIENTLY Tryjob_Result_Status = 4
	// TIMEOUT means the Tryjob ran over some deadline and did not make a
	// decision about this Run's CLs.
	Tryjob_Result_TIMEOUT Tryjob_Result_Status = 5
)

func (Tryjob_Result_Status) Descriptor

func (Tryjob_Result_Status) Enum

func (Tryjob_Result_Status) EnumDescriptor deprecated

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

Deprecated: Use Tryjob_Result_Status.Descriptor instead.

func (Tryjob_Result_Status) Number

func (Tryjob_Result_Status) String

func (x Tryjob_Result_Status) String() string

func (Tryjob_Result_Status) Type

type Tryjob_Status

type Tryjob_Status int32

Status is a high level status of a Tryjob.

const (
	// STATUS_UNSPECIFIED is never used.
	Tryjob_STATUS_UNSPECIFIED Tryjob_Status = 0
	// PENDING means Tryjob is being triggered by CV.
	//
	// *must* have no Result.
	Tryjob_PENDING Tryjob_Status = 1
	// TRIGGERED means Tryjob was triggered.
	//
	// *may* have been triggered by not CV but another user, service, etc.
	// *may* have a Result, which *may* still change.
	Tryjob_TRIGGERED Tryjob_Status = 2
	// ENDED is a completed Tryjob. Final status.
	//
	// *must* have a Result, whose Status is not UNKNOWN.
	Tryjob_ENDED Tryjob_Status = 3
	// CANCELLED is Tryjob cancelled by CV. Final status.
	//
	// *must* have no Result.
	Tryjob_CANCELLED Tryjob_Status = 4
	// UNTRIGGERED means Tryjob was not triggered. Final status.
	//
	// *must* have no Result.
	Tryjob_UNTRIGGERED Tryjob_Status = 5
)

func (Tryjob_Status) Descriptor

func (Tryjob_Status) Enum

func (x Tryjob_Status) Enum() *Tryjob_Status

func (Tryjob_Status) EnumDescriptor deprecated

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

Deprecated: Use Tryjob_Status.Descriptor instead.

func (Tryjob_Status) Number

func (Tryjob_Status) String

func (x Tryjob_Status) String() string

func (Tryjob_Status) Type

type UnimplementedGerritIntegrationServer

type UnimplementedGerritIntegrationServer struct{}

UnimplementedGerritIntegrationServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedGerritIntegrationServer) GetCLRunInfo

type UnimplementedRunsServer

type UnimplementedRunsServer struct{}

UnimplementedRunsServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedRunsServer) GetRun

func (UnimplementedRunsServer) SearchRuns

type UnsafeGerritIntegrationServer

type UnsafeGerritIntegrationServer interface {
	// contains filtered or unexported methods
}

UnsafeGerritIntegrationServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to GerritIntegrationServer will result in compilation errors.

type UnsafeRunsServer

type UnsafeRunsServer interface {
	// contains filtered or unexported methods
}

UnsafeRunsServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RunsServer will result in compilation errors.

Jump to

Keyboard shortcuts

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