Back to godoc.org

Package resultpb

v0.0.0-...-1557bcf
Latest Go to latest

The latest major version is .

Published: Aug 13, 2020 | License: Apache-2.0 | Module: github.com/luci/luci-go

Index

Variables

var (
	DeriveChromiumInvocationPreconditionFailureType_name = map[int32]string{
		0: "DERIVE_CHROMIUM_INVOCATION_PRECONDITION_FAILURE_TYPE_UNSPECIFIED",
		1: "INCOMPLETE_CHROMIUM_SWARMING_TASK",
	}
	DeriveChromiumInvocationPreconditionFailureType_value = map[string]int32{
		"DERIVE_CHROMIUM_INVOCATION_PRECONDITION_FAILURE_TYPE_UNSPECIFIED": 0,
		"INCOMPLETE_CHROMIUM_SWARMING_TASK":                                1,
	}
)

Enum value maps for DeriveChromiumInvocationPreconditionFailureType.

var (
	Invocation_State_name = map[int32]string{
		0: "STATE_UNSPECIFIED",
		1: "ACTIVE",
		2: "FINALIZING",
		3: "FINALIZED",
	}
	Invocation_State_value = map[string]int32{
		"STATE_UNSPECIFIED": 0,
		"ACTIVE":            1,
		"FINALIZING":        2,
		"FINALIZED":         3,
	}
)

Enum value maps for Invocation_State.

var (
	TestResultPredicate_Expectancy_name = map[int32]string{
		0: "ALL",
		1: "VARIANTS_WITH_UNEXPECTED_RESULTS",
		2: "VARIANTS_WITH_ONLY_UNEXPECTED_RESULTS",
	}
	TestResultPredicate_Expectancy_value = map[string]int32{
		"ALL":                                   0,
		"VARIANTS_WITH_UNEXPECTED_RESULTS":      1,
		"VARIANTS_WITH_ONLY_UNEXPECTED_RESULTS": 2,
	}
)

Enum value maps for TestResultPredicate_Expectancy.

var (
	TestStatus_name = map[int32]string{
		0: "STATUS_UNSPECIFIED",
		1: "PASS",
		2: "FAIL",
		3: "CRASH",
		4: "ABORT",
		5: "SKIP",
	}
	TestStatus_value = map[string]int32{
		"STATUS_UNSPECIFIED": 0,
		"PASS":               1,
		"FAIL":               2,
		"CRASH":              3,
		"ABORT":              4,
		"SKIP":               5,
	}
)

Enum value maps for TestStatus.

var File_go_chromium_org_luci_resultdb_proto_v1_artifact_proto protoreflect.FileDescriptor
var File_go_chromium_org_luci_resultdb_proto_v1_common_proto protoreflect.FileDescriptor
var File_go_chromium_org_luci_resultdb_proto_v1_deriver_proto protoreflect.FileDescriptor
var File_go_chromium_org_luci_resultdb_proto_v1_invocation_proto protoreflect.FileDescriptor
var File_go_chromium_org_luci_resultdb_proto_v1_predicate_proto protoreflect.FileDescriptor
var File_go_chromium_org_luci_resultdb_proto_v1_recorder_proto protoreflect.FileDescriptor
var File_go_chromium_org_luci_resultdb_proto_v1_resultdb_proto protoreflect.FileDescriptor
var File_go_chromium_org_luci_resultdb_proto_v1_test_result_proto protoreflect.FileDescriptor

func FileDescriptorSet

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 RegisterDeriverServer

func RegisterDeriverServer(s prpc.Registrar, srv DeriverServer)

func RegisterRecorderServer

func RegisterRecorderServer(s prpc.Registrar, srv RecorderServer)

func RegisterResultDBServer

func RegisterResultDBServer(s prpc.Registrar, srv ResultDBServer)

type Artifact

type Artifact struct {

	// Can be used to refer to this artifact.
	// Format:
	// - For invocation-level artifacts:
	//   "invocations/{INVOCATION_ID}/artifacts/{ARTIFACT_ID}".
	// - For test-result-level artifacts:
	//   "invocations/{INVOCATION_ID}/tests/{URL_ESCAPED_TEST_ID}/results/{RESULT_ID}/artifacts/{ARTIFACT_ID}".
	// where URL_ESCAPED_TEST_ID is the test_id escaped with
	// https://golang.org/pkg/net/url/#PathEscape (see also https://aip.dev/122),
	// and ARTIFACT_ID is documented below.
	// Examples: "screenshot.png", "traces/a.txt".
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// A local identifier of the artifact, unique within the parent resource.
	// MAY have slashes, but MUST NOT start with a slash.
	// SHOULD not use backslashes.
	// Regex: ^[[:word:]]([[:print:]]{0,254}[[:word:]])?$
	ArtifactId string `protobuf:"bytes,2,opt,name=artifact_id,json=artifactId,proto3" json:"artifact_id,omitempty"`
	// A signed short-lived URL to fetch the contents of the artifact.
	// See also fetch_url_expiration.
	//
	// Internally, this may have format "isolate://{host}/{ns}/{digest}" at the
	// storage level, but it is converted to an HTTPS URL before serving.
	FetchUrl string `protobuf:"bytes,3,opt,name=fetch_url,json=fetchUrl,proto3" json:"fetch_url,omitempty"`
	// When fetch_url expires. If expired, re-request this Artifact.
	FetchUrlExpiration *timestamp.Timestamp `protobuf:"bytes,4,opt,name=fetch_url_expiration,json=fetchUrlExpiration,proto3" json:"fetch_url_expiration,omitempty"`
	// Media type of the artifact.
	// Logs are typically "text/plain" and screenshots are typically "image/png".
	// Optional.
	ContentType string `protobuf:"bytes,5,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"`
	// Size of the file.
	// Can be used in UI to decide between displaying the artifact inline or only
	// showing a link if it is too large.
	SizeBytes int64 `protobuf:"varint,6,opt,name=size_bytes,json=sizeBytes,proto3" json:"size_bytes,omitempty"`
	// contains filtered or unexported fields
}

A file produced during a build/test, typically a test artifact. The parent resource is either a TestResult or an Invocation.

An invocation-level artifact might be related to tests, or it might not, for example it may be used to store build step logs when streaming support is added.

func (*Artifact) Descriptor

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

Deprecated: Use Artifact.ProtoReflect.Descriptor instead.

func (*Artifact) GetArtifactId

func (x *Artifact) GetArtifactId() string

func (*Artifact) GetContentType

func (x *Artifact) GetContentType() string

func (*Artifact) GetFetchUrl

func (x *Artifact) GetFetchUrl() string

func (*Artifact) GetFetchUrlExpiration

func (x *Artifact) GetFetchUrlExpiration() *timestamp.Timestamp

func (*Artifact) GetName

func (x *Artifact) GetName() string

func (*Artifact) GetSizeBytes

func (x *Artifact) GetSizeBytes() int64

func (*Artifact) ProtoMessage

func (*Artifact) ProtoMessage()

func (*Artifact) ProtoReflect

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

func (*Artifact) Reset

func (x *Artifact) Reset()

func (*Artifact) String

func (x *Artifact) String() string

type BatchCreateInvocationsRequest

type BatchCreateInvocationsRequest struct {

	// requests[i].request_id MUST be either empty or equal to request_id in
	// this message.
	//
	// Up to 500 requests.
	Requests []*CreateInvocationRequest `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"`
	// A unique identifier for this request. Restricted to 36 ASCII characters.
	// A random UUID is recommended.
	// This request is only idempotent if a `request_id` is provided, so it is
	// strongly recommended to populate this field.
	RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// contains filtered or unexported fields
}

A request message for BatchCreateInvocations

func (*BatchCreateInvocationsRequest) Descriptor

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

Deprecated: Use BatchCreateInvocationsRequest.ProtoReflect.Descriptor instead.

func (*BatchCreateInvocationsRequest) GetRequestId

func (x *BatchCreateInvocationsRequest) GetRequestId() string

func (*BatchCreateInvocationsRequest) GetRequests

func (x *BatchCreateInvocationsRequest) GetRequests() []*CreateInvocationRequest

func (*BatchCreateInvocationsRequest) ProtoMessage

func (*BatchCreateInvocationsRequest) ProtoMessage()

func (*BatchCreateInvocationsRequest) ProtoReflect

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

func (*BatchCreateInvocationsRequest) Reset

func (x *BatchCreateInvocationsRequest) Reset()

func (*BatchCreateInvocationsRequest) String

func (x *BatchCreateInvocationsRequest) String() string

type BatchCreateInvocationsResponse

type BatchCreateInvocationsResponse struct {

	// Invocations created.
	Invocations []*Invocation `protobuf:"bytes,1,rep,name=invocations,proto3" json:"invocations,omitempty"`
	// One token per each created invocation.
	// These are passed in the response instead of as metadata, because large
	// batches increase the size of the response headers beyond allowed limits and
	// cause failures like crbug.com/1064496
	// update_tokens[i] corresponds to invocations[i].
	// *Do not log these values*.
	UpdateTokens []string `protobuf:"bytes,2,rep,name=update_tokens,json=updateTokens,proto3" json:"update_tokens,omitempty"`
	// contains filtered or unexported fields
}

A response message for BatchCreateInvocations RPC.

func (*BatchCreateInvocationsResponse) Descriptor

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

Deprecated: Use BatchCreateInvocationsResponse.ProtoReflect.Descriptor instead.

func (*BatchCreateInvocationsResponse) GetInvocations

func (x *BatchCreateInvocationsResponse) GetInvocations() []*Invocation

func (*BatchCreateInvocationsResponse) GetUpdateTokens

func (x *BatchCreateInvocationsResponse) GetUpdateTokens() []string

func (*BatchCreateInvocationsResponse) ProtoMessage

func (*BatchCreateInvocationsResponse) ProtoMessage()

func (*BatchCreateInvocationsResponse) ProtoReflect

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

func (*BatchCreateInvocationsResponse) Reset

func (x *BatchCreateInvocationsResponse) Reset()

func (*BatchCreateInvocationsResponse) String

func (x *BatchCreateInvocationsResponse) String() string

type BatchCreateTestExonerationsRequest

type BatchCreateTestExonerationsRequest struct {

	// Name of the parent invocation, see Invocation.name.
	Invocation string `protobuf:"bytes,1,opt,name=invocation,proto3" json:"invocation,omitempty"`
	// Requests to create TestExonerations.
	// requests[i].invocation MUST be either empty or equal to invocation in this
	// message.
	// requests[i].request_id MUST be either empty or equal to request_id in
	// this message.
	//
	// Up to 500 requests.
	Requests []*CreateTestExonerationRequest `protobuf:"bytes,2,rep,name=requests,proto3" json:"requests,omitempty"`
	// A unique identifier for this request. Restricted to 36 ASCII characters.
	// A random UUID is recommended.
	// This request is only idempotent if a `request_id` is provided, so it is
	// strongly recommended to populate this field.
	RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// contains filtered or unexported fields
}

A request message for BatchCreateTestExonerations RPC.

func (*BatchCreateTestExonerationsRequest) Descriptor

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

Deprecated: Use BatchCreateTestExonerationsRequest.ProtoReflect.Descriptor instead.

func (*BatchCreateTestExonerationsRequest) GetInvocation

func (x *BatchCreateTestExonerationsRequest) GetInvocation() string

func (*BatchCreateTestExonerationsRequest) GetRequestId

func (x *BatchCreateTestExonerationsRequest) GetRequestId() string

func (*BatchCreateTestExonerationsRequest) GetRequests

func (x *BatchCreateTestExonerationsRequest) GetRequests() []*CreateTestExonerationRequest

func (*BatchCreateTestExonerationsRequest) ProtoMessage

func (*BatchCreateTestExonerationsRequest) ProtoMessage()

func (*BatchCreateTestExonerationsRequest) ProtoReflect

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

func (*BatchCreateTestExonerationsRequest) Reset

func (x *BatchCreateTestExonerationsRequest) Reset()

func (*BatchCreateTestExonerationsRequest) String

func (x *BatchCreateTestExonerationsRequest) String() string

type BatchCreateTestExonerationsResponse

type BatchCreateTestExonerationsResponse struct {

	// Test exonerations created.
	TestExonerations []*TestExoneration `protobuf:"bytes,1,rep,name=test_exonerations,json=testExonerations,proto3" json:"test_exonerations,omitempty"`
	// contains filtered or unexported fields
}

A response message for BatchCreateTestExonerations RPC.

func (*BatchCreateTestExonerationsResponse) Descriptor

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

Deprecated: Use BatchCreateTestExonerationsResponse.ProtoReflect.Descriptor instead.

func (*BatchCreateTestExonerationsResponse) GetTestExonerations

func (x *BatchCreateTestExonerationsResponse) GetTestExonerations() []*TestExoneration

func (*BatchCreateTestExonerationsResponse) ProtoMessage

func (*BatchCreateTestExonerationsResponse) ProtoMessage()

func (*BatchCreateTestExonerationsResponse) ProtoReflect

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

func (*BatchCreateTestExonerationsResponse) Reset

func (x *BatchCreateTestExonerationsResponse) Reset()

func (*BatchCreateTestExonerationsResponse) String

func (x *BatchCreateTestExonerationsResponse) String() string

type BatchCreateTestResultsRequest

type BatchCreateTestResultsRequest struct {

	// Name of the parent invocation, see Invocation.name.
	Invocation string `protobuf:"bytes,1,opt,name=invocation,proto3" json:"invocation,omitempty"`
	// Requests to create test results.
	// requests[i].invocation MUST be either empty or equal to invocation in this
	// message.
	// requests[i].request_id MUST be either empty or equal to request_id in
	// this message.
	//
	// Up to 500 requests.
	Requests []*CreateTestResultRequest `protobuf:"bytes,2,rep,name=requests,proto3" json:"requests,omitempty"`
	// A unique identifier for this request. Restricted to 36 ASCII characters.
	// A random UUID is recommended.
	// This request is only idempotent if a `request_id` is provided, so it is
	// strongly recommended to populate this field.
	//
	RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// contains filtered or unexported fields
}

A request message for BatchCreateTestResults RPC.

func (*BatchCreateTestResultsRequest) Descriptor

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

Deprecated: Use BatchCreateTestResultsRequest.ProtoReflect.Descriptor instead.

func (*BatchCreateTestResultsRequest) GetInvocation

func (x *BatchCreateTestResultsRequest) GetInvocation() string

func (*BatchCreateTestResultsRequest) GetRequestId

func (x *BatchCreateTestResultsRequest) GetRequestId() string

func (*BatchCreateTestResultsRequest) GetRequests

func (x *BatchCreateTestResultsRequest) GetRequests() []*CreateTestResultRequest

func (*BatchCreateTestResultsRequest) ProtoMessage

func (*BatchCreateTestResultsRequest) ProtoMessage()

func (*BatchCreateTestResultsRequest) ProtoReflect

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

func (*BatchCreateTestResultsRequest) Reset

func (x *BatchCreateTestResultsRequest) Reset()

func (*BatchCreateTestResultsRequest) String

func (x *BatchCreateTestResultsRequest) String() string

type BatchCreateTestResultsResponse

type BatchCreateTestResultsResponse struct {

	// Test results created.
	TestResults []*TestResult `protobuf:"bytes,1,rep,name=test_results,json=testResults,proto3" json:"test_results,omitempty"`
	// contains filtered or unexported fields
}

A response message for BatchCreateTestResults RPC.

func (*BatchCreateTestResultsResponse) Descriptor

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

Deprecated: Use BatchCreateTestResultsResponse.ProtoReflect.Descriptor instead.

func (*BatchCreateTestResultsResponse) GetTestResults

func (x *BatchCreateTestResultsResponse) GetTestResults() []*TestResult

func (*BatchCreateTestResultsResponse) ProtoMessage

func (*BatchCreateTestResultsResponse) ProtoMessage()

func (*BatchCreateTestResultsResponse) ProtoReflect

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

func (*BatchCreateTestResultsResponse) Reset

func (x *BatchCreateTestResultsResponse) Reset()

func (*BatchCreateTestResultsResponse) String

func (x *BatchCreateTestResultsResponse) String() string

type BigQueryExport

type BigQueryExport struct {

	// Name of the BigQuery project.
	Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
	// Name of the BigQuery Dataset.
	Dataset string `protobuf:"bytes,2,opt,name=dataset,proto3" json:"dataset,omitempty"`
	// Name of the BigQuery Table.
	Table       string                      `protobuf:"bytes,3,opt,name=table,proto3" json:"table,omitempty"`
	TestResults *BigQueryExport_TestResults `protobuf:"bytes,4,opt,name=test_results,json=testResults,proto3" json:"test_results,omitempty"`
	// contains filtered or unexported fields
}

BigQueryExport indicates that results in this invocation should be exported to BigQuery after finalization.

