moblab

package
v0.0.0-...-d307bd8 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Build_BuildStatus_name = map[int32]string{
		0: "BUILD_STATUS_UNSPECIFIED",
		1: "PASS",
		2: "FAIL",
		3: "RUNNING",
		4: "ABORTED",
	}
	Build_BuildStatus_value = map[string]int32{
		"BUILD_STATUS_UNSPECIFIED": 0,
		"PASS":                     1,
		"FAIL":                     2,
		"RUNNING":                  3,
		"ABORTED":                  4,
	}
)

Enum value maps for Build_BuildStatus.

View Source
var (
	Build_BuildType_name = map[int32]string{
		0: "BUILD_TYPE_UNSPECIFIED",
		1: "RELEASE",
		2: "FIRMWARE",
	}
	Build_BuildType_value = map[string]int32{
		"BUILD_TYPE_UNSPECIFIED": 0,
		"RELEASE":                1,
		"FIRMWARE":               2,
	}
)

Enum value maps for Build_BuildType.

View Source
var File_google_chromeos_moblab_v1beta1_build_service_proto protoreflect.FileDescriptor
View Source
var File_google_chromeos_moblab_v1beta1_resources_proto protoreflect.FileDescriptor

Functions

func RegisterBuildServiceServer

func RegisterBuildServiceServer(s *grpc.Server, srv BuildServiceServer)

Types

type Build

type Build struct {

	// The resource name of the build.
	// Format: buildTargets/{build_target}/models/{model}/builds/{build}
	// Example: buildTargets/octopus/models/bobba/builds/1234.0.0
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The milestone that owns the build.
	// Format: milestones/{milestone}
	Milestone string `protobuf:"bytes,2,opt,name=milestone,proto3" json:"milestone,omitempty"`
	// The build version of the build, e.g. 1234.0.0.
	BuildVersion string `protobuf:"bytes,3,opt,name=build_version,json=buildVersion,proto3" json:"build_version,omitempty"`
	// The status of the build.
	Status Build_BuildStatus `protobuf:"varint,4,opt,name=status,proto3,enum=google.chromeos.moblab.v1beta1.Build_BuildStatus" json:"status,omitempty"`
	// The type of the build.
	Type Build_BuildType `protobuf:"varint,5,opt,name=type,proto3,enum=google.chromeos.moblab.v1beta1.Build_BuildType" json:"type,omitempty"`
	// The branch of the build.
	Branch string `protobuf:"bytes,6,opt,name=branch,proto3" json:"branch,omitempty"`
	// The firmware version of the software that is flashed to the chip on the
	// Chrome OS device.
	RwFirmwareVersion string `protobuf:"bytes,7,opt,name=rw_firmware_version,json=rwFirmwareVersion,proto3" json:"rw_firmware_version,omitempty"`
	// The labels of the build.
	Labels []string `protobuf:"bytes,8,rep,name=labels,proto3" json:"labels,omitempty"`
	// contains filtered or unexported fields
}

Resource that represents a build for the given build target, model, milestone and build version. -- NEXT_TAG: 9 --

func (*Build) Descriptor deprecated

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

Deprecated: Use Build.ProtoReflect.Descriptor instead.

func (*Build) GetBranch

func (x *Build) GetBranch() string

func (*Build) GetBuildVersion

func (x *Build) GetBuildVersion() string

func (*Build) GetLabels

func (x *Build) GetLabels() []string

func (*Build) GetMilestone

func (x *Build) GetMilestone() string

func (*Build) GetName

func (x *Build) GetName() string

func (*Build) GetRwFirmwareVersion

func (x *Build) GetRwFirmwareVersion() string

func (*Build) GetStatus

func (x *Build) GetStatus() Build_BuildStatus

func (*Build) GetType

func (x *Build) GetType() Build_BuildType

func (*Build) ProtoMessage

func (*Build) ProtoMessage()

func (*Build) ProtoReflect

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

func (*Build) Reset

func (x *Build) Reset()

func (*Build) String

func (x *Build) String() string

