Package com.google.cloud.deploy.v1
Class AdvanceRolloutRule.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AdvanceRolloutRule.Builder>
com.google.cloud.deploy.v1.AdvanceRolloutRule.Builder
- All Implemented Interfaces:
AdvanceRolloutRuleOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AdvanceRolloutRule
public static final class AdvanceRolloutRule.Builder
extends com.google.protobuf.GeneratedMessage.Builder<AdvanceRolloutRule.Builder>
implements AdvanceRolloutRuleOrBuilder
The `AdvanceRollout` automation rule will automatically advance a successful Rollout to the next phase.Protobuf type
google.cloud.deploy.v1.AdvanceRolloutRule-
Method Summary
Modifier and TypeMethodDescriptionaddAllSourcePhases(Iterable<String> values) Optional.addSourcePhases(String value) Optional.addSourcePhasesBytes(com.google.protobuf.ByteString value) Optional.build()clear()Output only.clearId()Required.Optional.Optional.Output only.Output only.Output only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetId()Required.com.google.protobuf.ByteStringRequired.getSourcePhases(int index) Optional.com.google.protobuf.ByteStringgetSourcePhasesBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.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(AdvanceRolloutRule 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.Required.setIdBytes(com.google.protobuf.ByteString value) Required.setSourcePhases(int index, String value) Optional.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<AdvanceRolloutRule.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<AdvanceRolloutRule.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<AdvanceRolloutRule.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<AdvanceRolloutRule.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AdvanceRolloutRule.Builder>
-
mergeFrom
public AdvanceRolloutRule.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<AdvanceRolloutRule.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 interfaceAdvanceRolloutRuleOrBuilder- 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 interfaceAdvanceRolloutRuleOrBuilder- 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.
-
getSourcePhasesList
public com.google.protobuf.ProtocolStringList getSourcePhasesList()Optional. Proceeds only after phase name matched any one in the list. This value must consist of lower-case letters, numbers, and hyphens, start with a letter and end with a letter or a number, and have a max length of 63 characters. In other words, it must match the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.repeated string source_phases = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSourcePhasesListin interfaceAdvanceRolloutRuleOrBuilder- Returns:
- A list containing the sourcePhases.
-
getSourcePhasesCount
public int getSourcePhasesCount()Optional. Proceeds only after phase name matched any one in the list. This value must consist of lower-case letters, numbers, and hyphens, start with a letter and end with a letter or a number, and have a max length of 63 characters. In other words, it must match the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.repeated string source_phases = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSourcePhasesCountin interfaceAdvanceRolloutRuleOrBuilder- Returns:
- The count of sourcePhases.
-
getSourcePhases
Optional. Proceeds only after phase name matched any one in the list. This value must consist of lower-case letters, numbers, and hyphens, start with a letter and end with a letter or a number, and have a max length of 63 characters. In other words, it must match the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.repeated string source_phases = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSourcePhasesin interfaceAdvanceRolloutRuleOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The sourcePhases at the given index.
-
getSourcePhasesBytes
public com.google.protobuf.ByteString getSourcePhasesBytes(int index) Optional. Proceeds only after phase name matched any one in the list. This value must consist of lower-case letters, numbers, and hyphens, start with a letter and end with a letter or a number, and have a max length of 63 characters. In other words, it must match the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.repeated string source_phases = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSourcePhasesBytesin interfaceAdvanceRolloutRuleOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the sourcePhases at the given index.
-
setSourcePhases
Optional. Proceeds only after phase name matched any one in the list. This value must consist of lower-case letters, numbers, and hyphens, start with a letter and end with a letter or a number, and have a max length of 63 characters. In other words, it must match the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.repeated string source_phases = 6 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index to set the value at.value- The sourcePhases to set.- Returns:
- This builder for chaining.
-
addSourcePhases
Optional. Proceeds only after phase name matched any one in the list. This value must consist of lower-case letters, numbers, and hyphens, start with a letter and end with a letter or a number, and have a max length of 63 characters. In other words, it must match the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.repeated string source_phases = 6 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The sourcePhases to add.- Returns:
- This builder for chaining.
-
addAllSourcePhases
Optional. Proceeds only after phase name matched any one in the list. This value must consist of lower-case letters, numbers, and hyphens, start with a letter and end with a letter or a number, and have a max length of 63 characters. In other words, it must match the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.repeated string source_phases = 6 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
values- The sourcePhases to add.- Returns:
- This builder for chaining.
-
clearSourcePhases
Optional. Proceeds only after phase name matched any one in the list. This value must consist of lower-case letters, numbers, and hyphens, start with a letter and end with a letter or a number, and have a max length of 63 characters. In other words, it must match the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.repeated string source_phases = 6 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
addSourcePhasesBytes
Optional. Proceeds only after phase name matched any one in the list. This value must consist of lower-case letters, numbers, and hyphens, start with a letter and end with a letter or a number, and have a max length of 63 characters. In other words, it must match the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.repeated string source_phases = 6 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes of the sourcePhases to add.- Returns:
- This builder for chaining.
-
hasWait
public boolean hasWait()Optional. How long to wait after a rollout is finished.
.google.protobuf.Duration wait = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasWaitin interfaceAdvanceRolloutRuleOrBuilder- Returns:
- Whether the wait field is set.
-
getWait
public com.google.protobuf.Duration getWait()Optional. How long to wait after a rollout is finished.
.google.protobuf.Duration wait = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getWaitin interfaceAdvanceRolloutRuleOrBuilder- Returns:
- The wait.
-
setWait
Optional. How long to wait after a rollout is finished.
.google.protobuf.Duration wait = 3 [(.google.api.field_behavior) = OPTIONAL]; -
setWait
Optional. How long to wait after a rollout is finished.
.google.protobuf.Duration wait = 3 [(.google.api.field_behavior) = OPTIONAL]; -
mergeWait
Optional. How long to wait after a rollout is finished.
.google.protobuf.Duration wait = 3 [(.google.api.field_behavior) = OPTIONAL]; -
clearWait
Optional. How long to wait after a rollout is finished.
.google.protobuf.Duration wait = 3 [(.google.api.field_behavior) = OPTIONAL]; -
getWaitBuilder
public com.google.protobuf.Duration.Builder getWaitBuilder()Optional. How long to wait after a rollout is finished.
.google.protobuf.Duration wait = 3 [(.google.api.field_behavior) = OPTIONAL]; -
getWaitOrBuilder
public com.google.protobuf.DurationOrBuilder getWaitOrBuilder()Optional. How long to wait after a rollout is finished.
.google.protobuf.Duration wait = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getWaitOrBuilderin interfaceAdvanceRolloutRuleOrBuilder
-
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 interfaceAdvanceRolloutRuleOrBuilder- 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 interfaceAdvanceRolloutRuleOrBuilder- 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 interfaceAdvanceRolloutRuleOrBuilder
-