func (*BigQueryExport) Descriptor

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

Deprecated: Use BigQueryExport.ProtoReflect.Descriptor instead.

func (*BigQueryExport) GetDataset

func (x *BigQueryExport) GetDataset() string

func (*BigQueryExport) GetProject

func (x *BigQueryExport) GetProject() string

func (*BigQueryExport) GetTable

func (x *BigQueryExport) GetTable() string

func (*BigQueryExport) GetTestResults

func (x *BigQueryExport) GetTestResults() *BigQueryExport_TestResults

func (*BigQueryExport) ProtoMessage

func (*BigQueryExport) ProtoMessage()

func (*BigQueryExport) ProtoReflect

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

func (*BigQueryExport) Reset

func (x *BigQueryExport) Reset()

func (*BigQueryExport) String

func (x *BigQueryExport) String() string

type BigQueryExport_TestResults

type BigQueryExport_TestResults struct {

	// Use predicate to query test results that should be exported to
	// BigQuery table.
	Predicate *TestResultPredicate `protobuf:"bytes,1,opt,name=predicate,proto3" json:"predicate,omitempty"`
	// contains filtered or unexported fields
}

TestResultExport indicates that test results should be exported.

func (*BigQueryExport_TestResults) Descriptor

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

Deprecated: Use BigQueryExport_TestResults.ProtoReflect.Descriptor instead.

func (*BigQueryExport_TestResults) GetPredicate

func (x *BigQueryExport_TestResults) GetPredicate() *TestResultPredicate

func (*BigQueryExport_TestResults) ProtoMessage

func (*BigQueryExport_TestResults) ProtoMessage()

func (*BigQueryExport_TestResults) ProtoReflect

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

func (*BigQueryExport_TestResults) Reset

func (x *BigQueryExport_TestResults) Reset()

func (*BigQueryExport_TestResults) String

func (x *BigQueryExport_TestResults) String() string

type CreateInvocationRequest

type CreateInvocationRequest struct {

	// Invocation identifier, becomes a part of the invocation.name.
	// LUCI systems MAY create invocations with nicely formatted IDs, such as
	// "build-1234567890". All other clients MUST use GUIDs.
	//
	// Regex: ^[a-z][a-z0-9_\-]*$.
	InvocationId string `protobuf:"bytes,1,opt,name=invocation_id,json=invocationId,proto3" json:"invocation_id,omitempty"`
	// Invocation data to insert.
	Invocation *Invocation `protobuf:"bytes,2,opt,name=invocation,proto3" json:"invocation,omitempty"`
	// A unique identifier for this request. Restricted to 36 ASCII characters.
	// A random UUID is recommended.
	// This request is only idempotent if a `request_id` is provided.
	RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// contains filtered or unexported fields
}

A request message for CreateInvocation.

func (*CreateInvocationRequest) Descriptor

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

Deprecated: Use CreateInvocationRequest.ProtoReflect.Descriptor instead.

func (*CreateInvocationRequest) GetInvocation

func (x *CreateInvocationRequest) GetInvocation() *Invocation

func (*CreateInvocationRequest) GetInvocationId

func (x *CreateInvocationRequest) GetInvocationId() string

func (*CreateInvocationRequest) GetRequestId

func (x *CreateInvocationRequest) GetRequestId() string

func (*CreateInvocationRequest) ProtoMessage

func (*CreateInvocationRequest) ProtoMessage()

func (*CreateInvocationRequest) ProtoReflect

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

func (*CreateInvocationRequest) Reset

func (x *CreateInvocationRequest) Reset()

func (*CreateInvocationRequest) String

func (x *CreateInvocationRequest) String() string

type CreateTestExonerationRequest

type CreateTestExonerationRequest struct {

	// Name of the parent invocation, see Invocation.name.
	Invocation string `protobuf:"bytes,1,opt,name=invocation,proto3" json:"invocation,omitempty"`
	// The TestExoneration to create.
	TestExoneration *TestExoneration `protobuf:"bytes,2,opt,name=test_exoneration,json=testExoneration,proto3" json:"test_exoneration,omitempty"`
	// A unique identifier for this request. Restricted to 36 ASCII characters.
	// A random UUID is recommended.
	// This request is only idempotent if a `request_id` is provided.
	RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// contains filtered or unexported fields
}

A request message for CreateTestExoneration RPC.

func (*CreateTestExonerationRequest) Descriptor

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

Deprecated: Use CreateTestExonerationRequest.ProtoReflect.Descriptor instead.

func (*CreateTestExonerationRequest) GetInvocation

func (x *CreateTestExonerationRequest) GetInvocation() string

func (*CreateTestExonerationRequest) GetRequestId

func (x *CreateTestExonerationRequest) GetRequestId() string

func (*CreateTestExonerationRequest) GetTestExoneration

func (x *CreateTestExonerationRequest) GetTestExoneration() *TestExoneration

func (*CreateTestExonerationRequest) ProtoMessage

func (*CreateTestExonerationRequest) ProtoMessage()

func (*CreateTestExonerationRequest) ProtoReflect

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

func (*CreateTestExonerationRequest) Reset

func (x *CreateTestExonerationRequest) Reset()

func (*CreateTestExonerationRequest) String

func (x *CreateTestExonerationRequest) String() string

type CreateTestResultRequest

type CreateTestResultRequest struct {

	// Name of the parent invocation, see Invocation.name.
	Invocation string `protobuf:"bytes,1,opt,name=invocation,proto3" json:"invocation,omitempty"`
	// The test result to create.
	// Test id and result id are used to dedupe requests, i.e.
	// if a test result with the same test id and result id already exists in
	// the invocation, then the requests succeeds as opposed to returns with
	// ALREADY_EXISTS error.
	TestResult *TestResult `protobuf:"bytes,2,opt,name=test_result,json=testResult,proto3" json:"test_result,omitempty"`
	// A unique identifier for this request. Restricted to 36 ASCII characters.
	// A random UUID is recommended.
	// This request is only idempotent if a `request_id` is provided, so it is
	// strongly recommended to populate this field.
	//
	// Impl note: this field is used to compute the spanner-level result id, which
	// will encode tuple (request_id, index_of_request)", where
	// - request_id is a random GUID if not provided by the user
	// - index_of_request is 0 in CreateTestResult RPC, or index of the request
	//   in BatchCreateTestResultsRequest in the batch RPC.
	// TODO(jchinlee): remove this impl note when it is converted into code.
	RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// contains filtered or unexported fields
}

A request message for CreateTestResult RPC.

func (*CreateTestResultRequest) Descriptor

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

Deprecated: Use CreateTestResultRequest.ProtoReflect.Descriptor instead.

func (*CreateTestResultRequest) GetInvocation

func (x *CreateTestResultRequest) GetInvocation() string

func (*CreateTestResultRequest) GetRequestId

func (x *CreateTestResultRequest) GetRequestId() string

func (*CreateTestResultRequest) GetTestResult

func (x *CreateTestResultRequest) GetTestResult() *TestResult

func (*CreateTestResultRequest) ProtoMessage

func (*CreateTestResultRequest) ProtoMessage()

func (*CreateTestResultRequest) ProtoReflect

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

func (*CreateTestResultRequest) Reset

func (x *CreateTestResultRequest) Reset()

func (*CreateTestResultRequest) String

func (x *CreateTestResultRequest) String() string

type DecoratedDeriver

type DecoratedDeriver struct {
	// Service is the service to decorate.
	Service DeriverServer
	// Prelude is called for each method before forwarding the call to Service.
	// If Prelude returns an error, then the call is skipped and the error is
	// processed via the Postlude (if one is defined), or it is returned directly.
	Prelude func(ctx context.Context, methodName string, req proto.Message) (context.Context, error)
	// Postlude is called for each method after Service has processed the call, or
	// after the Prelude has returned an error. This takes the the Service's
	// response proto (which may be nil) and/or any error. The decorated
	// service will return the response (possibly mutated) and error that Postlude
	// returns.
	Postlude func(ctx context.Context, methodName string, rsp proto.Message, err error) error
}

func (*DecoratedDeriver) DeriveChromiumInvocation

func (s *DecoratedDeriver) DeriveChromiumInvocation(ctx context.Context, req *DeriveChromiumInvocationRequest) (rsp *Invocation, err error)

type DecoratedRecorder

type DecoratedRecorder struct {
	// Service is the service to decorate.
	Service RecorderServer
	// Prelude is called for each method before forwarding the call to Service.
	// If Prelude returns an error, then the call is skipped and the error is
	// processed via the Postlude (if one is defined), or it is returned directly.
	Prelude func(ctx context.Context, methodName string, req proto.Message) (context.Context, error)
	// Postlude is called for each method after Service has processed the call, or
	// after the Prelude has returned an error. This takes the the Service's
	// response proto (which may be nil) and/or any error. The decorated
	// service will return the response (possibly mutated) and error that Postlude
	// returns.
	Postlude func(ctx context.Context, methodName string, rsp proto.Message, err error) error
}

func (*DecoratedRecorder) BatchCreateInvocations

func (s *DecoratedRecorder) BatchCreateInvocations(ctx context.Context, req *BatchCreateInvocationsRequest) (rsp *BatchCreateInvocationsResponse, err error)

func (*DecoratedRecorder) BatchCreateTestExonerations

func (s *DecoratedRecorder) BatchCreateTestExonerations(ctx context.Context, req *BatchCreateTestExonerationsRequest) (rsp *BatchCreateTestExonerationsResponse, err error)

func (*DecoratedRecorder) BatchCreateTestResults

func (s *DecoratedRecorder) BatchCreateTestResults(ctx context.Context, req *BatchCreateTestResultsRequest) (rsp *BatchCreateTestResultsResponse, err error)

func (*DecoratedRecorder) CreateInvocation

func (s *DecoratedRecorder) CreateInvocation(ctx context.Context, req *CreateInvocationRequest) (rsp *Invocation, err error)

func (*DecoratedRecorder) CreateTestExoneration

func (s *DecoratedRecorder) CreateTestExoneration(ctx context.Context, req *CreateTestExonerationRequest) (rsp *TestExoneration, err error)

func (*DecoratedRecorder) CreateTestResult

func (s *DecoratedRecorder) CreateTestResult(ctx context.Context, req *CreateTestResultRequest) (rsp *TestResult, err error)

func (*DecoratedRecorder) FinalizeInvocation

func (s *DecoratedRecorder) FinalizeInvocation(ctx context.Context, req *FinalizeInvocationRequest) (rsp *Invocation, err error)

func (*DecoratedRecorder) UpdateIncludedInvocations

func (s *DecoratedRecorder) UpdateIncludedInvocations(ctx context.Context, req *UpdateIncludedInvocationsRequest) (rsp *empty.Empty, err error)

func (*DecoratedRecorder) UpdateInvocation

func (s *DecoratedRecorder) UpdateInvocation(ctx context.Context, req *UpdateInvocationRequest) (rsp *Invocation, err error)

type DecoratedResultDB

type DecoratedResultDB struct {
	// Service is the service to decorate.
	Service ResultDBServer
	// Prelude is called for each method before forwarding the call to Service.
	// If Prelude returns an error, then the call is skipped and the error is
	// processed via the Postlude (if one is defined), or it is returned directly.
	Prelude func(ctx context.Context, methodName string, req proto.Message) (context.Context, error)
	// Postlude is called for each method after Service has processed the call, or
	// after the Prelude has returned an error. This takes the the Service's
	// response proto (which may be nil) and/or any error. The decorated
	// service will return the response (possibly mutated) and error that Postlude
	// returns.
	Postlude func(ctx context.Context, methodName string, rsp proto.Message, err error) error
}

func (*DecoratedResultDB) GetArtifact

func (s *DecoratedResultDB) GetArtifact(ctx context.Context, req *GetArtifactRequest) (rsp *Artifact, err error)

func (*DecoratedResultDB) GetInvocation

func (s *DecoratedResultDB) GetInvocation(ctx context.Context, req *GetInvocationRequest) (rsp *Invocation, err error)

func (*DecoratedResultDB) GetTestExoneration

func (s *DecoratedResultDB) GetTestExoneration(ctx context.Context, req *GetTestExonerationRequest) (rsp *TestExoneration, err error)

func (*DecoratedResultDB) GetTestResult

func (s *DecoratedResultDB) GetTestResult(ctx context.Context, req *GetTestResultRequest) (rsp *TestResult, err error)

func (*DecoratedResultDB) ListArtifacts

func (s *DecoratedResultDB) ListArtifacts(ctx context.Context, req *ListArtifactsRequest) (rsp *ListArtifactsResponse, err error)

func (*DecoratedResultDB) ListTestExonerations

func (s *DecoratedResultDB) ListTestExonerations(ctx context.Context, req *ListTestExonerationsRequest) (rsp *ListTestExonerationsResponse, err error)

func (*DecoratedResultDB) ListTestResults

func (s *DecoratedResultDB) ListTestResults(ctx context.Context, req *ListTestResultsRequest) (rsp *ListTestResultsResponse, err error)

func (*DecoratedResultDB) QueryArtifacts

func (s *DecoratedResultDB) QueryArtifacts(ctx context.Context, req *QueryArtifactsRequest) (rsp *QueryArtifactsResponse, err error)

func (*DecoratedResultDB) QueryTestExonerations

func (s *DecoratedResultDB) QueryTestExonerations(ctx context.Context, req *QueryTestExonerationsRequest) (rsp *QueryTestExonerationsResponse, err error)

func (*DecoratedResultDB) QueryTestResultStatistics

func (s *DecoratedResultDB) QueryTestResultStatistics(ctx context.Context, req *QueryTestResultStatisticsRequest) (rsp *QueryTestResultStatisticsResponse, err error)

func (*DecoratedResultDB) QueryTestResults

func (s *DecoratedResultDB) QueryTestResults(ctx context.Context, req *QueryTestResultsRequest) (rsp *QueryTestResultsResponse, err error)

type DeriveChromiumInvocationPreconditionFailureType

type DeriveChromiumInvocationPreconditionFailureType int32

Used a google.rpc.PreconditionFailure.Violation.type returned as a Status detail by DeriveChromiumInvocation when responding with a PreconditionFailure status code.

const (
	DeriveChromiumInvocationPreconditionFailureType_DERIVE_CHROMIUM_INVOCATION_PRECONDITION_FAILURE_TYPE_UNSPECIFIED DeriveChromiumInvocationPreconditionFailureType = 0
	DeriveChromiumInvocationPreconditionFailureType_INCOMPLETE_CHROMIUM_SWARMING_TASK                                DeriveChromiumInvocationPreconditionFailureType = 1
)

func (DeriveChromiumInvocationPreconditionFailureType) Descriptor

func (DeriveChromiumInvocationPreconditionFailureType) Descriptor() protoreflect.EnumDescriptor

func (DeriveChromiumInvocationPreconditionFailureType) Enum

func (x DeriveChromiumInvocationPreconditionFailureType) Enum() *DeriveChromiumInvocationPreconditionFailureType

func (DeriveChromiumInvocationPreconditionFailureType) EnumDescriptor

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

Deprecated: Use DeriveChromiumInvocationPreconditionFailureType.Descriptor instead.

func (DeriveChromiumInvocationPreconditionFailureType) Number

func (x DeriveChromiumInvocationPreconditionFailureType) Number() protoreflect.EnumNumber

func (DeriveChromiumInvocationPreconditionFailureType) String

func (x DeriveChromiumInvocationPreconditionFailureType) String() string

func (DeriveChromiumInvocationPreconditionFailureType) Type

func (DeriveChromiumInvocationPreconditionFailureType) Type() protoreflect.EnumType

type DeriveChromiumInvocationRequest

type DeriveChromiumInvocationRequest struct {

	// Derive the invocation from the Swarming task.
	SwarmingTask *DeriveChromiumInvocationRequest_SwarmingTask `protobuf:"bytes,1,opt,name=swarming_task,json=swarmingTask,proto3" json:"swarming_task,omitempty"`
	// contains filtered or unexported fields
}

A request message for DeriveChromiumInvocation RPC.

func (*DeriveChromiumInvocationRequest) Descriptor

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

Deprecated: Use DeriveChromiumInvocationRequest.ProtoReflect.Descriptor instead.

func (*DeriveChromiumInvocationRequest) GetSwarmingTask

func (x *DeriveChromiumInvocationRequest) GetSwarmingTask() *DeriveChromiumInvocationRequest_SwarmingTask

func (*DeriveChromiumInvocationRequest) ProtoMessage

func (*DeriveChromiumInvocationRequest) ProtoMessage()

func (*DeriveChromiumInvocationRequest) ProtoReflect

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

func (*DeriveChromiumInvocationRequest) Reset

func (x *DeriveChromiumInvocationRequest) Reset()

func (*DeriveChromiumInvocationRequest) String

