public final class PromoteReleaseRule extends GeneratedMessageV3 implements PromoteReleaseRuleOrBuilder
PromoteRelease
rule will automatically promote a release from the current
target to a specified target.
Protobuf type google.cloud.deploy.v1.PromoteReleaseRule
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int CONDITION_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int DESTINATION_PHASE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int DESTINATION_TARGET_ID_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int ID_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int WAIT_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
public static PromoteReleaseRule getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static PromoteReleaseRule.Builder newBuilder()
public static PromoteReleaseRule.Builder newBuilder(PromoteReleaseRule prototype)
public static PromoteReleaseRule parseDelimitedFrom(InputStream input)
public static PromoteReleaseRule parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static PromoteReleaseRule parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
public static PromoteReleaseRule parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static PromoteReleaseRule parseFrom(ByteString data)
public static PromoteReleaseRule parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static PromoteReleaseRule parseFrom(CodedInputStream input)
public static PromoteReleaseRule parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static PromoteReleaseRule parseFrom(InputStream input)
public static PromoteReleaseRule parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static PromoteReleaseRule parseFrom(ByteBuffer data)
public static PromoteReleaseRule parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<PromoteReleaseRule> parser()
Methods
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
public AutomationRuleCondition getCondition()
Output only. Information around the state of the Automation rule.
.google.cloud.deploy.v1.AutomationRuleCondition condition = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
public AutomationRuleConditionOrBuilder getConditionOrBuilder()
Output only. Information around the state of the Automation rule.
.google.cloud.deploy.v1.AutomationRuleCondition condition = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
public PromoteReleaseRule getDefaultInstanceForType()
public String 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];
Returns |
---|
Type | Description |
String | The destinationPhase.
|
public 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];
Returns |
---|
Type | Description |
ByteString | The bytes for destinationPhase.
|
public String 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. It only needs the ID to determine
if the target is one of the stages in the promotion sequence defined
in the pipeline.
- "@next", the next target in the promotion sequence.
string destination_target_id = 7 [(.google.api.field_behavior) = OPTIONAL];
Returns |
---|
Type | Description |
String | The destinationTargetId.
|
public 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. It only needs the ID to determine
if the target is one of the stages in the promotion sequence defined
in the pipeline.
- "@next", the next target in the promotion sequence.
string destination_target_id = 7 [(.google.api.field_behavior) = OPTIONAL];
Returns |
---|
Type | Description |
ByteString | The bytes for destinationTargetId.
|
Required. ID of the rule. This id must be unique in the Automation
resource to which this rule belongs. The format is a-z{0,62}
.
string id = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
---|
Type | Description |
String | The id.
|
public 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{0,62}
.
string id = 1 [(.google.api.field_behavior) = REQUIRED];
public Parser<PromoteReleaseRule> getParserForType()
Overrides
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
public 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];
public 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];
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];
Returns |
---|
Type | Description |
boolean | Whether the condition field is set.
|
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];
Returns |
---|
Type | Description |
boolean | Whether the wait field is set.
|
Returns |
---|
Type | Description |
int | |
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public PromoteReleaseRule.Builder newBuilderForType()
protected PromoteReleaseRule.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
public PromoteReleaseRule.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides