Class DeployJobRun.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DeployJobRun.Builder>
com.google.cloud.deploy.v1.DeployJobRun.Builder
All Implemented Interfaces:
DeployJobRunOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
DeployJobRun

public static final class DeployJobRun.Builder extends com.google.protobuf.GeneratedMessage.Builder<DeployJobRun.Builder> implements DeployJobRunOrBuilder
 DeployJobRun contains information specific to a deploy `JobRun`.
 
Protobuf type google.cloud.deploy.v1.DeployJobRun
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<DeployJobRun.Builder>
    • clear

      public DeployJobRun.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<DeployJobRun.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<DeployJobRun.Builder>
    • getDefaultInstanceForType

      public DeployJobRun getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public DeployJobRun build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public DeployJobRun buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public DeployJobRun.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DeployJobRun.Builder>
    • mergeFrom

      public DeployJobRun.Builder mergeFrom(DeployJobRun other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<DeployJobRun.Builder>
    • mergeFrom

      public DeployJobRun.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DeployJobRun.Builder>
      Throws:
      IOException
    • getBuild

      public String getBuild()
       Output only. The resource name of the Cloud Build `Build` object that is
       used to deploy. Format is
       `projects/{project}/locations/{location}/builds/{build}`.
       
      string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getBuild in interface DeployJobRunOrBuilder
      Returns:
      The build.
    • getBuildBytes

      public com.google.protobuf.ByteString getBuildBytes()
       Output only. The resource name of the Cloud Build `Build` object that is
       used to deploy. Format is
       `projects/{project}/locations/{location}/builds/{build}`.
       
      string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getBuildBytes in interface DeployJobRunOrBuilder
      Returns:
      The bytes for build.
    • setBuild

      public DeployJobRun.Builder setBuild(String value)
       Output only. The resource name of the Cloud Build `Build` object that is
       used to deploy. Format is
       `projects/{project}/locations/{location}/builds/{build}`.
       
      string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The build to set.
      Returns:
      This builder for chaining.
    • clearBuild

      public DeployJobRun.Builder clearBuild()
       Output only. The resource name of the Cloud Build `Build` object that is
       used to deploy. Format is
       `projects/{project}/locations/{location}/builds/{build}`.
       
      string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setBuildBytes

      public DeployJobRun.Builder setBuildBytes(com.google.protobuf.ByteString value)
       Output only. The resource name of the Cloud Build `Build` object that is
       used to deploy. Format is
       `projects/{project}/locations/{location}/builds/{build}`.
       
      string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for build to set.
      Returns:
      This builder for chaining.
    • getFailureCauseValue

      public int getFailureCauseValue()
       Output only. The reason the deploy failed. This will always be unspecified
       while the deploy is in progress or if it succeeded.
       
      .google.cloud.deploy.v1.DeployJobRun.FailureCause failure_cause = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getFailureCauseValue in interface DeployJobRunOrBuilder
      Returns:
      The enum numeric value on the wire for failureCause.
    • setFailureCauseValue

      public DeployJobRun.Builder setFailureCauseValue(int value)
       Output only. The reason the deploy failed. This will always be unspecified
       while the deploy is in progress or if it succeeded.
       
      .google.cloud.deploy.v1.DeployJobRun.FailureCause failure_cause = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for failureCause to set.
      Returns:
      This builder for chaining.
    • getFailureCause

      public DeployJobRun.FailureCause getFailureCause()
       Output only. The reason the deploy failed. This will always be unspecified
       while the deploy is in progress or if it succeeded.
       
      .google.cloud.deploy.v1.DeployJobRun.FailureCause failure_cause = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getFailureCause in interface DeployJobRunOrBuilder
      Returns:
      The failureCause.
    • setFailureCause

      public DeployJobRun.Builder setFailureCause(DeployJobRun.FailureCause value)
       Output only. The reason the deploy failed. This will always be unspecified
       while the deploy is in progress or if it succeeded.
       
      .google.cloud.deploy.v1.DeployJobRun.FailureCause failure_cause = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The failureCause to set.
      Returns:
      This builder for chaining.
    • clearFailureCause

      public DeployJobRun.Builder clearFailureCause()
       Output only. The reason the deploy failed. This will always be unspecified
       while the deploy is in progress or if it succeeded.
       
      .google.cloud.deploy.v1.DeployJobRun.FailureCause failure_cause = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getFailureMessage

      public String getFailureMessage()
       Output only. Additional information about the deploy failure, if available.
       
      string failure_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getFailureMessage in interface DeployJobRunOrBuilder
      Returns:
      The failureMessage.
    • getFailureMessageBytes

      public com.google.protobuf.ByteString getFailureMessageBytes()
       Output only. Additional information about the deploy failure, if available.
       
      string failure_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getFailureMessageBytes in interface DeployJobRunOrBuilder
      Returns:
      The bytes for failureMessage.
    • setFailureMessage

      public DeployJobRun.Builder setFailureMessage(String value)
       Output only. Additional information about the deploy failure, if available.
       
      string failure_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The failureMessage to set.
      Returns:
      This builder for chaining.
    • clearFailureMessage

      public DeployJobRun.Builder clearFailureMessage()
       Output only. Additional information about the deploy failure, if available.
       
      string failure_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setFailureMessageBytes

      public DeployJobRun.Builder setFailureMessageBytes(com.google.protobuf.ByteString value)
       Output only. Additional information about the deploy failure, if available.
       
      string failure_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for failureMessage to set.
      Returns:
      This builder for chaining.
    • hasMetadata

      public boolean hasMetadata()
       Output only. Metadata containing information about the deploy job run.
       
      .google.cloud.deploy.v1.DeployJobRunMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasMetadata in interface DeployJobRunOrBuilder
      Returns:
      Whether the metadata field is set.
    • getMetadata

      public DeployJobRunMetadata getMetadata()
       Output only. Metadata containing information about the deploy job run.
       
      .google.cloud.deploy.v1.DeployJobRunMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getMetadata in interface DeployJobRunOrBuilder
      Returns:
      The metadata.
    • setMetadata

      public DeployJobRun.Builder setMetadata(DeployJobRunMetadata value)
       Output only. Metadata containing information about the deploy job run.
       
      .google.cloud.deploy.v1.DeployJobRunMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setMetadata

      public DeployJobRun.Builder setMetadata(DeployJobRunMetadata.Builder builderForValue)
       Output only. Metadata containing information about the deploy job run.
       
      .google.cloud.deploy.v1.DeployJobRunMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeMetadata

      public DeployJobRun.Builder mergeMetadata(DeployJobRunMetadata value)
       Output only. Metadata containing information about the deploy job run.
       
      .google.cloud.deploy.v1.DeployJobRunMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearMetadata

      public DeployJobRun.Builder clearMetadata()
       Output only. Metadata containing information about the deploy job run.
       
      .google.cloud.deploy.v1.DeployJobRunMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getMetadataBuilder

      public DeployJobRunMetadata.Builder getMetadataBuilder()
       Output only. Metadata containing information about the deploy job run.
       
      .google.cloud.deploy.v1.DeployJobRunMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getMetadataOrBuilder

      public DeployJobRunMetadataOrBuilder getMetadataOrBuilder()
       Output only. Metadata containing information about the deploy job run.
       
      .google.cloud.deploy.v1.DeployJobRunMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getMetadataOrBuilder in interface DeployJobRunOrBuilder
    • hasArtifact

      public boolean hasArtifact()
       Output only. The artifact of a deploy job run, if available.
       
      .google.cloud.deploy.v1.DeployArtifact artifact = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasArtifact in interface DeployJobRunOrBuilder
      Returns:
      Whether the artifact field is set.
    • getArtifact

      public DeployArtifact getArtifact()
       Output only. The artifact of a deploy job run, if available.
       
      .google.cloud.deploy.v1.DeployArtifact artifact = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getArtifact in interface DeployJobRunOrBuilder
      Returns:
      The artifact.
    • setArtifact

      public DeployJobRun.Builder setArtifact(DeployArtifact value)
       Output only. The artifact of a deploy job run, if available.
       
      .google.cloud.deploy.v1.DeployArtifact artifact = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setArtifact

      public DeployJobRun.Builder setArtifact(DeployArtifact.Builder builderForValue)
       Output only. The artifact of a deploy job run, if available.
       
      .google.cloud.deploy.v1.DeployArtifact artifact = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeArtifact

      public DeployJobRun.Builder mergeArtifact(DeployArtifact value)
       Output only. The artifact of a deploy job run, if available.
       
      .google.cloud.deploy.v1.DeployArtifact artifact = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearArtifact

      public DeployJobRun.Builder clearArtifact()
       Output only. The artifact of a deploy job run, if available.
       
      .google.cloud.deploy.v1.DeployArtifact artifact = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getArtifactBuilder

      public DeployArtifact.Builder getArtifactBuilder()
       Output only. The artifact of a deploy job run, if available.
       
      .google.cloud.deploy.v1.DeployArtifact artifact = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getArtifactOrBuilder

      public DeployArtifactOrBuilder getArtifactOrBuilder()
       Output only. The artifact of a deploy job run, if available.
       
      .google.cloud.deploy.v1.DeployArtifact artifact = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getArtifactOrBuilder in interface DeployJobRunOrBuilder