Package com.google.cloud.deploy.v1
Class PromoteReleaseRule.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PromoteReleaseRule.Builder>
com.google.cloud.deploy.v1.PromoteReleaseRule.Builder
- All Implemented Interfaces:
PromoteReleaseRuleOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- PromoteReleaseRule
public static final class PromoteReleaseRule.Builder
extends com.google.protobuf.GeneratedMessage.Builder<PromoteReleaseRule.Builder>
implements PromoteReleaseRuleOrBuilder
The `PromoteRelease` rule will automatically promote a release from the current target to a specified target.Protobuf type
google.cloud.deploy.v1.PromoteReleaseRule-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.Optional.Optional.clearId()Required.Optional.Output only.Output only.Output only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.com.google.protobuf.ByteStringOptional.Optional.com.google.protobuf.ByteStringOptional.getId()Required.com.google.protobuf.ByteStringRequired.com.google.protobuf.DurationgetWait()Optional.com.google.protobuf.Duration.BuilderOptional.com.google.protobuf.DurationOrBuilderOptional.booleanOutput only.booleanhasWait()Optional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanOutput only.mergeFrom(PromoteReleaseRule other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeWait(com.google.protobuf.Duration value) Optional.Output only.setCondition(AutomationRuleCondition.Builder builderForValue) Output only.setDestinationPhase(String value) Optional.setDestinationPhaseBytes(com.google.protobuf.ByteString value) Optional.setDestinationTargetId(String value) Optional.setDestinationTargetIdBytes(com.google.protobuf.ByteString value) Optional.Required.setIdBytes(com.google.protobuf.ByteString value) Required.setWait(com.google.protobuf.Duration value) Optional.setWait(com.google.protobuf.Duration.Builder builderForValue) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<PromoteReleaseRule.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<PromoteReleaseRule.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<PromoteReleaseRule.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PromoteReleaseRule.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<PromoteReleaseRule.Builder>
-
mergeFrom
public PromoteReleaseRule.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PromoteReleaseRule.Builder>- Throws:
IOException
-
getId
Required. ID of the rule. This id must be unique in the `Automation` resource to which this rule belongs. The format is `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.string id = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getIdin interfacePromoteReleaseRuleOrBuilder- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()Required. ID of the rule. This id must be unique in the `Automation` resource to which this rule belongs. The format is `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.string id = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getIdBytesin interfacePromoteReleaseRuleOrBuilder- Returns:
- The bytes for id.
-
setId
Required. ID of the rule. This id must be unique in the `Automation` resource to which this rule belongs. The format is `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.string id = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
Required. ID of the rule. This id must be unique in the `Automation` resource to which this rule belongs. The format is `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.string id = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setIdBytes
Required. ID of the rule. This id must be unique in the `Automation` resource to which this rule belongs. The format is `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.string id = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for id to set.- Returns:
- This builder for chaining.
-
hasWait
public boolean hasWait()Optional. How long the release need to be paused until being promoted to the next target.
.google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasWaitin interfacePromoteReleaseRuleOrBuilder- Returns:
- Whether the wait field is set.
-
getWait
public com.google.protobuf.Duration getWait()Optional. How long the release need to be paused until being promoted to the next target.
.google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getWaitin interfacePromoteReleaseRuleOrBuilder- Returns:
- The wait.
-
setWait
Optional. How long the release need to be paused until being promoted to the next target.
.google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OPTIONAL]; -
setWait
Optional. How long the release need to be paused until being promoted to the next target.
.google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OPTIONAL]; -
mergeWait
Optional. How long the release need to be paused until being promoted to the next target.
.google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OPTIONAL]; -
clearWait
Optional. How long the release need to be paused until being promoted to the next target.
.google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OPTIONAL]; -
getWaitBuilder
public com.google.protobuf.Duration.Builder getWaitBuilder()Optional. How long the release need to be paused until being promoted to the next target.
.google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OPTIONAL]; -
getWaitOrBuilder
public com.google.protobuf.DurationOrBuilder getWaitOrBuilder()Optional. How long the release need to be paused until being promoted to the next target.
.google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getWaitOrBuilderin interfacePromoteReleaseRuleOrBuilder
-
getDestinationTargetId
Optional. The ID of the stage in the pipeline to which this `Release` is deploying. If unspecified, default it to the next stage in the promotion flow. The value of this field could be one of the following: * The last segment of a target name * "@next", the next target in the promotion sequence
string destination_target_id = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDestinationTargetIdin interfacePromoteReleaseRuleOrBuilder- Returns:
- The destinationTargetId.
-
getDestinationTargetIdBytes
public com.google.protobuf.ByteString getDestinationTargetIdBytes()Optional. The ID of the stage in the pipeline to which this `Release` is deploying. If unspecified, default it to the next stage in the promotion flow. The value of this field could be one of the following: * The last segment of a target name * "@next", the next target in the promotion sequence
string destination_target_id = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDestinationTargetIdBytesin interfacePromoteReleaseRuleOrBuilder- Returns:
- The bytes for destinationTargetId.
-
setDestinationTargetId
Optional. The ID of the stage in the pipeline to which this `Release` is deploying. If unspecified, default it to the next stage in the promotion flow. The value of this field could be one of the following: * The last segment of a target name * "@next", the next target in the promotion sequence
string destination_target_id = 7 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The destinationTargetId to set.- Returns:
- This builder for chaining.
-
clearDestinationTargetId
Optional. The ID of the stage in the pipeline to which this `Release` is deploying. If unspecified, default it to the next stage in the promotion flow. The value of this field could be one of the following: * The last segment of a target name * "@next", the next target in the promotion sequence
string destination_target_id = 7 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setDestinationTargetIdBytes
Optional. The ID of the stage in the pipeline to which this `Release` is deploying. If unspecified, default it to the next stage in the promotion flow. The value of this field could be one of the following: * The last segment of a target name * "@next", the next target in the promotion sequence
string destination_target_id = 7 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for destinationTargetId to set.- Returns:
- This builder for chaining.
-
hasCondition
public boolean hasCondition()Output only. Information around the state of the Automation rule.
.google.cloud.deploy.v1.AutomationRuleCondition condition = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasConditionin interfacePromoteReleaseRuleOrBuilder- Returns:
- Whether the condition field is set.
-
getCondition
Output only. Information around the state of the Automation rule.
.google.cloud.deploy.v1.AutomationRuleCondition condition = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getConditionin interfacePromoteReleaseRuleOrBuilder- Returns:
- The condition.
-
setCondition
Output only. Information around the state of the Automation rule.
.google.cloud.deploy.v1.AutomationRuleCondition condition = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setCondition
Output only. Information around the state of the Automation rule.
.google.cloud.deploy.v1.AutomationRuleCondition condition = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeCondition
Output only. Information around the state of the Automation rule.
.google.cloud.deploy.v1.AutomationRuleCondition condition = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearCondition
Output only. Information around the state of the Automation rule.
.google.cloud.deploy.v1.AutomationRuleCondition condition = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getConditionBuilder
Output only. Information around the state of the Automation rule.
.google.cloud.deploy.v1.AutomationRuleCondition condition = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getConditionOrBuilder
Output only. Information around the state of the Automation rule.
.google.cloud.deploy.v1.AutomationRuleCondition condition = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getConditionOrBuilderin interfacePromoteReleaseRuleOrBuilder
-
getDestinationPhase
Optional. The starting phase of the rollout created by this operation. Default to the first phase.
string destination_phase = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDestinationPhasein interfacePromoteReleaseRuleOrBuilder- Returns:
- The destinationPhase.
-
getDestinationPhaseBytes
public com.google.protobuf.ByteString getDestinationPhaseBytes()Optional. The starting phase of the rollout created by this operation. Default to the first phase.
string destination_phase = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDestinationPhaseBytesin interfacePromoteReleaseRuleOrBuilder- Returns:
- The bytes for destinationPhase.
-
setDestinationPhase
Optional. The starting phase of the rollout created by this operation. Default to the first phase.
string destination_phase = 8 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The destinationPhase to set.- Returns:
- This builder for chaining.
-
clearDestinationPhase
Optional. The starting phase of the rollout created by this operation. Default to the first phase.
string destination_phase = 8 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setDestinationPhaseBytes
Optional. The starting phase of the rollout created by this operation. Default to the first phase.
string destination_phase = 8 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for destinationPhase to set.- Returns:
- This builder for chaining.
-