Documentation

Index

Constants

This section is empty.

Variables

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"`
	// contains filtered or unexported fields
}

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

func (*Build) Descriptor

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

Deprecated: Use Build.ProtoReflect.Descriptor instead.

func (*Build) GetBuildVersion

func (x *Build) GetBuildVersion() string

func (*Build) GetMilestone

func (x *Build) GetMilestone() string

func (*Build) GetName

func (x *Build) GetName() string

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

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 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. If any of objects has already
	// been copied, it will overwrite the previous objects. Operation <response:
	// [StageBuildResponse][google.chromeos.moblab.v1beta1.StageBuildResponse],
	//            metadata: [StageBuildMetadata][google.chromeos.moblab.v1beta1.StageBuildMetadata]>
	StageBuild(ctx context.Context, in *StageBuildRequest, opts ...grpc.CallOption) (*longrunning.Operation, 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 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. If any of objects has already
	// been copied, it will overwrite the previous objects. Operation <response:
	// [StageBuildResponse][google.chromeos.moblab.v1beta1.StageBuildResponse],
	//            metadata: [StageBuildMetadata][google.chromeos.moblab.v1beta1.StageBuildMetadata]>
	StageBuild(context.Context, *StageBuildRequest) (*longrunning.Operation, 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.

func (*BuildTarget) Descriptor

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 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"`
	// contains filtered or unexported fields
}

Request message for checking if the build artifact is staged.

func (*CheckBuildStageStatusRequest) Descriptor

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

Deprecated: Use CheckBuildStageStatusRequest.ProtoReflect.Descriptor instead.

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

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 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

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

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 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.

func (*Milestone) Descriptor

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.

func (*Model) Descriptor

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

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"`
	// contains filtered or unexported fields
}

Request message for staging a build artifact.

func (*StageBuildRequest) Descriptor

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

Deprecated: Use StageBuildRequest.ProtoReflect.Descriptor instead.

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.

func (*StageBuildResponse) Descriptor

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) ListBuilds

func (*UnimplementedBuildServiceServer) StageBuild