Class PromoteReleaseOperation.Builder

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

public static final class PromoteReleaseOperation.Builder extends com.google.protobuf.GeneratedMessage.Builder<PromoteReleaseOperation.Builder> implements PromoteReleaseOperationOrBuilder
 Contains the information of an automated promote-release operation.
 
Protobuf type google.cloud.deploy.v1.PromoteReleaseOperation
  • 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<PromoteReleaseOperation.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<PromoteReleaseOperation.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<PromoteReleaseOperation.Builder>
    • getDefaultInstanceForType

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

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

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

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

    • isInitialized

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

      public PromoteReleaseOperation.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<PromoteReleaseOperation.Builder>
      Throws:
      IOException
    • getTargetId

      public String getTargetId()
       Output only. The ID of the target that represents the promotion stage to
       which the release will be promoted. The value of this field is the last
       segment of a target name.
       
      string target_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getTargetId in interface PromoteReleaseOperationOrBuilder
      Returns:
      The targetId.
    • getTargetIdBytes

      public com.google.protobuf.ByteString getTargetIdBytes()
       Output only. The ID of the target that represents the promotion stage to
       which the release will be promoted. The value of this field is the last
       segment of a target name.
       
      string target_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getTargetIdBytes in interface PromoteReleaseOperationOrBuilder
      Returns:
      The bytes for targetId.
    • setTargetId

      public PromoteReleaseOperation.Builder setTargetId(String value)
       Output only. The ID of the target that represents the promotion stage to
       which the release will be promoted. The value of this field is the last
       segment of a target name.
       
      string target_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The targetId to set.
      Returns:
      This builder for chaining.
    • clearTargetId

      public PromoteReleaseOperation.Builder clearTargetId()
       Output only. The ID of the target that represents the promotion stage to
       which the release will be promoted. The value of this field is the last
       segment of a target name.
       
      string target_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setTargetIdBytes

      public PromoteReleaseOperation.Builder setTargetIdBytes(com.google.protobuf.ByteString value)
       Output only. The ID of the target that represents the promotion stage to
       which the release will be promoted. The value of this field is the last
       segment of a target name.
       
      string target_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for targetId to set.
      Returns:
      This builder for chaining.
    • hasWait

      public boolean hasWait()
       Output only. How long the operation will be paused.
       
      .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasWait in interface PromoteReleaseOperationOrBuilder
      Returns:
      Whether the wait field is set.
    • getWait

      public com.google.protobuf.Duration getWait()
       Output only. How long the operation will be paused.
       
      .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getWait in interface PromoteReleaseOperationOrBuilder
      Returns:
      The wait.
    • setWait

      public PromoteReleaseOperation.Builder setWait(com.google.protobuf.Duration value)
       Output only. How long the operation will be paused.
       
      .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setWait

      public PromoteReleaseOperation.Builder setWait(com.google.protobuf.Duration.Builder builderForValue)
       Output only. How long the operation will be paused.
       
      .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeWait

      public PromoteReleaseOperation.Builder mergeWait(com.google.protobuf.Duration value)
       Output only. How long the operation will be paused.
       
      .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearWait

      public PromoteReleaseOperation.Builder clearWait()
       Output only. How long the operation will be paused.
       
      .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getWaitBuilder

      public com.google.protobuf.Duration.Builder getWaitBuilder()
       Output only. How long the operation will be paused.
       
      .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getWaitOrBuilder

      public com.google.protobuf.DurationOrBuilder getWaitOrBuilder()
       Output only. How long the operation will be paused.
       
      .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getWaitOrBuilder in interface PromoteReleaseOperationOrBuilder
    • getRollout

      public String getRollout()
       Output only. The name of the rollout that initiates the `AutomationRun`.
       
      string rollout = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getRollout in interface PromoteReleaseOperationOrBuilder
      Returns:
      The rollout.
    • getRolloutBytes

      public com.google.protobuf.ByteString getRolloutBytes()
       Output only. The name of the rollout that initiates the `AutomationRun`.
       
      string rollout = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getRolloutBytes in interface PromoteReleaseOperationOrBuilder
      Returns:
      The bytes for rollout.
    • setRollout

      public PromoteReleaseOperation.Builder setRollout(String value)
       Output only. The name of the rollout that initiates the `AutomationRun`.
       
      string rollout = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The rollout to set.
      Returns:
      This builder for chaining.
    • clearRollout

      public PromoteReleaseOperation.Builder clearRollout()
       Output only. The name of the rollout that initiates the `AutomationRun`.
       
      string rollout = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setRolloutBytes

      public PromoteReleaseOperation.Builder setRolloutBytes(com.google.protobuf.ByteString value)
       Output only. The name of the rollout that initiates the `AutomationRun`.
       
      string rollout = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for rollout to set.
      Returns:
      This builder for chaining.
    • getPhase

      public String getPhase()
       Output only. The starting phase of the rollout created by this operation.
       
      string phase = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPhase in interface PromoteReleaseOperationOrBuilder
      Returns:
      The phase.
    • getPhaseBytes

      public com.google.protobuf.ByteString getPhaseBytes()
       Output only. The starting phase of the rollout created by this operation.
       
      string phase = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPhaseBytes in interface PromoteReleaseOperationOrBuilder
      Returns:
      The bytes for phase.
    • setPhase

      public PromoteReleaseOperation.Builder setPhase(String value)
       Output only. The starting phase of the rollout created by this operation.
       
      string phase = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The phase to set.
      Returns:
      This builder for chaining.
    • clearPhase

      public PromoteReleaseOperation.Builder clearPhase()
       Output only. The starting phase of the rollout created by this operation.
       
      string phase = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setPhaseBytes

      public PromoteReleaseOperation.Builder setPhaseBytes(com.google.protobuf.ByteString value)
       Output only. The starting phase of the rollout created by this operation.
       
      string phase = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for phase to set.
      Returns:
      This builder for chaining.