cloudbuild

package
v0.0.0-...-5fc9ac5 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BuildOptions_LogStreamingOption_name = map[int32]string{
	0: "STREAM_DEFAULT",
	1: "STREAM_ON",
	2: "STREAM_OFF",
}
View Source
var BuildOptions_LogStreamingOption_value = map[string]int32{
	"STREAM_DEFAULT": 0,
	"STREAM_ON":      1,
	"STREAM_OFF":     2,
}
View Source
var BuildOptions_LoggingMode_name = map[int32]string{
	0: "LOGGING_UNSPECIFIED",
	1: "LEGACY",
	2: "GCS_ONLY",
}
View Source
var BuildOptions_LoggingMode_value = map[string]int32{
	"LOGGING_UNSPECIFIED": 0,
	"LEGACY":              1,
	"GCS_ONLY":            2,
}
View Source
var BuildOptions_MachineType_name = map[int32]string{
	0: "UNSPECIFIED",
	1: "N1_HIGHCPU_8",
	2: "N1_HIGHCPU_32",
}
View Source
var BuildOptions_MachineType_value = map[string]int32{
	"UNSPECIFIED":   0,
	"N1_HIGHCPU_8":  1,
	"N1_HIGHCPU_32": 2,
}
View Source
var BuildOptions_SubstitutionOption_name = map[int32]string{
	0: "MUST_MATCH",
	1: "ALLOW_LOOSE",
}
View Source
var BuildOptions_SubstitutionOption_value = map[string]int32{
	"MUST_MATCH":  0,
	"ALLOW_LOOSE": 1,
}
View Source
var BuildOptions_VerifyOption_name = map[int32]string{
	0: "NOT_VERIFIED",
	1: "VERIFIED",
}
View Source
var BuildOptions_VerifyOption_value = map[string]int32{
	"NOT_VERIFIED": 0,
	"VERIFIED":     1,
}
View Source
var Build_Status_name = map[int32]string{
	0: "STATUS_UNKNOWN",
	1: "QUEUED",
	2: "WORKING",
	3: "SUCCESS",
	4: "FAILURE",
	5: "INTERNAL_ERROR",
	6: "TIMEOUT",
	7: "CANCELLED",
}
View Source
var Build_Status_value = map[string]int32{
	"STATUS_UNKNOWN": 0,
	"QUEUED":         1,
	"WORKING":        2,
	"SUCCESS":        3,
	"FAILURE":        4,
	"INTERNAL_ERROR": 5,
	"TIMEOUT":        6,
	"CANCELLED":      7,
}
View Source
var Hash_HashType_name = map[int32]string{
	0: "NONE",
	1: "SHA256",
	2: "MD5",
}
View Source
var Hash_HashType_value = map[string]int32{
	"NONE":   0,
	"SHA256": 1,
	"MD5":    2,
}

Functions

func RegisterCloudBuildServer

func RegisterCloudBuildServer(s *grpc.Server, srv CloudBuildServer)

Types

type ArtifactResult

type ArtifactResult struct {
	// The path of an artifact in a Google Cloud Storage bucket, with the
	// generation number. For example,
	// `gs://mybucket/path/to/output.jar#generation`.
	Location string `protobuf:"bytes,1,opt,name=location,proto3" json:"location,omitempty"`
	// The file hash of the artifact.
	FileHash             []*FileHashes `protobuf:"bytes,2,rep,name=file_hash,json=fileHash,proto3" json:"file_hash,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

An artifact that was uploaded during a build. This is a single record in the artifact manifest JSON file.

func (*ArtifactResult) Descriptor

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

func (*ArtifactResult) GetFileHash

func (m *ArtifactResult) GetFileHash() []*FileHashes

func (*ArtifactResult) GetLocation

func (m *ArtifactResult) GetLocation() string

func (*ArtifactResult) ProtoMessage

func (*ArtifactResult) ProtoMessage()

func (*ArtifactResult) Reset

func (m *ArtifactResult) Reset()

func (*ArtifactResult) String

func (m *ArtifactResult) String() string

func (*ArtifactResult) XXX_DiscardUnknown

func (m *ArtifactResult) XXX_DiscardUnknown()

func (*ArtifactResult) XXX_Marshal

func (m *ArtifactResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ArtifactResult) XXX_Merge

func (m *ArtifactResult) XXX_Merge(src proto.Message)

func (*ArtifactResult) XXX_Size

func (m *ArtifactResult) XXX_Size() int

func (*ArtifactResult) XXX_Unmarshal

func (m *ArtifactResult) XXX_Unmarshal(b []byte) error

type Artifacts

type Artifacts struct {
	// A list of images to be pushed upon the successful completion of all build
	// steps.
	//
	// The images will be pushed using the builder service account's credentials.
	//
	// The digests of the pushed images will be stored in the Build resource's
	// results field.
	//
	// If any of the images fail to be pushed, the build is marked FAILURE.
	Images []string `protobuf:"bytes,1,rep,name=images,proto3" json:"images,omitempty"`
	// A list of objects to be uploaded to Cloud Storage upon successful
	// completion of all build steps.
	//
	// Files in the workspace matching specified paths globs will be uploaded to
	// the specified Cloud Storage location using the builder service account's
	// credentials.
	//
	// The location and generation of the uploaded objects will be stored in the
	// Build resource's results field.
	//
	// If any objects fail to be pushed, the build is marked FAILURE.
	Objects              *Artifacts_ArtifactObjects `protobuf:"bytes,2,opt,name=objects,proto3" json:"objects,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                   `json:"-"`
	XXX_unrecognized     []byte                     `json:"-"`
	XXX_sizecache        int32                      `json:"-"`
}

Artifacts produced by a build that should be uploaded upon successful completion of all build steps.

func (*Artifacts) Descriptor

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

func (*Artifacts) GetImages

func (m *Artifacts) GetImages() []string

func (*Artifacts) GetObjects

func (m *Artifacts) GetObjects() *Artifacts_ArtifactObjects

func (*Artifacts) ProtoMessage

func (*Artifacts) ProtoMessage()

func (*Artifacts) Reset

func (m *Artifacts) Reset()

func (*Artifacts) String

func (m *Artifacts) String() string

func (*Artifacts) XXX_DiscardUnknown

func (m *Artifacts) XXX_DiscardUnknown()

func (*Artifacts) XXX_Marshal

func (m *Artifacts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Artifacts) XXX_Merge

func (m *Artifacts) XXX_Merge(src proto.Message)

func (*Artifacts) XXX_Size

func (m *Artifacts) XXX_Size() int

func (*Artifacts) XXX_Unmarshal

func (m *Artifacts) XXX_Unmarshal(b []byte) error

type Artifacts_ArtifactObjects