type BuildArtifact

type BuildArtifact struct {

	// The resource name of the build artifact.
	// Format:
	// buildTargets/{build_target}/models/{model}/builds/{build}/artifacts/{artifact}
	// Example:
	// buildTargets/octopus/models/bobba/builds/1234.0.0/artifacts/chromeos-moblab-peng-staging
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The build metadata of the build artifact.
	Build string `protobuf:"bytes,2,opt,name=build,proto3" json:"build,omitempty"`
	// The bucket that stores the build artifact.
	Bucket string `protobuf:"bytes,3,opt,name=bucket,proto3" json:"bucket,omitempty"`
	// The path of the build artifact in the bucket.
	Path string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"`
	// The number of objects in the build artifact folder. The object number can
	// be used to calculated the stage progress by comparing the source build
	// artifact with the destination build artifact.
	ObjectCount uint32 `protobuf:"varint,5,opt,name=object_count,json=objectCount,proto3" json:"object_count,omitempty"`
	// contains filtered or unexported fields
}

Resource that represents a build artifact stored in Google Cloud Storage for the given build target, model, build version and bucket. -- NEXT_TAG: 6 --

func (*BuildArtifact) Descriptor deprecated

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

Deprecated: Use BuildArtifact.ProtoReflect.Descriptor instead.

func (*BuildArtifact) GetBucket

func (x *BuildArtifact) GetBucket() string

func (*BuildArtifact) GetBuild

func (x *BuildArtifact) GetBuild() string

func (*BuildArtifact) GetName

func (x *BuildArtifact) GetName() string

func (*BuildArtifact) GetObjectCount

func (x *BuildArtifact) GetObjectCount() uint32

func (*BuildArtifact) GetPath

func (x *BuildArtifact) GetPath() string

func (*BuildArtifact) ProtoMessage

func (*BuildArtifact) ProtoMessage()

func (*BuildArtifact) ProtoReflect

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

func (*BuildArtifact) Reset

func (x *BuildArtifact) Reset()

func (*BuildArtifact) String

func (x *BuildArtifact) String() string

type BuildServiceClient

