Class Phase.Builder

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

public static final class Phase.Builder extends com.google.protobuf.GeneratedMessage.Builder<Phase.Builder> implements PhaseOrBuilder
 Phase represents a collection of jobs that are logically grouped together
 for a `Rollout`.
 
Protobuf type google.cloud.deploy.v1.Phase
  • 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<Phase.Builder>
    • clear

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

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

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

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

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

      public Phase.Builder mergeFrom(Phase other)
    • isInitialized

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

      public Phase.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<Phase.Builder>
      Throws:
      IOException
    • getJobsCase

      public Phase.JobsCase getJobsCase()
      Specified by:
      getJobsCase in interface PhaseOrBuilder
    • clearJobs

      public Phase.Builder clearJobs()
    • getId

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

      public com.google.protobuf.ByteString getIdBytes()
       Output only. The ID of the Phase.
       
      string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getIdBytes in interface PhaseOrBuilder
      Returns:
      The bytes for id.
    • setId

      public Phase.Builder setId(String value)
       Output only. The ID of the Phase.
       
      string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public Phase.Builder clearId()
       Output only. The ID of the Phase.
       
      string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setIdBytes

      public Phase.Builder setIdBytes(com.google.protobuf.ByteString value)
       Output only. The ID of the Phase.
       
      string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for id to set.
      Returns:
      This builder for chaining.
    • getStateValue

      public int getStateValue()
       Output only. Current state of the Phase.
       
      .google.cloud.deploy.v1.Phase.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateValue in interface PhaseOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public Phase.Builder setStateValue(int value)
       Output only. Current state of the Phase.
       
      .google.cloud.deploy.v1.Phase.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • getState

      public Phase.State getState()
       Output only. Current state of the Phase.
       
      .google.cloud.deploy.v1.Phase.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface PhaseOrBuilder
      Returns:
      The state.
    • setState

      public Phase.Builder setState(Phase.State value)
       Output only. Current state of the Phase.
       
      .google.cloud.deploy.v1.Phase.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public Phase.Builder clearState()
       Output only. Current state of the Phase.
       
      .google.cloud.deploy.v1.Phase.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getSkipMessage

      public String getSkipMessage()
       Output only. Additional information on why the Phase was skipped, if
       available.
       
      string skip_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSkipMessage in interface PhaseOrBuilder
      Returns:
      The skipMessage.
    • getSkipMessageBytes

      public com.google.protobuf.ByteString getSkipMessageBytes()
       Output only. Additional information on why the Phase was skipped, if
       available.
       
      string skip_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSkipMessageBytes in interface PhaseOrBuilder
      Returns:
      The bytes for skipMessage.
    • setSkipMessage

      public Phase.Builder setSkipMessage(String value)
       Output only. Additional information on why the Phase was skipped, if
       available.
       
      string skip_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The skipMessage to set.
      Returns:
      This builder for chaining.
    • clearSkipMessage

      public Phase.Builder clearSkipMessage()
       Output only. Additional information on why the Phase was skipped, if
       available.
       
      string skip_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setSkipMessageBytes

      public Phase.Builder setSkipMessageBytes(com.google.protobuf.ByteString value)
       Output only. Additional information on why the Phase was skipped, if
       available.
       
      string skip_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for skipMessage to set.
      Returns:
      This builder for chaining.
    • hasDeploymentJobs

      public boolean hasDeploymentJobs()
       Output only. Deployment job composition.
       
      .google.cloud.deploy.v1.DeploymentJobs deployment_jobs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasDeploymentJobs in interface PhaseOrBuilder
      Returns:
      Whether the deploymentJobs field is set.
    • getDeploymentJobs

      public DeploymentJobs getDeploymentJobs()
       Output only. Deployment job composition.
       
      .google.cloud.deploy.v1.DeploymentJobs deployment_jobs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDeploymentJobs in interface PhaseOrBuilder
      Returns:
      The deploymentJobs.
    • setDeploymentJobs

      public Phase.Builder setDeploymentJobs(DeploymentJobs value)
       Output only. Deployment job composition.
       
      .google.cloud.deploy.v1.DeploymentJobs deployment_jobs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setDeploymentJobs

      public Phase.Builder setDeploymentJobs(DeploymentJobs.Builder builderForValue)
       Output only. Deployment job composition.
       
      .google.cloud.deploy.v1.DeploymentJobs deployment_jobs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeDeploymentJobs

      public Phase.Builder mergeDeploymentJobs(DeploymentJobs value)
       Output only. Deployment job composition.
       
      .google.cloud.deploy.v1.DeploymentJobs deployment_jobs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearDeploymentJobs

      public Phase.Builder clearDeploymentJobs()
       Output only. Deployment job composition.
       
      .google.cloud.deploy.v1.DeploymentJobs deployment_jobs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getDeploymentJobsBuilder

      public DeploymentJobs.Builder getDeploymentJobsBuilder()
       Output only. Deployment job composition.
       
      .google.cloud.deploy.v1.DeploymentJobs deployment_jobs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getDeploymentJobsOrBuilder

      public DeploymentJobsOrBuilder getDeploymentJobsOrBuilder()
       Output only. Deployment job composition.
       
      .google.cloud.deploy.v1.DeploymentJobs deployment_jobs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDeploymentJobsOrBuilder in interface PhaseOrBuilder
    • hasChildRolloutJobs

      public boolean hasChildRolloutJobs()
       Output only. ChildRollout job composition.
       
      .google.cloud.deploy.v1.ChildRolloutJobs child_rollout_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasChildRolloutJobs in interface PhaseOrBuilder
      Returns:
      Whether the childRolloutJobs field is set.
    • getChildRolloutJobs

      public ChildRolloutJobs getChildRolloutJobs()
       Output only. ChildRollout job composition.
       
      .google.cloud.deploy.v1.ChildRolloutJobs child_rollout_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getChildRolloutJobs in interface PhaseOrBuilder
      Returns:
      The childRolloutJobs.
    • setChildRolloutJobs

      public Phase.Builder setChildRolloutJobs(ChildRolloutJobs value)
       Output only. ChildRollout job composition.
       
      .google.cloud.deploy.v1.ChildRolloutJobs child_rollout_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setChildRolloutJobs

      public Phase.Builder setChildRolloutJobs(ChildRolloutJobs.Builder builderForValue)
       Output only. ChildRollout job composition.
       
      .google.cloud.deploy.v1.ChildRolloutJobs child_rollout_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeChildRolloutJobs

      public Phase.Builder mergeChildRolloutJobs(ChildRolloutJobs value)
       Output only. ChildRollout job composition.
       
      .google.cloud.deploy.v1.ChildRolloutJobs child_rollout_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearChildRolloutJobs

      public Phase.Builder clearChildRolloutJobs()
       Output only. ChildRollout job composition.
       
      .google.cloud.deploy.v1.ChildRolloutJobs child_rollout_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getChildRolloutJobsBuilder

      public ChildRolloutJobs.Builder getChildRolloutJobsBuilder()
       Output only. ChildRollout job composition.
       
      .google.cloud.deploy.v1.ChildRolloutJobs child_rollout_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getChildRolloutJobsOrBuilder

      public ChildRolloutJobsOrBuilder getChildRolloutJobsOrBuilder()
       Output only. ChildRollout job composition.
       
      .google.cloud.deploy.v1.ChildRolloutJobs child_rollout_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getChildRolloutJobsOrBuilder in interface PhaseOrBuilder