type Artifacts_ArtifactObjects struct {
	// Cloud Storage bucket and optional object path, in the form
	// "gs://bucket/path/to/somewhere/". (see [Bucket Name
	// Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
	//
	// Files in the workspace matching any path pattern will be uploaded to
	// Cloud Storage with this location as a prefix.
	Location string `protobuf:"bytes,1,opt,name=location,proto3" json:"location,omitempty"`
	// Path globs used to match files in the build's workspace.
	Paths []string `protobuf:"bytes,2,rep,name=paths,proto3" json:"paths,omitempty"`
	// Output only. Stores timing information for pushing all artifact objects.
	Timing               *TimeSpan `protobuf:"bytes,3,opt,name=timing,proto3" json:"timing,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

Files in the workspace to upload to Cloud Storage upon successful completion of all build steps.

func (*Artifacts_ArtifactObjects) Descriptor

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

func (*Artifacts_ArtifactObjects) GetLocation

func (m *Artifacts_ArtifactObjects) GetLocation() string

func (*Artifacts_ArtifactObjects) GetPaths

func (m *Artifacts_ArtifactObjects) GetPaths() []string

func (*Artifacts_ArtifactObjects) GetTiming

func (m *Artifacts_ArtifactObjects) GetTiming() *TimeSpan

func (*Artifacts_ArtifactObjects) ProtoMessage

func (*Artifacts_ArtifactObjects) ProtoMessage()

func (*Artifacts_ArtifactObjects) Reset

func (m *Artifacts_ArtifactObjects) Reset()

func (*Artifacts_ArtifactObjects) String

func (m *Artifacts_ArtifactObjects) String() string

func (*Artifacts_ArtifactObjects) XXX_DiscardUnknown

func (m *Artifacts_ArtifactObjects) XXX_DiscardUnknown()

func (*Artifacts_ArtifactObjects) XXX_Marshal

func (m *Artifacts_ArtifactObjects) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Artifacts_ArtifactObjects) XXX_Merge

func (m *Artifacts_ArtifactObjects) XXX_Merge(src proto.Message)

func (*Artifacts_ArtifactObjects) XXX_Size

func (m *Artifacts_ArtifactObjects) XXX_Size() int

func (*Artifacts_ArtifactObjects) XXX_Unmarshal

func (m *Artifacts_ArtifactObjects) XXX_Unmarshal(b []byte) error

type Build

type Build struct {
	// Output only. Unique identifier of the build.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Output only. ID of the project.
	ProjectId string `protobuf:"bytes,16,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// Output only. Status of the build.
	Status Build_Status `protobuf:"varint,2,opt,name=status,proto3,enum=google.devtools.cloudbuild.v1.Build_Status" json:"status,omitempty"`
	// Output only. Customer-readable message about the current status.
	StatusDetail string `protobuf:"bytes,24,opt,name=status_detail,json=statusDetail,proto3" json:"status_detail,omitempty"`
	// The location of the source files to build.
	Source *Source `protobuf:"bytes,3,opt,name=source,proto3" json:"source,omitempty"`
	// Required. The operations to be performed on the workspace.
	Steps []*BuildStep `protobuf:"bytes,11,rep,name=steps,proto3" json:"steps,omitempty"`
	// Output only. Results of the build.
	Results *Results `protobuf:"bytes,10,opt,name=results,proto3" json:"results,omitempty"`
	// Output only. Time at which the request to create the build was received.
	CreateTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Output only. Time at which execution of the build was started.
	StartTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	// Output only. Time at which execution of the build was finished.
	//
	// The difference between finish_time and start_time is the duration of the
	// build's execution.
	FinishTime *timestamp.Timestamp `protobuf:"bytes,8,opt,name=finish_time,json=finishTime,proto3" json:"finish_time,omitempty"`
	// Amount of time that this build should be allowed to run, to second
	// granularity. If this amount of time elapses, work on the build will cease
	// and the build status will be `TIMEOUT`.
	//
	// Default time is ten minutes.
	Timeout *duration.Duration `protobuf:"bytes,12,opt,name=timeout,proto3" json:"timeout,omitempty"`
	// A list of images to be pushed upon the successful completion of all build
	// steps.
	//
	// The images are pushed using the builder service account's credentials.
	//
	// The digests of the pushed images will be stored in the `Build` resource's
	// results field.
	//
	// If any of the images fail to be pushed, the build status is marked
	// `FAILURE`.
	Images []string `protobuf:"bytes,13,rep,name=images,proto3" json:"images,omitempty"`
	// Artifacts produced by the build that should be uploaded upon
	// successful completion of all build steps.
	Artifacts *Artifacts `protobuf:"bytes,37,opt,name=artifacts,proto3" json:"artifacts,omitempty"`
	// Google Cloud Storage bucket where logs should be written (see
	// [Bucket Name
	// Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
	// Logs file names will be of the format `${logs_bucket}/log-${build_id}.txt`.
	LogsBucket string `protobuf:"bytes,19,opt,name=logs_bucket,json=logsBucket,proto3" json:"logs_bucket,omitempty"`
	// Output only. A permanent fixed identifier for source.
	SourceProvenance *SourceProvenance `protobuf:"bytes,21,opt,name=source_provenance,json=sourceProvenance,proto3" json:"source_provenance,omitempty"`
	// Output only. The ID of the `BuildTrigger` that triggered this build, if it
	// was triggered automatically.
	BuildTriggerId string `protobuf:"bytes,22,opt,name=build_trigger_id,json=buildTriggerId,proto3" json:"build_trigger_id,omitempty"`
	// Special options for this build.
	Options *BuildOptions `protobuf:"bytes,23,opt,name=options,proto3" json:"options,omitempty"`
	// Output only. URL to logs for this build in Google Cloud Console.
	LogUrl string `protobuf:"bytes,25,opt,name=log_url,json=logUrl,proto3" json:"log_url,omitempty"`
	// Substitutions data for `Build` resource.
	Substitutions map[string]string `` /* 168-byte string literal not displayed */
	// Tags for annotation of a `Build`. These are not docker tags.
	Tags []string `protobuf:"bytes,31,rep,name=tags,proto3" json:"tags,omitempty"`
	// Secrets to decrypt using Cloud Key Management Service.
	Secrets []*Secret `protobuf:"bytes,32,rep,name=secrets,proto3" json:"secrets,omitempty"`
	// Output only. Stores timing information for phases of the build. Valid keys
	// are:
	//
	// * BUILD: time to execute all build steps
	// * PUSH: time to push all specified images.
	// * FETCHSOURCE: time to fetch source.
	//
	// If the build does not specify source or images,
	// these keys will not be included.
	Timing               map[string]*TimeSpan `` /* 154-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

A build resource in the Cloud Build API.

At a high level, a `Build` describes where to find source code, how to build it (for example, the builder image to run on the source), and where to store the built artifacts.

Fields can include the following variables, which will be expanded when the build is created:

  • $PROJECT_ID: the project ID of the build.
  • $BUILD_ID: the autogenerated ID of the build.
  • $REPO_NAME: the source repository name specified by RepoSource.
  • $BRANCH_NAME: the branch name specified by RepoSource.
  • $TAG_NAME: the tag name specified by RepoSource.
  • $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or resolved from the specified branch or tag.
  • $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA.

func (*Build) Descriptor

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

func (*Build) GetArtifacts

func (m *Build) GetArtifacts() *Artifacts

func (*Build) GetBuildTriggerId

func (m *Build) GetBuildTriggerId() string

func (*Build) GetCreateTime

func (m *Build) GetCreateTime() *timestamp.Timestamp

func (*Build) GetFinishTime

func (m *Build) GetFinishTime() *timestamp.Timestamp

func (*Build) GetId

func (m *Build) GetId() string

func (*Build) GetImages

func (m *Build) GetImages() []string

func (*Build) GetLogUrl

func (m *Build) GetLogUrl() string

func (*Build) GetLogsBucket

func (m *Build) GetLogsBucket() string

func (*Build) GetOptions

func (m *Build) GetOptions() *BuildOptions

func (*Build) GetProjectId

func (m *Build) GetProjectId() string

func (*Build) GetResults

func (m *Build) GetResults() *Results

func (*Build) GetSecrets

func (m *Build) GetSecrets() []*Secret

func (*Build) GetSource

func (m *Build) GetSource() *Source

func (*Build) GetSourceProvenance

func (m *Build) GetSourceProvenance() *SourceProvenance

func (*Build) GetStartTime

func (m *Build) GetStartTime() *timestamp.Timestamp

func (*Build) GetStatus

func (m *Build) GetStatus() Build_Status

func (*Build) GetStatusDetail

func (m *Build) GetStatusDetail() string

func (*Build) GetSteps

func (m *Build) GetSteps() []*BuildStep

func (*Build) GetSubstitutions

func (m *Build) GetSubstitutions() map[string]string

func (*Build) GetTags

func (m *Build) GetTags() []string

func (*Build) GetTimeout

func (m *Build) GetTimeout() *duration.Duration

func (*Build) GetTiming

func (m *Build) GetTiming() map[string]*TimeSpan

func (*Build) ProtoMessage

func (*Build) ProtoMessage()

func (*Build) Reset

func (m *Build) Reset()

func (*Build) String

func (m *Build) String() string

func (*Build) XXX_DiscardUnknown

func (m *Build) XXX_DiscardUnknown()

func (*Build) XXX_Marshal

func (m *Build) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Build) XXX_Merge

func (m *Build) XXX_Merge(src proto.Message)

func (*Build) XXX_Size

func (m *Build) XXX_Size() int

func (*Build) XXX_Unmarshal

func (m *Build) XXX_Unmarshal(b []byte) error

type BuildOperationMetadata

type BuildOperationMetadata struct {
	// The build that the operation is tracking.
	Build                *Build   `protobuf:"bytes,1,opt,name=build,proto3" json:"build,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Metadata for build operations.

func (*BuildOperationMetadata) Descriptor

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

func (*BuildOperationMetadata) GetBuild

func (m *BuildOperationMetadata) GetBuild() *Build

func (*BuildOperationMetadata) ProtoMessage

func (*BuildOperationMetadata) ProtoMessage()

func (*BuildOperationMetadata) Reset

func (m *BuildOperationMetadata) Reset()

func (*BuildOperationMetadata) String

func (m *BuildOperationMetadata) String() string

func (*BuildOperationMetadata) XXX_DiscardUnknown

func (m *BuildOperationMetadata) XXX_DiscardUnknown()

func (*BuildOperationMetadata) XXX_Marshal

func (m *BuildOperationMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BuildOperationMetadata) XXX_Merge

func (m *BuildOperationMetadata) XXX_Merge(src proto.Message)

func (*BuildOperationMetadata) XXX_Size

func (m *BuildOperationMetadata) XXX_Size() int

func (*BuildOperationMetadata) XXX_Unmarshal

func (m *BuildOperationMetadata) XXX_Unmarshal(b []byte) error

type BuildOptions

type BuildOptions struct {
	// Requested hash for SourceProvenance.
	SourceProvenanceHash []Hash_HashType `` /* 180-byte string literal not displayed */
	// Requested verifiability options.
	RequestedVerifyOption BuildOptions_VerifyOption `` /* 188-byte string literal not displayed */
	// Compute Engine machine type on which to run the build.
	MachineType BuildOptions_MachineType `` /* 155-byte string literal not displayed */
	// Requested disk size for the VM that runs the build. Note that this is *NOT*
	// "disk free"; some of the space will be used by the operating system and
	// build utilities. Also note that this is the minimum disk size that will be
	// allocated for the build -- the build may run with a larger disk than
	// requested. At present, the maximum disk size is 1000GB; builds that request
	// more than the maximum are rejected with an error.
	DiskSizeGb int64 `protobuf:"varint,6,opt,name=disk_size_gb,json=diskSizeGb,proto3" json:"disk_size_gb,omitempty"`
	// Option to specify behavior when there is an error in the substitution
	// checks.
	SubstitutionOption BuildOptions_SubstitutionOption `` /* 183-byte string literal not displayed */
	// Option to define build log streaming behavior to Google Cloud
	// Storage.
	LogStreamingOption BuildOptions_LogStreamingOption `` /* 185-byte string literal not displayed */
	// Option to specify a `WorkerPool` for the build. User specifies the pool
	// with the format "[WORKERPOOL_PROJECT_ID]/[WORKERPOOL_NAME]".
	// This is an experimental field.
	WorkerPool string `protobuf:"bytes,7,opt,name=worker_pool,json=workerPool,proto3" json:"worker_pool,omitempty"`
	// Option to specify the logging mode, which determines where the logs are
	// stored.
	Logging BuildOptions_LoggingMode `` /* 129-byte string literal not displayed */
	// A list of global environment variable definitions that will exist for all
	// build steps in this build. If a variable is defined in both globally and in
	// a build step, the variable will use the build step value.
	//
	// The elements are of the form "KEY=VALUE" for the environment variable "KEY"
	// being given the value "VALUE".
	Env []string `protobuf:"bytes,12,rep,name=env,proto3" json:"env,omitempty"`
	// A list of global environment variables, which are encrypted using a Cloud
	// Key Management Service crypto key. These values must be specified in the
	// build's `Secret`. These variables will be available to all build steps
	// in this build.
	SecretEnv []string `protobuf:"bytes,13,rep,name=secret_env,json=secretEnv,proto3" json:"secret_env,omitempty"`
	// Global list of volumes to mount for ALL build steps
	//
	// Each volume is created as an empty volume prior to starting the build
	// process. Upon completion of the build, volumes and their contents are
	// discarded. Global volume names and paths cannot conflict with the volumes
	// defined a build step.
	//
	// Using a global volume in a build with only one step is not valid as
	// it is indicative of a build request with an incorrect configuration.
	Volumes              []*Volume `protobuf:"bytes,14,rep,name=volumes,proto3" json:"volumes,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

Optional arguments to enable specific features of builds.

func (*BuildOptions) Descriptor

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

func (*BuildOptions) GetDiskSizeGb

func (m *BuildOptions) GetDiskSizeGb() int64

func (*BuildOptions) GetEnv

func (m *BuildOptions) GetEnv() []string

func (*BuildOptions) GetLogStreamingOption

func (m *BuildOptions) GetLogStreamingOption() BuildOptions_LogStreamingOption

func (*BuildOptions) GetLogging

func (m *BuildOptions) GetLogging() BuildOptions_LoggingMode

func (*BuildOptions) GetMachineType

func (m *BuildOptions) GetMachineType() BuildOptions_MachineType

func (*BuildOptions) GetRequestedVerifyOption

func (m *BuildOptions) GetRequestedVerifyOption() BuildOptions_VerifyOption

func (*BuildOptions) GetSecretEnv

func (m *BuildOptions) GetSecretEnv() []string

func (*BuildOptions) GetSourceProvenanceHash

func (m *BuildOptions) GetSourceProvenanceHash() []Hash_HashType

func (*BuildOptions) GetSubstitutionOption

func (m *BuildOptions) GetSubstitutionOption() BuildOptions_SubstitutionOption

func (*BuildOptions) GetVolumes

func (m *BuildOptions) GetVolumes() []*Volume

func (*BuildOptions) GetWorkerPool

func (m *BuildOptions) GetWorkerPool() string

func (*BuildOptions) ProtoMessage

func (*BuildOptions) ProtoMessage()

func (*BuildOptions) Reset

func (m *BuildOptions) Reset()

func (*BuildOptions) String

func (m *BuildOptions) String() string

func (*BuildOptions) XXX_DiscardUnknown

func (m *BuildOptions) XXX_DiscardUnknown()

func (*BuildOptions) XXX_Marshal

func (m *BuildOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BuildOptions) XXX_Merge

func (m *BuildOptions) XXX_Merge(src proto.Message)

func (*BuildOptions) XXX_Size

func (m *BuildOptions) XXX_Size() int

func (*BuildOptions) XXX_Unmarshal

func (m *BuildOptions) XXX_Unmarshal(b []byte) error

type BuildOptions_LogStreamingOption

type BuildOptions_LogStreamingOption int32

Specifies the behavior when writing build logs to Google Cloud Storage.

const (
	// Service may automatically determine build log streaming behavior.
	BuildOptions_STREAM_DEFAULT BuildOptions_LogStreamingOption = 0
	// Build logs should be streamed to Google Cloud Storage.
	BuildOptions_STREAM_ON BuildOptions_LogStreamingOption = 1
	// Build logs should not be streamed to Google Cloud Storage; they will be
	// written when the build is completed.
	BuildOptions_STREAM_OFF BuildOptions_LogStreamingOption = 2
)

func (BuildOptions_LogStreamingOption) EnumDescriptor

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

func (BuildOptions_LogStreamingOption) String

type BuildOptions_LoggingMode

type BuildOptions_LoggingMode int32

Specifies the logging mode.

const (
	// The service determines the logging mode. The default is `LEGACY`. Do not
	// rely on the default logging behavior as it may change in the future.
	BuildOptions_LOGGING_UNSPECIFIED BuildOptions_LoggingMode = 0
	// Stackdriver logging and Cloud Storage logging are enabled.
	BuildOptions_LEGACY BuildOptions_LoggingMode = 1
	// Only Cloud Storage logging is enabled.
	BuildOptions_GCS_ONLY BuildOptions_LoggingMode = 2
)

func (BuildOptions_LoggingMode) EnumDescriptor

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

func (BuildOptions_LoggingMode) String

func (x BuildOptions_LoggingMode) String() string

type BuildOptions_MachineType

type BuildOptions_MachineType int32

Supported VM sizes.

const (
	// Standard machine type.
	BuildOptions_UNSPECIFIED BuildOptions_MachineType = 0
	// Highcpu machine with 8 CPUs.
	BuildOptions_N1_HIGHCPU_8 BuildOptions_MachineType = 1
	// Highcpu machine with 32 CPUs.
	BuildOptions_N1_HIGHCPU_32 BuildOptions_MachineType = 2
)

func (BuildOptions_MachineType) EnumDescriptor

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

func (BuildOptions_MachineType) String

func (x BuildOptions_MachineType) String() string

type BuildOptions_SubstitutionOption

type BuildOptions_SubstitutionOption int32

Specifies the behavior when there is an error in the substitution checks.

const (
	// Fails the build if error in substitutions checks, like missing
	// a substitution in the template or in the map.
	BuildOptions_MUST_MATCH BuildOptions_SubstitutionOption = 0
	// Do not fail the build if error in substitutions checks.
	BuildOptions_ALLOW_LOOSE BuildOptions_SubstitutionOption = 1
)

func (BuildOptions_SubstitutionOption) EnumDescriptor

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

func (BuildOptions_SubstitutionOption) String

type BuildOptions_VerifyOption

type BuildOptions_VerifyOption int32

Specifies the manner in which the build should be verified, if at all.

const (
	// Not a verifiable build. (default)
	BuildOptions_NOT_VERIFIED BuildOptions_VerifyOption = 0
	// Verified build.
	BuildOptions_VERIFIED BuildOptions_VerifyOption = 1
)

func (BuildOptions_VerifyOption) EnumDescriptor

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

func (BuildOptions_VerifyOption) String

func (x BuildOptions_VerifyOption) String() string

type BuildStep

type BuildStep struct {
	// Required. The name of the container image that will run this particular
	// build step.
	//
	// If the image is available in the host's Docker daemon's cache, it
	// will be run directly. If not, the host will attempt to pull the image
	// first, using the builder service account's credentials if necessary.
	//
	// The Docker daemon's cache will already have the latest versions of all of
	// the officially supported build steps
	// ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)).
	// The Docker daemon will also have cached many of the layers for some popular
	// images, like "ubuntu", "debian", but they will be refreshed at the time you
	// attempt to use them.
	//
	// If you built an image in a previous build step, it will be stored in the
	// host's Docker daemon's cache and is available to use as the name for a
	// later build step.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// A list of environment variable definitions to be used when running a step.
	//
	// The elements are of the form "KEY=VALUE" for the environment variable "KEY"
	// being given the value "VALUE".
	Env []string `protobuf:"bytes,2,rep,name=env,proto3" json:"env,omitempty"`
	// A list of arguments that will be presented to the step when it is started.
	//
	// If the image used to run the step's container has an entrypoint, the `args`
	// are used as arguments to that entrypoint. If the image does not define
	// an entrypoint, the first element in args is used as the entrypoint,
	// and the remainder will be used as arguments.
	Args []string `protobuf:"bytes,3,rep,name=args,proto3" json:"args,omitempty"`
	// Working directory to use when running this step's container.
	//
	// If this value is a relative path, it is relative to the build's working
	// directory. If this value is absolute, it may be outside the build's working
	// directory, in which case the contents of the path may not be persisted
	// across build step executions, unless a `volume` for that path is specified.
	//
	// If the build specifies a `RepoSource` with `dir` and a step with a `dir`,
	// which specifies an absolute path, the `RepoSource` `dir` is ignored for
	// the step's execution.
	Dir string `protobuf:"bytes,4,opt,name=dir,proto3" json:"dir,omitempty"`
	// Unique identifier for this build step, used in `wait_for` to
	// reference this build step as a dependency.
	Id string `protobuf:"bytes,5,opt,name=id,proto3" json:"id,omitempty"`
	// The ID(s) of the step(s) that this build step depends on.
	// This build step will not start until all the build steps in `wait_for`
	// have completed successfully. If `wait_for` is empty, this build step will
	// start when all previous build steps in the `Build.Steps` list have
	// completed successfully.
	WaitFor []string `protobuf:"bytes,6,rep,name=wait_for,json=waitFor,proto3" json:"wait_for,omitempty"`
	// Entrypoint to be used instead of the build step image's default entrypoint.
	// If unset, the image's default entrypoint is used.
	Entrypoint string `protobuf:"bytes,7,opt,name=entrypoint,proto3" json:"entrypoint,omitempty"`
	// A list of environment variables which are encrypted using a Cloud Key
	// Management Service crypto key. These values must be specified in the
	// build's `Secret`.
	SecretEnv []string `protobuf:"bytes,8,rep,name=secret_env,json=secretEnv,proto3" json:"secret_env,omitempty"`
	// List of volumes to mount into the build step.
	//
	// Each volume is created as an empty volume prior to execution of the
	// build step. Upon completion of the build, volumes and their contents are
	// discarded.
	//
	// Using a named volume in only one step is not valid as it is indicative
	// of a build request with an incorrect configuration.
	Volumes []*Volume `protobuf:"bytes,9,rep,name=volumes,proto3" json:"volumes,omitempty"`
	// Output only. Stores timing information for executing this build step.
	Timing *TimeSpan `protobuf:"bytes,10,opt,name=timing,proto3" json:"timing,omitempty"`
	// Output only. Stores timing information for pulling this build step's
	// builder image only.
	PullTiming *TimeSpan `protobuf:"bytes,13,opt,name=pull_timing,json=pullTiming,proto3" json:"pull_timing,omitempty"`
	// Time limit for executing this build step. If not defined, the step has no
	// time limit and will be allowed to continue to run until either it completes
	// or the build itself times out.
	Timeout *duration.Duration `protobuf:"bytes,11,opt,name=timeout,proto3" json:"timeout,omitempty"`
	// Output only. Status of the build step. At this time, build step status is
	// only updated on build completion; step status is not updated in real-time
	// as the build progresses.
	Status               Build_Status `protobuf:"varint,12,opt,name=status,proto3,enum=google.devtools.cloudbuild.v1.Build_Status" json:"status,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

A step in the build pipeline.

func (*BuildStep) Descriptor

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

func (*BuildStep) GetArgs

func (m *BuildStep) GetArgs() []string

func (*BuildStep) GetDir

func (m *BuildStep) GetDir() string

func (*BuildStep) GetEntrypoint

func (m *BuildStep) GetEntrypoint() string

func (*BuildStep) GetEnv

func (m *BuildStep) GetEnv() []string

func (*BuildStep) GetId

func (m *BuildStep) GetId() string

func (*BuildStep) GetName

func (m *BuildStep) GetName() string

func (*BuildStep) GetPullTiming

func (m *BuildStep) GetPullTiming() *TimeSpan

func (*BuildStep) GetSecretEnv

func (m *BuildStep) GetSecretEnv() []string

func (*BuildStep) GetStatus

func (m *BuildStep) GetStatus() Build_Status

func (*BuildStep) GetTimeout

func (m *BuildStep) GetTimeout() *duration.Duration

func (*BuildStep) GetTiming

func (m *BuildStep) GetTiming() *TimeSpan

func (*BuildStep) GetVolumes

func (m *BuildStep) GetVolumes() []*Volume

func (*BuildStep) GetWaitFor

func (m *BuildStep) GetWaitFor() []string

func (*BuildStep) ProtoMessage

func (*BuildStep) ProtoMessage()

func (*BuildStep) Reset

func (m *BuildStep) Reset()

func (*BuildStep) String

func (m *BuildStep) String() string

func (*BuildStep) XXX_DiscardUnknown

func (m *BuildStep) XXX_DiscardUnknown()

func (*BuildStep) XXX_Marshal

func (m *BuildStep) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BuildStep) XXX_Merge