type BuildServiceClient interface {
	// Lists all build targets that a user has access to.
	ListBuildTargets(ctx context.Context, in *ListBuildTargetsRequest, opts ...grpc.CallOption) (*ListBuildTargetsResponse, error)
	// Lists all models for the given build target.
	ListModels(ctx context.Context, in *ListModelsRequest, opts ...grpc.CallOption) (*ListModelsResponse, error)
	// Lists all builds for the given build target and model in descending order
	// for the milestones and build versions.
	ListBuilds(ctx context.Context, in *ListBuildsRequest, opts ...grpc.CallOption) (*ListBuildsResponse, error)
	// Checks the stage status for a given build artifact in a partner Google
	// Cloud Storage bucket.
	CheckBuildStageStatus(ctx context.Context, in *CheckBuildStageStatusRequest, opts ...grpc.CallOption) (*CheckBuildStageStatusResponse, error)
	// Stages a given build artifact from a internal Google Cloud Storage bucket
	// to a partner Google Cloud Storage bucket. The stage will be skipped if all
	// the objects in the partner bucket are the same as in the internal bucket.
	// Operation
	// <response:[StageBuildResponse][google.chromeos.moblab.v1beta1.StageBuildResponse],
	//
	//	 metadata:
	//	[StageBuildMetadata][google.chromeos.moblab.v1beta1.StageBuildMetadata]>
	StageBuild(ctx context.Context, in *StageBuildRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
	// Finds the most stable build for the given build target. The definition of
	// the most stable build is determined by evaluating the following rule in
	// order until one is true. If none are true, then there is no stable build
	// and it will return an empty response.
	//
	// Evaluation rules:
	//  1. Stable channel build with label “Live”
	//  2. Beta channel build with label “Live”
	//  3. Dev channel build with label “Live”
	//  4. Most recent stable channel build with build status Pass
	//  5. Most recent beta channel build with build status Pass
	//  6. Most recent dev channel build with build status Pass
	FindMostStableBuild(ctx context.Context, in *FindMostStableBuildRequest, opts ...grpc.CallOption) (*FindMostStableBuildResponse, error)
}

BuildServiceClient is the client API for BuildService service.

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

type BuildServiceServer

type BuildServiceServer interface {
	// Lists all build targets that a user has access to.
	ListBuildTargets(context.Context, *ListBuildTargetsRequest) (*ListBuildTargetsResponse, error)
	// Lists all models for the given build target.
	ListModels(context.Context, *ListModelsRequest) (*ListModelsResponse, error)
	// Lists all builds for the given build target and model in descending order
	// for the milestones and build versions.
	ListBuilds(context.Context, *ListBuildsRequest) (*ListBuildsResponse, error)
	// Checks the stage status for a given build artifact in a partner Google
	// Cloud Storage bucket.
	CheckBuildStageStatus(context.Context, *CheckBuildStageStatusRequest) (*CheckBuildStageStatusResponse, error)
	// Stages a given build artifact from a internal Google Cloud Storage bucket
	// to a partner Google Cloud Storage bucket. The stage will be skipped if all
	// the objects in the partner bucket are the same as in the internal bucket.
	// Operation
	// <response:[StageBuildResponse][google.chromeos.moblab.v1beta1.StageBuildResponse],
	//
	//	 metadata:
	//	[StageBuildMetadata][google.chromeos.moblab.v1beta1.StageBuildMetadata]>
	StageBuild(context.Context, *StageBuildRequest) (*longrunningpb.Operation, error)
	// Finds the most stable build for the given build target. The definition of
	// the most stable build is determined by evaluating the following rule in
	// order until one is true. If none are true, then there is no stable build
	// and it will return an empty response.
	//
	// Evaluation rules:
	//  1. Stable channel build with label “Live”
	//  2. Beta channel build with label “Live”
	//  3. Dev channel build with label “Live”
	//  4. Most recent stable channel build with build status Pass
	//  5. Most recent beta channel build with build status Pass
	//  6. Most recent dev channel build with build status Pass
	FindMostStableBuild(context.Context, *FindMostStableBuildRequest) (*FindMostStableBuildResponse, error)
}

BuildServiceServer is the server API for BuildService service.

type BuildTarget

type BuildTarget struct {

	// The resource name of the build target.
	// Format: buildTargets/{build_target}
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

Resource that represents a build target. -- NEXT_TAG: 2 --

func (*BuildTarget) Descriptor deprecated

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

Deprecated: Use BuildTarget.ProtoReflect.Descriptor instead.

func (*BuildTarget) GetName

func (x *BuildTarget) GetName() string

func (*BuildTarget) ProtoMessage

func (*BuildTarget) ProtoMessage()

func (*BuildTarget) ProtoReflect

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

func (*BuildTarget) Reset

func (x *BuildTarget) Reset()

func (*BuildTarget) String

func (x *BuildTarget) String() string

type Build_BuildStatus

type Build_BuildStatus int32

The build status types.

const (
	// No build status is specified.
	Build_BUILD_STATUS_UNSPECIFIED Build_BuildStatus = 0
	// Complete Status: The build passed.
	Build_PASS Build_BuildStatus = 1
	// Complete Status: The build failed.
	Build_FAIL Build_BuildStatus = 2
	// Intermediate Status: The build is still running.
	Build_RUNNING Build_BuildStatus = 3
	// Complete Status: The build was aborted.
	Build_ABORTED Build_BuildStatus = 4
)

func (Build_BuildStatus) Descriptor

func (Build_BuildStatus) Enum

func (Build_BuildStatus) EnumDescriptor deprecated

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

Deprecated: Use Build_BuildStatus.Descriptor instead.

func (Build_BuildStatus) Number

func (Build_BuildStatus) String

func (x Build_BuildStatus) String() string

func (Build_BuildStatus) Type

type Build_BuildType

type Build_BuildType int32

The build types.

const (
	// Invalid build type.
	Build_BUILD_TYPE_UNSPECIFIED Build_BuildType = 0
	// The release build.
	Build_RELEASE Build_BuildType = 1
	// The firmware build.
	Build_FIRMWARE Build_BuildType = 2
)

func (Build_BuildType) Descriptor

func (Build_BuildType) Enum

func (x Build_BuildType) Enum() *Build_BuildType

func (Build_BuildType) EnumDescriptor deprecated

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

Deprecated: Use Build_BuildType.Descriptor instead.

func (Build_BuildType) Number

func (Build_BuildType) String

func (x Build_BuildType) String() string

func (Build_BuildType) Type

type CheckBuildStageStatusRequest

type CheckBuildStageStatusRequest struct {

	// Required. The full resource name of the build artifact.
	// For example,
	// 'buildTargets/octopus/models/bobba/builds/12607.6.0/artifacts/chromeos-moblab-peng-staging'.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Optional. Filter that specifies value constraints of fields. For example,
	// the filter can be set as "filter='type=release'" to only check the release
	// builds.
	Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`
	// contains filtered or unexported fields
}

Request message for checking if the build artifact is staged. -- NEXT_TAG: 3 --

func (*CheckBuildStageStatusRequest) Descriptor deprecated

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

Deprecated: Use CheckBuildStageStatusRequest.ProtoReflect.Descriptor instead.

func (*CheckBuildStageStatusRequest) GetFilter

func (x *CheckBuildStageStatusRequest) GetFilter() string

func (*CheckBuildStageStatusRequest) GetName

func (x *CheckBuildStageStatusRequest) GetName() string

func (*CheckBuildStageStatusRequest) ProtoMessage

func (*CheckBuildStageStatusRequest) ProtoMessage()

func (*CheckBuildStageStatusRequest) ProtoReflect

func (*CheckBuildStageStatusRequest) Reset

func (x *CheckBuildStageStatusRequest) Reset()

func (*CheckBuildStageStatusRequest) String

type CheckBuildStageStatusResponse

type CheckBuildStageStatusResponse struct {

	// The status to represent if the build is staged or not.
	IsBuildStaged bool `protobuf:"varint,1,opt,name=is_build_staged,json=isBuildStaged,proto3" json:"is_build_staged,omitempty"`
	// The staged build artifact in the destination bucket.
	StagedBuildArtifact *BuildArtifact `protobuf:"bytes,2,opt,name=staged_build_artifact,json=stagedBuildArtifact,proto3" json:"staged_build_artifact,omitempty"`
	// The source build artifact in the source bucket.
	SourceBuildArtifact *BuildArtifact `protobuf:"bytes,3,opt,name=source_build_artifact,json=sourceBuildArtifact,proto3" json:"source_build_artifact,omitempty"`
	// contains filtered or unexported fields
}

Response message for checking the stage status of a build artifact. -- NEXT_TAG: 4 --

func (*CheckBuildStageStatusResponse) Descriptor deprecated

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

Deprecated: Use CheckBuildStageStatusResponse.ProtoReflect.Descriptor instead.

func (*CheckBuildStageStatusResponse) GetIsBuildStaged

func (x *CheckBuildStageStatusResponse) GetIsBuildStaged() bool

func (*CheckBuildStageStatusResponse) GetSourceBuildArtifact

func (x *CheckBuildStageStatusResponse) GetSourceBuildArtifact() *BuildArtifact

func (*CheckBuildStageStatusResponse) GetStagedBuildArtifact

func (x *CheckBuildStageStatusResponse) GetStagedBuildArtifact() *BuildArtifact

func (*CheckBuildStageStatusResponse) ProtoMessage

func (*CheckBuildStageStatusResponse) ProtoMessage()

func (*CheckBuildStageStatusResponse) ProtoReflect

func (*CheckBuildStageStatusResponse) Reset

func (x *CheckBuildStageStatusResponse) Reset()

func (*CheckBuildStageStatusResponse) String

type FindMostStableBuildRequest

type FindMostStableBuildRequest struct {

	// Required. The full resource name of the build target.
	// For example,
	// 'buildTargets/octopus'.
	BuildTarget string `protobuf:"bytes,1,opt,name=build_target,json=buildTarget,proto3" json:"build_target,omitempty"`
	// contains filtered or unexported fields
}

Request message for finding the most stable build. -- NEXT_TAG: 2 --

func (*FindMostStableBuildRequest) Descriptor deprecated

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

Deprecated: Use FindMostStableBuildRequest.ProtoReflect.Descriptor instead.

func (*FindMostStableBuildRequest) GetBuildTarget

func (x *FindMostStableBuildRequest) GetBuildTarget() string

func (*FindMostStableBuildRequest) ProtoMessage

func (*FindMostStableBuildRequest) ProtoMessage()

func (*FindMostStableBuildRequest) ProtoReflect

func (*FindMostStableBuildRequest) Reset

func (x *FindMostStableBuildRequest) Reset()

func (*FindMostStableBuildRequest) String

func (x *FindMostStableBuildRequest) String() string

type FindMostStableBuildResponse

type FindMostStableBuildResponse struct {

	// The most stable build.
	Build *Build `protobuf:"bytes,1,opt,name=build,proto3" json:"build,omitempty"`
	// contains filtered or unexported fields
}

Response message for finding the most stable build. -- NEXT_TAG: 2 --

func (*FindMostStableBuildResponse) Descriptor deprecated

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

Deprecated: Use FindMostStableBuildResponse.ProtoReflect.Descriptor instead.

func (*FindMostStableBuildResponse) GetBuild

func (x *FindMostStableBuildResponse) GetBuild() *Build

func (*FindMostStableBuildResponse) ProtoMessage

func (*FindMostStableBuildResponse) ProtoMessage()

func (*FindMostStableBuildResponse) ProtoReflect

func (*FindMostStableBuildResponse) Reset

func (x *FindMostStableBuildResponse) Reset()

func (*FindMostStableBuildResponse) String

func (x *FindMostStableBuildResponse) String() string

type ListBuildTargetsRequest

type ListBuildTargetsRequest struct {

	// Optional. The number of build targets to return in a page.
	PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Optional. A page token, received from a previous `ListBuildTargets` call.
	// Provide this to retrieve the subsequent page.
	PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

Request message for listing build targets. -- NEXT_TAG: 3 --

func (*ListBuildTargetsRequest) Descriptor deprecated

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

Deprecated: Use ListBuildTargetsRequest.ProtoReflect.Descriptor instead.

func (*ListBuildTargetsRequest) GetPageSize

func (x *ListBuildTargetsRequest) GetPageSize() int32

func (*ListBuildTargetsRequest) GetPageToken

func (x *ListBuildTargetsRequest) GetPageToken() string

func (*ListBuildTargetsRequest) ProtoMessage

func (*ListBuildTargetsRequest) ProtoMessage()

func (*ListBuildTargetsRequest) ProtoReflect

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

func (*ListBuildTargetsRequest) Reset

func (x *ListBuildTargetsRequest) Reset()

func (*ListBuildTargetsRequest) String

func (x *ListBuildTargetsRequest) String() string

type ListBuildTargetsResponse

type ListBuildTargetsResponse struct {

	// The list of build targets.
	BuildTargets []*BuildTarget `protobuf:"bytes,1,rep,name=build_targets,json=buildTargets,proto3" json:"build_targets,omitempty"`
	// Token to retrieve the next page of build targets. If this field is omitted,
	// there are no subsequent pages.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// Total number of build targets.
	TotalSize int32 `protobuf:"varint,3,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
	// contains filtered or unexported fields
}

Response message for listing build targets. -- NEXT_TAG: 4 --

func (*ListBuildTargetsResponse) Descriptor deprecated

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

Deprecated: Use ListBuildTargetsResponse.ProtoReflect.Descriptor instead.

func (*ListBuildTargetsResponse) GetBuildTargets

func (x *ListBuildTargetsResponse) GetBuildTargets() []*BuildTarget

func (*ListBuildTargetsResponse) GetNextPageToken

func (x *ListBuildTargetsResponse) GetNextPageToken() string

func (*ListBuildTargetsResponse) GetTotalSize

func (x *ListBuildTargetsResponse) GetTotalSize() int32

func (*ListBuildTargetsResponse) ProtoMessage

func (*ListBuildTargetsResponse) ProtoMessage()

func (*ListBuildTargetsResponse) ProtoReflect

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

func (*ListBuildTargetsResponse) Reset

func (x *ListBuildTargetsResponse) Reset()

func (*ListBuildTargetsResponse) String

func (x *ListBuildTargetsResponse) String() string

type ListBuildsRequest

type ListBuildsRequest struct {

	// Required. The full resource name of the model. The model id is the same as
	// the build target id for non-unified builds.
	// For example,
	// 'buildTargets/octopus/models/bobba'.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Optional. The number of builds to return in a page.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Optional. A page token, received from a previous `ListBuilds` call. Provide
	// this to retrieve the subsequent page.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// Optional. Filter that specifies value constraints of fields. For example,
	// the filter can be set as "filter='milestone=milestones/80'" to only select
	// builds in milestone 80.
	Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
	// Optional. Read mask that specifies which Build fields to return. If empty,
	// all Build fields will be returned. Valid fields: name, milestone,
	// build_version. For example, if the read_mask is set as
	// "read_mask='milestone'", the ListBuilds will return a list of Builds object
	// with only the milestone field.
	ReadMask *fieldmaskpb.FieldMask `protobuf:"bytes,5,opt,name=read_mask,json=readMask,proto3" json:"read_mask,omitempty"`
	// Optional. The operation that groups by all the Build fields specified in
	// the read mask. The group_by field should be the same as the read_mask field
	// in convention of SQL.
	GroupBy *fieldmaskpb.FieldMask `protobuf:"bytes,6,opt,name=group_by,json=groupBy,proto3" json:"group_by,omitempty"`
	// contains filtered or unexported fields
}

Request message for listing builds. -- NEXT_TAG: 7 --

func (*ListBuildsRequest) Descriptor deprecated

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

Deprecated: Use ListBuildsRequest.ProtoReflect.Descriptor instead.

func (*ListBuildsRequest) GetFilter

func (x *ListBuildsRequest) GetFilter() string

func (*ListBuildsRequest) GetGroupBy

func (x *ListBuildsRequest) GetGroupBy() *fieldmaskpb.FieldMask

func (*ListBuildsRequest) GetPageSize

func (x *ListBuildsRequest) GetPageSize() int32

func (*ListBuildsRequest) GetPageToken

func (x *ListBuildsRequest) GetPageToken() string

func (*ListBuildsRequest) GetParent

func (x *ListBuildsRequest) GetParent() string

func (*ListBuildsRequest) GetReadMask

func (x *ListBuildsRequest) GetReadMask() *fieldmaskpb.FieldMask

func (*ListBuildsRequest) ProtoMessage

func (*ListBuildsRequest) ProtoMessage()

func (*ListBuildsRequest) ProtoReflect

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

func (*ListBuildsRequest) Reset

func (x *ListBuildsRequest) Reset()

func (*ListBuildsRequest) String

func (x *ListBuildsRequest) String() string

type ListBuildsResponse

type ListBuildsResponse struct {

	// The list of builds.
	Builds []*Build `protobuf:"bytes,1,rep,name=builds,proto3" json:"builds,omitempty"`
	// Token to retrieve the next page of builds. If this field is omitted, there
	// are no subsequent pages.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// Total number of builds.
	TotalSize int32 `protobuf:"varint,3,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
	// contains filtered or unexported fields
}

Response message for listing builds. -- NEXT_TAG: 4 --

func (*ListBuildsResponse) Descriptor deprecated

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

Deprecated: Use ListBuildsResponse.ProtoReflect.Descriptor instead.

func (*ListBuildsResponse) GetBuilds

func (x *ListBuildsResponse) GetBuilds() []*Build

func (*ListBuildsResponse) GetNextPageToken

func (x *ListBuildsResponse) GetNextPageToken() string

func (*ListBuildsResponse) GetTotalSize

func (x *ListBuildsResponse) GetTotalSize() int32

func (*ListBuildsResponse) ProtoMessage

func (*ListBuildsResponse) ProtoMessage()

func (*ListBuildsResponse) ProtoReflect

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

func (*ListBuildsResponse) Reset

func (x *ListBuildsResponse) Reset()

func (*ListBuildsResponse) String

func (x *ListBuildsResponse) String() string

type ListModelsRequest

type ListModelsRequest struct {

	// Required. The full resource name of build target.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Optional. The number of models to return in a page.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Optional. A page token, received from a previous `ListModels` call. Provide
	// this to retrieve the subsequent page.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

Request message for listing models. -- NEXT_TAG: 4 --

func (*ListModelsRequest) Descriptor deprecated

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

Deprecated: Use ListModelsRequest.ProtoReflect.Descriptor instead.

func (*ListModelsRequest) GetPageSize

func (x *ListModelsRequest) GetPageSize() int32

func (*ListModelsRequest) GetPageToken

func (x *ListModelsRequest) GetPageToken() string

func (*ListModelsRequest) GetParent

func (x *ListModelsRequest) GetParent() string

func (*ListModelsRequest) ProtoMessage

func (*ListModelsRequest) ProtoMessage()

func (*ListModelsRequest) ProtoReflect

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

func (*ListModelsRequest) Reset

func (x *ListModelsRequest) Reset()

func (*ListModelsRequest) String

func (x *ListModelsRequest) String() string

type ListModelsResponse

type ListModelsResponse struct {

	// The list of models.
	Models []*Model `protobuf:"bytes,1,rep,name=models,proto3" json:"models,omitempty"`
	// Token to retrieve the next page of models. If this field is omitted, there
	// are no subsequent pages.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// Total number of models.
	TotalSize int32 `protobuf:"varint,3,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
	// contains filtered or unexported fields
}

Response message for listing models. -- NEXT_TAG: 4 --

func (*ListModelsResponse) Descriptor deprecated

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

Deprecated: Use ListModelsResponse.ProtoReflect.Descriptor instead.

func (*ListModelsResponse) GetModels

func (x *ListModelsResponse) GetModels() []*Model

func (*ListModelsResponse) GetNextPageToken

func (x *ListModelsResponse) GetNextPageToken() string

func (*ListModelsResponse) GetTotalSize

func (x *ListModelsResponse) GetTotalSize() int32

func (*ListModelsResponse) ProtoMessage

func (*ListModelsResponse) ProtoMessage()

func (*ListModelsResponse) ProtoReflect

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

func (*ListModelsResponse) Reset

func (x *ListModelsResponse) Reset()

func (*ListModelsResponse) String

func (x *ListModelsResponse) String() string

type Milestone

type Milestone struct {

	// The resource name of the milestone.
	// Format: milestones/{milestone}
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

Resource that represents a chrome OS milestone. -- NEXT_TAG: 2 --

func (*Milestone) Descriptor deprecated

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

Deprecated: Use Milestone.ProtoReflect.Descriptor instead.

func (*Milestone) GetName

func (x *Milestone) GetName() string

func (*Milestone) ProtoMessage

func (*Milestone) ProtoMessage()

func (*Milestone) ProtoReflect

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

func (*Milestone) Reset

func (x *Milestone) Reset()

func (*Milestone) String

func (x *Milestone) String() string

type Model

type Model struct {

	// The resource name of the model.
	// Format: buildTargets/{build_target}/models/{model}
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

Resource that represents a model. Each model belongs to a build target. For non-unified build, the model name is the same as its build target name. -- NEXT_TAG: 2 --

func (*Model) Descriptor deprecated

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

Deprecated: Use Model.ProtoReflect.Descriptor instead.

func (*Model) GetName

func (x *Model) GetName() string

func (*Model) ProtoMessage

func (*Model) ProtoMessage()

func (*Model) ProtoReflect

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

func (*Model) Reset

func (x *Model) Reset()

func (*Model) String

func (x *Model) String() string

type StageBuildMetadata

type StageBuildMetadata struct {

	// Approximate percentage of progress, e.g. "50" means 50%.
	ProgressPercent float32 `protobuf:"fixed32,1,opt,name=progress_percent,json=progressPercent,proto3" json:"progress_percent,omitempty"`
	// Build stage start time.
	StartTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	// Build stage end time.
	EndTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	// contains filtered or unexported fields
}

Metadata message for staging a build artifact. -- NEXT_TAG: 4 --

func (*StageBuildMetadata) Descriptor deprecated

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

Deprecated: Use StageBuildMetadata.ProtoReflect.Descriptor instead.

func (*StageBuildMetadata) GetEndTime

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

func (*StageBuildMetadata) GetProgressPercent

func (x *StageBuildMetadata) GetProgressPercent() float32

func (*StageBuildMetadata) GetStartTime

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

func (*StageBuildMetadata) ProtoMessage

func (*StageBuildMetadata) ProtoMessage()

func (*StageBuildMetadata) ProtoReflect

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

func (*StageBuildMetadata) Reset

func (x *StageBuildMetadata) Reset()

func (*StageBuildMetadata) String

func (x *StageBuildMetadata) String() string

type StageBuildRequest

type StageBuildRequest struct {

	// Required. The full resource name of the build artifact.
	// For example,
	// 'buildTargets/octopus/models/bobba/builds/12607.6.0/artifacts/chromeos-moblab-peng-staging'.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Optional. Filter that specifies value constraints of fields. For example,
	// the filter can be set as "filter='type=release'" to only check the release
	// builds.
	Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`
	// contains filtered or unexported fields
}

Request message for staging a build artifact. -- NEXT_TAG: 3 --

func (*StageBuildRequest) Descriptor deprecated

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

Deprecated: Use StageBuildRequest.ProtoReflect.Descriptor instead.

func (*StageBuildRequest) GetFilter

func (x *StageBuildRequest) GetFilter() string

func (*StageBuildRequest) GetName

func (x *StageBuildRequest) GetName() string

func (*StageBuildRequest) ProtoMessage

func (*StageBuildRequest) ProtoMessage()

func (*StageBuildRequest) ProtoReflect

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

func (*StageBuildRequest) Reset

func (x *StageBuildRequest) Reset()

func (*StageBuildRequest) String

func (x *StageBuildRequest) String() string

type StageBuildResponse

type StageBuildResponse struct {

	// The staged build in the destination bucket.
	StagedBuildArtifact *BuildArtifact `protobuf:"bytes,1,opt,name=staged_build_artifact,json=stagedBuildArtifact,proto3" json:"staged_build_artifact,omitempty"`
	// contains filtered or unexported fields
}

Response message for staging a build artifact. -- NEXT_TAG: 2 --

func (*StageBuildResponse) Descriptor deprecated

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

Deprecated: Use StageBuildResponse.ProtoReflect.Descriptor instead.

func (*StageBuildResponse) GetStagedBuildArtifact

func (x *StageBuildResponse) GetStagedBuildArtifact() *BuildArtifact

func (*StageBuildResponse) ProtoMessage

func (*StageBuildResponse) ProtoMessage()

func (*StageBuildResponse) ProtoReflect

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

func (*StageBuildResponse) Reset

func (x *StageBuildResponse) Reset()

func (*StageBuildResponse) String

func (x *StageBuildResponse) String() string

type UnimplementedBuildServiceServer

type UnimplementedBuildServiceServer struct {
}

UnimplementedBuildServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedBuildServiceServer) FindMostStableBuild

func (*UnimplementedBuildServiceServer) ListBuildTargets

func (*UnimplementedBuildServiceServer) ListBuilds

func (*UnimplementedBuildServiceServer) ListModels

func (*UnimplementedBuildServiceServer) StageBuild

Jump to

Keyboard shortcuts

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