Package com.google.cloud.deploy.v1
Class TimedPromoteReleaseRule.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TimedPromoteReleaseRule.Builder>
com.google.cloud.deploy.v1.TimedPromoteReleaseRule.Builder
- All Implemented Interfaces:
TimedPromoteReleaseRuleOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- TimedPromoteReleaseRule
public static final class TimedPromoteReleaseRule.Builder
extends com.google.protobuf.GeneratedMessage.Builder<TimedPromoteReleaseRule.Builder>
implements TimedPromoteReleaseRuleOrBuilder
The `TimedPromoteReleaseRule` will automatically promote a release from the current target(s) to the specified target(s) on a configured schedule.Protobuf type
google.cloud.deploy.v1.TimedPromoteReleaseRule-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.Optional.Optional.clearId()Required.Required.Required.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.Required.com.google.protobuf.ByteStringRequired.Required.com.google.protobuf.ByteStringRequired.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanOutput only.mergeFrom(TimedPromoteReleaseRule other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) 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.setSchedule(String value) Required.setScheduleBytes(com.google.protobuf.ByteString value) Required.setTimeZone(String value) Required.setTimeZoneBytes(com.google.protobuf.ByteString value) Required.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<TimedPromoteReleaseRule.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<TimedPromoteReleaseRule.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<TimedPromoteReleaseRule.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<TimedPromoteReleaseRule.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<TimedPromoteReleaseRule.Builder>
-
mergeFrom
public TimedPromoteReleaseRule.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<TimedPromoteReleaseRule.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 interfaceTimedPromoteReleaseRuleOrBuilder- 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 interfaceTimedPromoteReleaseRuleOrBuilder- 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.
-
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 = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDestinationTargetIdin interfaceTimedPromoteReleaseRuleOrBuilder- 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 = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDestinationTargetIdBytesin interfaceTimedPromoteReleaseRuleOrBuilder- 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 = 2 [(.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 = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setDestinationTargetIdBytes
public TimedPromoteReleaseRule.Builder setDestinationTargetIdBytes(com.google.protobuf.ByteString value) 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 = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for destinationTargetId to set.- Returns:
- This builder for chaining.
-
getSchedule
Required. Schedule in crontab format. e.g. "0 9 * * 1" for every Monday at 9am.
string schedule = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getSchedulein interfaceTimedPromoteReleaseRuleOrBuilder- Returns:
- The schedule.
-
getScheduleBytes
public com.google.protobuf.ByteString getScheduleBytes()Required. Schedule in crontab format. e.g. "0 9 * * 1" for every Monday at 9am.
string schedule = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getScheduleBytesin interfaceTimedPromoteReleaseRuleOrBuilder- Returns:
- The bytes for schedule.
-
setSchedule
Required. Schedule in crontab format. e.g. "0 9 * * 1" for every Monday at 9am.
string schedule = 3 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The schedule to set.- Returns:
- This builder for chaining.
-
clearSchedule
Required. Schedule in crontab format. e.g. "0 9 * * 1" for every Monday at 9am.
string schedule = 3 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setScheduleBytes
Required. Schedule in crontab format. e.g. "0 9 * * 1" for every Monday at 9am.
string schedule = 3 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for schedule to set.- Returns:
- This builder for chaining.
-
getTimeZone
Required. The time zone in IANA format [IANA Time Zone Database](https://www.iana.org/time-zones) (e.g. America/New_York).
string time_zone = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getTimeZonein interfaceTimedPromoteReleaseRuleOrBuilder- Returns:
- The timeZone.
-
getTimeZoneBytes
public com.google.protobuf.ByteString getTimeZoneBytes()Required. The time zone in IANA format [IANA Time Zone Database](https://www.iana.org/time-zones) (e.g. America/New_York).
string time_zone = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getTimeZoneBytesin interfaceTimedPromoteReleaseRuleOrBuilder- Returns:
- The bytes for timeZone.
-
setTimeZone
Required. The time zone in IANA format [IANA Time Zone Database](https://www.iana.org/time-zones) (e.g. America/New_York).
string time_zone = 4 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The timeZone to set.- Returns:
- This builder for chaining.
-
clearTimeZone
Required. The time zone in IANA format [IANA Time Zone Database](https://www.iana.org/time-zones) (e.g. America/New_York).
string time_zone = 4 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setTimeZoneBytes
Required. The time zone in IANA format [IANA Time Zone Database](https://www.iana.org/time-zones) (e.g. America/New_York).
string time_zone = 4 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for timeZone 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 interfaceTimedPromoteReleaseRuleOrBuilder- 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 interfaceTimedPromoteReleaseRuleOrBuilder- 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
public TimedPromoteReleaseRule.Builder setCondition(AutomationRuleCondition.Builder builderForValue) 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 interfaceTimedPromoteReleaseRuleOrBuilder
-
getDestinationPhase
Optional. The starting phase of the rollout created by this rule. Default to the first phase.
string destination_phase = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDestinationPhasein interfaceTimedPromoteReleaseRuleOrBuilder- Returns:
- The destinationPhase.
-
getDestinationPhaseBytes
public com.google.protobuf.ByteString getDestinationPhaseBytes()Optional. The starting phase of the rollout created by this rule. Default to the first phase.
string destination_phase = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDestinationPhaseBytesin interfaceTimedPromoteReleaseRuleOrBuilder- Returns:
- The bytes for destinationPhase.
-
setDestinationPhase
Optional. The starting phase of the rollout created by this rule. Default to the first phase.
string destination_phase = 6 [(.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 rule. Default to the first phase.
string destination_phase = 6 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setDestinationPhaseBytes
public TimedPromoteReleaseRule.Builder setDestinationPhaseBytes(com.google.protobuf.ByteString value) Optional. The starting phase of the rollout created by this rule. Default to the first phase.
string destination_phase = 6 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for destinationPhase to set.- Returns:
- This builder for chaining.
-