Class Build

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloudbuild.v1.Build
All Implemented Interfaces:
BuildOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class Build extends com.google.protobuf.GeneratedMessage implements BuildOrBuilder
 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.
 - $PROJECT_NUMBER: the project number of the build.
 - $LOCATION: the location/region 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.
 
Protobuf type google.devtools.cloudbuild.v1.Build
See Also:
  • Field Details

  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getName

      public String getName()
       Output only. The 'Build' name with format:
       `projects/{project}/locations/{location}/builds/{build}`, where {build}
       is a unique identifier generated by the service.
       
      string name = 45 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getName in interface BuildOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Output only. The 'Build' name with format:
       `projects/{project}/locations/{location}/builds/{build}`, where {build}
       is a unique identifier generated by the service.
       
      string name = 45 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getNameBytes in interface BuildOrBuilder
      Returns:
      The bytes for name.
    • getId

      public String getId()
       Output only. Unique identifier of the build.
       
      string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getId in interface BuildOrBuilder
      Returns:
      The id.
    • getIdBytes

      public com.google.protobuf.ByteString getIdBytes()
       Output only. Unique identifier of the build.
       
      string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getIdBytes in interface BuildOrBuilder
      Returns:
      The bytes for id.
    • getProjectId

      public String getProjectId()
       Output only. ID of the project.
       
      string project_id = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getProjectId in interface BuildOrBuilder
      Returns:
      The projectId.
    • getProjectIdBytes

      public com.google.protobuf.ByteString getProjectIdBytes()
       Output only. ID of the project.
       
      string project_id = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getProjectIdBytes in interface BuildOrBuilder
      Returns:
      The bytes for projectId.
    • getStatusValue

      public int getStatusValue()
       Output only. Status of the build.
       
      .google.devtools.cloudbuild.v1.Build.Status status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStatusValue in interface BuildOrBuilder
      Returns:
      The enum numeric value on the wire for status.
    • getStatus

      public Build.Status getStatus()
       Output only. Status of the build.
       
      .google.devtools.cloudbuild.v1.Build.Status status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStatus in interface BuildOrBuilder
      Returns:
      The status.
    • getStatusDetail

      public String getStatusDetail()
       Output only. Customer-readable message about the current status.
       
      string status_detail = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStatusDetail in interface BuildOrBuilder
      Returns:
      The statusDetail.
    • getStatusDetailBytes

      public com.google.protobuf.ByteString getStatusDetailBytes()
       Output only. Customer-readable message about the current status.
       
      string status_detail = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStatusDetailBytes in interface BuildOrBuilder
      Returns:
      The bytes for statusDetail.
    • hasSource

      public boolean hasSource()
       Optional. The location of the source files to build.
       
      .google.devtools.cloudbuild.v1.Source source = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasSource in interface BuildOrBuilder
      Returns:
      Whether the source field is set.
    • getSource

      public Source getSource()
       Optional. The location of the source files to build.
       
      .google.devtools.cloudbuild.v1.Source source = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSource in interface BuildOrBuilder
      Returns:
      The source.
    • getSourceOrBuilder

      public SourceOrBuilder getSourceOrBuilder()
       Optional. The location of the source files to build.
       
      .google.devtools.cloudbuild.v1.Source source = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSourceOrBuilder in interface BuildOrBuilder
    • getStepsList

      public List<BuildStep> getStepsList()
       Required. The operations to be performed on the workspace.
       
      repeated .google.devtools.cloudbuild.v1.BuildStep steps = 11;
      Specified by:
      getStepsList in interface BuildOrBuilder
    • getStepsOrBuilderList

      public List<? extends BuildStepOrBuilder> getStepsOrBuilderList()
       Required. The operations to be performed on the workspace.
       
      repeated .google.devtools.cloudbuild.v1.BuildStep steps = 11;
      Specified by:
      getStepsOrBuilderList in interface BuildOrBuilder
    • getStepsCount

      public int getStepsCount()
       Required. The operations to be performed on the workspace.
       
      repeated .google.devtools.cloudbuild.v1.BuildStep steps = 11;
      Specified by:
      getStepsCount in interface BuildOrBuilder
    • getSteps

      public BuildStep getSteps(int index)
       Required. The operations to be performed on the workspace.
       
      repeated .google.devtools.cloudbuild.v1.BuildStep steps = 11;
      Specified by:
      getSteps in interface BuildOrBuilder
    • getStepsOrBuilder

      public BuildStepOrBuilder getStepsOrBuilder(int index)
       Required. The operations to be performed on the workspace.
       
      repeated .google.devtools.cloudbuild.v1.BuildStep steps = 11;
      Specified by:
      getStepsOrBuilder in interface BuildOrBuilder
    • hasResults

      public boolean hasResults()
       Output only. Results of the build.
       
      .google.devtools.cloudbuild.v1.Results results = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasResults in interface BuildOrBuilder
      Returns:
      Whether the results field is set.
    • getResults

      public Results getResults()
       Output only. Results of the build.
       
      .google.devtools.cloudbuild.v1.Results results = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getResults in interface BuildOrBuilder
      Returns:
      The results.
    • getResultsOrBuilder

      public ResultsOrBuilder getResultsOrBuilder()
       Output only. Results of the build.
       
      .google.devtools.cloudbuild.v1.Results results = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getResultsOrBuilder in interface BuildOrBuilder
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. Time at which the request to create the build was received.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface BuildOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. Time at which the request to create the build was received.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface BuildOrBuilder
      Returns:
      The createTime.
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. Time at which the request to create the build was received.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface BuildOrBuilder
    • hasStartTime

      public boolean hasStartTime()
       Output only. Time at which execution of the build was started.
       
      .google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasStartTime in interface BuildOrBuilder
      Returns:
      Whether the startTime field is set.
    • getStartTime

      public com.google.protobuf.Timestamp getStartTime()
       Output only. Time at which execution of the build was started.
       
      .google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStartTime in interface BuildOrBuilder
      Returns:
      The startTime.
    • getStartTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()
       Output only. Time at which execution of the build was started.
       
      .google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStartTimeOrBuilder in interface BuildOrBuilder
    • hasFinishTime

      public boolean hasFinishTime()
       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.
       
      .google.protobuf.Timestamp finish_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasFinishTime in interface BuildOrBuilder
      Returns:
      Whether the finishTime field is set.
    • getFinishTime

      public com.google.protobuf.Timestamp getFinishTime()
       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.
       
      .google.protobuf.Timestamp finish_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getFinishTime in interface BuildOrBuilder
      Returns:
      The finishTime.
    • getFinishTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getFinishTimeOrBuilder()
       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.
       
      .google.protobuf.Timestamp finish_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getFinishTimeOrBuilder in interface BuildOrBuilder
    • hasTimeout

      public boolean hasTimeout()
       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`.
      
       `timeout` starts ticking from `startTime`.
      
       Default time is 60 minutes.
       
      .google.protobuf.Duration timeout = 12;
      Specified by:
      hasTimeout in interface BuildOrBuilder
      Returns:
      Whether the timeout field is set.
    • getTimeout

      public com.google.protobuf.Duration getTimeout()
       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`.
      
       `timeout` starts ticking from `startTime`.
      
       Default time is 60 minutes.
       
      .google.protobuf.Duration timeout = 12;
      Specified by:
      getTimeout in interface BuildOrBuilder
      Returns:
      The timeout.
    • getTimeoutOrBuilder

      public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder()
       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`.
      
       `timeout` starts ticking from `startTime`.
      
       Default time is 60 minutes.
       
      .google.protobuf.Duration timeout = 12;
      Specified by:
      getTimeoutOrBuilder in interface BuildOrBuilder
    • getImagesList

      public com.google.protobuf.ProtocolStringList getImagesList()
       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`.
       
      repeated string images = 13;
      Specified by:
      getImagesList in interface BuildOrBuilder
      Returns:
      A list containing the images.
    • getImagesCount

      public int getImagesCount()
       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`.
       
      repeated string images = 13;
      Specified by:
      getImagesCount in interface BuildOrBuilder
      Returns:
      The count of images.
    • getImages

      public String getImages(int index)
       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`.
       
      repeated string images = 13;
      Specified by:
      getImages in interface BuildOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The images at the given index.
    • getImagesBytes

      public com.google.protobuf.ByteString getImagesBytes(int index)
       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`.
       
      repeated string images = 13;
      Specified by:
      getImagesBytes in interface BuildOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the images at the given index.
    • hasQueueTtl

      public boolean hasQueueTtl()
       TTL in queue for this build. If provided and the build is enqueued longer
       than this value, the build will expire and the build status will be
       `EXPIRED`.
      
       The TTL starts ticking from create_time.
       
      .google.protobuf.Duration queue_ttl = 40;
      Specified by:
      hasQueueTtl in interface BuildOrBuilder
      Returns:
      Whether the queueTtl field is set.
    • getQueueTtl

      public com.google.protobuf.Duration getQueueTtl()
       TTL in queue for this build. If provided and the build is enqueued longer
       than this value, the build will expire and the build status will be
       `EXPIRED`.
      
       The TTL starts ticking from create_time.
       
      .google.protobuf.Duration queue_ttl = 40;
      Specified by:
      getQueueTtl in interface BuildOrBuilder
      Returns:
      The queueTtl.
    • getQueueTtlOrBuilder

      public com.google.protobuf.DurationOrBuilder getQueueTtlOrBuilder()
       TTL in queue for this build. If provided and the build is enqueued longer
       than this value, the build will expire and the build status will be
       `EXPIRED`.
      
       The TTL starts ticking from create_time.
       
      .google.protobuf.Duration queue_ttl = 40;
      Specified by:
      getQueueTtlOrBuilder in interface BuildOrBuilder
    • hasArtifacts

      public boolean hasArtifacts()
       Artifacts produced by the build that should be uploaded upon
       successful completion of all build steps.
       
      .google.devtools.cloudbuild.v1.Artifacts artifacts = 37;
      Specified by:
      hasArtifacts in interface BuildOrBuilder
      Returns:
      Whether the artifacts field is set.
    • getArtifacts

      public Artifacts getArtifacts()
       Artifacts produced by the build that should be uploaded upon
       successful completion of all build steps.
       
      .google.devtools.cloudbuild.v1.Artifacts artifacts = 37;
      Specified by:
      getArtifacts in interface BuildOrBuilder
      Returns:
      The artifacts.
    • getArtifactsOrBuilder

      public ArtifactsOrBuilder getArtifactsOrBuilder()
       Artifacts produced by the build that should be uploaded upon
       successful completion of all build steps.
       
      .google.devtools.cloudbuild.v1.Artifacts artifacts = 37;
      Specified by:
      getArtifactsOrBuilder in interface BuildOrBuilder
    • getLogsBucket

      public String getLogsBucket()
       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`.
       
      string logs_bucket = 19;
      Specified by:
      getLogsBucket in interface BuildOrBuilder
      Returns:
      The logsBucket.
    • getLogsBucketBytes

      public com.google.protobuf.ByteString getLogsBucketBytes()
       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`.
       
      string logs_bucket = 19;
      Specified by:
      getLogsBucketBytes in interface BuildOrBuilder
      Returns:
      The bytes for logsBucket.
    • hasSourceProvenance

      public boolean hasSourceProvenance()
       Output only. A permanent fixed identifier for source.
       
      .google.devtools.cloudbuild.v1.SourceProvenance source_provenance = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasSourceProvenance in interface BuildOrBuilder
      Returns:
      Whether the sourceProvenance field is set.
    • getSourceProvenance

      public SourceProvenance getSourceProvenance()
       Output only. A permanent fixed identifier for source.
       
      .google.devtools.cloudbuild.v1.SourceProvenance source_provenance = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSourceProvenance in interface BuildOrBuilder
      Returns:
      The sourceProvenance.
    • getSourceProvenanceOrBuilder

      public SourceProvenanceOrBuilder getSourceProvenanceOrBuilder()
       Output only. A permanent fixed identifier for source.
       
      .google.devtools.cloudbuild.v1.SourceProvenance source_provenance = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSourceProvenanceOrBuilder in interface BuildOrBuilder
    • getBuildTriggerId

      public String getBuildTriggerId()
       Output only. The ID of the `BuildTrigger` that triggered this build, if it
       was triggered automatically.
       
      string build_trigger_id = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getBuildTriggerId in interface BuildOrBuilder
      Returns:
      The buildTriggerId.
    • getBuildTriggerIdBytes

      public com.google.protobuf.ByteString getBuildTriggerIdBytes()
       Output only. The ID of the `BuildTrigger` that triggered this build, if it
       was triggered automatically.
       
      string build_trigger_id = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getBuildTriggerIdBytes in interface BuildOrBuilder
      Returns:
      The bytes for buildTriggerId.
    • hasOptions

      public boolean hasOptions()
       Special options for this build.
       
      .google.devtools.cloudbuild.v1.BuildOptions options = 23;
      Specified by:
      hasOptions in interface BuildOrBuilder
      Returns:
      Whether the options field is set.
    • getOptions

      public BuildOptions getOptions()
       Special options for this build.
       
      .google.devtools.cloudbuild.v1.BuildOptions options = 23;
      Specified by:
      getOptions in interface BuildOrBuilder
      Returns:
      The options.
    • getOptionsOrBuilder

      public BuildOptionsOrBuilder getOptionsOrBuilder()
       Special options for this build.
       
      .google.devtools.cloudbuild.v1.BuildOptions options = 23;
      Specified by:
      getOptionsOrBuilder in interface BuildOrBuilder
    • getLogUrl

      public String getLogUrl()
       Output only. URL to logs for this build in Google Cloud Console.
       
      string log_url = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLogUrl in interface BuildOrBuilder
      Returns:
      The logUrl.
    • getLogUrlBytes

      public com.google.protobuf.ByteString getLogUrlBytes()
       Output only. URL to logs for this build in Google Cloud Console.
       
      string log_url = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLogUrlBytes in interface BuildOrBuilder
      Returns:
      The bytes for logUrl.
    • getSubstitutionsCount

      public int getSubstitutionsCount()
      Description copied from interface: BuildOrBuilder
       Substitutions data for `Build` resource.
       
      map<string, string> substitutions = 29;
      Specified by:
      getSubstitutionsCount in interface BuildOrBuilder
    • containsSubstitutions

      public boolean containsSubstitutions(String key)
       Substitutions data for `Build` resource.
       
      map<string, string> substitutions = 29;
      Specified by:
      containsSubstitutions in interface BuildOrBuilder
    • getSubstitutions

      @Deprecated public Map<String,String> getSubstitutions()
      Deprecated.
      Specified by:
      getSubstitutions in interface BuildOrBuilder
    • getSubstitutionsMap

      public Map<String,String> getSubstitutionsMap()
       Substitutions data for `Build` resource.
       
      map<string, string> substitutions = 29;
      Specified by:
      getSubstitutionsMap in interface BuildOrBuilder
    • getSubstitutionsOrDefault

      public String getSubstitutionsOrDefault(String key, String defaultValue)
       Substitutions data for `Build` resource.
       
      map<string, string> substitutions = 29;
      Specified by:
      getSubstitutionsOrDefault in interface BuildOrBuilder
    • getSubstitutionsOrThrow

      public String getSubstitutionsOrThrow(String key)
       Substitutions data for `Build` resource.
       
      map<string, string> substitutions = 29;
      Specified by:
      getSubstitutionsOrThrow in interface BuildOrBuilder
    • getTagsList

      public com.google.protobuf.ProtocolStringList getTagsList()
       Tags for annotation of a `Build`. These are not docker tags.
       
      repeated string tags = 31;
      Specified by:
      getTagsList in interface BuildOrBuilder
      Returns:
      A list containing the tags.
    • getTagsCount

      public int getTagsCount()
       Tags for annotation of a `Build`. These are not docker tags.
       
      repeated string tags = 31;
      Specified by:
      getTagsCount in interface BuildOrBuilder
      Returns:
      The count of tags.
    • getTags

      public String getTags(int index)
       Tags for annotation of a `Build`. These are not docker tags.
       
      repeated string tags = 31;
      Specified by:
      getTags in interface BuildOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The tags at the given index.
    • getTagsBytes

      public com.google.protobuf.ByteString getTagsBytes(int index)
       Tags for annotation of a `Build`. These are not docker tags.
       
      repeated string tags = 31;
      Specified by:
      getTagsBytes in interface BuildOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the tags at the given index.
    • getSecretsList

      public List<Secret> getSecretsList()
       Secrets to decrypt using Cloud Key Management Service.
       Note: Secret Manager is the recommended technique
       for managing sensitive data with Cloud Build. Use `available_secrets` to
       configure builds to access secrets from Secret Manager. For instructions,
       see: https://cloud.google.com/cloud-build/docs/securing-builds/use-secrets
       
      repeated .google.devtools.cloudbuild.v1.Secret secrets = 32;
      Specified by:
      getSecretsList in interface BuildOrBuilder
    • getSecretsOrBuilderList

      public List<? extends SecretOrBuilder> getSecretsOrBuilderList()
       Secrets to decrypt using Cloud Key Management Service.
       Note: Secret Manager is the recommended technique
       for managing sensitive data with Cloud Build. Use `available_secrets` to
       configure builds to access secrets from Secret Manager. For instructions,
       see: https://cloud.google.com/cloud-build/docs/securing-builds/use-secrets
       
      repeated .google.devtools.cloudbuild.v1.Secret secrets = 32;
      Specified by:
      getSecretsOrBuilderList in interface BuildOrBuilder
    • getSecretsCount

      public int getSecretsCount()
       Secrets to decrypt using Cloud Key Management Service.
       Note: Secret Manager is the recommended technique
       for managing sensitive data with Cloud Build. Use `available_secrets` to
       configure builds to access secrets from Secret Manager. For instructions,
       see: https://cloud.google.com/cloud-build/docs/securing-builds/use-secrets
       
      repeated .google.devtools.cloudbuild.v1.Secret secrets = 32;
      Specified by:
      getSecretsCount in interface BuildOrBuilder
    • getSecrets

      public Secret getSecrets(int index)
       Secrets to decrypt using Cloud Key Management Service.
       Note: Secret Manager is the recommended technique
       for managing sensitive data with Cloud Build. Use `available_secrets` to
       configure builds to access secrets from Secret Manager. For instructions,
       see: https://cloud.google.com/cloud-build/docs/securing-builds/use-secrets
       
      repeated .google.devtools.cloudbuild.v1.Secret secrets = 32;
      Specified by:
      getSecrets in interface BuildOrBuilder
    • getSecretsOrBuilder

      public SecretOrBuilder getSecretsOrBuilder(int index)
       Secrets to decrypt using Cloud Key Management Service.
       Note: Secret Manager is the recommended technique
       for managing sensitive data with Cloud Build. Use `available_secrets` to
       configure builds to access secrets from Secret Manager. For instructions,
       see: https://cloud.google.com/cloud-build/docs/securing-builds/use-secrets
       
      repeated .google.devtools.cloudbuild.v1.Secret secrets = 32;
      Specified by:
      getSecretsOrBuilder in interface BuildOrBuilder
    • getTimingCount

      public int getTimingCount()
      Description copied from interface: BuildOrBuilder
       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 artifacts including docker images and non docker
       artifacts.
       * FETCHSOURCE: time to fetch source.
       * SETUPBUILD: time to set up build.
      
       If the build does not specify source or images,
       these keys will not be included.
       
      map<string, .google.devtools.cloudbuild.v1.TimeSpan> timing = 33 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getTimingCount in interface BuildOrBuilder
    • containsTiming

      public boolean containsTiming(String key)
       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 artifacts including docker images and non docker
       artifacts.
       * FETCHSOURCE: time to fetch source.
       * SETUPBUILD: time to set up build.
      
       If the build does not specify source or images,
       these keys will not be included.
       
      map<string, .google.devtools.cloudbuild.v1.TimeSpan> timing = 33 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      containsTiming in interface BuildOrBuilder
    • getTiming

      @Deprecated public Map<String,TimeSpan> getTiming()
      Deprecated.
      Use getTimingMap() instead.
      Specified by:
      getTiming in interface BuildOrBuilder
    • getTimingMap

      public Map<String,TimeSpan> getTimingMap()
       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 artifacts including docker images and non docker
       artifacts.
       * FETCHSOURCE: time to fetch source.
       * SETUPBUILD: time to set up build.
      
       If the build does not specify source or images,
       these keys will not be included.
       
      map<string, .google.devtools.cloudbuild.v1.TimeSpan> timing = 33 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getTimingMap in interface BuildOrBuilder
    • getTimingOrDefault

      public TimeSpan getTimingOrDefault(String key, TimeSpan defaultValue)
       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 artifacts including docker images and non docker
       artifacts.
       * FETCHSOURCE: time to fetch source.
       * SETUPBUILD: time to set up build.
      
       If the build does not specify source or images,
       these keys will not be included.
       
      map<string, .google.devtools.cloudbuild.v1.TimeSpan> timing = 33 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getTimingOrDefault in interface BuildOrBuilder
    • getTimingOrThrow

      public TimeSpan getTimingOrThrow(String key)
       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 artifacts including docker images and non docker
       artifacts.
       * FETCHSOURCE: time to fetch source.
       * SETUPBUILD: time to set up build.
      
       If the build does not specify source or images,
       these keys will not be included.
       
      map<string, .google.devtools.cloudbuild.v1.TimeSpan> timing = 33 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getTimingOrThrow in interface BuildOrBuilder
    • hasApproval

      public boolean hasApproval()
       Output only. Describes this build's approval configuration, status,
       and result.
       
      .google.devtools.cloudbuild.v1.BuildApproval approval = 44 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasApproval in interface BuildOrBuilder
      Returns:
      Whether the approval field is set.
    • getApproval

      public BuildApproval getApproval()
       Output only. Describes this build's approval configuration, status,
       and result.
       
      .google.devtools.cloudbuild.v1.BuildApproval approval = 44 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getApproval in interface BuildOrBuilder
      Returns:
      The approval.
    • getApprovalOrBuilder

      public BuildApprovalOrBuilder getApprovalOrBuilder()
       Output only. Describes this build's approval configuration, status,
       and result.
       
      .google.devtools.cloudbuild.v1.BuildApproval approval = 44 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getApprovalOrBuilder in interface BuildOrBuilder
    • getServiceAccount

      public String getServiceAccount()
       IAM service account whose credentials will be used at build runtime.
       Must be of the format `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
       ACCOUNT can be email address or uniqueId of the service account.
       
      string service_account = 42 [(.google.api.resource_reference) = { ... }
      Specified by:
      getServiceAccount in interface BuildOrBuilder
      Returns:
      The serviceAccount.
    • getServiceAccountBytes

      public com.google.protobuf.ByteString getServiceAccountBytes()
       IAM service account whose credentials will be used at build runtime.
       Must be of the format `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
       ACCOUNT can be email address or uniqueId of the service account.
       
      string service_account = 42 [(.google.api.resource_reference) = { ... }
      Specified by:
      getServiceAccountBytes in interface BuildOrBuilder
      Returns:
      The bytes for serviceAccount.
    • hasAvailableSecrets

      public boolean hasAvailableSecrets()
       Secrets and secret environment variables.
       
      .google.devtools.cloudbuild.v1.Secrets available_secrets = 47;
      Specified by:
      hasAvailableSecrets in interface BuildOrBuilder
      Returns:
      Whether the availableSecrets field is set.
    • getAvailableSecrets

      public Secrets getAvailableSecrets()
       Secrets and secret environment variables.
       
      .google.devtools.cloudbuild.v1.Secrets available_secrets = 47;
      Specified by:
      getAvailableSecrets in interface BuildOrBuilder
      Returns:
      The availableSecrets.
    • getAvailableSecretsOrBuilder

      public SecretsOrBuilder getAvailableSecretsOrBuilder()
       Secrets and secret environment variables.
       
      .google.devtools.cloudbuild.v1.Secrets available_secrets = 47;
      Specified by:
      getAvailableSecretsOrBuilder in interface BuildOrBuilder
    • getWarningsList

      public List<Build.Warning> getWarningsList()
       Output only. Non-fatal problems encountered during the execution of the
       build.
       
      repeated .google.devtools.cloudbuild.v1.Build.Warning warnings = 49 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getWarningsList in interface BuildOrBuilder
    • getWarningsOrBuilderList

      public List<? extends Build.WarningOrBuilder> getWarningsOrBuilderList()
       Output only. Non-fatal problems encountered during the execution of the
       build.
       
      repeated .google.devtools.cloudbuild.v1.Build.Warning warnings = 49 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getWarningsOrBuilderList in interface BuildOrBuilder
    • getWarningsCount

      public int getWarningsCount()
       Output only. Non-fatal problems encountered during the execution of the
       build.
       
      repeated .google.devtools.cloudbuild.v1.Build.Warning warnings = 49 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getWarningsCount in interface BuildOrBuilder
    • getWarnings

      public Build.Warning getWarnings(int index)
       Output only. Non-fatal problems encountered during the execution of the
       build.
       
      repeated .google.devtools.cloudbuild.v1.Build.Warning warnings = 49 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getWarnings in interface BuildOrBuilder
    • getWarningsOrBuilder

      public Build.WarningOrBuilder getWarningsOrBuilder(int index)
       Output only. Non-fatal problems encountered during the execution of the
       build.
       
      repeated .google.devtools.cloudbuild.v1.Build.Warning warnings = 49 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getWarningsOrBuilder in interface BuildOrBuilder
    • hasGitConfig

      public boolean hasGitConfig()
       Optional. Configuration for git operations.
       
      .google.devtools.cloudbuild.v1.GitConfig git_config = 48 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasGitConfig in interface BuildOrBuilder
      Returns:
      Whether the gitConfig field is set.
    • getGitConfig

      public GitConfig getGitConfig()
       Optional. Configuration for git operations.
       
      .google.devtools.cloudbuild.v1.GitConfig git_config = 48 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getGitConfig in interface BuildOrBuilder
      Returns:
      The gitConfig.
    • getGitConfigOrBuilder

      public GitConfigOrBuilder getGitConfigOrBuilder()
       Optional. Configuration for git operations.
       
      .google.devtools.cloudbuild.v1.GitConfig git_config = 48 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getGitConfigOrBuilder in interface BuildOrBuilder
    • hasFailureInfo

      public boolean hasFailureInfo()
       Output only. Contains information about the build when status=FAILURE.
       
      .google.devtools.cloudbuild.v1.Build.FailureInfo failure_info = 51 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasFailureInfo in interface BuildOrBuilder
      Returns:
      Whether the failureInfo field is set.
    • getFailureInfo

      public Build.FailureInfo getFailureInfo()
       Output only. Contains information about the build when status=FAILURE.
       
      .google.devtools.cloudbuild.v1.Build.FailureInfo failure_info = 51 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getFailureInfo in interface BuildOrBuilder
      Returns:
      The failureInfo.
    • getFailureInfoOrBuilder

      public Build.FailureInfoOrBuilder getFailureInfoOrBuilder()
       Output only. Contains information about the build when status=FAILURE.
       
      .google.devtools.cloudbuild.v1.Build.FailureInfo failure_info = 51 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getFailureInfoOrBuilder in interface BuildOrBuilder
    • getDependenciesList

      public List<Dependency> getDependenciesList()
       Optional. Dependencies that the Cloud Build worker will fetch before
       executing user steps.
       
      repeated .google.devtools.cloudbuild.v1.Dependency dependencies = 56 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDependenciesList in interface BuildOrBuilder
    • getDependenciesOrBuilderList

      public List<? extends DependencyOrBuilder> getDependenciesOrBuilderList()
       Optional. Dependencies that the Cloud Build worker will fetch before
       executing user steps.
       
      repeated .google.devtools.cloudbuild.v1.Dependency dependencies = 56 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDependenciesOrBuilderList in interface BuildOrBuilder
    • getDependenciesCount

      public int getDependenciesCount()
       Optional. Dependencies that the Cloud Build worker will fetch before
       executing user steps.
       
      repeated .google.devtools.cloudbuild.v1.Dependency dependencies = 56 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDependenciesCount in interface BuildOrBuilder
    • getDependencies

      public Dependency getDependencies(int index)
       Optional. Dependencies that the Cloud Build worker will fetch before
       executing user steps.
       
      repeated .google.devtools.cloudbuild.v1.Dependency dependencies = 56 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDependencies in interface BuildOrBuilder
    • getDependenciesOrBuilder

      public DependencyOrBuilder getDependenciesOrBuilder(int index)
       Optional. Dependencies that the Cloud Build worker will fetch before
       executing user steps.
       
      repeated .google.devtools.cloudbuild.v1.Dependency dependencies = 56 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDependenciesOrBuilder in interface BuildOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Build parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Build parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Build parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Build parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Build parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Build parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Build parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Build parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Build parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Build parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Build parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Build parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public Build.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Build.Builder newBuilder()
    • newBuilder

      public static Build.Builder newBuilder(Build prototype)
    • toBuilder

      public Build.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Build.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static Build getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Build> parser()
    • getParserForType

      public com.google.protobuf.Parser<Build> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public Build getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder