Package com.google.cloud.deploy.v1
Class PromoteReleaseRule
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.deploy.v1.PromoteReleaseRule
- All Implemented Interfaces:
PromoteReleaseRuleOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class PromoteReleaseRule
extends com.google.protobuf.GeneratedMessage
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- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThe `PromoteRelease` rule will automatically promote a release from the current target to a specified target.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanOutput only.Output only.static PromoteReleaseRulestatic final com.google.protobuf.Descriptors.DescriptorOptional.com.google.protobuf.ByteStringOptional.Optional.com.google.protobuf.ByteStringOptional.getId()Required.com.google.protobuf.ByteStringRequired.com.google.protobuf.Parser<PromoteReleaseRule>intcom.google.protobuf.DurationgetWait()Optional.com.google.protobuf.DurationOrBuilderOptional.booleanOutput only.inthashCode()booleanhasWait()Optional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic PromoteReleaseRule.Builderstatic PromoteReleaseRule.BuildernewBuilder(PromoteReleaseRule prototype) protected PromoteReleaseRule.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static PromoteReleaseRuleparseDelimitedFrom(InputStream input) static PromoteReleaseRuleparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PromoteReleaseRuleparseFrom(byte[] data) static PromoteReleaseRuleparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PromoteReleaseRuleparseFrom(com.google.protobuf.ByteString data) static PromoteReleaseRuleparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PromoteReleaseRuleparseFrom(com.google.protobuf.CodedInputStream input) static PromoteReleaseRuleparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PromoteReleaseRuleparseFrom(InputStream input) static PromoteReleaseRuleparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PromoteReleaseRuleparseFrom(ByteBuffer data) static PromoteReleaseRuleparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<PromoteReleaseRule>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER- See Also:
-
WAIT_FIELD_NUMBER
public static final int WAIT_FIELD_NUMBER- See Also:
-
DESTINATION_TARGET_ID_FIELD_NUMBER
public static final int DESTINATION_TARGET_ID_FIELD_NUMBER- See Also:
-
CONDITION_FIELD_NUMBER
public static final int CONDITION_FIELD_NUMBER- See Also:
-
DESTINATION_PHASE_FIELD_NUMBER
public static final int DESTINATION_PHASE_FIELD_NUMBER- See Also:
-
-
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
-
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.
-
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.
-
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.
-
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.
-
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.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static PromoteReleaseRule parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PromoteReleaseRule parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PromoteReleaseRule parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PromoteReleaseRule parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PromoteReleaseRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PromoteReleaseRule parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static PromoteReleaseRule parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static PromoteReleaseRule parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static PromoteReleaseRule parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static PromoteReleaseRule parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected PromoteReleaseRule.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-