func (x *DeriveChromiumInvocationRequest) String() string

type DeriveChromiumInvocationRequest_SwarmingTask

type DeriveChromiumInvocationRequest_SwarmingTask struct {

	// Swarming host of task.
	Hostname string `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"`
	// ID of swarming task to process and insert.
	//
	// The task should have tags:
	//  test_id_prefix: test_id_prefix for each test suite, e.g.
	//    "ninja://chrome/test:telemetry_gpu_integration_test/trace_test/".
	//  ninja_target: the fully-qualified ninja target used to compile the test
	//    binary used in the task, e.g. "//chrome/test:browser_tests".
	//  bucket: the LUCI bucket of the parent build
	//  buildername: the LUCI builder of the parent build.
	//  test_suite: a value of "test" property in any of the JSON files in
	//    https://chromium.googlesource.com/chromium/src/+/master/testing/buildbot/
	//    used to create the swarming task.
	Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

Identifies a swarming task.

func (*DeriveChromiumInvocationRequest_SwarmingTask) Descriptor

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

Deprecated: Use DeriveChromiumInvocationRequest_SwarmingTask.ProtoReflect.Descriptor instead.

func (*DeriveChromiumInvocationRequest_SwarmingTask) GetHostname

func (x *DeriveChromiumInvocationRequest_SwarmingTask) GetHostname() string

func (*DeriveChromiumInvocationRequest_SwarmingTask) GetId

func (x *DeriveChromiumInvocationRequest_SwarmingTask) GetId() string

func (*DeriveChromiumInvocationRequest_SwarmingTask) ProtoMessage

func (*DeriveChromiumInvocationRequest_SwarmingTask) ProtoMessage()

func (*DeriveChromiumInvocationRequest_SwarmingTask) ProtoReflect

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

func (*DeriveChromiumInvocationRequest_SwarmingTask) Reset

func (x *DeriveChromiumInvocationRequest_SwarmingTask) Reset()

func (*DeriveChromiumInvocationRequest_SwarmingTask) String

func (x *DeriveChromiumInvocationRequest_SwarmingTask) String() string

type DeriverClient

type DeriverClient interface {
	// Derives an invocation and test results from a Chromium swarming task.
	// Returns the derived invocation; test results should retrieved using
	// ResultDB.ListTestResults or ResultDB.QueryTestResults.
	DeriveChromiumInvocation(ctx context.Context, in *DeriveChromiumInvocationRequest, opts ...grpc.CallOption) (*Invocation, error)
}

DeriverClient is the client API for Deriver service.

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

func NewDeriverClient

func NewDeriverClient(cc grpc.ClientConnInterface) DeriverClient

func NewDeriverPRPCClient

func NewDeriverPRPCClient(client *prpc.Client) DeriverClient

type DeriverServer

type DeriverServer interface {
	// Derives an invocation and test results from a Chromium swarming task.
	// Returns the derived invocation; test results should retrieved using
	// ResultDB.ListTestResults or ResultDB.QueryTestResults.
	DeriveChromiumInvocation(context.Context, *DeriveChromiumInvocationRequest) (*Invocation, error)
}

DeriverServer is the server API for Deriver service.

type FinalizeInvocationRequest

type FinalizeInvocationRequest struct {

	// Name of the invocation to finalize.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

A request message for FinalizeInvocation RPC.

func (*FinalizeInvocationRequest) Descriptor

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

Deprecated: Use FinalizeInvocationRequest.ProtoReflect.Descriptor instead.

func (*FinalizeInvocationRequest) GetName

func (x *FinalizeInvocationRequest) GetName() string

func (*FinalizeInvocationRequest) ProtoMessage

func (*FinalizeInvocationRequest) ProtoMessage()

func (*FinalizeInvocationRequest) ProtoReflect

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

func (*FinalizeInvocationRequest) Reset

func (x *FinalizeInvocationRequest) Reset()

func (*FinalizeInvocationRequest) String

func (x *FinalizeInvocationRequest) String() string

type GetArtifactRequest

type GetArtifactRequest struct {

	// The name of the artifact to request, see Artifact.name.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

A request message for GetArtifact RPC.

func (*GetArtifactRequest) Descriptor

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

Deprecated: Use GetArtifactRequest.ProtoReflect.Descriptor instead.

func (*GetArtifactRequest) GetName

func (x *GetArtifactRequest) GetName() string

func (*GetArtifactRequest) ProtoMessage

func (*GetArtifactRequest) ProtoMessage()

func (*GetArtifactRequest) ProtoReflect

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

func (*GetArtifactRequest) Reset

func (x *GetArtifactRequest) Reset()

func (*GetArtifactRequest) String

func (x *GetArtifactRequest) String() string

type GetInvocationRequest

type GetInvocationRequest struct {

	// The name of the invocation to request, see Invocation.name.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

A request message for GetInvocation RPC.

func (*GetInvocationRequest) Descriptor

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

Deprecated: Use GetInvocationRequest.ProtoReflect.Descriptor instead.

func (*GetInvocationRequest) GetName

func (x *GetInvocationRequest) GetName() string

func (*GetInvocationRequest) ProtoMessage

func (*GetInvocationRequest) ProtoMessage()

func (*GetInvocationRequest) ProtoReflect

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

func (*GetInvocationRequest) Reset

func (x *GetInvocationRequest) Reset()

func (*GetInvocationRequest) String

func (x *GetInvocationRequest) String() string

type GetTestExonerationRequest

type GetTestExonerationRequest struct {

	// The name of the test exoneration to request, see TestExoneration.name.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

A request message for GetTestExoneration RPC.

func (*GetTestExonerationRequest) Descriptor

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

Deprecated: Use GetTestExonerationRequest.ProtoReflect.Descriptor instead.

func (*GetTestExonerationRequest) GetName

func (x *GetTestExonerationRequest) GetName() string

func (*GetTestExonerationRequest) ProtoMessage

func (*GetTestExonerationRequest) ProtoMessage()

func (*GetTestExonerationRequest) ProtoReflect

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

func (*GetTestExonerationRequest) Reset

func (x *GetTestExonerationRequest) Reset()

func (*GetTestExonerationRequest) String

func (x *GetTestExonerationRequest) String() string

type GetTestResultRequest

type GetTestResultRequest struct {

	// The name of the test result to request, see TestResult.name.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

A request message for GetTestResult RPC.

func (*GetTestResultRequest) Descriptor

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

Deprecated: Use GetTestResultRequest.ProtoReflect.Descriptor instead.

func (*GetTestResultRequest) GetName

func (x *GetTestResultRequest) GetName() string

func (*GetTestResultRequest) ProtoMessage

func (*GetTestResultRequest) ProtoMessage()

func (*GetTestResultRequest) ProtoReflect

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

func (*GetTestResultRequest) Reset

func (x *GetTestResultRequest) Reset()

func (*GetTestResultRequest) String

func (x *GetTestResultRequest) String() string

type Invocation

type Invocation struct {

	// Can be used to refer to this invocation, e.g. in ResultDB.GetInvocation
	// RPC.
	// Format: invocations/{INVOCATION_ID}
	// See also https://aip.dev/122.
	//
	// Output only.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Current state of the invocation.
	//
	// Output only.
	State Invocation_State `protobuf:"varint,2,opt,name=state,proto3,enum=luci.resultdb.v1.Invocation_State" json:"state,omitempty"`
	// When the invocation was created.
	// Output only.
	CreateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Invocation-level string key-value pairs.
	// A key can be repeated.
	Tags []*StringPair `protobuf:"bytes,5,rep,name=tags,proto3" json:"tags,omitempty"`
	// When the invocation was finalized, i.e. transitioned to FINALIZED state.
	// If this field is set, implies that the invocation is finalized.
	//
	// Output only.
	FinalizeTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=finalize_time,json=finalizeTime,proto3" json:"finalize_time,omitempty"`
	// Timestamp when the invocation will be forcefully finalized.
	// Can be extended with UpdateInvocation until finalized.
	Deadline *timestamp.Timestamp `protobuf:"bytes,7,opt,name=deadline,proto3" json:"deadline,omitempty"`
	// Names of invocations included into this one. Overall results of this
	// invocation is a UNION of results directly included into this invocation
	// and results from the included invocations, recursively.
	// For example, a Buildbucket build invocation may include invocations of its
	// child swarming tasks and represent overall result of the build,
	// encapsulating the internal structure of the build.
	//
	// The graph is directed.
	// There can be at most one edge between a given pair of invocations.
	// The shape of the graph does not matter. What matters is only the set of
	// reachable invocations. Thus cycles are allowed and are noop.
	//
	// QueryTestResults returns test results from the transitive closure of
	// invocations.
	//
	// Use Recorder.Include RPC to modify this field.
	IncludedInvocations []string `protobuf:"bytes,8,rep,name=included_invocations,json=includedInvocations,proto3" json:"included_invocations,omitempty"`
	// bigquery_exports indicates what BigQuery table(s) that results in this
	// invocation should export to.
	BigqueryExports []*BigQueryExport `protobuf:"bytes,9,rep,name=bigquery_exports,json=bigqueryExports,proto3" json:"bigquery_exports,omitempty"`
	// LUCI identity (e.g. "user:<email>") who created the invocation.
	// Typically, a LUCI service account (e.g.
	// "user:cr-buildbucket@appspot.gserviceaccount.com"), but can also be a user
	// (e.g. "user:johndoe@example.com").
	//
	// Output only.
	CreatedBy string `protobuf:"bytes,10,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"`
	// Full name of the resource that produced results in this invocation.
	// See also https://aip.dev/122#full-resource-names
	// Typical examples:
	// - Swarming task: "//chromium-swarm.appspot.com/tasks/deadbeef"
	// - Buildbucket build: "//cr-buildbucket.appspot.com/builds/1234567890".
	ProducerResource string `protobuf:"bytes,11,opt,name=producer_resource,json=producerResource,proto3" json:"producer_resource,omitempty"`
	// Realm that the invocation exists under.
	// See https://chromium.googlesource.com/infra/luci/luci-py/+/refs/heads/master/appengine/auth_service/proto/realms_config.proto
	Realm string `protobuf:"bytes,12,opt,name=realm,proto3" json:"realm,omitempty"`
	// contains filtered or unexported fields
}

A conceptual container of results. Immutable once finalized. It represents all results of some computation; examples: swarming task, buildbucket build, CQ attempt. Composable: can include other invocations, see inclusion.proto.

Next id: 13.

func (*Invocation) Descriptor

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

Deprecated: Use Invocation.ProtoReflect.Descriptor instead.

func (*Invocation) GetBigqueryExports

func (x *Invocation) GetBigqueryExports() []*BigQueryExport

func (*Invocation) GetCreateTime

func (x *Invocation) GetCreateTime() *timestamp.Timestamp

func (*Invocation) GetCreatedBy

func (x *Invocation) GetCreatedBy() string

func (*Invocation) GetDeadline

func (x *Invocation) GetDeadline() *timestamp.Timestamp

func (*Invocation) GetFinalizeTime

func (x *Invocation) GetFinalizeTime() *timestamp.Timestamp

func (*Invocation) GetIncludedInvocations

func (x *Invocation) GetIncludedInvocations() []string

func (*Invocation) GetName

func (x *Invocation) GetName() string

func (*Invocation) GetProducerResource

func (x *Invocation) GetProducerResource() string

func (*Invocation) GetRealm

func (x *Invocation) GetRealm() string

func (*Invocation) GetState

func (x *Invocation) GetState() Invocation_State

func (*Invocation) GetTags

func (x *Invocation) GetTags() []*StringPair

func (*Invocation) ProtoMessage

func (*Invocation) ProtoMessage()

func (*Invocation) ProtoReflect

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

func (*Invocation) Reset

func (x *Invocation) Reset()

func (*Invocation) String

func (x *Invocation) String() string

type Invocation_State

type Invocation_State int32
const (
	// The default value. This value is used if the state is omitted.
	Invocation_STATE_UNSPECIFIED Invocation_State = 0
	// The invocation was created and accepts new results.
	Invocation_ACTIVE Invocation_State = 1
	// The invocation is in the process of transitioning into FINALIZED state.
	// This will happen automatically soon after all of its directly or
	// indirectly included invocations become inactive.
	Invocation_FINALIZING Invocation_State = 2
	// The invocation is immutable and no longer accepts new results nor
	// inclusions directly or indirectly.
	Invocation_FINALIZED Invocation_State = 3
)

func (Invocation_State) Descriptor

func (Invocation_State) Descriptor() protoreflect.EnumDescriptor

func (Invocation_State) Enum

func (x Invocation_State) Enum() *Invocation_State

func (Invocation_State) EnumDescriptor

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

Deprecated: Use Invocation_State.Descriptor instead.

func (Invocation_State) Number

func (x Invocation_State) Number() protoreflect.EnumNumber

func (Invocation_State) String

func (x Invocation_State) String() string

func (Invocation_State) Type

func (Invocation_State) Type() protoreflect.EnumType

type ListArtifactsRequest

type ListArtifactsRequest struct {

	// Name of the parent, e.g. an invocation (see Invocation.name) or
	// a test result (see TestResult.name).
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// The maximum number of artifacts to return.
	//
	// The service may return fewer than this value.
	// If unspecified, at most 100 artifacts will be returned.
	// The maximum value is 1000; values above 1000 will be coerced to 1000.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// A page token, received from a previous `ListArtifacts` call.
	// Provide this to retrieve the subsequent page.
	//
	// When paginating, all other parameters provided to `ListArtifacts` MUST
	// match the call that provided the page token.
	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 ListArtifacts RPC.

func (*ListArtifactsRequest) Descriptor

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

Deprecated: Use ListArtifactsRequest.ProtoReflect.Descriptor instead.

func (*ListArtifactsRequest) GetPageSize

func (x *ListArtifactsRequest) GetPageSize() int32

func (*ListArtifactsRequest) GetPageToken

func (x *ListArtifactsRequest) GetPageToken() string

func (*ListArtifactsRequest) GetParent

func (x *ListArtifactsRequest) GetParent() string

func (*ListArtifactsRequest) ProtoMessage

func (*ListArtifactsRequest) ProtoMessage()

func (*ListArtifactsRequest) ProtoReflect

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

func (*ListArtifactsRequest) Reset

func (x *ListArtifactsRequest) Reset()

func (*ListArtifactsRequest) String

func (x *ListArtifactsRequest) String() string

type ListArtifactsResponse

type ListArtifactsResponse struct {

	// The artifacts from the specified parent.
	Artifacts []*Artifact `protobuf:"bytes,1,rep,name=artifacts,proto3" json:"artifacts,omitempty"`
	// A token, which can be sent as `page_token` to retrieve the next page.
	// If this field is omitted, there were no subsequent pages at the time of
	// request.
	// If the invocation is not finalized, more results may appear later.
	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 ListArtifacts RPC.

func (*ListArtifactsResponse) Descriptor

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

Deprecated: Use ListArtifactsResponse.ProtoReflect.Descriptor instead.

func (*ListArtifactsResponse) GetArtifacts

func (x *ListArtifactsResponse) GetArtifacts() []*Artifact

func (*ListArtifactsResponse) GetNextPageToken

func (x *ListArtifactsResponse) GetNextPageToken() string

func (*ListArtifactsResponse) ProtoMessage

func (*ListArtifactsResponse) ProtoMessage()

func (*ListArtifactsResponse) ProtoReflect

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

func (*ListArtifactsResponse) Reset

func (x *ListArtifactsResponse) Reset()

func (*ListArtifactsResponse) String

func (x *ListArtifactsResponse) String() string

type ListTestExonerationsRequest

type ListTestExonerationsRequest struct {

	// Name of the invocation, e.g. "invocations/{id}".
	Invocation string `protobuf:"bytes,1,opt,name=invocation,proto3" json:"invocation,omitempty"`
	// The maximum number of test exonerations to return.
	//
	// The service may return fewer than this value.
	// If unspecified, at most 100 test exonerations will be returned.
	// The maximum value is 1000; values above 1000 will be coerced to 1000.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// A page token, received from a previous `ListTestExonerations` call.
	// Provide this to retrieve the subsequent page.
	//
	// When paginating, all other parameters provided to `ListTestExonerations`
	// MUST match the call that provided the page token.
	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 ListTestExonerations RPC.

func (*ListTestExonerationsRequest) Descriptor

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

Deprecated: Use ListTestExonerationsRequest.ProtoReflect.Descriptor instead.

func (*ListTestExonerationsRequest) GetInvocation

func (x *ListTestExonerationsRequest) GetInvocation() string

func (*ListTestExonerationsRequest) GetPageSize

func (x *ListTestExonerationsRequest) GetPageSize() int32

func (*ListTestExonerationsRequest) GetPageToken

func (x *ListTestExonerationsRequest) GetPageToken() string

func (*ListTestExonerationsRequest) ProtoMessage

func (*ListTestExonerationsRequest) ProtoMessage()

func (*ListTestExonerationsRequest) ProtoReflect

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

func (*ListTestExonerationsRequest) Reset

func (x *ListTestExonerationsRequest) Reset()

func (*ListTestExonerationsRequest) String

func (x *ListTestExonerationsRequest) String() string

type ListTestExonerationsResponse

type ListTestExonerationsResponse struct {

	// The test exonerations from the specified invocation.
	TestExonerations []*TestExoneration `protobuf:"bytes,1,rep,name=test_exonerations,json=testExonerations,proto3" json:"test_exonerations,omitempty"`
	// A token, which can be sent as `page_token` to retrieve the next page.
	// If this field is omitted, there were no subsequent pages at the time of
	// request.
	// If the invocation is not finalized, more results may appear later.
	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 ListTestExonerations RPC.

func (*ListTestExonerationsResponse) Descriptor

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

Deprecated: Use ListTestExonerationsResponse.ProtoReflect.Descriptor instead.

func (*ListTestExonerationsResponse) GetNextPageToken

func (x *ListTestExonerationsResponse) GetNextPageToken() string

func (*ListTestExonerationsResponse) GetTestExonerations

func (x *ListTestExonerationsResponse) GetTestExonerations() []*TestExoneration

func (*ListTestExonerationsResponse) ProtoMessage

func (*ListTestExonerationsResponse) ProtoMessage()

func (*ListTestExonerationsResponse) ProtoReflect

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

func (*ListTestExonerationsResponse) Reset

func (x *ListTestExonerationsResponse) Reset()

func (*ListTestExonerationsResponse) String

func (x *ListTestExonerationsResponse) String() string

type ListTestResultsRequest

type ListTestResultsRequest struct {

	// Name of the invocation, e.g. "invocations/{id}".
	Invocation string `protobuf:"bytes,1,opt,name=invocation,proto3" json:"invocation,omitempty"`
	// The maximum number of test results to return.
	//
	// The service may return fewer than this value.
	// If unspecified, at most 100 test results will be returned.
	// The maximum value is 1000; values above 1000 will be coerced to 1000.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// A page token, received from a previous `ListTestResults` call.
	// Provide this to retrieve the subsequent page.
	//
	// When paginating, all other parameters provided to `ListTestResults` MUST
	// match the call that provided the page token.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// Fields to include in the response.
	// If not set, the default mask is used where summary_html and tags are
	// excluded.
	// Test result names will always be included even if "name" is not a part of
	// the mask.
	ReadMask *field_mask.FieldMask `protobuf:"bytes,4,opt,name=read_mask,json=readMask,proto3" json:"read_mask,omitempty"`
	// contains filtered or unexported fields
}

A request message for ListTestResults RPC.

func (*ListTestResultsRequest) Descriptor

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

Deprecated: Use ListTestResultsRequest.ProtoReflect.Descriptor instead.

func (*ListTestResultsRequest) GetInvocation

func (x *ListTestResultsRequest) GetInvocation() string

func (*ListTestResultsRequest) GetPageSize

func (x *ListTestResultsRequest) GetPageSize() int32

func (*ListTestResultsRequest) GetPageToken

func (x *ListTestResultsRequest) GetPageToken() string

func (*ListTestResultsRequest) GetReadMask

func (x *ListTestResultsRequest) GetReadMask() *field_mask.FieldMask

func (*ListTestResultsRequest) ProtoMessage

func (*ListTestResultsRequest) ProtoMessage()

func (*ListTestResultsRequest) ProtoReflect

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

func (*ListTestResultsRequest) Reset

func (x *ListTestResultsRequest) Reset()

func (*ListTestResultsRequest) String

func (x *ListTestResultsRequest) String() string

type ListTestResultsResponse

type ListTestResultsResponse struct {

	// The test results from the specified invocation.
	TestResults []*TestResult `protobuf:"bytes,1,rep,name=test_results,json=testResults,proto3" json:"test_results,omitempty"`
	// A token, which can be sent as `page_token` to retrieve the next page.
	// If this field is omitted, there were no subsequent pages at the time of
	// request.
	// If the invocation is not finalized, more results may appear later.
	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 ListTestResults RPC.

func (*ListTestResultsResponse) Descriptor

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

Deprecated: Use ListTestResultsResponse.ProtoReflect.Descriptor instead.

func (*ListTestResultsResponse) GetNextPageToken

func (x *ListTestResultsResponse) GetNextPageToken() string

func (*ListTestResultsResponse) GetTestResults

func (x *ListTestResultsResponse) GetTestResults() []*TestResult

func (*ListTestResultsResponse) ProtoMessage

func (*ListTestResultsResponse) ProtoMessage()

func (*ListTestResultsResponse) ProtoReflect

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

func (*ListTestResultsResponse) Reset

func (x *ListTestResultsResponse) Reset()

func (*ListTestResultsResponse) String

func (x *ListTestResultsResponse) String() string

type MockDeriverClient

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

MockDeriverClient is a mock of DeriverClient interface.

func NewMockDeriverClient

func NewMockDeriverClient(ctrl *gomock.Controller) *MockDeriverClient

NewMockDeriverClient creates a new mock instance.

func (*MockDeriverClient) DeriveChromiumInvocation

func (m *MockDeriverClient) DeriveChromiumInvocation(ctx context.Context, in *DeriveChromiumInvocationRequest, opts ...grpc.CallOption) (*Invocation, error)

DeriveChromiumInvocation mocks base method.

func (*MockDeriverClient) EXPECT

func (m *MockDeriverClient) EXPECT() *MockDeriverClientMockRecorder

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

type MockDeriverClientMockRecorder

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

MockDeriverClientMockRecorder is the mock recorder for MockDeriverClient.

func (*MockDeriverClientMockRecorder) DeriveChromiumInvocation

func (mr *MockDeriverClientMockRecorder) DeriveChromiumInvocation(ctx, in interface{}, opts ...interface{}) *gomock.Call

DeriveChromiumInvocation indicates an expected call of DeriveChromiumInvocation.

type MockDeriverServer

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

MockDeriverServer is a mock of DeriverServer interface.

func NewMockDeriverServer

func NewMockDeriverServer(ctrl *gomock.Controller) *MockDeriverServer

NewMockDeriverServer creates a new mock instance.

func (*MockDeriverServer) DeriveChromiumInvocation

func (m *MockDeriverServer) DeriveChromiumInvocation(arg0 context.Context, arg1 *DeriveChromiumInvocationRequest) (*Invocation, error)

DeriveChromiumInvocation mocks base method.

func (*MockDeriverServer) EXPECT

func (m *MockDeriverServer) EXPECT() *MockDeriverServerMockRecorder

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

type MockDeriverServerMockRecorder

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

MockDeriverServerMockRecorder is the mock recorder for MockDeriverServer.

func (*MockDeriverServerMockRecorder) DeriveChromiumInvocation

func (mr *MockDeriverServerMockRecorder) DeriveChromiumInvocation(arg0, arg1 interface{}) *gomock.Call

DeriveChromiumInvocation indicates an expected call of DeriveChromiumInvocation.

type MockRecorderClient

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

MockRecorderClient is a mock of RecorderClient interface.

func NewMockRecorderClient

func NewMockRecorderClient(ctrl *gomock.Controller) *MockRecorderClient

NewMockRecorderClient creates a new mock instance.

func (*MockRecorderClient) BatchCreateInvocations

func (m *MockRecorderClient) BatchCreateInvocations(ctx context.Context, in *BatchCreateInvocationsRequest, opts ...grpc.CallOption) (*BatchCreateInvocationsResponse, error)

BatchCreateInvocations mocks base method.

func (*MockRecorderClient) BatchCreateTestExonerations

func (m *MockRecorderClient) BatchCreateTestExonerations(ctx context.Context, in *BatchCreateTestExonerationsRequest, opts ...grpc.CallOption) (*BatchCreateTestExonerationsResponse, error)

BatchCreateTestExonerations mocks base method.

func (*MockRecorderClient) BatchCreateTestResults

func (m *MockRecorderClient) BatchCreateTestResults(ctx context.Context, in *BatchCreateTestResultsRequest, opts ...grpc.CallOption) (*BatchCreateTestResultsResponse, error)

BatchCreateTestResults mocks base method.

func (*MockRecorderClient) CreateInvocation

func (m *MockRecorderClient) CreateInvocation(ctx context.Context, in *CreateInvocationRequest, opts ...grpc.CallOption) (*Invocation, error)

CreateInvocation mocks base method.

func (*MockRecorderClient) CreateTestExoneration

func (m *MockRecorderClient) CreateTestExoneration(ctx context.Context, in *CreateTestExonerationRequest, opts ...grpc.CallOption) (*TestExoneration, error)

CreateTestExoneration mocks base method.

func (*MockRecorderClient) CreateTestResult

func (m *MockRecorderClient) CreateTestResult(ctx context.Context, in *CreateTestResultRequest, opts ...grpc.CallOption) (*TestResult, error)

CreateTestResult mocks base method.

func (*MockRecorderClient) EXPECT

func (m *MockRecorderClient) EXPECT() *MockRecorderClientMockRecorder

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

func (*MockRecorderClient) FinalizeInvocation

func (m *MockRecorderClient) FinalizeInvocation(ctx context.Context, in *FinalizeInvocationRequest, opts ...grpc.CallOption) (*Invocation, error)

FinalizeInvocation mocks base method.

func (*MockRecorderClient) UpdateIncludedInvocations

func (m *MockRecorderClient) UpdateIncludedInvocations(ctx context.Context, in *UpdateIncludedInvocationsRequest, opts ...grpc.CallOption) (*empty.Empty, error)

UpdateIncludedInvocations mocks base method.

func (*MockRecorderClient) UpdateInvocation

func (m *MockRecorderClient) UpdateInvocation(ctx context.Context, in *UpdateInvocationRequest, opts ...grpc.CallOption) (*Invocation, error)

UpdateInvocation mocks base method.

type MockRecorderClientMockRecorder

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

MockRecorderClientMockRecorder is the mock recorder for MockRecorderClient.

func (*MockRecorderClientMockRecorder) BatchCreateInvocations

func (mr *MockRecorderClientMockRecorder) BatchCreateInvocations(ctx, in interface{}, opts ...interface{}) *gomock.Call

BatchCreateInvocations indicates an expected call of BatchCreateInvocations.

func (*MockRecorderClientMockRecorder) BatchCreateTestExonerations

func (mr *MockRecorderClientMockRecorder) BatchCreateTestExonerations(ctx, in interface{}, opts ...interface{}) *gomock.Call

BatchCreateTestExonerations indicates an expected call of BatchCreateTestExonerations.

func (*MockRecorderClientMockRecorder) BatchCreateTestResults

func (mr *MockRecorderClientMockRecorder) BatchCreateTestResults(ctx, in interface{}, opts ...interface{}) *gomock.Call

BatchCreateTestResults indicates an expected call of BatchCreateTestResults.

func (*MockRecorderClientMockRecorder) CreateInvocation

func (mr *MockRecorderClientMockRecorder) CreateInvocation(ctx, in interface{}, opts ...interface{}) *gomock.Call

CreateInvocation indicates an expected call of CreateInvocation.

func (*MockRecorderClientMockRecorder) CreateTestExoneration

func (mr *MockRecorderClientMockRecorder) CreateTestExoneration(ctx, in interface{}, opts ...interface{}) *gomock.Call

CreateTestExoneration indicates an expected call of CreateTestExoneration.

func (*MockRecorderClientMockRecorder) CreateTestResult

func (mr *MockRecorderClientMockRecorder) CreateTestResult(ctx, in interface{}, opts ...interface{}) *gomock.Call

CreateTestResult indicates an expected call of CreateTestResult.

func (*MockRecorderClientMockRecorder) FinalizeInvocation

func (mr *MockRecorderClientMockRecorder) FinalizeInvocation(ctx, in interface{}, opts ...interface{}) *gomock.Call

FinalizeInvocation indicates an expected call of FinalizeInvocation.

func (*MockRecorderClientMockRecorder) UpdateIncludedInvocations

func (mr *MockRecorderClientMockRecorder) UpdateIncludedInvocations(ctx, in interface{}, opts ...interface{}) *gomock.Call

UpdateIncludedInvocations indicates an expected call of UpdateIncludedInvocations.

func (*MockRecorderClientMockRecorder) UpdateInvocation

func (mr *MockRecorderClientMockRecorder) UpdateInvocation(ctx, in interface{}, opts ...interface{}) *gomock.Call

UpdateInvocation indicates an expected call of UpdateInvocation.

type MockRecorderServer

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

MockRecorderServer is a mock of RecorderServer interface.

func NewMockRecorderServer

func NewMockRecorderServer(ctrl *gomock.Controller) *MockRecorderServer

NewMockRecorderServer creates a new mock instance.

func (*MockRecorderServer) BatchCreateInvocations

func (m *MockRecorderServer) BatchCreateInvocations(arg0 context.Context, arg1 *BatchCreateInvocationsRequest) (*BatchCreateInvocationsResponse, error)

BatchCreateInvocations mocks base method.

func (*MockRecorderServer) BatchCreateTestExonerations

func (m *MockRecorderServer) BatchCreateTestExonerations(arg0 context.Context, arg1 *BatchCreateTestExonerationsRequest) (*BatchCreateTestExonerationsResponse, error)

BatchCreateTestExonerations mocks base method.

func (*MockRecorderServer) BatchCreateTestResults

func (m *MockRecorderServer) BatchCreateTestResults(arg0 context.Context, arg1 *BatchCreateTestResultsRequest) (*BatchCreateTestResultsResponse, error)

BatchCreateTestResults mocks base method.

func (*MockRecorderServer) CreateInvocation

func (m *MockRecorderServer) CreateInvocation(arg0 context.Context, arg1 *CreateInvocationRequest) (*Invocation, error)

CreateInvocation mocks base method.

func (*MockRecorderServer) CreateTestExoneration

func (m *MockRecorderServer) CreateTestExoneration(arg0 context.Context, arg1 *CreateTestExonerationRequest) (*TestExoneration, error)

CreateTestExoneration mocks base method.

func (*MockRecorderServer) CreateTestResult

func (m *MockRecorderServer) CreateTestResult(arg0 context.Context, arg1 *CreateTestResultRequest) (*TestResult, error)

CreateTestResult mocks base method.

func (*MockRecorderServer) EXPECT

func (m *MockRecorderServer) EXPECT() *MockRecorderServerMockRecorder

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

func (*MockRecorderServer) FinalizeInvocation

func (m *MockRecorderServer) FinalizeInvocation(arg0 context.Context, arg1 *FinalizeInvocationRequest) (*Invocation, error)

FinalizeInvocation mocks base method.

func (*MockRecorderServer) UpdateIncludedInvocations

func (m *MockRecorderServer) UpdateIncludedInvocations(arg0 context.Context, arg1 *UpdateIncludedInvocationsRequest) (*empty.Empty, error)

UpdateIncludedInvocations mocks base method.

func (*MockRecorderServer) UpdateInvocation

func (m *MockRecorderServer) UpdateInvocation(arg0 context.Context, arg1 *UpdateInvocationRequest) (*Invocation, error)

UpdateInvocation mocks base method.

type MockRecorderServerMockRecorder

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

MockRecorderServerMockRecorder is the mock recorder for MockRecorderServer.

func (*MockRecorderServerMockRecorder) BatchCreateInvocations

func (mr *MockRecorderServerMockRecorder) BatchCreateInvocations(arg0, arg1 interface{}) *gomock.Call

BatchCreateInvocations indicates an expected call of BatchCreateInvocations.

func (*MockRecorderServerMockRecorder) BatchCreateTestExonerations

func (mr *MockRecorderServerMockRecorder) BatchCreateTestExonerations(arg0, arg1 interface{}) *gomock.Call

BatchCreateTestExonerations indicates an expected call of BatchCreateTestExonerations.

func (*MockRecorderServerMockRecorder) BatchCreateTestResults

func (mr *MockRecorderServerMockRecorder) BatchCreateTestResults(arg0, arg1 interface{}) *gomock.Call

BatchCreateTestResults indicates an expected call of BatchCreateTestResults.

func (*MockRecorderServerMockRecorder) CreateInvocation

func (mr *MockRecorderServerMockRecorder) CreateInvocation(arg0, arg1 interface{}) *gomock.Call

CreateInvocation indicates an expected call of CreateInvocation.

func (*MockRecorderServerMockRecorder) CreateTestExoneration

func (mr *MockRecorderServerMockRecorder) CreateTestExoneration(arg0, arg1 interface{}) *gomock.Call

CreateTestExoneration indicates an expected call of CreateTestExoneration.

func (*MockRecorderServerMockRecorder) CreateTestResult

func (mr *MockRecorderServerMockRecorder) CreateTestResult(arg0, arg1 interface{}) *gomock.Call

CreateTestResult indicates an expected call of CreateTestResult.

func (*MockRecorderServerMockRecorder) FinalizeInvocation

func (mr *MockRecorderServerMockRecorder) FinalizeInvocation(arg0, arg1 interface{}) *gomock.Call

FinalizeInvocation indicates an expected call of FinalizeInvocation.

func (*MockRecorderServerMockRecorder) UpdateIncludedInvocations

func (mr *MockRecorderServerMockRecorder) UpdateIncludedInvocations(arg0, arg1 interface{}) *gomock.Call

UpdateIncludedInvocations indicates an expected call of UpdateIncludedInvocations.

func (*MockRecorderServerMockRecorder) UpdateInvocation

func (mr *MockRecorderServerMockRecorder) UpdateInvocation(arg0, arg1 interface{}) *gomock.Call

UpdateInvocation indicates an expected call of UpdateInvocation.

type MockResultDBClient

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

MockResultDBClient is a mock of ResultDBClient interface.

func NewMockResultDBClient

func NewMockResultDBClient(ctrl *gomock.Controller) *MockResultDBClient

NewMockResultDBClient creates a new mock instance.

func (*MockResultDBClient) EXPECT

func (m *MockResultDBClient) EXPECT() *MockResultDBClientMockRecorder

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

func (*MockResultDBClient) GetArtifact

func (m *MockResultDBClient) GetArtifact(ctx context.Context, in *GetArtifactRequest, opts ...grpc.CallOption) (*Artifact, error)

GetArtifact mocks base method.

func (*MockResultDBClient) GetInvocation

func (m *MockResultDBClient) GetInvocation(ctx context.Context, in *GetInvocationRequest, opts ...grpc.CallOption) (*Invocation, error)

GetInvocation mocks base method.

func (*MockResultDBClient) GetTestExoneration

func (m *MockResultDBClient) GetTestExoneration(ctx context.Context, in *GetTestExonerationRequest, opts ...grpc.CallOption) (*TestExoneration, error)

GetTestExoneration mocks base method.

func (*MockResultDBClient) GetTestResult

func (m *MockResultDBClient) GetTestResult(ctx context.Context, in *GetTestResultRequest, opts ...grpc.CallOption) (*TestResult, error)

GetTestResult mocks base method.

func (*MockResultDBClient) ListArtifacts

func (m *MockResultDBClient) ListArtifacts(ctx context.Context, in *ListArtifactsRequest, opts ...grpc.CallOption) (*ListArtifactsResponse, error)

ListArtifacts mocks base method.

func (*MockResultDBClient) ListTestExonerations

func (m *MockResultDBClient) ListTestExonerations(ctx context.Context, in *ListTestExonerationsRequest, opts ...grpc.CallOption) (*ListTestExonerationsResponse, error)

ListTestExonerations mocks base method.

func (*MockResultDBClient) ListTestResults

func (m *MockResultDBClient) ListTestResults(ctx context.Context, in *ListTestResultsRequest, opts ...grpc.CallOption) (*ListTestResultsResponse, error)

ListTestResults mocks base method.

func (*MockResultDBClient) QueryArtifacts

func (m *MockResultDBClient) QueryArtifacts(ctx context.Context, in *QueryArtifactsRequest, opts ...grpc.CallOption) (*QueryArtifactsResponse, error)

QueryArtifacts mocks base method.

func (*MockResultDBClient) QueryTestExonerations

func (m *MockResultDBClient) QueryTestExonerations(ctx context.Context, in *QueryTestExonerationsRequest, opts ...grpc.CallOption) (*QueryTestExonerationsResponse, error)

QueryTestExonerations mocks base method.

func (*MockResultDBClient) QueryTestResultStatistics

func (m *MockResultDBClient) QueryTestResultStatistics(ctx context.Context, in *QueryTestResultStatisticsRequest, opts ...grpc.CallOption) (*QueryTestResultStatisticsResponse, error)

QueryTestResultStatistics mocks base method.

func (*MockResultDBClient) QueryTestResults

func (m *MockResultDBClient) QueryTestResults(ctx context.Context, in *QueryTestResultsRequest, opts ...grpc.CallOption) (*QueryTestResultsResponse, error)

QueryTestResults mocks base method.

type MockResultDBClientMockRecorder

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

MockResultDBClientMockRecorder is the mock recorder for MockResultDBClient.

func (*MockResultDBClientMockRecorder) GetArtifact

func (mr *MockResultDBClientMockRecorder) GetArtifact(ctx, in interface{}, opts ...interface{}) *gomock.Call

GetArtifact indicates an expected call of GetArtifact.

func (*MockResultDBClientMockRecorder) GetInvocation

func (mr *MockResultDBClientMockRecorder) GetInvocation(ctx, in interface{}, opts ...interface{}) *gomock.Call

GetInvocation indicates an expected call of GetInvocation.

func (*MockResultDBClientMockRecorder) GetTestExoneration

func (mr *MockResultDBClientMockRecorder) GetTestExoneration(ctx, in interface{}, opts ...interface{}) *gomock.Call

GetTestExoneration indicates an expected call of GetTestExoneration.

func (*MockResultDBClientMockRecorder) GetTestResult

func (mr *MockResultDBClientMockRecorder) GetTestResult(ctx, in interface{}, opts ...interface{}) *gomock.Call

GetTestResult indicates an expected call of GetTestResult.

func (*MockResultDBClientMockRecorder) ListArtifacts

func (mr *MockResultDBClientMockRecorder) ListArtifacts(ctx, in interface{}, opts ...interface{}) *gomock.Call

ListArtifacts indicates an expected call of ListArtifacts.

func (*MockResultDBClientMockRecorder) ListTestExonerations

func (mr *MockResultDBClientMockRecorder) ListTestExonerations(ctx, in interface{}, opts ...interface{}) *gomock.Call

ListTestExonerations indicates an expected call of ListTestExonerations.

func (*MockResultDBClientMockRecorder) ListTestResults

func (mr *MockResultDBClientMockRecorder) ListTestResults(ctx, in interface{}, opts ...interface{}) *gomock.Call

ListTestResults indicates an expected call of ListTestResults.

func (*MockResultDBClientMockRecorder) QueryArtifacts

func (mr *MockResultDBClientMockRecorder) QueryArtifacts(ctx, in interface{}, opts ...interface{}) *gomock.Call

QueryArtifacts indicates an expected call of QueryArtifacts.

func (*MockResultDBClientMockRecorder) QueryTestExonerations

func (mr *MockResultDBClientMockRecorder) QueryTestExonerations(ctx, in interface{}, opts ...interface{}) *gomock.Call

QueryTestExonerations indicates an expected call of QueryTestExonerations.

func (*MockResultDBClientMockRecorder) QueryTestResultStatistics

func (mr *MockResultDBClientMockRecorder) QueryTestResultStatistics(ctx, in interface{}, opts ...interface{}) *gomock.Call

QueryTestResultStatistics indicates an expected call of QueryTestResultStatistics.

func (*MockResultDBClientMockRecorder) QueryTestResults

func (mr *MockResultDBClientMockRecorder) QueryTestResults(ctx, in interface{}, opts ...interface{}) *gomock.Call

QueryTestResults indicates an expected call of QueryTestResults.

type MockResultDBServer

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

MockResultDBServer is a mock of ResultDBServer interface.

func NewMockResultDBServer

func NewMockResultDBServer(ctrl *gomock.Controller) *MockResultDBServer

NewMockResultDBServer creates a new mock instance.

func (*MockResultDBServer) EXPECT

func (m *MockResultDBServer) EXPECT() *MockResultDBServerMockRecorder

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

func (*MockResultDBServer) GetArtifact

func (m *MockResultDBServer) GetArtifact(arg0 context.Context, arg1 *GetArtifactRequest) (*Artifact, error)

GetArtifact mocks base method.

func (*MockResultDBServer) GetInvocation

func (m *MockResultDBServer) GetInvocation(arg0 context.Context, arg1 *GetInvocationRequest) (*Invocation, error)

GetInvocation mocks base method.

func (*MockResultDBServer) GetTestExoneration

func (m *MockResultDBServer) GetTestExoneration(arg0 context.Context, arg1 *GetTestExonerationRequest) (*TestExoneration, error)

GetTestExoneration mocks base method.

func (*MockResultDBServer) GetTestResult

func (m *MockResultDBServer) GetTestResult(arg0 context.Context, arg1 *GetTestResultRequest) (*TestResult, error)

GetTestResult mocks base method.

func (*MockResultDBServer) ListArtifacts

func (m *MockResultDBServer) ListArtifacts(arg0 context.Context, arg1 *ListArtifactsRequest) (*ListArtifactsResponse, error)

ListArtifacts mocks base method.

func (*MockResultDBServer) ListTestExonerations

func (m *MockResultDBServer) ListTestExonerations(arg0 context.Context, arg1 *ListTestExonerationsRequest) (*ListTestExonerationsResponse, error)

ListTestExonerations mocks base method.

func (*MockResultDBServer) ListTestResults

func (m *MockResultDBServer) ListTestResults(arg0 context.Context, arg1 *ListTestResultsRequest) (*ListTestResultsResponse, error)

ListTestResults mocks base method.

func (*MockResultDBServer) QueryArtifacts

func (m *MockResultDBServer) QueryArtifacts(arg0 context.Context, arg1 *QueryArtifactsRequest) (*QueryArtifactsResponse, error)

QueryArtifacts mocks base method.

func (*MockResultDBServer) QueryTestExonerations

func (m *MockResultDBServer) QueryTestExonerations(arg0 context.Context, arg1 *QueryTestExonerationsRequest) (*QueryTestExonerationsResponse, error)

QueryTestExonerations mocks base method.

func (*MockResultDBServer) QueryTestResultStatistics

func (m *MockResultDBServer) QueryTestResultStatistics(arg0 context.Context, arg1 *QueryTestResultStatisticsRequest) (*QueryTestResultStatisticsResponse, error)

QueryTestResultStatistics mocks base method.

func (*MockResultDBServer) QueryTestResults

func (m *MockResultDBServer) QueryTestResults(arg0 context.Context, arg1 *QueryTestResultsRequest) (*QueryTestResultsResponse, error)

QueryTestResults mocks base method.

type MockResultDBServerMockRecorder

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

MockResultDBServerMockRecorder is the mock recorder for MockResultDBServer.

func (*MockResultDBServerMockRecorder) GetArtifact

func (mr *MockResultDBServerMockRecorder) GetArtifact(arg0, arg1 interface{}) *gomock.Call

GetArtifact indicates an expected call of GetArtifact.

func (*MockResultDBServerMockRecorder) GetInvocation

func (mr *MockResultDBServerMockRecorder) GetInvocation(arg0, arg1 interface{}) *gomock.Call

GetInvocation indicates an expected call of GetInvocation.

func (*MockResultDBServerMockRecorder) GetTestExoneration

func (mr *MockResultDBServerMockRecorder) GetTestExoneration(arg0, arg1 interface{}) *gomock.Call

GetTestExoneration indicates an expected call of GetTestExoneration.

func (*MockResultDBServerMockRecorder) GetTestResult

func (mr *MockResultDBServerMockRecorder) GetTestResult(arg0, arg1 interface{}) *gomock.Call

GetTestResult indicates an expected call of GetTestResult.

func (*MockResultDBServerMockRecorder) ListArtifacts

func (mr *MockResultDBServerMockRecorder) ListArtifacts(arg0, arg1 interface{}) *gomock.Call

ListArtifacts indicates an expected call of ListArtifacts.

func (*MockResultDBServerMockRecorder) ListTestExonerations

func (mr *MockResultDBServerMockRecorder) ListTestExonerations(arg0, arg1 interface{}) *gomock.Call

ListTestExonerations indicates an expected call of ListTestExonerations.

func (*MockResultDBServerMockRecorder) ListTestResults

func (mr *MockResultDBServerMockRecorder) ListTestResults(arg0, arg1 interface{}) *gomock.Call

ListTestResults indicates an expected call of ListTestResults.

func (*MockResultDBServerMockRecorder) QueryArtifacts

func (mr *MockResultDBServerMockRecorder) QueryArtifacts(arg0, arg1 interface{}) *gomock.Call

QueryArtifacts indicates an expected call of QueryArtifacts.

func (*MockResultDBServerMockRecorder) QueryTestExonerations

func (mr *MockResultDBServerMockRecorder) QueryTestExonerations(arg0, arg1 interface{}) *gomock.Call

QueryTestExonerations indicates an expected call of QueryTestExonerations.

func (*MockResultDBServerMockRecorder) QueryTestResultStatistics

func (mr *MockResultDBServerMockRecorder) QueryTestResultStatistics(arg0, arg1 interface{}) *gomock.Call

QueryTestResultStatistics indicates an expected call of QueryTestResultStatistics.

func (*MockResultDBServerMockRecorder) QueryTestResults

func (mr *MockResultDBServerMockRecorder) QueryTestResults(arg0, arg1 interface{}) *gomock.Call

QueryTestResults indicates an expected call of QueryTestResults.

type QueryArtifactsRequest

type QueryArtifactsRequest struct {

	// Retrieve artifacts included in these invocations, directly or indirectly
	// (via Invocation.included_invocations and via contained test results).
	//
	// Specifying multiple invocations is equivalent to querying one invocation
	// that includes these.
	Invocations []string `protobuf:"bytes,1,rep,name=invocations,proto3" json:"invocations,omitempty"`
	// Specifies which edges to follow when retrieving directly/indirectly
	// included artifacts.
	// For example,
	// - to retrieve only invocation-level artifacts, use
	//   {included_invocations: true}.
	// - to retrieve only test-result-level artifacts, use {test_results: true}.
	//
	// By default, follows all edges.
	FollowEdges *QueryArtifactsRequest_EdgeTypeSet `protobuf:"bytes,2,opt,name=follow_edges,json=followEdges,proto3" json:"follow_edges,omitempty"` // defaults to All.
	// If an Artifact belongs to a TestResult, then the test result must satisfy
	// this predicate.
	// Note: this predicate does NOT apply to invocation-level artifacts.
	// To exclude them from the response, use follow_edges.
	TestResultPredicate *TestResultPredicate `protobuf:"bytes,3,opt,name=test_result_predicate,json=testResultPredicate,proto3" json:"test_result_predicate,omitempty"`
	// The version of the state from which the response draws is allowed to be
	// stale up to this duration.
	// For example, with max staleness of 5m, the response might not contain
	// artifacts uploaded 4m ago.
	// Choosing a larger duration may reduce request latency.
	// Must be <=30m.
	MaxStaleness *duration.Duration `protobuf:"bytes,4,opt,name=max_staleness,json=maxStaleness,proto3" json:"max_staleness,omitempty"`
	// The maximum number of artifacts to return.
	//
	// The service may return fewer than this value.
	// If unspecified, at most 100 artifacts will be returned.
	// The maximum value is 1000; values above 1000 will be coerced to 1000.
	PageSize int32 `protobuf:"varint,5,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// A page token, received from a previous `QueryArtifacts` call.
	// Provide this to retrieve the subsequent page.
	//
	// When paginating, all other parameters provided to `QueryArtifacts` MUST
	// match the call that provided the page token.
	PageToken string `protobuf:"bytes,6,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

A request message for QueryArtifacts RPC.

func (*QueryArtifactsRequest) Descriptor

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

Deprecated: Use QueryArtifactsRequest.ProtoReflect.Descriptor instead.

func (*QueryArtifactsRequest) GetFollowEdges

func (x *QueryArtifactsRequest) GetFollowEdges() *QueryArtifactsRequest_EdgeTypeSet

func (*QueryArtifactsRequest) GetInvocations

func (x *QueryArtifactsRequest) GetInvocations() []string

func (*QueryArtifactsRequest) GetMaxStaleness

func (x *QueryArtifactsRequest) GetMaxStaleness() *duration.Duration

func (*QueryArtifactsRequest) GetPageSize

func (x *QueryArtifactsRequest) GetPageSize() int32

func (*QueryArtifactsRequest) GetPageToken

func (x *QueryArtifactsRequest) GetPageToken() string

func (*QueryArtifactsRequest) GetTestResultPredicate

func (x *QueryArtifactsRequest) GetTestResultPredicate() *TestResultPredicate

func (*QueryArtifactsRequest) ProtoMessage

func (*QueryArtifactsRequest) ProtoMessage()

func (*QueryArtifactsRequest) ProtoReflect

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

func (*QueryArtifactsRequest) Reset

func (x *QueryArtifactsRequest) Reset()

func (*QueryArtifactsRequest) String

func (x *QueryArtifactsRequest) String() string

type QueryArtifactsRequest_EdgeTypeSet

type QueryArtifactsRequest_EdgeTypeSet struct {

	// The edges represented by Invocation.included_invocations field.
	IncludedInvocations bool `protobuf:"varint,1,opt,name=included_invocations,json=includedInvocations,proto3" json:"included_invocations,omitempty"`
	// The parent-child relationship between Invocation and TestResult.
	TestResults bool `protobuf:"varint,2,opt,name=test_results,json=testResults,proto3" json:"test_results,omitempty"`
	// contains filtered or unexported fields
}

A set of Invocation's outgoing edge types.

func (*QueryArtifactsRequest_EdgeTypeSet) Descriptor

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

Deprecated: Use QueryArtifactsRequest_EdgeTypeSet.ProtoReflect.Descriptor instead.

func (*QueryArtifactsRequest_EdgeTypeSet) GetIncludedInvocations

func (x *QueryArtifactsRequest_EdgeTypeSet) GetIncludedInvocations() bool

func (*QueryArtifactsRequest_EdgeTypeSet) GetTestResults

func (x *QueryArtifactsRequest_EdgeTypeSet) GetTestResults() bool

func (*QueryArtifactsRequest_EdgeTypeSet) ProtoMessage

func (*QueryArtifactsRequest_EdgeTypeSet) ProtoMessage()

func (*QueryArtifactsRequest_EdgeTypeSet) ProtoReflect

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

func (*QueryArtifactsRequest_EdgeTypeSet) Reset

func (x *QueryArtifactsRequest_EdgeTypeSet) Reset()

func (*QueryArtifactsRequest_EdgeTypeSet) String

func (x *QueryArtifactsRequest_EdgeTypeSet) String() string

type QueryArtifactsResponse

type QueryArtifactsResponse struct {

	// Matched artifacts.
	// First invocation-level artifacts, then test-result-level artifacts
	// ordered by parent invocation ID, test ID and artifact ID.
	Artifacts []*Artifact `protobuf:"bytes,1,rep,name=artifacts,proto3" json:"artifacts,omitempty"`
	// A token, which can be sent as `page_token` to retrieve the next page.
	// If this field is omitted, there were no subsequent pages at the time of
	// request.
	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 QueryArtifacts RPC.

func (*QueryArtifactsResponse) Descriptor

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

Deprecated: Use QueryArtifactsResponse.ProtoReflect.Descriptor instead.

func (*QueryArtifactsResponse) GetArtifacts

func (x *QueryArtifactsResponse) GetArtifacts() []*Artifact

func (*QueryArtifactsResponse) GetNextPageToken

func (x *QueryArtifactsResponse) GetNextPageToken() string

func (*QueryArtifactsResponse) ProtoMessage

func (*QueryArtifactsResponse) ProtoMessage()

func (*QueryArtifactsResponse) ProtoReflect

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

func (*QueryArtifactsResponse) Reset

func (x *QueryArtifactsResponse) Reset()

func (*QueryArtifactsResponse) String

func (x *QueryArtifactsResponse) String() string

type QueryTestExonerationsRequest

type QueryTestExonerationsRequest struct {

	// Retrieve test exonerations included in these invocations, directly or
	// indirectly (via Invocation.included_invocations).
	//
	// Specifying multiple invocations is equivalent to querying one invocation
	// that includes these.
	Invocations []string `protobuf:"bytes,1,rep,name=invocations,proto3" json:"invocations,omitempty"`
	// A test exoneration in the response must satisfy this predicate.
	Predicate *TestExonerationPredicate `protobuf:"bytes,2,opt,name=predicate,proto3" json:"predicate,omitempty"`
	// The version of the state from which the response draws is allowed to be
	// stale up to this duration.
	// For example, with max staleness of 5m, the response might not contain
	// results uploaded 4m ago.
	// Choosing a larger duration may reduce request latency.
	// Must be <=30m.
	MaxStaleness *duration.Duration `protobuf:"bytes,3,opt,name=max_staleness,json=maxStaleness,proto3" json:"max_staleness,omitempty"`
	// The maximum number of test exonerations to return.
	//
	// The service may return fewer than this value.
	// If unspecified, at most 100 test exonerations will be returned.
	// The maximum value is 1000; values above 1000 will be coerced to 1000.
	PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// A page token, received from a previous `QueryTestExonerations` call.
	// Provide this to retrieve the subsequent page.
	//
	// When paginating, all other parameters provided to `QueryTestExonerations`
	// MUST match the call that provided the page token.
	PageToken string `protobuf:"bytes,5,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

A request message for QueryTestExonerations RPC.

func (*QueryTestExonerationsRequest) Descriptor

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

Deprecated: Use QueryTestExonerationsRequest.ProtoReflect.Descriptor instead.

func (*QueryTestExonerationsRequest) GetInvocations

func (x *QueryTestExonerationsRequest) GetInvocations() []string

func (*QueryTestExonerationsRequest) GetMaxStaleness

func (x *QueryTestExonerationsRequest) GetMaxStaleness() *duration.Duration

func (*QueryTestExonerationsRequest) GetPageSize

func (x *QueryTestExonerationsRequest) GetPageSize() int32

func (*QueryTestExonerationsRequest) GetPageToken

func (x *QueryTestExonerationsRequest) GetPageToken() string

func (*QueryTestExonerationsRequest) GetPredicate

func (x *QueryTestExonerationsRequest) GetPredicate() *TestExonerationPredicate

func (*QueryTestExonerationsRequest) ProtoMessage

func (*QueryTestExonerationsRequest) ProtoMessage()

func (*QueryTestExonerationsRequest) ProtoReflect

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

func (*QueryTestExonerationsRequest) Reset

func (x *QueryTestExonerationsRequest) Reset()

func (*QueryTestExonerationsRequest) String

func (x *QueryTestExonerationsRequest) String() string

type QueryTestExonerationsResponse

type QueryTestExonerationsResponse struct {

	// The test exonerations matching the predicate.
	// Ordered by parent invocation ID, test ID and exoneration ID.
	TestExonerations []*TestExoneration `protobuf:"bytes,1,rep,name=test_exonerations,json=testExonerations,proto3" json:"test_exonerations,omitempty"`
	// A token, which can be sent as `page_token` to retrieve the next page.
	// If this field is omitted, there were no subsequent pages at the time of
	// request.
	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 QueryTestExonerations RPC.

func (*QueryTestExonerationsResponse) Descriptor

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

Deprecated: Use QueryTestExonerationsResponse.ProtoReflect.Descriptor instead.

func (*QueryTestExonerationsResponse) GetNextPageToken

func (x *QueryTestExonerationsResponse) GetNextPageToken() string

func (*QueryTestExonerationsResponse) GetTestExonerations

func (x *QueryTestExonerationsResponse) GetTestExonerations() []*TestExoneration

func (*QueryTestExonerationsResponse) ProtoMessage

func (*QueryTestExonerationsResponse) ProtoMessage()

func (*QueryTestExonerationsResponse) ProtoReflect

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

func (*QueryTestExonerationsResponse) Reset

func (x *QueryTestExonerationsResponse) Reset()

func (*QueryTestExonerationsResponse) String

func (x *QueryTestExonerationsResponse) String() string

type QueryTestResultStatisticsRequest

type QueryTestResultStatisticsRequest struct {

	// Retrieve statistics of test result belong to these invocations,
	// directly or indirectly (via Invocation.included_invocations).
	//
	// Specifying multiple invocations is equivalent to requesting one invocation
	// that includes these.
	Invocations []string `protobuf:"bytes,1,rep,name=invocations,proto3" json:"invocations,omitempty"`
	// The version of the state from which the response draws is allowed to be
	// stale up to this duration.
	// For example, with max staleness of 5m, the response might not contain
	// results uploaded 4m ago.
	// Choosing a larger duration may reduce request latency.
	// Must be <=30m.
	MaxStaleness *duration.Duration `protobuf:"bytes,2,opt,name=max_staleness,json=maxStaleness,proto3" json:"max_staleness,omitempty"`
	// contains filtered or unexported fields
}

A request message for QueryTestResultStatistics RPC.

func (*QueryTestResultStatisticsRequest) Descriptor

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

Deprecated: Use QueryTestResultStatisticsRequest.ProtoReflect.Descriptor instead.

func (*QueryTestResultStatisticsRequest) GetInvocations

func (x *QueryTestResultStatisticsRequest) GetInvocations() []string

func (*QueryTestResultStatisticsRequest) GetMaxStaleness

func (x *QueryTestResultStatisticsRequest) GetMaxStaleness() *duration.Duration

func (*QueryTestResultStatisticsRequest) ProtoMessage

func (*QueryTestResultStatisticsRequest) ProtoMessage()

func (*QueryTestResultStatisticsRequest) ProtoReflect

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

func (*QueryTestResultStatisticsRequest) Reset

func (x *QueryTestResultStatisticsRequest) Reset()

func (*QueryTestResultStatisticsRequest) String

func (x *QueryTestResultStatisticsRequest) String() string

type QueryTestResultStatisticsResponse

type QueryTestResultStatisticsResponse struct {

	// Total number of test results.
	TotalTestResults int64 `protobuf:"varint,1,opt,name=total_test_results,json=totalTestResults,proto3" json:"total_test_results,omitempty"`
	// contains filtered or unexported fields
}

A response message for QueryTestResultStatistics RPC.

func (*QueryTestResultStatisticsResponse) Descriptor

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

Deprecated: Use QueryTestResultStatisticsResponse.ProtoReflect.Descriptor instead.

func (*QueryTestResultStatisticsResponse) GetTotalTestResults

func (x *QueryTestResultStatisticsResponse) GetTotalTestResults() int64

func (*QueryTestResultStatisticsResponse) ProtoMessage

func (*QueryTestResultStatisticsResponse) ProtoMessage()

func (*QueryTestResultStatisticsResponse) ProtoReflect

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

func (*QueryTestResultStatisticsResponse) Reset

func (x *QueryTestResultStatisticsResponse) Reset()

func (*QueryTestResultStatisticsResponse) String

func (x *QueryTestResultStatisticsResponse) String() string

type QueryTestResultsRequest

type QueryTestResultsRequest struct {

	// Retrieve test results included in these invocations, directly or indirectly
	// (via Invocation.included_invocations).
	//
	// Specifying multiple invocations is equivalent to querying one invocation
	// that includes these.
	Invocations []string `protobuf:"bytes,1,rep,name=invocations,proto3" json:"invocations,omitempty"`
	// A test result in the response must satisfy this predicate.
	Predicate *TestResultPredicate `protobuf:"bytes,2,opt,name=predicate,proto3" json:"predicate,omitempty"`
	// The version of the state from which the response draws is allowed to be
	// stale up to this duration.
	// For example, with max staleness of 5m, the response might not contain
	// results uploaded 4m ago.
	// Choosing a larger duration may reduce request latency.
	// Must be <=30m.
	MaxStaleness *duration.Duration `protobuf:"bytes,3,opt,name=max_staleness,json=maxStaleness,proto3" json:"max_staleness,omitempty"`
	// The maximum number of test results to return.
	//
	// The service may return fewer than this value.
	// If unspecified, at most 100 test results will be returned.
	// The maximum value is 1000; values above 1000 will be coerced to 1000.
	PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// A page token, received from a previous `QueryTestResults` call.
	// Provide this to retrieve the subsequent page.
	//
	// When paginating, all other parameters provided to `QueryTestResults` MUST
	// match the call that provided the page token.
	PageToken string `protobuf:"bytes,5,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// Fields to include in the response.
	// If not set, the default mask is used where summary_html and tags are
	// excluded.
	// Test result names will always be included even if "name" is not a part of
	// the mask.
	ReadMask *field_mask.FieldMask `protobuf:"bytes,6,opt,name=read_mask,json=readMask,proto3" json:"read_mask,omitempty"`
	// contains filtered or unexported fields
}

A request message for QueryTestResults RPC.

func (*QueryTestResultsRequest) Descriptor

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

Deprecated: Use QueryTestResultsRequest.ProtoReflect.Descriptor instead.

func (*QueryTestResultsRequest) GetInvocations

func (x *QueryTestResultsRequest) GetInvocations() []string

func (*QueryTestResultsRequest) GetMaxStaleness

func (x *QueryTestResultsRequest) GetMaxStaleness() *duration.Duration

func (*QueryTestResultsRequest) GetPageSize

func (x *QueryTestResultsRequest) GetPageSize() int32

func (*QueryTestResultsRequest) GetPageToken

func (x *QueryTestResultsRequest) GetPageToken() string

func (*QueryTestResultsRequest) GetPredicate

func (x *QueryTestResultsRequest) GetPredicate() *TestResultPredicate

func (*QueryTestResultsRequest) GetReadMask

func (x *QueryTestResultsRequest) GetReadMask() *field_mask.FieldMask

func (*QueryTestResultsRequest) ProtoMessage

func (*QueryTestResultsRequest) ProtoMessage()

func (*QueryTestResultsRequest) ProtoReflect

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

func (*QueryTestResultsRequest) Reset

func (x *QueryTestResultsRequest) Reset()

func (*QueryTestResultsRequest) String

func (x *QueryTestResultsRequest) String() string

type QueryTestResultsResponse

type QueryTestResultsResponse struct {

	// Matched test results.
	// Ordered by parent invocation ID, test ID and result ID.
	TestResults []*TestResult `protobuf:"bytes,1,rep,name=test_results,json=testResults,proto3" json:"test_results,omitempty"`
	// A token, which can be sent as `page_token` to retrieve the next page.
	// If this field is omitted, there were no subsequent pages at the time of
	// request.
	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 QueryTestResults RPC.

func (*QueryTestResultsResponse) Descriptor

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

Deprecated: Use QueryTestResultsResponse.ProtoReflect.Descriptor instead.

func (*QueryTestResultsResponse) GetNextPageToken

func (x *QueryTestResultsResponse) GetNextPageToken() string

func (*QueryTestResultsResponse) GetTestResults

func (x *QueryTestResultsResponse) GetTestResults() []*TestResult

func (*QueryTestResultsResponse) ProtoMessage

func (*QueryTestResultsResponse) ProtoMessage()

func (*QueryTestResultsResponse) ProtoReflect

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

func (*QueryTestResultsResponse) Reset

func (x *QueryTestResultsResponse) Reset()

func (*QueryTestResultsResponse) String

func (x *QueryTestResultsResponse) String() string

type RecorderClient

type RecorderClient interface {
	// Creates a new invocation.
	// The request specifies the invocation id and its contents.
	//
	// The response header metadata contains "update-token" required for future
	// updates, including finalization.
	//
	// If invocation with the given ID already exists, returns ALREADY_EXISTS
	// error code.
	CreateInvocation(ctx context.Context, in *CreateInvocationRequest, opts ...grpc.CallOption) (*Invocation, error)
	// Creates multiple invocations in a single rpc.
	//
	// The response header metadata contains a multi-valued "update-token"
	// required for future updates, including finalization. The tokens will be
	// given in the same order as BatchCreateInvocationRequest.requests.
	BatchCreateInvocations(ctx context.Context, in *BatchCreateInvocationsRequest, opts ...grpc.CallOption) (*BatchCreateInvocationsResponse, error)
	// Updates an existing non-finalized invocation.
	UpdateInvocation(ctx context.Context, in *UpdateInvocationRequest, opts ...grpc.CallOption) (*Invocation, error)
	// Transitions the given invocation to the state FINALIZED.
	FinalizeInvocation(ctx context.Context, in *FinalizeInvocationRequest, opts ...grpc.CallOption) (*Invocation, error)
	// Updates inclusions for a non-finalized invocation.
	UpdateIncludedInvocations(ctx context.Context, in *UpdateIncludedInvocationsRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	// Appends a test result to a non-finalized invocation.
	CreateTestResult(ctx context.Context, in *CreateTestResultRequest, opts ...grpc.CallOption) (*TestResult, error)
	// Atomically appends a batch of test results to a non-finalized invocation.
	BatchCreateTestResults(ctx context.Context, in *BatchCreateTestResultsRequest, opts ...grpc.CallOption) (*BatchCreateTestResultsResponse, error)
	// Appends a test exoneration to a non-finalized invocation.
	CreateTestExoneration(ctx context.Context, in *CreateTestExonerationRequest, opts ...grpc.CallOption) (*TestExoneration, error)
	// Atomically appends a batch of test exonerations to a non-finalized
	// invocation.
	BatchCreateTestExonerations(ctx context.Context, in *BatchCreateTestExonerationsRequest, opts ...grpc.CallOption) (*BatchCreateTestExonerationsResponse, error)
}

RecorderClient is the client API for Recorder service.

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

func NewRecorderPRPCClient

func NewRecorderPRPCClient(client *prpc.Client) RecorderClient

type RecorderServer

type RecorderServer interface {
	// Creates a new invocation.
	// The request specifies the invocation id and its contents.
	//
	// The response header metadata contains "update-token" required for future
	// updates, including finalization.
	//
	// If invocation with the given ID already exists, returns ALREADY_EXISTS
	// error code.
	CreateInvocation(context.Context, *CreateInvocationRequest) (*Invocation, error)
	// Creates multiple invocations in a single rpc.
	//
	// The response header metadata contains a multi-valued "update-token"
	// required for future updates, including finalization. The tokens will be
	// given in the same order as BatchCreateInvocationRequest.requests.
	BatchCreateInvocations(context.Context, *BatchCreateInvocationsRequest) (*BatchCreateInvocationsResponse, error)
	// Updates an existing non-finalized invocation.
	UpdateInvocation(context.Context, *UpdateInvocationRequest) (*Invocation, error)
	// Transitions the given invocation to the state FINALIZED.
	FinalizeInvocation(context.Context, *FinalizeInvocationRequest) (*Invocation, error)
	// Updates inclusions for a non-finalized invocation.
	UpdateIncludedInvocations(context.Context, *UpdateIncludedInvocationsRequest) (*empty.Empty, error)
	// Appends a test result to a non-finalized invocation.
	CreateTestResult(context.Context, *CreateTestResultRequest) (*TestResult, error)
	// Atomically appends a batch of test results to a non-finalized invocation.
	BatchCreateTestResults(context.Context, *BatchCreateTestResultsRequest) (*BatchCreateTestResultsResponse, error)
	// Appends a test exoneration to a non-finalized invocation.
	CreateTestExoneration(context.Context, *CreateTestExonerationRequest) (*TestExoneration, error)
	// Atomically appends a batch of test exonerations to a non-finalized
	// invocation.
	BatchCreateTestExonerations(context.Context, *BatchCreateTestExonerationsRequest) (*BatchCreateTestExonerationsResponse, error)
}

RecorderServer is the server API for Recorder service.

type ResultDBClient

type ResultDBClient interface {
	// Retrieves an invocation.
	GetInvocation(ctx context.Context, in *GetInvocationRequest, opts ...grpc.CallOption) (*Invocation, error)
	// Retrieves a test result.
	GetTestResult(ctx context.Context, in *GetTestResultRequest, opts ...grpc.CallOption) (*TestResult, error)
	// Retrieves test results for a parent invocation.
	//
	// Note: response does not contain test results of included invocations.
	// Use QueryTestResults instead.
	ListTestResults(ctx context.Context, in *ListTestResultsRequest, opts ...grpc.CallOption) (*ListTestResultsResponse, error)
	// Retrieves a test exoneration.
	GetTestExoneration(ctx context.Context, in *GetTestExonerationRequest, opts ...grpc.CallOption) (*TestExoneration, error)
	// Retrieves test exonerations for a parent invocation.
	//
	// Note: response does not contain test results of included invocations.
	// Use QueryTestExonerations instead.
	ListTestExonerations(ctx context.Context, in *ListTestExonerationsRequest, opts ...grpc.CallOption) (*ListTestExonerationsResponse, error)
	// Retrieves test results from an invocation, recursively.
	// Supports invocation inclusions.
	// Supports advanced filtering.
	QueryTestResults(ctx context.Context, in *QueryTestResultsRequest, opts ...grpc.CallOption) (*QueryTestResultsResponse, error)
	// Retrieves test exonerations from an invocation.
	// Supports invocation inclusions.
	// Supports advanced filtering.
	QueryTestExonerations(ctx context.Context, in *QueryTestExonerationsRequest, opts ...grpc.CallOption) (*QueryTestExonerationsResponse, error)
	// Retrieves the test result statistics of an invocation.
	// Currently supports total number of test results belong to the invocation,
	// directly and indirectly.
	QueryTestResultStatistics(ctx context.Context, in *QueryTestResultStatisticsRequest, opts ...grpc.CallOption) (*QueryTestResultStatisticsResponse, error)
	// Retrieves an artifact.
	GetArtifact(ctx context.Context, in *GetArtifactRequest, opts ...grpc.CallOption) (*Artifact, error)
	// Retrieves artifacts for a parent invocation/testResult.
	//
	// Note: if the parent is an invocation, the response does not contain
	// artifacts of included invocations. Use QueryArtifacts instead.
	ListArtifacts(ctx context.Context, in *ListArtifactsRequest, opts ...grpc.CallOption) (*ListArtifactsResponse, error)
	// Retrieves artifacts from an invocation, recursively.
	// Can retrieve artifacts of test results included in the invocation
	// directly or indirectly.
	// Supports invocation inclusions.
	QueryArtifacts(ctx context.Context, in *QueryArtifactsRequest, opts ...grpc.CallOption) (*QueryArtifactsResponse, error)
}

ResultDBClient is the client API for ResultDB service.

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

func NewResultDBPRPCClient

func NewResultDBPRPCClient(client *prpc.Client) ResultDBClient

type ResultDBServer

type ResultDBServer interface {
	// Retrieves an invocation.
	GetInvocation(context.Context, *GetInvocationRequest) (*Invocation, error)
	// Retrieves a test result.
	GetTestResult(context.Context, *GetTestResultRequest) (*TestResult, error)
	// Retrieves test results for a parent invocation.
	//
	// Note: response does not contain test results of included invocations.
	// Use QueryTestResults instead.
	ListTestResults(context.Context, *ListTestResultsRequest) (*ListTestResultsResponse, error)
	// Retrieves a test exoneration.
	GetTestExoneration(context.Context, *GetTestExonerationRequest) (*TestExoneration, error)
	// Retrieves test exonerations for a parent invocation.
	//
	// Note: response does not contain test results of included invocations.
	// Use QueryTestExonerations instead.
	ListTestExonerations(context.Context, *ListTestExonerationsRequest) (*ListTestExonerationsResponse, error)
	// Retrieves test results from an invocation, recursively.
	// Supports invocation inclusions.
	// Supports advanced filtering.
	QueryTestResults(context.Context, *QueryTestResultsRequest) (*QueryTestResultsResponse, error)
	// Retrieves test exonerations from an invocation.
	// Supports invocation inclusions.
	// Supports advanced filtering.
	QueryTestExonerations(context.Context, *QueryTestExonerationsRequest) (*QueryTestExonerationsResponse, error)
	// Retrieves the test result statistics of an invocation.
	// Currently supports total number of test results belong to the invocation,
	// directly and indirectly.
	QueryTestResultStatistics(context.Context, *QueryTestResultStatisticsRequest) (*QueryTestResultStatisticsResponse, error)
	// Retrieves an artifact.
	GetArtifact(context.Context, *GetArtifactRequest) (*Artifact, error)
	// Retrieves artifacts for a parent invocation/testResult.
	//
	// Note: if the parent is an invocation, the response does not contain
	// artifacts of included invocations. Use QueryArtifacts instead.
	ListArtifacts(context.Context, *ListArtifactsRequest) (*ListArtifactsResponse, error)
	// Retrieves artifacts from an invocation, recursively.
	// Can retrieve artifacts of test results included in the invocation
	// directly or indirectly.
	// Supports invocation inclusions.
	QueryArtifacts(context.Context, *QueryArtifactsRequest) (*QueryArtifactsResponse, error)
}

ResultDBServer is the server API for ResultDB service.

type StringPair

type StringPair struct {

	// Regex: ^[a-z][a-z0-9_]*(/[a-z][a-z0-9_]*)*$
	// Max length: 64.
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// Max length: 256.
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

A string key-value pair. Typically used for tagging, see Invocation.tags

func (*StringPair) Descriptor

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

Deprecated: Use StringPair.ProtoReflect.Descriptor instead.

func (*StringPair) GetKey

func (x *StringPair) GetKey() string

func (*StringPair) GetValue

func (x *StringPair) GetValue() string

func (*StringPair) ProtoMessage

func (*StringPair) ProtoMessage()

func (*StringPair) ProtoReflect

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

func (*StringPair) Reset

func (x *StringPair) Reset()

func (*StringPair) String

func (x *StringPair) String() string

type TestExoneration

type TestExoneration struct {

	// Can be used to refer to this test exoneration, e.g. in
	// ResultDB.GetTestExoneration RPC.
	// Format:
	// invocations/{INVOCATION_ID}/tests/{URL_ESCAPED_TEST_ID}/exonerations/{EXONERATION_ID}.
	// URL_ESCAPED_TEST_ID is test_variant.test_id escaped with
	// https://golang.org/pkg/net/url/#PathEscape See also https://aip.dev/122.
	//
	// Output only.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Test identifier, see TestResult.test_id.
	TestId string `protobuf:"bytes,2,opt,name=test_id,json=testId,proto3" json:"test_id,omitempty"`
	// Description of the variant of the test, see Variant type.
	// Unlike TestResult.extra_variant_pairs, this one must be a full definition
	// of the variant, i.e. it is not combined with Invocation.base_test_variant.
	Variant *Variant `protobuf:"bytes,3,opt,name=variant,proto3" json:"variant,omitempty"`
	// Identifies an exoneration in a given invocation and test id.
	// It is server-generated.
	ExonerationId string `protobuf:"bytes,4,opt,name=exoneration_id,json=exonerationId,proto3" json:"exoneration_id,omitempty"`
	// Reasoning behind the exoneration, in HTML.
	// MUST be sanitized before rendering in the browser.
	ExplanationHtml string `protobuf:"bytes,5,opt,name=explanation_html,json=explanationHtml,proto3" json:"explanation_html,omitempty"`
	// Hash of the variant.
	// hex(sha256(sorted(''.join('%s:%s\n' for k, v in variant.items())))).
	VariantHash string `protobuf:"bytes,6,opt,name=variant_hash,json=variantHash,proto3" json:"variant_hash,omitempty"`
	// contains filtered or unexported fields
}

Indicates the test subject (e.g. a CL) is absolved from blame for an unexpected result of a test variant. For example, the test variant fails both with and without CL, so it is not CL's fault.

func (*TestExoneration) Descriptor

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

Deprecated: Use TestExoneration.ProtoReflect.Descriptor instead.

func (*TestExoneration) GetExonerationId

func (x *TestExoneration) GetExonerationId() string

func (*TestExoneration) GetExplanationHtml

func (x *TestExoneration) GetExplanationHtml() string

func (*TestExoneration) GetName

func (x *TestExoneration) GetName() string

func (*TestExoneration) GetTestId

func (x *TestExoneration) GetTestId() string

func (*TestExoneration) GetVariant

func (x *TestExoneration) GetVariant() *Variant

func (*TestExoneration) GetVariantHash

func (x *TestExoneration) GetVariantHash() string

func (*TestExoneration) ProtoMessage

func (*TestExoneration) ProtoMessage()

func (*TestExoneration) ProtoReflect

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

func (*TestExoneration) Reset

func (x *TestExoneration) Reset()

func (*TestExoneration) String

func (x *TestExoneration) String() string

type TestExonerationPredicate

type TestExonerationPredicate struct {

	// A test exoneration must have a test id matching this regular expression
	// entirely, i.e. the expression is implicitly wrapped with ^ and $.
	TestIdRegexp string `protobuf:"bytes,1,opt,name=test_id_regexp,json=testIdRegexp,proto3" json:"test_id_regexp,omitempty"`
	// A test exoneration must have a variant satisfying this predicate.
	Variant *VariantPredicate `protobuf:"bytes,2,opt,name=variant,proto3" json:"variant,omitempty"`
	// contains filtered or unexported fields
}

Represents a function TestExoneration -> bool. Empty message matches all test exonerations.

func (*TestExonerationPredicate) Descriptor

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

Deprecated: Use TestExonerationPredicate.ProtoReflect.Descriptor instead.

func (*TestExonerationPredicate) GetTestIdRegexp

func (x *TestExonerationPredicate) GetTestIdRegexp() string

func (*TestExonerationPredicate) GetVariant

func (x *TestExonerationPredicate) GetVariant() *VariantPredicate

func (*TestExonerationPredicate) ProtoMessage

func (*TestExonerationPredicate) ProtoMessage()

func (*TestExonerationPredicate) ProtoReflect

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

func (*TestExonerationPredicate) Reset

func (x *TestExonerationPredicate) Reset()

func (*TestExonerationPredicate) String

func (x *TestExonerationPredicate) String() string

type TestLocation

type TestLocation struct {

	// Name of the file where the test is defined.
	// For files in a repository, must start with "//"
	// Example: "//components/payments/core/payment_request_data_util_unittest.cc"
	// Max length: 512.
	// SHOULD not use backslashes.
	FileName string `protobuf:"bytes,2,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"`
	// One-based line number where the test is defined.
	Line int32 `protobuf:"varint,3,opt,name=line,proto3" json:"line,omitempty"`
	// contains filtered or unexported fields
}

Location of the test definition.

func (*TestLocation) Descriptor

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

Deprecated: Use TestLocation.ProtoReflect.Descriptor instead.

func (*TestLocation) GetFileName

func (x *TestLocation) GetFileName() string

func (*TestLocation) GetLine

func (x *TestLocation) GetLine() int32

func (*TestLocation) ProtoMessage

func (*TestLocation) ProtoMessage()

func (*TestLocation) ProtoReflect

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

func (*TestLocation) Reset

func (x *TestLocation) Reset()

func (*TestLocation) String

func (x *TestLocation) String() string

type TestResult

type TestResult struct {

	// Can be used to refer to this test result, e.g. in ResultDB.GetTestResult
	// RPC.
	// Format:
	// "invocations/{INVOCATION_ID}/tests/{URL_ESCAPED_TEST_ID}/results/{RESULT_ID}".
	// where URL_ESCAPED_TEST_ID is test_id escaped with
	// https://golang.org/pkg/net/url/#PathEscape See also https://aip.dev/122.
	//
	// Output only.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Test id, a unique identifier of the test in a LUCI project.
	// Regex: ^[[::print::]]{1,256}$
	//
	// If two tests have a common test id prefix that ends with a
	// non-alphanumeric character, they considered a part of a group. Examples:
	// - "a/b/c"
	// - "a/b/d"
	// - "a/b/e:x"
	// - "a/b/e:y"
	// - "a/f"
	// This defines the following groups:
	// - All items belong to one group because of the common prefix "a/"
	// - Within that group, the first 4 form a sub-group because of the common
	//   prefix "a/b/"
	// - Within that group, "a/b/e:x" and "a/b/e:y" form a sub-group because of
	//   the common prefix "a/b/e:".
	// This can be used in UI.
	// LUCI does not interpret test ids in any other way.
	TestId string `protobuf:"bytes,2,opt,name=test_id,json=testId,proto3" json:"test_id,omitempty"`
	// Identifies a test result in a given invocation and test id.
	// Regex: ^[a-z0-9\-_.]{1,32}$
	ResultId string `protobuf:"bytes,3,opt,name=result_id,json=resultId,proto3" json:"result_id,omitempty"`
	// Description of one specific way of running the test,
	// e.g. a specific bucket, builder and a test suite.
	Variant *Variant `protobuf:"bytes,4,opt,name=variant,proto3" json:"variant,omitempty"`
	// Whether the result of test case execution is expected.
	// In a typical Chromium CL, 99%+ of test results are expected.
	// Users are typically interested only in the unexpected results.
	//
	// An unexpected result != test case failure. There are test cases that are
	// expected to fail/skip/crash. The test harness compares the actual status
	// with the expected one(s) and this field is the result of the comparison.
	Expected bool `protobuf:"varint,5,opt,name=expected,proto3" json:"expected,omitempty"`
	// Machine-readable status of the test case.
	// MUST NOT be STATUS_UNSPECIFIED.
	Status TestStatus `protobuf:"varint,6,opt,name=status,proto3,enum=luci.resultdb.v1.TestStatus" json:"status,omitempty"`
	// Human-readable explanation of the result, in HTML.
	// MUST be sanitized before rendering in the browser.
	//
	// The size of the summary must be equal to or smaller than 4096 bytes in
	// UTF-8.
	SummaryHtml string `protobuf:"bytes,7,opt,name=summary_html,json=summaryHtml,proto3" json:"summary_html,omitempty"`
	// The point in time when the test case started to execute.
	StartTime *timestamp.Timestamp `protobuf:"bytes,8,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	// Duration of the test case execution.
	// MUST be equal to or greater than 0.
	Duration *duration.Duration `protobuf:"bytes,9,opt,name=duration,proto3" json:"duration,omitempty"`
	// Metadata for this test result.
	// It might describe this particular execution or the test case.
	Tags []*StringPair `protobuf:"bytes,10,rep,name=tags,proto3" json:"tags,omitempty"`
	// Where the test is defined, e.g. the file name.
	TestLocation *TestLocation `protobuf:"bytes,11,opt,name=test_location,json=testLocation,proto3" json:"test_location,omitempty"`
	// Hash of the variant.
	// hex(sha256(sorted(''.join('%s:%s\n' for k, v in variant.items())))).
	VariantHash string `protobuf:"bytes,12,opt,name=variant_hash,json=variantHash,proto3" json:"variant_hash,omitempty"`
	// contains filtered or unexported fields
}

A result of a functional test case. Often a single test case is executed multiple times and has multiple results, a single test suite has multiple test cases, and the same test suite can be executed in different variants (OS, GPU, compile flags, etc).

This message does not specify the test id. It should be available in the message that embeds this message.

func (*TestResult) Descriptor

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

Deprecated: Use TestResult.ProtoReflect.Descriptor instead.

func (*TestResult) GetDuration

func (x *TestResult) GetDuration() *duration.Duration

func (*TestResult) GetExpected

func (x *TestResult) GetExpected() bool

func (*TestResult) GetName

func (x *TestResult) GetName() string

func (*TestResult) GetResultId

func (x *TestResult) GetResultId() string

func (*TestResult) GetStartTime

func (x *TestResult) GetStartTime() *timestamp.Timestamp

func (*TestResult) GetStatus

func (x *TestResult) GetStatus() TestStatus

func (*TestResult) GetSummaryHtml

func (x *TestResult) GetSummaryHtml() string

func (*TestResult) GetTags

func (x *TestResult) GetTags() []*StringPair

func (*TestResult) GetTestId

func (x *TestResult) GetTestId() string

func (*TestResult) GetTestLocation

func (x *TestResult) GetTestLocation() *TestLocation

func (*TestResult) GetVariant

func (x *TestResult) GetVariant() *Variant

func (*TestResult) GetVariantHash

func (x *TestResult) GetVariantHash() string

func (*TestResult) ProtoMessage

func (*TestResult) ProtoMessage()

func (*TestResult) ProtoReflect

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

func (*TestResult) Reset

func (x *TestResult) Reset()

func (*TestResult) String

func (x *TestResult) String() string

type TestResultPredicate

type TestResultPredicate struct {
	TestIdRegexp string `protobuf:"bytes,1,opt,name=test_id_regexp,json=testIdRegexp,proto3" json:"test_id_regexp,omitempty"`

	Variant *VariantPredicate `protobuf:"bytes,2,opt,name=variant,proto3" json:"variant,omitempty"`

	Expectancy TestResultPredicate_Expectancy "" /* 127 byte string literal not displayed */

	ExcludeExonerated bool `protobuf:"varint,4,opt,name=exclude_exonerated,json=excludeExonerated,proto3" json:"exclude_exonerated,omitempty"`

}

Represents a function TestResult -> bool. Empty message matches all test results.

Most clients would want to set expected_results to VARIANTS_WITH_UNEXPECTED_RESULTS.

func (*TestResultPredicate) Descriptor

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

Deprecated: Use TestResultPredicate.ProtoReflect.Descriptor instead.

func (*TestResultPredicate) GetExcludeExonerated

func (x *TestResultPredicate) GetExcludeExonerated() bool

func (*TestResultPredicate) GetExpectancy

func (x *TestResultPredicate) GetExpectancy() TestResultPredicate_Expectancy

func (*TestResultPredicate) GetTestIdRegexp

func (x *TestResultPredicate) GetTestIdRegexp() string

func (*TestResultPredicate) GetVariant

func (x *TestResultPredicate) GetVariant() *VariantPredicate

func (*TestResultPredicate) ProtoMessage

func (*TestResultPredicate) ProtoMessage()

func (*TestResultPredicate) ProtoReflect

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

func (*TestResultPredicate) Reset

func (x *TestResultPredicate) Reset()

func (*TestResultPredicate) String

func (x *TestResultPredicate) String() string

type TestResultPredicate_Expectancy

type TestResultPredicate_Expectancy int32

Filters test results based on TestResult.expected field.

const (
	// All test results satisfiy this.
	// WARNING: using this significantly increases response size and latency.
	TestResultPredicate_ALL TestResultPredicate_Expectancy = 0
	// A test result must belong to a test variant that has one or more
	// unexpected results. It can be used to fetch both unexpected and flakily
	// expected results.
	//
	// Note that the predicate is defined at the test variant level.
	// For example, if a test variant expects a PASS and has results
	// [FAIL, FAIL, PASS], then all results satisfy the predicate because
	// the variant satisfies the predicate.
	TestResultPredicate_VARIANTS_WITH_UNEXPECTED_RESULTS TestResultPredicate_Expectancy = 1
	// Similar to VARIANTS_WITH_UNEXPECTED_RESULTS, but the test variant
	// must not have any expected results.
	TestResultPredicate_VARIANTS_WITH_ONLY_UNEXPECTED_RESULTS TestResultPredicate_Expectancy = 2
)

func (TestResultPredicate_Expectancy) Descriptor

func (TestResultPredicate_Expectancy) Descriptor() protoreflect.EnumDescriptor

func (TestResultPredicate_Expectancy) Enum

func (x TestResultPredicate_Expectancy) Enum() *TestResultPredicate_Expectancy

func (TestResultPredicate_Expectancy) EnumDescriptor

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

Deprecated: Use TestResultPredicate_Expectancy.Descriptor instead.

func (TestResultPredicate_Expectancy) Number

func (x TestResultPredicate_Expectancy) Number() protoreflect.EnumNumber

func (TestResultPredicate_Expectancy) String

func (x TestResultPredicate_Expectancy) String() string

func (TestResultPredicate_Expectancy) Type

func (TestResultPredicate_Expectancy) Type() protoreflect.EnumType

type TestStatus

type TestStatus int32

Machine-readable status of a test result.

const (
	// Status was not specified.
	// Not to be used in actual test results; serves as a default value for an
	// unset field.
	TestStatus_STATUS_UNSPECIFIED TestStatus = 0
	// The test case has passed.
	TestStatus_PASS TestStatus = 1
	// The test case has failed.
	// Suggests that the code under test is incorrect, but it is also possible
	// that the test is incorrect or it is a flake.
	TestStatus_FAIL TestStatus = 2
	// The test case has crashed during execution.
	// The outcome is inconclusive: the code under test might or might not be
	// correct, but the test+code is incorrect.
	TestStatus_CRASH TestStatus = 3
	// The test case has started, but was aborted before finishing.
	// A common reason: timeout.
	TestStatus_ABORT TestStatus = 4
	// The test case did not execute.
	// Examples:
	// - The execution of the collection of test cases, such as a test
	//   binary, was aborted prematurely and execution of some test cases was
	//   skipped.
	// - The test harness configuration specified that the test case MUST be
	//   skipped.
	TestStatus_SKIP TestStatus = 5
)

func (TestStatus) Descriptor

func (TestStatus) Descriptor() protoreflect.EnumDescriptor

func (TestStatus) Enum

func (x TestStatus) Enum() *TestStatus

func (TestStatus) EnumDescriptor

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

Deprecated: Use TestStatus.Descriptor instead.

func (TestStatus) Number

func (x TestStatus) Number() protoreflect.EnumNumber

func (TestStatus) String

func (x TestStatus) String() string

func (TestStatus) Type

func (TestStatus) Type() protoreflect.EnumType

type UnimplementedDeriverServer

type UnimplementedDeriverServer struct {
}

UnimplementedDeriverServer can be embedded to have forward compatible implementations.

func (*UnimplementedDeriverServer) DeriveChromiumInvocation

func (*UnimplementedDeriverServer) DeriveChromiumInvocation(context.Context, *DeriveChromiumInvocationRequest) (*Invocation, error)

type UnimplementedRecorderServer

type UnimplementedRecorderServer struct {
}

UnimplementedRecorderServer can be embedded to have forward compatible implementations.

func (*UnimplementedRecorderServer) CreateInvocation

func (*UnimplementedRecorderServer) CreateInvocation(context.Context, *CreateInvocationRequest) (*Invocation, error)

func (*UnimplementedRecorderServer) CreateTestExoneration

func (*UnimplementedRecorderServer) CreateTestExoneration(context.Context, *CreateTestExonerationRequest) (*TestExoneration, error)

func (*UnimplementedRecorderServer) CreateTestResult

func (*UnimplementedRecorderServer) CreateTestResult(context.Context, *CreateTestResultRequest) (*TestResult, error)

func (*UnimplementedRecorderServer) FinalizeInvocation

func (*UnimplementedRecorderServer) FinalizeInvocation(context.Context, *FinalizeInvocationRequest) (*Invocation, error)

func (*UnimplementedRecorderServer) UpdateIncludedInvocations

func (*UnimplementedRecorderServer) UpdateIncludedInvocations(context.Context, *UpdateIncludedInvocationsRequest) (*empty.Empty, error)

func (*UnimplementedRecorderServer) UpdateInvocation

func (*UnimplementedRecorderServer) UpdateInvocation(context.Context, *UpdateInvocationRequest) (*Invocation, error)

type UnimplementedResultDBServer

type UnimplementedResultDBServer struct {
}

UnimplementedResultDBServer can be embedded to have forward compatible implementations.

func (*UnimplementedResultDBServer) GetArtifact

func (*UnimplementedResultDBServer) GetArtifact(context.Context, *GetArtifactRequest) (*Artifact, error)

func (*UnimplementedResultDBServer) GetInvocation

func (*UnimplementedResultDBServer) GetInvocation(context.Context, *GetInvocationRequest) (*Invocation, error)

func (*UnimplementedResultDBServer) GetTestExoneration

func (*UnimplementedResultDBServer) GetTestExoneration(context.Context, *GetTestExonerationRequest) (*TestExoneration, error)

func (*UnimplementedResultDBServer) GetTestResult

func (*UnimplementedResultDBServer) GetTestResult(context.Context, *GetTestResultRequest) (*TestResult, error)

func (*UnimplementedResultDBServer) ListArtifacts

func (*UnimplementedResultDBServer) ListArtifacts(context.Context, *ListArtifactsRequest) (*ListArtifactsResponse, error)

func (*UnimplementedResultDBServer) ListTestResults

func (*UnimplementedResultDBServer) ListTestResults(context.Context, *ListTestResultsRequest) (*ListTestResultsResponse, error)

func (*UnimplementedResultDBServer) QueryArtifacts

func (*UnimplementedResultDBServer) QueryArtifacts(context.Context, *QueryArtifactsRequest) (*QueryArtifactsResponse, error)

func (*UnimplementedResultDBServer) QueryTestResults

func (*UnimplementedResultDBServer) QueryTestResults(context.Context, *QueryTestResultsRequest) (*QueryTestResultsResponse, error)

type UpdateIncludedInvocationsRequest

type UpdateIncludedInvocationsRequest struct {

	// Name of the invocation to add/remove inclusions to/from,
	// see Invocation.name.
	// For example, name of the buildbucket build invocation that should include
	// a swarming task invocation.
	IncludingInvocation string `protobuf:"bytes,1,opt,name=including_invocation,json=includingInvocation,proto3" json:"including_invocation,omitempty"`
	// Names of the invocations to include, see Invocation.name.
	// If any of these invocations are already included, they will be silently
	// ignored for idempotency.
	AddInvocations []string `protobuf:"bytes,2,rep,name=add_invocations,json=addInvocations,proto3" json:"add_invocations,omitempty"`
	// Names of the previously included invocations to remove, see
	// Invocation.name.
	// If any of these invocations are not included already, they will be silently
	// ignored for idempotency.
	RemoveInvocations []string `protobuf:"bytes,3,rep,name=remove_invocations,json=removeInvocations,proto3" json:"remove_invocations,omitempty"`
	// contains filtered or unexported fields
}

A request message for UpdateIncludedInvocations RPC.

func (*UpdateIncludedInvocationsRequest) Descriptor

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

Deprecated: Use UpdateIncludedInvocationsRequest.ProtoReflect.Descriptor instead.

func (*UpdateIncludedInvocationsRequest) GetAddInvocations

func (x *UpdateIncludedInvocationsRequest) GetAddInvocations() []string

func (*UpdateIncludedInvocationsRequest) GetIncludingInvocation

func (x *UpdateIncludedInvocationsRequest) GetIncludingInvocation() string

func (*UpdateIncludedInvocationsRequest) GetRemoveInvocations

func (x *UpdateIncludedInvocationsRequest) GetRemoveInvocations() []string

func (*UpdateIncludedInvocationsRequest) ProtoMessage

func (*UpdateIncludedInvocationsRequest) ProtoMessage()

func (*UpdateIncludedInvocationsRequest) ProtoReflect

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

func (*UpdateIncludedInvocationsRequest) Reset

func (x *UpdateIncludedInvocationsRequest) Reset()

func (*UpdateIncludedInvocationsRequest) String

func (x *UpdateIncludedInvocationsRequest) String() string

type UpdateInvocationRequest

type UpdateInvocationRequest struct {

	// Invocation to update.
	Invocation *Invocation `protobuf:"bytes,1,opt,name=invocation,proto3" json:"invocation,omitempty"`
	// The list of fields to be updated.
	UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// contains filtered or unexported fields
}

A request message for UpdateInvocation RPC.

func (*UpdateInvocationRequest) Descriptor

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

Deprecated: Use UpdateInvocationRequest.ProtoReflect.Descriptor instead.

func (*UpdateInvocationRequest) GetInvocation

func (x *UpdateInvocationRequest) GetInvocation() *Invocation

func (*UpdateInvocationRequest) GetUpdateMask

func (x *UpdateInvocationRequest) GetUpdateMask() *field_mask.FieldMask

func (*UpdateInvocationRequest) ProtoMessage

func (*UpdateInvocationRequest) ProtoMessage()

func (*UpdateInvocationRequest) ProtoReflect

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

func (*UpdateInvocationRequest) Reset

func (x *UpdateInvocationRequest) Reset()

func (*UpdateInvocationRequest) String

func (x *UpdateInvocationRequest) String() string

type Variant

type Variant struct {
	Def map[string]string "" /* 147 byte string literal not displayed */

}

A key-value map describing one variant of a test case.

The same test case can be executed in different ways, for example on different OS, GPUs, with different compile options or runtime flags. A variant definition captures one variant. A test case with a specific variant definition is called test variant.

Guidelines for variant definition design: - This rule guides what keys MUST be present in the definition.

A single expected result of a given test variant is enough to consider it
passing (potentially flakily). If it is important to differentiate across
a certain dimension (e.g. whether web tests are executed with or without
site per process isolation), then there MUST be a key that captures the
dimension (e.g. a name from test_suites.pyl).
Otherwise, a pass in one variant will hide a failure of another one.

- This rule guides what keys MUST NOT be present in the definition.

A change in the key-value set essentially resets the test result history.
For example, if GN args are among variant key-value pairs, then adding a
new GN arg changes the identity of the test variant and resets its history.

In Chromium, variant keys are: - bucket: the LUCI bucket, e.g. "ci" - builder: the LUCI builder, e.g. "linux-rel" - test_suite: a name from

https://cs.chromium.org/chromium/src/testing/buildbot/test_suites.pyl

func (*Variant) Descriptor

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

Deprecated: Use Variant.ProtoReflect.Descriptor instead.

func (*Variant) GetDef

func (x *Variant) GetDef() map[string]string

func (*Variant) ProtoMessage

func (*Variant) ProtoMessage()

func (*Variant) ProtoReflect

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

func (*Variant) Reset

func (x *Variant) Reset()

func (*Variant) String

func (x *Variant) String() string

type VariantPredicate

type VariantPredicate struct {

	// Types that are assignable to Predicate:
	//	*VariantPredicate_Equals
	//	*VariantPredicate_Contains
	Predicate isVariantPredicate_Predicate `protobuf_oneof:"predicate"`
	// contains filtered or unexported fields
}

Represents a function Variant -> bool.

func (*VariantPredicate) Descriptor

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

Deprecated: Use VariantPredicate.ProtoReflect.Descriptor instead.

func (*VariantPredicate) GetContains

func (x *VariantPredicate) GetContains() *Variant

func (*VariantPredicate) GetEquals

func (x *VariantPredicate) GetEquals() *Variant

func (*VariantPredicate) GetPredicate

func (m *VariantPredicate) GetPredicate() isVariantPredicate_Predicate

func (*VariantPredicate) ProtoMessage

func (*VariantPredicate) ProtoMessage()

func (*VariantPredicate) ProtoReflect

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

func (*VariantPredicate) Reset

func (x *VariantPredicate) Reset()

func (*VariantPredicate) String

func (x *VariantPredicate) String() string

type VariantPredicate_Contains

type VariantPredicate_Contains struct {
	// A variant's key-value pairs must contain those in this one.
	Contains *Variant `protobuf:"bytes,2,opt,name=contains,proto3,oneof"`
}

type VariantPredicate_Equals

type VariantPredicate_Equals struct {
	// A variant must be equal this definition exactly.
	Equals *Variant `protobuf:"bytes,1,opt,name=equals,proto3,oneof"`
}

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier