Class PostdeployJobRun.Builder

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

public static final class PostdeployJobRun.Builder extends com.google.protobuf.GeneratedMessage.Builder<PostdeployJobRun.Builder> implements PostdeployJobRunOrBuilder
 PostdeployJobRun contains information specific to a postdeploy `JobRun`.
 
Protobuf type google.cloud.deploy.v1.PostdeployJobRun
  • 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<PostdeployJobRun.Builder>
    • clear

      public PostdeployJobRun.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<PostdeployJobRun.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<PostdeployJobRun.Builder>
    • getDefaultInstanceForType

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

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

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

      public PostdeployJobRun.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<PostdeployJobRun.Builder>
    • mergeFrom

      public PostdeployJobRun.Builder mergeFrom(PostdeployJobRun other)
    • isInitialized

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

      public PostdeployJobRun.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<PostdeployJobRun.Builder>
      Throws:
      IOException
    • getBuild

      public String getBuild()
       Output only. The resource name of the Cloud Build `Build` object that is
       used to execute the custom actions associated with the postdeploy Job.
       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 PostdeployJobRunOrBuilder
      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 execute the custom actions associated with the postdeploy Job.
       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 PostdeployJobRunOrBuilder
      Returns:
      The bytes for build.
    • setBuild

      public PostdeployJobRun.Builder setBuild(String value)
       Output only. The resource name of the Cloud Build `Build` object that is
       used to execute the custom actions associated with the postdeploy Job.
       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 PostdeployJobRun.Builder clearBuild()
       Output only. The resource name of the Cloud Build `Build` object that is
       used to execute the custom actions associated with the postdeploy Job.
       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 PostdeployJobRun.Builder setBuildBytes(com.google.protobuf.ByteString value)
       Output only. The resource name of the Cloud Build `Build` object that is
       used to execute the custom actions associated with the postdeploy Job.
       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 postdeploy failed. This will always be
       unspecified while the postdeploy is in progress or if it succeeded.
       
      .google.cloud.deploy.v1.PostdeployJobRun.FailureCause failure_cause = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getFailureCauseValue in interface PostdeployJobRunOrBuilder
      Returns:
      The enum numeric value on the wire for failureCause.
    • setFailureCauseValue

      public PostdeployJobRun.Builder setFailureCauseValue(int value)
       Output only. The reason the postdeploy failed. This will always be
       unspecified while the postdeploy is in progress or if it succeeded.
       
      .google.cloud.deploy.v1.PostdeployJobRun.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 PostdeployJobRun.FailureCause getFailureCause()
       Output only. The reason the postdeploy failed. This will always be
       unspecified while the postdeploy is in progress or if it succeeded.
       
      .google.cloud.deploy.v1.PostdeployJobRun.FailureCause failure_cause = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getFailureCause in interface PostdeployJobRunOrBuilder
      Returns:
      The failureCause.
    • setFailureCause

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

      public PostdeployJobRun.Builder clearFailureCause()
       Output only. The reason the postdeploy failed. This will always be
       unspecified while the postdeploy is in progress or if it succeeded.
       
      .google.cloud.deploy.v1.PostdeployJobRun.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 postdeploy failure, if
       available.
       
      string failure_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getFailureMessage in interface PostdeployJobRunOrBuilder
      Returns:
      The failureMessage.
    • getFailureMessageBytes

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

      public PostdeployJobRun.Builder setFailureMessage(String value)
       Output only. Additional information about the postdeploy 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 PostdeployJobRun.Builder clearFailureMessage()
       Output only. Additional information about the postdeploy failure, if
       available.
       
      string failure_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setFailureMessageBytes

      public PostdeployJobRun.Builder setFailureMessageBytes(com.google.protobuf.ByteString value)
       Output only. Additional information about the postdeploy 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.