func (m *BuildStep) XXX_Merge(src proto.Message)

func (*BuildStep) XXX_Size

func (m *BuildStep) XXX_Size() int

func (*BuildStep) XXX_Unmarshal

func (m *BuildStep) XXX_Unmarshal(b []byte) error

type BuildTrigger

type BuildTrigger struct {
	// Output only. Unique identifier of the trigger.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Human-readable description of this trigger.
	Description string `protobuf:"bytes,10,opt,name=description,proto3" json:"description,omitempty"`
	// Template describing the types of source changes to trigger a build.
	//
	// Branch and tag names in trigger templates are interpreted as regular
	// expressions. Any branch or tag change that matches that regular expression
	// will trigger a build.
	TriggerTemplate *RepoSource `protobuf:"bytes,7,opt,name=trigger_template,json=triggerTemplate,proto3" json:"trigger_template,omitempty"`
	// Template describing the Build request to make when the trigger is matched.
	//
	// Types that are valid to be assigned to BuildTemplate:
	//	*BuildTrigger_Build
	//	*BuildTrigger_Filename
	BuildTemplate isBuildTrigger_BuildTemplate `protobuf_oneof:"build_template"`
	// Output only. Time when the trigger was created.
	CreateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// If true, the trigger will never result in a build.
	Disabled bool `protobuf:"varint,9,opt,name=disabled,proto3" json:"disabled,omitempty"`
	// Substitutions data for Build resource.
	Substitutions map[string]string `` /* 168-byte string literal not displayed */
	// ignored_files and included_files are file glob matches using
	// http://godoc/pkg/path/filepath#Match extended with support for "**".
	//
	// If ignored_files and changed files are both empty, then they are
	// not used to determine whether or not to trigger a build.
	//
	// If ignored_files is not empty, then we ignore any files that match
	// any of the ignored_file globs. If the change has no files that are
	// outside of the ignored_files globs, then we do not trigger a build.
	IgnoredFiles []string `protobuf:"bytes,15,rep,name=ignored_files,json=ignoredFiles,proto3" json:"ignored_files,omitempty"`
	// If any of the files altered in the commit pass the ignored_files
	// filter and included_files is empty, then as far as this filter is
	// concerned, we should trigger the build.
	//
	// If any of the files altered in the commit pass the ignored_files
	// filter and included_files is not empty, then we make sure that at
	// least one of those files matches a included_files glob. If not,
	// then we do not trigger a build.
	IncludedFiles        []string `protobuf:"bytes,16,rep,name=included_files,json=includedFiles,proto3" json:"included_files,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Configuration for an automated build in response to source repository changes.

func (*BuildTrigger) Descriptor

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

func (*BuildTrigger) GetBuild

func (m *BuildTrigger) GetBuild() *Build

func (*BuildTrigger) GetBuildTemplate

func (m *BuildTrigger) GetBuildTemplate() isBuildTrigger_BuildTemplate

func (*BuildTrigger) GetCreateTime

func (m *BuildTrigger) GetCreateTime() *timestamp.Timestamp

func (*BuildTrigger) GetDescription

func (m *BuildTrigger) GetDescription() string

func (*BuildTrigger) GetDisabled

func (m *BuildTrigger) GetDisabled() bool

func (*BuildTrigger) GetFilename

func (m *BuildTrigger) GetFilename() string

func (*BuildTrigger) GetId

func (m *BuildTrigger) GetId() string

func (*BuildTrigger) GetIgnoredFiles

func (m *BuildTrigger) GetIgnoredFiles() []string

func (*BuildTrigger) GetIncludedFiles

func (m *BuildTrigger) GetIncludedFiles() []string

func (*BuildTrigger) GetSubstitutions

func (m *BuildTrigger) GetSubstitutions() map[string]string

func (*BuildTrigger) GetTriggerTemplate

func (m *BuildTrigger) GetTriggerTemplate() *RepoSource

func (*BuildTrigger) ProtoMessage

func (*BuildTrigger) ProtoMessage()

func (*BuildTrigger) Reset

func (m *BuildTrigger) Reset()

func (*BuildTrigger) String

func (m *BuildTrigger) String() string

func (*BuildTrigger) XXX_DiscardUnknown

func (m *BuildTrigger) XXX_DiscardUnknown()

func (*BuildTrigger) XXX_Marshal

func (m *BuildTrigger) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BuildTrigger) XXX_Merge

func (m *BuildTrigger) XXX_Merge(src proto.Message)

func (*BuildTrigger) XXX_OneofFuncs

func (*BuildTrigger) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*BuildTrigger) XXX_Size

func (m *BuildTrigger) XXX_Size() int

func (*BuildTrigger) XXX_Unmarshal

func (m *BuildTrigger) XXX_Unmarshal(b []byte) error

type BuildTrigger_Build

type BuildTrigger_Build struct {
	Build *Build `protobuf:"bytes,4,opt,name=build,proto3,oneof"`
}

type BuildTrigger_Filename

type BuildTrigger_Filename struct {
	Filename string `protobuf:"bytes,8,opt,name=filename,proto3,oneof"`
}

type Build_Status

type Build_Status int32

Possible status of a build or build step.

const (
	// Status of the build is unknown.
	Build_STATUS_UNKNOWN Build_Status = 0
	// Build or step is queued; work has not yet begun.
	Build_QUEUED Build_Status = 1
	// Build or step is being executed.
	Build_WORKING Build_Status = 2
	// Build or step finished successfully.
	Build_SUCCESS Build_Status = 3
	// Build or step failed to complete successfully.
	Build_FAILURE Build_Status = 4
	// Build or step failed due to an internal cause.
	Build_INTERNAL_ERROR Build_Status = 5
	// Build or step took longer than was allowed.
	Build_TIMEOUT Build_Status = 6
	// Build or step was canceled by a user.
	Build_CANCELLED Build_Status = 7
)

func (Build_Status) EnumDescriptor

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

func (Build_Status) String

func (x Build_Status) String() string

type BuiltImage

type BuiltImage struct {
	// Name used to push the container image to Google Container Registry, as
	// presented to `docker push`.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Docker Registry 2.0 digest.
	Digest string `protobuf:"bytes,3,opt,name=digest,proto3" json:"digest,omitempty"`
	// Output only. Stores timing information for pushing the specified image.
	PushTiming           *TimeSpan `protobuf:"bytes,4,opt,name=push_timing,json=pushTiming,proto3" json:"push_timing,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

An image built by the pipeline.

func (*BuiltImage) Descriptor

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

func (*BuiltImage) GetDigest

func (m *BuiltImage) GetDigest() string

func (*BuiltImage) GetName

func (m *BuiltImage) GetName() string

func (*BuiltImage) GetPushTiming

func (m *BuiltImage) GetPushTiming() *TimeSpan

func (*BuiltImage) ProtoMessage

func (*BuiltImage) ProtoMessage()

func (*BuiltImage) Reset

func (m *BuiltImage) Reset()

func (*BuiltImage) String

func (m *BuiltImage) String() string

func (*BuiltImage) XXX_DiscardUnknown

func (m *BuiltImage) XXX_DiscardUnknown()

func (*BuiltImage) XXX_Marshal

func (m *BuiltImage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BuiltImage) XXX_Merge

func (m *BuiltImage) XXX_Merge(src proto.Message)

func (*BuiltImage) XXX_Size

func (m *BuiltImage) XXX_Size() int

func (*BuiltImage) XXX_Unmarshal

func (m *BuiltImage) XXX_Unmarshal(b []byte) error

type CancelBuildRequest

type CancelBuildRequest struct {
	// ID of the project.
	ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// ID of the build.
	Id                   string   `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request to cancel an ongoing build.

func (*CancelBuildRequest) Descriptor

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

func (*CancelBuildRequest) GetId

func (m *CancelBuildRequest) GetId() string

func (*CancelBuildRequest) GetProjectId

func (m *CancelBuildRequest) GetProjectId() string

func (*CancelBuildRequest) ProtoMessage

func (*CancelBuildRequest) ProtoMessage()

func (*CancelBuildRequest) Reset

func (m *CancelBuildRequest) Reset()

func (*CancelBuildRequest) String

func (m *CancelBuildRequest) String() string

func (*CancelBuildRequest) XXX_DiscardUnknown

func (m *CancelBuildRequest) XXX_DiscardUnknown()

func (*CancelBuildRequest) XXX_Marshal

func (m *CancelBuildRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CancelBuildRequest) XXX_Merge

func (m *CancelBuildRequest) XXX_Merge(src proto.Message)

func (*CancelBuildRequest) XXX_Size

func (m *CancelBuildRequest) XXX_Size() int

func (*CancelBuildRequest) XXX_Unmarshal

func (m *CancelBuildRequest) XXX_Unmarshal(b []byte) error

type CloudBuildClient

type CloudBuildClient interface {
	// Starts a build with the specified configuration.
	//
	// This method returns a long-running `Operation`, which includes the build
	// ID. Pass the build ID to `GetBuild` to determine the build status (such as
	// `SUCCESS` or `FAILURE`).
	CreateBuild(ctx context.Context, in *CreateBuildRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
	// Returns information about a previously requested build.
	//
	// The `Build` that is returned includes its status (such as `SUCCESS`,
	// `FAILURE`, or `WORKING`), and timing information.
	GetBuild(ctx context.Context, in *GetBuildRequest, opts ...grpc.CallOption) (*Build, error)
	// Lists previously requested builds.
	//
	// Previously requested builds may still be in-progress, or may have finished
	// successfully or unsuccessfully.
	ListBuilds(ctx context.Context, in *ListBuildsRequest, opts ...grpc.CallOption) (*ListBuildsResponse, error)
	// Cancels a build in progress.
	CancelBuild(ctx context.Context, in *CancelBuildRequest, opts ...grpc.CallOption) (*Build, error)
	// Creates a new build based on the specified build.
	//
	// This method creates a new build using the original build request, which may
	// or may not result in an identical build.
	//
	// For triggered builds:
	//
	// * Triggered builds resolve to a precise revision; therefore a retry of a
	// triggered build will result in a build that uses the same revision.
	//
	// For non-triggered builds that specify `RepoSource`:
	//
	// * If the original build built from the tip of a branch, the retried build
	// will build from the tip of that branch, which may not be the same revision
	// as the original build.
	// * If the original build specified a commit sha or revision ID, the retried
	// build will use the identical source.
	//
	// For builds that specify `StorageSource`:
	//
	// * If the original build pulled source from Google Cloud Storage without
	// specifying the generation of the object, the new build will use the current
	// object, which may be different from the original build source.
	// * If the original build pulled source from Cloud Storage and specified the
	// generation of the object, the new build will attempt to use the same
	// object, which may or may not be available depending on the bucket's
	// lifecycle management settings.
	RetryBuild(ctx context.Context, in *RetryBuildRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
	// Creates a new `BuildTrigger`.
	//
	// This API is experimental.
	CreateBuildTrigger(ctx context.Context, in *CreateBuildTriggerRequest, opts ...grpc.CallOption) (*BuildTrigger, error)
	// Returns information about a `BuildTrigger`.
	//
	// This API is experimental.
	GetBuildTrigger(ctx context.Context, in *GetBuildTriggerRequest, opts ...grpc.CallOption) (*BuildTrigger, error)
	// Lists existing `BuildTrigger`s.
	//
	// This API is experimental.
	ListBuildTriggers(ctx context.Context, in *ListBuildTriggersRequest, opts ...grpc.CallOption) (*ListBuildTriggersResponse, error)
	// Deletes a `BuildTrigger` by its project ID and trigger ID.
	//
	// This API is experimental.
	DeleteBuildTrigger(ctx context.Context, in *DeleteBuildTriggerRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	// Updates a `BuildTrigger` by its project ID and trigger ID.
	//
	// This API is experimental.
	UpdateBuildTrigger(ctx context.Context, in *UpdateBuildTriggerRequest, opts ...grpc.CallOption) (*BuildTrigger, error)
	// Runs a `BuildTrigger` at a particular source revision.
	RunBuildTrigger(ctx context.Context, in *RunBuildTriggerRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
}

CloudBuildClient is the client API for CloudBuild service.

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

func NewCloudBuildClient

func NewCloudBuildClient(cc *grpc.ClientConn) CloudBuildClient

type CloudBuildServer

type CloudBuildServer interface {
	// Starts a build with the specified configuration.
	//
	// This method returns a long-running `Operation`, which includes the build
	// ID. Pass the build ID to `GetBuild` to determine the build status (such as
	// `SUCCESS` or `FAILURE`).
	CreateBuild(context.Context, *CreateBuildRequest) (*longrunning.Operation, error)
	// Returns information about a previously requested build.
	//
	// The `Build` that is returned includes its status (such as `SUCCESS`,
	// `FAILURE`, or `WORKING`), and timing information.
	GetBuild(context.Context, *GetBuildRequest) (*Build, error)
	// Lists previously requested builds.
	//
	// Previously requested builds may still be in-progress, or may have finished
	// successfully or unsuccessfully.
	ListBuilds(context.Context, *ListBuildsRequest) (*ListBuildsResponse, error)
	// Cancels a build in progress.
	CancelBuild(context.Context, *CancelBuildRequest) (*Build, error)
	// Creates a new build based on the specified build.
	//
	// This method creates a new build using the original build request, which may
	// or may not result in an identical build.
	//
	// For triggered builds:
	//
	// * Triggered builds resolve to a precise revision; therefore a retry of a
	// triggered build will result in a build that uses the same revision.
	//
	// For non-triggered builds that specify `RepoSource`:
	//
	// * If the original build built from the tip of a branch, the retried build
	// will build from the tip of that branch, which may not be the same revision
	// as the original build.
	// * If the original build specified a commit sha or revision ID, the retried
	// build will use the identical source.
	//
	// For builds that specify `StorageSource`:
	//
	// * If the original build pulled source from Google Cloud Storage without
	// specifying the generation of the object, the new build will use the current
	// object, which may be different from the original build source.
	// * If the original build pulled source from Cloud Storage and specified the
	// generation of the object, the new build will attempt to use the same
	// object, which may or may not be available depending on the bucket's
	// lifecycle management settings.
	RetryBuild(context.Context, *RetryBuildRequest) (*longrunning.Operation, error)
	// Creates a new `BuildTrigger`.
	//
	// This API is experimental.
	CreateBuildTrigger(context.Context, *CreateBuildTriggerRequest) (*BuildTrigger, error)
	// Returns information about a `BuildTrigger`.
	//
	// This API is experimental.
	GetBuildTrigger(context.Context, *GetBuildTriggerRequest) (*BuildTrigger, error)
	// Lists existing `BuildTrigger`s.
	//
	// This API is experimental.
	ListBuildTriggers(context.Context, *ListBuildTriggersRequest) (*ListBuildTriggersResponse, error)
	// Deletes a `BuildTrigger` by its project ID and trigger ID.
	//
	// This API is experimental.
	DeleteBuildTrigger(context.Context, *DeleteBuildTriggerRequest) (*empty.Empty, error)
	// Updates a `BuildTrigger` by its project ID and trigger ID.
	//
	// This API is experimental.
	UpdateBuildTrigger(context.Context, *UpdateBuildTriggerRequest) (*BuildTrigger, error)
	// Runs a `BuildTrigger` at a particular source revision.
	RunBuildTrigger(context.Context, *RunBuildTriggerRequest) (*longrunning.Operation, error)
}

CloudBuildServer is the server API for CloudBuild service.

type CreateBuildRequest

type CreateBuildRequest struct {
	// ID of the project.
	ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// Build resource to create.
	Build                *Build   `protobuf:"bytes,2,opt,name=build,proto3" json:"build,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request to create a new build.

func (*CreateBuildRequest) Descriptor

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

func (*CreateBuildRequest) GetBuild

func (m *CreateBuildRequest) GetBuild() *Build

func (*CreateBuildRequest) GetProjectId

func (m *CreateBuildRequest) GetProjectId() string

func (*CreateBuildRequest) ProtoMessage

func (*CreateBuildRequest) ProtoMessage()

func (*CreateBuildRequest) Reset

func (m *CreateBuildRequest) Reset()

func (*CreateBuildRequest) String

func (m *CreateBuildRequest) String() string

func (*CreateBuildRequest) XXX_DiscardUnknown

func (m *CreateBuildRequest) XXX_DiscardUnknown()

func (*CreateBuildRequest) XXX_Marshal

func (m *CreateBuildRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateBuildRequest) XXX_Merge

func (m *CreateBuildRequest) XXX_Merge(src proto.Message)

func (*CreateBuildRequest) XXX_Size

func (m *CreateBuildRequest) XXX_Size() int

func (*CreateBuildRequest) XXX_Unmarshal

func (m *CreateBuildRequest) XXX_Unmarshal(b []byte) error

type CreateBuildTriggerRequest

type CreateBuildTriggerRequest struct {
	// ID of the project for which to configure automatic builds.
	ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// `BuildTrigger` to create.
	Trigger              *BuildTrigger `protobuf:"bytes,2,opt,name=trigger,proto3" json:"trigger,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

Request to create a new `BuildTrigger`.

func (*CreateBuildTriggerRequest) Descriptor

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

func (*CreateBuildTriggerRequest) GetProjectId

func (m *CreateBuildTriggerRequest) GetProjectId() string

func (*CreateBuildTriggerRequest) GetTrigger

func (m *CreateBuildTriggerRequest) GetTrigger() *BuildTrigger

func (*CreateBuildTriggerRequest) ProtoMessage

func (*CreateBuildTriggerRequest) ProtoMessage()

func (*CreateBuildTriggerRequest) Reset

func (m *CreateBuildTriggerRequest) Reset()

func (*CreateBuildTriggerRequest) String

func (m *CreateBuildTriggerRequest) String() string

func (*CreateBuildTriggerRequest) XXX_DiscardUnknown

func (m *CreateBuildTriggerRequest) XXX_DiscardUnknown()

func (*CreateBuildTriggerRequest) XXX_Marshal

func (m *CreateBuildTriggerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateBuildTriggerRequest) XXX_Merge

func (m *CreateBuildTriggerRequest) XXX_Merge(src proto.Message)

func (*CreateBuildTriggerRequest) XXX_Size

func (m *CreateBuildTriggerRequest) XXX_Size() int

func (*CreateBuildTriggerRequest) XXX_Unmarshal

func (m *CreateBuildTriggerRequest) XXX_Unmarshal(b []byte) error

type DeleteBuildTriggerRequest

type DeleteBuildTriggerRequest struct {
	// ID of the project that owns the trigger.
	ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// ID of the `BuildTrigger` to delete.
	TriggerId            string   `protobuf:"bytes,2,opt,name=trigger_id,json=triggerId,proto3" json:"trigger_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request to delete a `BuildTrigger`.

func (*DeleteBuildTriggerRequest) Descriptor

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

func (*DeleteBuildTriggerRequest) GetProjectId

func (m *DeleteBuildTriggerRequest) GetProjectId() string

func (*DeleteBuildTriggerRequest) GetTriggerId

func (m *DeleteBuildTriggerRequest) GetTriggerId() string

func (*DeleteBuildTriggerRequest) ProtoMessage

func (*DeleteBuildTriggerRequest) ProtoMessage()

func (*DeleteBuildTriggerRequest) Reset

func (m *DeleteBuildTriggerRequest) Reset()

func (*DeleteBuildTriggerRequest) String

func (m *DeleteBuildTriggerRequest) String() string

func (*DeleteBuildTriggerRequest) XXX_DiscardUnknown

func (m *DeleteBuildTriggerRequest) XXX_DiscardUnknown()

func (*DeleteBuildTriggerRequest) XXX_Marshal

func (m *DeleteBuildTriggerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteBuildTriggerRequest) XXX_Merge

func (m *DeleteBuildTriggerRequest) XXX_Merge(src proto.Message)

func (*DeleteBuildTriggerRequest) XXX_Size

func (m *DeleteBuildTriggerRequest) XXX_Size() int

func (*DeleteBuildTriggerRequest) XXX_Unmarshal

func (m *DeleteBuildTriggerRequest) XXX_Unmarshal(b []byte) error

type FileHashes

type FileHashes struct {
	// Collection of file hashes.
	FileHash             []*Hash  `protobuf:"bytes,1,rep,name=file_hash,json=fileHash,proto3" json:"file_hash,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build.

func (*FileHashes) Descriptor

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

func (*FileHashes) GetFileHash

func (m *FileHashes) GetFileHash() []*Hash

func (*FileHashes) ProtoMessage

func (*FileHashes) ProtoMessage()

func (*FileHashes) Reset

func (m *FileHashes) Reset()

func (*FileHashes) String

func (m *FileHashes) String() string

func (*FileHashes) XXX_DiscardUnknown

func (m *FileHashes) XXX_DiscardUnknown()

func (*FileHashes) XXX_Marshal

func (m *FileHashes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FileHashes) XXX_Merge

func (m *FileHashes) XXX_Merge(src proto.Message)

func (*FileHashes) XXX_Size

func (m *FileHashes) XXX_Size() int

func (*FileHashes) XXX_Unmarshal

func (m *FileHashes) XXX_Unmarshal(b []byte) error

type GetBuildRequest

type GetBuildRequest struct {
	// ID of the project.
	ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// ID of the build.
	Id                   string   `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request to get a build.

func (*GetBuildRequest) Descriptor

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

func (*GetBuildRequest) GetId

func (m *GetBuildRequest) GetId() string

func (*GetBuildRequest) GetProjectId

func (m *GetBuildRequest) GetProjectId() string

func (*GetBuildRequest) ProtoMessage

func (*GetBuildRequest) ProtoMessage()

func (*GetBuildRequest) Reset

func (m *GetBuildRequest) Reset()

func (*GetBuildRequest) String

func (m *GetBuildRequest) String() string

func (*GetBuildRequest) XXX_DiscardUnknown

func (m *GetBuildRequest) XXX_DiscardUnknown()

func (*GetBuildRequest) XXX_Marshal

func (m *GetBuildRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetBuildRequest) XXX_Merge

func (m *GetBuildRequest) XXX_Merge(src proto.Message)

func (*GetBuildRequest) XXX_Size

func (m *GetBuildRequest) XXX_Size() int

func (*GetBuildRequest) XXX_Unmarshal

func (m *GetBuildRequest) XXX_Unmarshal(b []byte) error

type GetBuildTriggerRequest

type GetBuildTriggerRequest struct {
	// ID of the project that owns the trigger.
	ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// ID of the `BuildTrigger` to get.
	TriggerId            string   `protobuf:"bytes,2,opt,name=trigger_id,json=triggerId,proto3" json:"trigger_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Returns the `BuildTrigger` with the specified ID.

func (*GetBuildTriggerRequest) Descriptor

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

func (*GetBuildTriggerRequest) GetProjectId

func (m *GetBuildTriggerRequest) GetProjectId() string

func (*GetBuildTriggerRequest) GetTriggerId

func (m *GetBuildTriggerRequest) GetTriggerId() string

func (*GetBuildTriggerRequest) ProtoMessage

func (*GetBuildTriggerRequest) ProtoMessage()

func (*GetBuildTriggerRequest) Reset

func (m *GetBuildTriggerRequest) Reset()

func (*GetBuildTriggerRequest) String

func (m *GetBuildTriggerRequest) String() string

func (*GetBuildTriggerRequest) XXX_DiscardUnknown

func (m *GetBuildTriggerRequest) XXX_DiscardUnknown()

func (*GetBuildTriggerRequest) XXX_Marshal

func (m *GetBuildTriggerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetBuildTriggerRequest) XXX_Merge

func (m *GetBuildTriggerRequest) XXX_Merge(src proto.Message)

func (*GetBuildTriggerRequest) XXX_Size

func (m *GetBuildTriggerRequest) XXX_Size() int

func (*GetBuildTriggerRequest) XXX_Unmarshal

func (m *GetBuildTriggerRequest) XXX_Unmarshal(b []byte) error

type Hash

type Hash struct {
	// The type of hash that was performed.
	Type Hash_HashType `protobuf:"varint,1,opt,name=type,proto3,enum=google.devtools.cloudbuild.v1.Hash_HashType" json:"type,omitempty"`
	// The hash value.
	Value                []byte   `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Container message for hash values.

func (*Hash) Descriptor

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

func (*Hash) GetType

func (m *Hash) GetType() Hash_HashType

func (*Hash) GetValue

func (m *Hash) GetValue() []byte

func (*Hash) ProtoMessage

func (*Hash) ProtoMessage()

func (*Hash) Reset

func (m *Hash) Reset()

func (*Hash) String

func (m *Hash) String() string

func (*Hash) XXX_DiscardUnknown

func (m *Hash) XXX_DiscardUnknown()

func (*Hash) XXX_Marshal

func (m *Hash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Hash) XXX_Merge

func (m *Hash) XXX_Merge(src proto.Message)

func (*Hash) XXX_Size

func (m *Hash) XXX_Size() int

func (*Hash) XXX_Unmarshal

func (m *Hash) XXX_Unmarshal(b []byte) error

type Hash_HashType

type Hash_HashType int32

Specifies the hash algorithm, if any.

const (
	// No hash requested.
	Hash_NONE Hash_HashType = 0
	// Use a sha256 hash.
	Hash_SHA256 Hash_HashType = 1
	// Use a md5 hash.
	Hash_MD5 Hash_HashType = 2
)

func (Hash_HashType) EnumDescriptor

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

func (Hash_HashType) String

func (x Hash_HashType) String() string

type ListBuildTriggersRequest

type ListBuildTriggersRequest struct {
	// ID of the project for which to list BuildTriggers.
	ProjectId            string   `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request to list existing `BuildTriggers`.

func (*ListBuildTriggersRequest) Descriptor

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

func (*ListBuildTriggersRequest) GetProjectId

func (m *ListBuildTriggersRequest) GetProjectId() string

func (*ListBuildTriggersRequest) ProtoMessage

func (*ListBuildTriggersRequest) ProtoMessage()

func (*ListBuildTriggersRequest) Reset

func (m *ListBuildTriggersRequest) Reset()

func (*ListBuildTriggersRequest) String

func (m *ListBuildTriggersRequest) String() string

func (*ListBuildTriggersRequest) XXX_DiscardUnknown

func (m *ListBuildTriggersRequest) XXX_DiscardUnknown()

func (*ListBuildTriggersRequest) XXX_Marshal

func (m *ListBuildTriggersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListBuildTriggersRequest) XXX_Merge

func (m *ListBuildTriggersRequest) XXX_Merge(src proto.Message)

func (*ListBuildTriggersRequest) XXX_Size

func (m *ListBuildTriggersRequest) XXX_Size() int

func (*ListBuildTriggersRequest) XXX_Unmarshal

func (m *ListBuildTriggersRequest) XXX_Unmarshal(b []byte) error

type ListBuildTriggersResponse

type ListBuildTriggersResponse struct {
	// `BuildTriggers` for the project, sorted by `create_time` descending.
	Triggers             []*BuildTrigger `protobuf:"bytes,1,rep,name=triggers,proto3" json:"triggers,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

Response containing existing `BuildTriggers`.

func (*ListBuildTriggersResponse) Descriptor

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

func (*ListBuildTriggersResponse) GetTriggers

func (m *ListBuildTriggersResponse) GetTriggers() []*BuildTrigger

func (*ListBuildTriggersResponse) ProtoMessage

func (*ListBuildTriggersResponse) ProtoMessage()

func (*ListBuildTriggersResponse) Reset

func (m *ListBuildTriggersResponse) Reset()

func (*ListBuildTriggersResponse) String

func (m *ListBuildTriggersResponse) String() string

func (*ListBuildTriggersResponse) XXX_DiscardUnknown

func (m *ListBuildTriggersResponse) XXX_DiscardUnknown()

func (*ListBuildTriggersResponse) XXX_Marshal

func (m *ListBuildTriggersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListBuildTriggersResponse) XXX_Merge

func (m *ListBuildTriggersResponse) XXX_Merge(src proto.Message)

func (*ListBuildTriggersResponse) XXX_Size

func (m *ListBuildTriggersResponse) XXX_Size() int

func (*ListBuildTriggersResponse) XXX_Unmarshal

func (m *ListBuildTriggersResponse) XXX_Unmarshal(b []byte) error

type ListBuildsRequest

type ListBuildsRequest struct {
	// ID of the project.
	ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// Number of results to return in the list.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Token to provide to skip to a particular spot in the list.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// The raw filter text to constrain the results.
	Filter               string   `protobuf:"bytes,8,opt,name=filter,proto3" json:"filter,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request to list builds.

func (*ListBuildsRequest) Descriptor

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

func (*ListBuildsRequest) GetFilter

func (m *ListBuildsRequest) GetFilter() string

func (*ListBuildsRequest) GetPageSize

func (m *ListBuildsRequest) GetPageSize() int32

func (*ListBuildsRequest) GetPageToken

func (m *ListBuildsRequest) GetPageToken() string

func (*ListBuildsRequest) GetProjectId

func (m *ListBuildsRequest) GetProjectId() string

func (*ListBuildsRequest) ProtoMessage

func (*ListBuildsRequest) ProtoMessage()

func (*ListBuildsRequest) Reset

func (m *ListBuildsRequest) Reset()

func (*ListBuildsRequest) String

func (m *ListBuildsRequest) String() string

func (*ListBuildsRequest) XXX_DiscardUnknown

func (m *ListBuildsRequest) XXX_DiscardUnknown()

func (*ListBuildsRequest) XXX_Marshal

func (m *ListBuildsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListBuildsRequest) XXX_Merge

func (m *ListBuildsRequest) XXX_Merge(src proto.Message)

func (*ListBuildsRequest) XXX_Size

func (m *ListBuildsRequest) XXX_Size() int

func (*ListBuildsRequest) XXX_Unmarshal

func (m *ListBuildsRequest) XXX_Unmarshal(b []byte) error

type ListBuildsResponse

type ListBuildsResponse struct {
	// Builds will be sorted by `create_time`, descending.
	Builds []*Build `protobuf:"bytes,1,rep,name=builds,proto3" json:"builds,omitempty"`
	// Token to receive the next page of results.
	NextPageToken        string   `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Response including listed builds.

func (*ListBuildsResponse) Descriptor

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

func (*ListBuildsResponse) GetBuilds

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

func (*ListBuildsResponse) GetNextPageToken

func (m *ListBuildsResponse) GetNextPageToken() string

func (*ListBuildsResponse) ProtoMessage

func (*ListBuildsResponse) ProtoMessage()

func (*ListBuildsResponse) Reset

func (m *ListBuildsResponse) Reset()

func (*ListBuildsResponse) String

func (m *ListBuildsResponse) String() string

func (*ListBuildsResponse) XXX_DiscardUnknown

func (m *ListBuildsResponse) XXX_DiscardUnknown()

func (*ListBuildsResponse) XXX_Marshal

func (m *ListBuildsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListBuildsResponse) XXX_Merge

func (m *ListBuildsResponse) XXX_Merge(src proto.Message)

func (*ListBuildsResponse) XXX_Size

func (m *ListBuildsResponse) XXX_Size() int

func (*ListBuildsResponse) XXX_Unmarshal

func (m *ListBuildsResponse) XXX_Unmarshal(b []byte) error

type RepoSource

type RepoSource struct {
	// ID of the project that owns the Cloud Source Repository. If omitted, the
	// project ID requesting the build is assumed.
	ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// Name of the Cloud Source Repository. If omitted, the name "default" is
	// assumed.
	RepoName string `protobuf:"bytes,2,opt,name=repo_name,json=repoName,proto3" json:"repo_name,omitempty"`
	// A revision within the Cloud Source Repository must be specified in
	// one of these ways.
	//
	// Types that are valid to be assigned to Revision:
	//	*RepoSource_BranchName
	//	*RepoSource_TagName
	//	*RepoSource_CommitSha
	Revision isRepoSource_Revision `protobuf_oneof:"revision"`
	// Directory, relative to the source root, in which to run the build.
	//
	// This must be a relative path. If a step's `dir` is specified and is an
	// absolute path, this value is ignored for that step's execution.
	Dir                  string   `protobuf:"bytes,7,opt,name=dir,proto3" json:"dir,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Location of the source in a Google Cloud Source Repository.

func (*RepoSource) Descriptor

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

func (*RepoSource) GetBranchName

func (m *RepoSource) GetBranchName() string

func (*RepoSource) GetCommitSha

func (m *RepoSource) GetCommitSha() string

func (*RepoSource) GetDir

func (m *RepoSource) GetDir() string

func (*RepoSource) GetProjectId

func (m *RepoSource) GetProjectId() string

func (*RepoSource) GetRepoName

func (m *RepoSource) GetRepoName() string

func (*RepoSource) GetRevision

func (m *RepoSource) GetRevision() isRepoSource_Revision

func (*RepoSource) GetTagName

func (m *RepoSource) GetTagName() string

func (*RepoSource) ProtoMessage

func (*RepoSource) ProtoMessage()

func (*RepoSource) Reset

func (m *RepoSource) Reset()

func (*RepoSource) String

func (m *RepoSource) String() string

func (*RepoSource) XXX_DiscardUnknown

func (m *RepoSource) XXX_DiscardUnknown()

func (*RepoSource) XXX_Marshal

func (m *RepoSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RepoSource) XXX_Merge

func (m *RepoSource) XXX_Merge(src proto.Message)

func (*RepoSource) XXX_OneofFuncs

func (*RepoSource) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*RepoSource) XXX_Size

func (m *RepoSource) XXX_Size() int

func (*RepoSource) XXX_Unmarshal

func (m *RepoSource) XXX_Unmarshal(b []byte) error

type RepoSource_BranchName

type RepoSource_BranchName struct {
	BranchName string `protobuf:"bytes,3,opt,name=branch_name,json=branchName,proto3,oneof"`
}

type RepoSource_CommitSha

type RepoSource_CommitSha struct {
	CommitSha string `protobuf:"bytes,5,opt,name=commit_sha,json=commitSha,proto3,oneof"`
}

type RepoSource_TagName

type RepoSource_TagName struct {
	TagName string `protobuf:"bytes,4,opt,name=tag_name,json=tagName,proto3,oneof"`
}

type Results

type Results struct {
	// Container images that were built as a part of the build.
	Images []*BuiltImage `protobuf:"bytes,2,rep,name=images,proto3" json:"images,omitempty"`
	// List of build step digests, in the order corresponding to build step
	// indices.
	BuildStepImages []string `protobuf:"bytes,3,rep,name=build_step_images,json=buildStepImages,proto3" json:"build_step_images,omitempty"`
	// Path to the artifact manifest. Only populated when artifacts are uploaded.
	ArtifactManifest string `protobuf:"bytes,4,opt,name=artifact_manifest,json=artifactManifest,proto3" json:"artifact_manifest,omitempty"`
	// Number of artifacts uploaded. Only populated when artifacts are uploaded.
	NumArtifacts int64 `protobuf:"varint,5,opt,name=num_artifacts,json=numArtifacts,proto3" json:"num_artifacts,omitempty"`
	// List of build step outputs, produced by builder images, in the order
	// corresponding to build step indices.
	//
	// [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders)
	// can produce this output by writing to `$BUILDER_OUTPUT/output`.
	// Only the first 4KB of data is stored.
	BuildStepOutputs     [][]byte `protobuf:"bytes,6,rep,name=build_step_outputs,json=buildStepOutputs,proto3" json:"build_step_outputs,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Artifacts created by the build pipeline.

func (*Results) Descriptor

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

func (*Results) GetArtifactManifest

func (m *Results) GetArtifactManifest() string

func (*Results) GetBuildStepImages

func (m *Results) GetBuildStepImages() []string

func (*Results) GetBuildStepOutputs

func (m *Results) GetBuildStepOutputs() [][]byte

func (*Results) GetImages

func (m *Results) GetImages() []*BuiltImage

func (*Results) GetNumArtifacts

func (m *Results) GetNumArtifacts() int64

func (*Results) ProtoMessage

func (*Results) ProtoMessage()

func (*Results) Reset

func (m *Results) Reset()

func (*Results) String

func (m *Results) String() string

func (*Results) XXX_DiscardUnknown

func (m *Results) XXX_DiscardUnknown()

func (*Results) XXX_Marshal

func (m *Results) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Results) XXX_Merge

func (m *Results) XXX_Merge(src proto.Message)

func (*Results) XXX_Size

func (m *Results) XXX_Size() int

func (*Results) XXX_Unmarshal

func (m *Results) XXX_Unmarshal(b []byte) error

type RetryBuildRequest

type RetryBuildRequest struct {
	// ID of the project.
	ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// Build ID of the original build.
	Id                   string   `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Specifies a build to retry.

func (*RetryBuildRequest) Descriptor

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

func (*RetryBuildRequest) GetId

func (m *RetryBuildRequest) GetId() string

func (*RetryBuildRequest) GetProjectId

func (m *RetryBuildRequest) GetProjectId() string

func (*RetryBuildRequest) ProtoMessage

func (*RetryBuildRequest) ProtoMessage()

func (*RetryBuildRequest) Reset

func (m *RetryBuildRequest) Reset()

func (*RetryBuildRequest) String

func (m *RetryBuildRequest) String() string

func (*RetryBuildRequest) XXX_DiscardUnknown

func (m *RetryBuildRequest) XXX_DiscardUnknown()

func (*RetryBuildRequest) XXX_Marshal

func (m *RetryBuildRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RetryBuildRequest) XXX_Merge

func (m *RetryBuildRequest) XXX_Merge(src proto.Message)

func (*RetryBuildRequest) XXX_Size

func (m *RetryBuildRequest) XXX_Size() int

func (*RetryBuildRequest) XXX_Unmarshal

func (m *RetryBuildRequest) XXX_Unmarshal(b []byte) error

type RunBuildTriggerRequest

type RunBuildTriggerRequest struct {
	// ID of the project.
	ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// ID of the trigger.
	TriggerId string `protobuf:"bytes,2,opt,name=trigger_id,json=triggerId,proto3" json:"trigger_id,omitempty"`
	// Source to build against this trigger.
	Source               *RepoSource `protobuf:"bytes,3,opt,name=source,proto3" json:"source,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

Specifies a build trigger to run and the source to use.

func (*RunBuildTriggerRequest) Descriptor

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

func (*RunBuildTriggerRequest) GetProjectId

func (m *RunBuildTriggerRequest) GetProjectId() string

func (*RunBuildTriggerRequest) GetSource

func (m *RunBuildTriggerRequest) GetSource() *RepoSource

func (*RunBuildTriggerRequest) GetTriggerId

func (m *RunBuildTriggerRequest) GetTriggerId() string

func (*RunBuildTriggerRequest) ProtoMessage

func (*RunBuildTriggerRequest) ProtoMessage()

func (*RunBuildTriggerRequest) Reset

func (m *RunBuildTriggerRequest) Reset()

func (*RunBuildTriggerRequest) String

func (m *RunBuildTriggerRequest) String() string

func (*RunBuildTriggerRequest) XXX_DiscardUnknown

func (m *RunBuildTriggerRequest) XXX_DiscardUnknown()

func (*RunBuildTriggerRequest) XXX_Marshal

func (m *RunBuildTriggerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RunBuildTriggerRequest) XXX_Merge

func (m *RunBuildTriggerRequest) XXX_Merge(src proto.Message)

func (*RunBuildTriggerRequest) XXX_Size

func (m *RunBuildTriggerRequest) XXX_Size() int

func (*RunBuildTriggerRequest) XXX_Unmarshal

func (m *RunBuildTriggerRequest) XXX_Unmarshal(b []byte) error

type Secret

type Secret struct {
	// Cloud KMS key name to use to decrypt these envs.
	KmsKeyName string `protobuf:"bytes,1,opt,name=kms_key_name,json=kmsKeyName,proto3" json:"kms_key_name,omitempty"`
	// Map of environment variable name to its encrypted value.
	//
	// Secret environment variables must be unique across all of a build's
	// secrets, and must be used by at least one build step. Values can be at most
	// 64 KB in size. There can be at most 100 secret values across all of a
	// build's secrets.
	SecretEnv            map[string][]byte `` /* 176-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

Pairs a set of secret environment variables containing encrypted values with the Cloud KMS key to use to decrypt the value.

func (*Secret) Descriptor

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

func (*Secret) GetKmsKeyName

func (m *Secret) GetKmsKeyName() string

func (*Secret) GetSecretEnv

func (m *Secret) GetSecretEnv() map[string][]byte

func (*Secret) ProtoMessage

func (*Secret) ProtoMessage()

func (*Secret) Reset

func (m *Secret) Reset()

func (*Secret) String

func (m *Secret) String() string

func (*Secret) XXX_DiscardUnknown

func (m *Secret) XXX_DiscardUnknown()

func (*Secret) XXX_Marshal

func (m *Secret) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Secret) XXX_Merge

func (m *Secret) XXX_Merge(src proto.Message)

func (*Secret) XXX_Size

func (m *Secret) XXX_Size() int

func (*Secret) XXX_Unmarshal

func (m *Secret) XXX_Unmarshal(b []byte) error

type Source

type Source struct {
	// Location of source.
	//
	// Types that are valid to be assigned to Source:
	//	*Source_StorageSource
	//	*Source_RepoSource
	Source               isSource_Source `protobuf_oneof:"source"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

Location of the source in a supported storage service.

func (*Source) Descriptor

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

func (*Source) GetRepoSource

func (m *Source) GetRepoSource() *RepoSource

func (*Source) GetSource

func (m *Source) GetSource() isSource_Source

func (*Source) GetStorageSource

func (m *Source) GetStorageSource() *StorageSource

func (*Source) ProtoMessage

func (*Source) ProtoMessage()

func (*Source) Reset

func (m *Source) Reset()

func (*Source) String

func (m *Source) String() string

func (*Source) XXX_DiscardUnknown

func (m *Source) XXX_DiscardUnknown()

func (*Source) XXX_Marshal

func (m *Source) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Source) XXX_Merge

func (m *Source) XXX_Merge(src proto.Message)

func (*Source) XXX_OneofFuncs

func (*Source) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*Source) XXX_Size

func (m *Source) XXX_Size() int

func (*Source) XXX_Unmarshal

func (m *Source) XXX_Unmarshal(b []byte) error

type SourceProvenance

type SourceProvenance struct {
	// A copy of the build's `source.storage_source`, if exists, with any
	// generations resolved.
	ResolvedStorageSource *StorageSource `` /* 126-byte string literal not displayed */
	// A copy of the build's `source.repo_source`, if exists, with any
	// revisions resolved.
	ResolvedRepoSource *RepoSource `protobuf:"bytes,6,opt,name=resolved_repo_source,json=resolvedRepoSource,proto3" json:"resolved_repo_source,omitempty"`
	// Output only. Hash(es) of the build source, which can be used to verify that
	// the originalsource integrity was maintained in the build. Note that
	// `FileHashes` willonly be populated if `BuildOptions` has requested a
	// `SourceProvenanceHash`.
	//
	// The keys to this map are file paths used as build source and the values
	// contain the hash values for those files.
	//
	// If the build source came in a single package such as a gzipped tarfile
	// (`.tar.gz`), the `FileHash` will be for the single path to that file.
	FileHashes           map[string]*FileHashes `` /* 179-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
	XXX_unrecognized     []byte                 `json:"-"`
	XXX_sizecache        int32                  `json:"-"`
}

Provenance of the source. Ways to find the original source, or verify that some source was used for this build.

func (*SourceProvenance) Descriptor

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

func (*SourceProvenance) GetFileHashes

func (m *SourceProvenance) GetFileHashes() map[string]*FileHashes

func (*SourceProvenance) GetResolvedRepoSource

func (m *SourceProvenance) GetResolvedRepoSource() *RepoSource

func (*SourceProvenance) GetResolvedStorageSource

func (m *SourceProvenance) GetResolvedStorageSource() *StorageSource

func (*SourceProvenance) ProtoMessage

func (*SourceProvenance) ProtoMessage()

func (*SourceProvenance) Reset

func (m *SourceProvenance) Reset()

func (*SourceProvenance) String

func (m *SourceProvenance) String() string

func (*SourceProvenance) XXX_DiscardUnknown

func (m *SourceProvenance) XXX_DiscardUnknown()

func (*SourceProvenance) XXX_Marshal

func (m *SourceProvenance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SourceProvenance) XXX_Merge

func (m *SourceProvenance) XXX_Merge(src proto.Message)

func (*SourceProvenance) XXX_Size

func (m *SourceProvenance) XXX_Size() int

func (*SourceProvenance) XXX_Unmarshal

func (m *SourceProvenance) XXX_Unmarshal(b []byte) error

type Source_RepoSource

type Source_RepoSource struct {
	RepoSource *RepoSource `protobuf:"bytes,3,opt,name=repo_source,json=repoSource,proto3,oneof"`
}

type Source_StorageSource

type Source_StorageSource struct {
	StorageSource *StorageSource `protobuf:"bytes,2,opt,name=storage_source,json=storageSource,proto3,oneof"`
}

type StorageSource

type StorageSource struct {
	// Google Cloud Storage bucket containing the source (see
	// [Bucket Name
	// Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
	Bucket string `protobuf:"bytes,1,opt,name=bucket,proto3" json:"bucket,omitempty"`
	// Google Cloud Storage object containing the source.
	//
	// This object must be a gzipped archive file (`.tar.gz`) containing source to
	// build.
	Object string `protobuf:"bytes,2,opt,name=object,proto3" json:"object,omitempty"`
	// Google Cloud Storage generation for the object. If the generation is
	// omitted, the latest generation will be used.
	Generation           int64    `protobuf:"varint,3,opt,name=generation,proto3" json:"generation,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Location of the source in an archive file in Google Cloud Storage.

func (*StorageSource) Descriptor

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

func (*StorageSource) GetBucket

func (m *StorageSource) GetBucket() string

func (*StorageSource) GetGeneration

func (m *StorageSource) GetGeneration() int64

func (*StorageSource) GetObject

func (m *StorageSource) GetObject() string

func (*StorageSource) ProtoMessage

func (*StorageSource) ProtoMessage()

func (*StorageSource) Reset

func (m *StorageSource) Reset()

func (*StorageSource) String

func (m *StorageSource) String() string

func (*StorageSource) XXX_DiscardUnknown

func (m *StorageSource) XXX_DiscardUnknown()

func (*StorageSource) XXX_Marshal

func (m *StorageSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StorageSource) XXX_Merge

func (m *StorageSource) XXX_Merge(src proto.Message)

func (*StorageSource) XXX_Size

func (m *StorageSource) XXX_Size() int

func (*StorageSource) XXX_Unmarshal

func (m *StorageSource) XXX_Unmarshal(b []byte) error

type TimeSpan

type TimeSpan struct {
	// Start of time span.
	StartTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	// End of time span.
	EndTime              *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

Start and end times for a build execution phase.

func (*TimeSpan) Descriptor

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

func (*TimeSpan) GetEndTime

func (m *TimeSpan) GetEndTime() *timestamp.Timestamp

func (*TimeSpan) GetStartTime

func (m *TimeSpan) GetStartTime() *timestamp.Timestamp

func (*TimeSpan) ProtoMessage

func (*TimeSpan) ProtoMessage()

func (*TimeSpan) Reset

func (m *TimeSpan) Reset()

func (*TimeSpan) String

func (m *TimeSpan) String() string

func (*TimeSpan) XXX_DiscardUnknown

func (m *TimeSpan) XXX_DiscardUnknown()

func (*TimeSpan) XXX_Marshal

func (m *TimeSpan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TimeSpan) XXX_Merge

func (m *TimeSpan) XXX_Merge(src proto.Message)

func (*TimeSpan) XXX_Size

func (m *TimeSpan) XXX_Size() int

func (*TimeSpan) XXX_Unmarshal

func (m *TimeSpan) XXX_Unmarshal(b []byte) error

type UpdateBuildTriggerRequest

type UpdateBuildTriggerRequest struct {
	// ID of the project that owns the trigger.
	ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// ID of the `BuildTrigger` to update.
	TriggerId string `protobuf:"bytes,2,opt,name=trigger_id,json=triggerId,proto3" json:"trigger_id,omitempty"`
	// `BuildTrigger` to update.
	Trigger              *BuildTrigger `protobuf:"bytes,3,opt,name=trigger,proto3" json:"trigger,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

Request to update an existing `BuildTrigger`.

func (*UpdateBuildTriggerRequest) Descriptor

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

func (*UpdateBuildTriggerRequest) GetProjectId

func (m *UpdateBuildTriggerRequest) GetProjectId() string

func (*UpdateBuildTriggerRequest) GetTrigger

func (m *UpdateBuildTriggerRequest) GetTrigger() *BuildTrigger

func (*UpdateBuildTriggerRequest) GetTriggerId

func (m *UpdateBuildTriggerRequest) GetTriggerId() string

func (*UpdateBuildTriggerRequest) ProtoMessage

func (*UpdateBuildTriggerRequest) ProtoMessage()

func (*UpdateBuildTriggerRequest) Reset

func (m *UpdateBuildTriggerRequest) Reset()

func (*UpdateBuildTriggerRequest) String

func (m *UpdateBuildTriggerRequest) String() string

func (*UpdateBuildTriggerRequest) XXX_DiscardUnknown

func (m *UpdateBuildTriggerRequest) XXX_DiscardUnknown()

func (*UpdateBuildTriggerRequest) XXX_Marshal

func (m *UpdateBuildTriggerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdateBuildTriggerRequest) XXX_Merge

func (m *UpdateBuildTriggerRequest) XXX_Merge(src proto.Message)

func (*UpdateBuildTriggerRequest) XXX_Size

func (m *UpdateBuildTriggerRequest) XXX_Size() int

func (*UpdateBuildTriggerRequest) XXX_Unmarshal

func (m *UpdateBuildTriggerRequest) XXX_Unmarshal(b []byte) error

type Volume

type Volume struct {
	// Name of the volume to mount.
	//
	// Volume names must be unique per build step and must be valid names for
	// Docker volumes. Each named volume must be used by at least two build steps.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Path at which to mount the volume.
	//
	// Paths must be absolute and cannot conflict with other volume paths on the
	// same build step or with certain reserved volume paths.
	Path                 string   `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.

func (*Volume) Descriptor

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

func (*Volume) GetName

func (m *Volume) GetName() string

func (*Volume) GetPath

func (m *Volume) GetPath() string

func (*Volume) ProtoMessage

func (*Volume) ProtoMessage()

func (*Volume) Reset

func (m *Volume) Reset()

func (*Volume) String

func (m *Volume) String() string

func (*Volume) XXX_DiscardUnknown

func (m *Volume) XXX_DiscardUnknown()

func (*Volume) XXX_Marshal

func (m *Volume) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Volume) XXX_Merge

func (m *Volume) XXX_Merge(src proto.Message)

func (*Volume) XXX_Size

func (m *Volume) XXX_Size() int

func (*Volume) XXX_Unmarshal

func (m *Volume) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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