Documentation ¶
Index ¶
- Variables
- func RegisterBuildServiceServer(s *grpc.Server, srv BuildServiceServer)
- type Build
- func (*Build) Descriptor() ([]byte, []int)deprecated
- func (x *Build) GetBranch() string
- func (x *Build) GetBuildVersion() string
- func (x *Build) GetLabels() []string
- func (x *Build) GetMilestone() string
- func (x *Build) GetName() string
- func (x *Build) GetRwFirmwareVersion() string
- func (x *Build) GetStatus() Build_BuildStatus
- func (x *Build) GetType() Build_BuildType
- func (*Build) ProtoMessage()
- func (x *Build) ProtoReflect() protoreflect.Message
- func (x *Build) Reset()
- func (x *Build) String() string
- type BuildArtifact
- func (*BuildArtifact) Descriptor() ([]byte, []int)deprecated
- func (x *BuildArtifact) GetBucket() string
- func (x *BuildArtifact) GetBuild() string
- func (x *BuildArtifact) GetName() string
- func (x *BuildArtifact) GetObjectCount() uint32
- func (x *BuildArtifact) GetPath() string
- func (*BuildArtifact) ProtoMessage()
- func (x *BuildArtifact) ProtoReflect() protoreflect.Message
- func (x *BuildArtifact) Reset()
- func (x *BuildArtifact) String() string
- type BuildServiceClient
- type BuildServiceServer
- type BuildTarget
- type Build_BuildStatus
- func (Build_BuildStatus) Descriptor() protoreflect.EnumDescriptor
- func (x Build_BuildStatus) Enum() *Build_BuildStatus
- func (Build_BuildStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x Build_BuildStatus) Number() protoreflect.EnumNumber
- func (x Build_BuildStatus) String() string
- func (Build_BuildStatus) Type() protoreflect.EnumType
- type Build_BuildType
- func (Build_BuildType) Descriptor() protoreflect.EnumDescriptor
- func (x Build_BuildType) Enum() *Build_BuildType
- func (Build_BuildType) EnumDescriptor() ([]byte, []int)deprecated
- func (x Build_BuildType) Number() protoreflect.EnumNumber
- func (x Build_BuildType) String() string
- func (Build_BuildType) Type() protoreflect.EnumType
- type CheckBuildStageStatusRequest
- func (*CheckBuildStageStatusRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CheckBuildStageStatusRequest) GetFilter() string
- func (x *CheckBuildStageStatusRequest) GetName() string
- func (*CheckBuildStageStatusRequest) ProtoMessage()
- func (x *CheckBuildStageStatusRequest) ProtoReflect() protoreflect.Message
- func (x *CheckBuildStageStatusRequest) Reset()
- func (x *CheckBuildStageStatusRequest) String() string
- type CheckBuildStageStatusResponse
- func (*CheckBuildStageStatusResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CheckBuildStageStatusResponse) GetIsBuildStaged() bool
- func (x *CheckBuildStageStatusResponse) GetSourceBuildArtifact() *BuildArtifact
- func (x *CheckBuildStageStatusResponse) GetStagedBuildArtifact() *BuildArtifact
- func (*CheckBuildStageStatusResponse) ProtoMessage()
- func (x *CheckBuildStageStatusResponse) ProtoReflect() protoreflect.Message
- func (x *CheckBuildStageStatusResponse) Reset()
- func (x *CheckBuildStageStatusResponse) String() string
- type FindMostStableBuildRequest
- func (*FindMostStableBuildRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FindMostStableBuildRequest) GetBuildTarget() string
- func (*FindMostStableBuildRequest) ProtoMessage()
- func (x *FindMostStableBuildRequest) ProtoReflect() protoreflect.Message
- func (x *FindMostStableBuildRequest) Reset()
- func (x *FindMostStableBuildRequest) String() string
- type FindMostStableBuildResponse
- func (*FindMostStableBuildResponse) Descriptor() ([]byte, []int)deprecated
- func (x *FindMostStableBuildResponse) GetBuild() *Build
- func (*FindMostStableBuildResponse) ProtoMessage()
- func (x *FindMostStableBuildResponse) ProtoReflect() protoreflect.Message
- func (x *FindMostStableBuildResponse) Reset()
- func (x *FindMostStableBuildResponse) String() string
- type ListBuildTargetsRequest
- func (*ListBuildTargetsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListBuildTargetsRequest) GetPageSize() int32
- func (x *ListBuildTargetsRequest) GetPageToken() string
- func (*ListBuildTargetsRequest) ProtoMessage()
- func (x *ListBuildTargetsRequest) ProtoReflect() protoreflect.Message
- func (x *ListBuildTargetsRequest) Reset()
- func (x *ListBuildTargetsRequest) String() string
- type ListBuildTargetsResponse
- func (*ListBuildTargetsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListBuildTargetsResponse) GetBuildTargets() []*BuildTarget
- func (x *ListBuildTargetsResponse) GetNextPageToken() string
- func (x *ListBuildTargetsResponse) GetTotalSize() int32
- func (*ListBuildTargetsResponse) ProtoMessage()
- func (x *ListBuildTargetsResponse) ProtoReflect() protoreflect.Message
- func (x *ListBuildTargetsResponse) Reset()
- func (x *ListBuildTargetsResponse) String() string
- type ListBuildsRequest
- func (*ListBuildsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListBuildsRequest) GetFilter() string
- func (x *ListBuildsRequest) GetGroupBy() *fieldmaskpb.FieldMask
- func (x *ListBuildsRequest) GetPageSize() int32
- func (x *ListBuildsRequest) GetPageToken() string
- func (x *ListBuildsRequest) GetParent() string
- func (x *ListBuildsRequest) GetReadMask() *fieldmaskpb.FieldMask
- func (*ListBuildsRequest) ProtoMessage()
- func (x *ListBuildsRequest) ProtoReflect() protoreflect.Message
- func (x *ListBuildsRequest) Reset()
- func (x *ListBuildsRequest) String() string
- type ListBuildsResponse
- func (*ListBuildsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListBuildsResponse) GetBuilds() []*Build
- func (x *ListBuildsResponse) GetNextPageToken() string
- func (x *ListBuildsResponse) GetTotalSize() int32
- func (*ListBuildsResponse) ProtoMessage()
- func (x *ListBuildsResponse) ProtoReflect() protoreflect.Message
- func (x *ListBuildsResponse) Reset()
- func (x *ListBuildsResponse) String() string
- type ListModelsRequest
- func (*ListModelsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListModelsRequest) GetPageSize() int32
- func (x *ListModelsRequest) GetPageToken() string
- func (x *ListModelsRequest) GetParent() string
- func (*ListModelsRequest) ProtoMessage()
- func (x *ListModelsRequest) ProtoReflect() protoreflect.Message
- func (x *ListModelsRequest) Reset()
- func (x *ListModelsRequest) String() string
- type ListModelsResponse
- func (*ListModelsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListModelsResponse) GetModels() []*Model
- func (x *ListModelsResponse) GetNextPageToken() string
- func (x *ListModelsResponse) GetTotalSize() int32
- func (*ListModelsResponse) ProtoMessage()
- func (x *ListModelsResponse) ProtoReflect() protoreflect.Message
- func (x *ListModelsResponse) Reset()
- func (x *ListModelsResponse) String() string
- type Milestone
- type Model
- type StageBuildMetadata
- func (*StageBuildMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *StageBuildMetadata) GetEndTime() *timestamppb.Timestamp
- func (x *StageBuildMetadata) GetProgressPercent() float32
- func (x *StageBuildMetadata) GetStartTime() *timestamppb.Timestamp
- func (*StageBuildMetadata) ProtoMessage()
- func (x *StageBuildMetadata) ProtoReflect() protoreflect.Message
- func (x *StageBuildMetadata) Reset()
- func (x *StageBuildMetadata) String() string
- type StageBuildRequest
- func (*StageBuildRequest) Descriptor() ([]byte, []int)deprecated
- func (x *StageBuildRequest) GetFilter() string
- func (x *StageBuildRequest) GetName() string
- func (*StageBuildRequest) ProtoMessage()
- func (x *StageBuildRequest) ProtoReflect() protoreflect.Message
- func (x *StageBuildRequest) Reset()
- func (x *StageBuildRequest) String() string
- type StageBuildResponse
- func (*StageBuildResponse) Descriptor() ([]byte, []int)deprecated
- func (x *StageBuildResponse) GetStagedBuildArtifact() *BuildArtifact
- func (*StageBuildResponse) ProtoMessage()
- func (x *StageBuildResponse) ProtoReflect() protoreflect.Message
- func (x *StageBuildResponse) Reset()
- func (x *StageBuildResponse) String() string
- type UnimplementedBuildServiceServer
- func (*UnimplementedBuildServiceServer) CheckBuildStageStatus(context.Context, *CheckBuildStageStatusRequest) (*CheckBuildStageStatusResponse, error)
- func (*UnimplementedBuildServiceServer) FindMostStableBuild(context.Context, *FindMostStableBuildRequest) (*FindMostStableBuildResponse, error)
- func (*UnimplementedBuildServiceServer) ListBuildTargets(context.Context, *ListBuildTargetsRequest) (*ListBuildTargetsResponse, error)
- func (*UnimplementedBuildServiceServer) ListBuilds(context.Context, *ListBuildsRequest) (*ListBuildsResponse, error)
- func (*UnimplementedBuildServiceServer) ListModels(context.Context, *ListModelsRequest) (*ListModelsResponse, error)
- func (*UnimplementedBuildServiceServer) StageBuild(context.Context, *StageBuildRequest) (*longrunningpb.Operation, error)
Constants ¶
This section is empty.
Variables ¶
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.
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.
var File_google_chromeos_moblab_v1beta1_build_service_proto protoreflect.FileDescriptor
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) GetBuildVersion ¶
func (*Build) GetMilestone ¶
func (*Build) GetRwFirmwareVersion ¶
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
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.
func NewBuildServiceClient ¶
func NewBuildServiceClient(cc grpc.ClientConnInterface) BuildServiceClient
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) Descriptor() protoreflect.EnumDescriptor
func (Build_BuildStatus) Enum ¶
func (x Build_BuildStatus) Enum() *Build_BuildStatus
func (Build_BuildStatus) EnumDescriptor
deprecated
func (Build_BuildStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use Build_BuildStatus.Descriptor instead.
func (Build_BuildStatus) Number ¶
func (x Build_BuildStatus) Number() protoreflect.EnumNumber
func (Build_BuildStatus) String ¶
func (x Build_BuildStatus) String() string
func (Build_BuildStatus) Type ¶
func (Build_BuildStatus) Type() protoreflect.EnumType
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) Descriptor() protoreflect.EnumDescriptor
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 (x Build_BuildType) Number() protoreflect.EnumNumber
func (Build_BuildType) String ¶
func (x Build_BuildType) String() string
func (Build_BuildType) Type ¶
func (Build_BuildType) Type() protoreflect.EnumType
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 (x *CheckBuildStageStatusRequest) ProtoReflect() protoreflect.Message
func (*CheckBuildStageStatusRequest) Reset ¶
func (x *CheckBuildStageStatusRequest) Reset()
func (*CheckBuildStageStatusRequest) String ¶
func (x *CheckBuildStageStatusRequest) String() 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 (x *CheckBuildStageStatusResponse) ProtoReflect() protoreflect.Message
func (*CheckBuildStageStatusResponse) Reset ¶
func (x *CheckBuildStageStatusResponse) Reset()
func (*CheckBuildStageStatusResponse) String ¶
func (x *CheckBuildStageStatusResponse) String() 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 (x *FindMostStableBuildRequest) ProtoReflect() protoreflect.Message
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 (x *FindMostStableBuildResponse) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*Milestone) ProtoMessage()
func (*Milestone) ProtoReflect ¶
func (x *Milestone) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*Model) ProtoMessage()
func (*Model) ProtoReflect ¶
func (x *Model) ProtoReflect() protoreflect.Message
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) CheckBuildStageStatus ¶
func (*UnimplementedBuildServiceServer) CheckBuildStageStatus(context.Context, *CheckBuildStageStatusRequest) (*CheckBuildStageStatusResponse, error)
func (*UnimplementedBuildServiceServer) FindMostStableBuild ¶
func (*UnimplementedBuildServiceServer) FindMostStableBuild(context.Context, *FindMostStableBuildRequest) (*FindMostStableBuildResponse, error)
func (*UnimplementedBuildServiceServer) ListBuildTargets ¶
func (*UnimplementedBuildServiceServer) ListBuildTargets(context.Context, *ListBuildTargetsRequest) (*ListBuildTargetsResponse, error)
func (*UnimplementedBuildServiceServer) ListBuilds ¶
func (*UnimplementedBuildServiceServer) ListBuilds(context.Context, *ListBuildsRequest) (*ListBuildsResponse, error)
func (*UnimplementedBuildServiceServer) ListModels ¶
func (*UnimplementedBuildServiceServer) ListModels(context.Context, *ListModelsRequest) (*ListModelsResponse, error)
func (*UnimplementedBuildServiceServer) StageBuild ¶
func (*UnimplementedBuildServiceServer) StageBuild(context.Context, *StageBuildRequest) (*longrunningpb.Operation, error)