Class PromoteReleaseRule (1.50.0)

public final class PromoteReleaseRule extends GeneratedMessageV3 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

Static Fields

CONDITION_FIELD_NUMBER

public static final int CONDITION_FIELD_NUMBER
Field Value
Type Description
int

DESTINATION_PHASE_FIELD_NUMBER

public static final int DESTINATION_PHASE_FIELD_NUMBER
Field Value
Type Description
int

DESTINATION_TARGET_ID_FIELD_NUMBER

public static final int DESTINATION_TARGET_ID_FIELD_NUMBER
Field Value
Type Description
int

ID_FIELD_NUMBER

public static final int ID_FIELD_NUMBER
Field Value
Type Description
int

WAIT_FIELD_NUMBER

public static final int WAIT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static PromoteReleaseRule getDefaultInstance()
Returns
Type Description
PromoteReleaseRule

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static PromoteReleaseRule.Builder newBuilder()
Returns
Type Description
PromoteReleaseRule.Builder

newBuilder(PromoteReleaseRule prototype)

public static PromoteReleaseRule.Builder newBuilder(PromoteReleaseRule prototype)
Parameter
Name Description
prototype PromoteReleaseRule
Returns
Type Description
PromoteReleaseRule.Builder

parseDelimitedFrom(InputStream input)

public static PromoteReleaseRule parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PromoteReleaseRule
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PromoteReleaseRule parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PromoteReleaseRule
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static PromoteReleaseRule parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
PromoteReleaseRule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static PromoteReleaseRule parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PromoteReleaseRule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static PromoteReleaseRule parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
PromoteReleaseRule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static PromoteReleaseRule parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PromoteReleaseRule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static PromoteReleaseRule parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
PromoteReleaseRule
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static PromoteReleaseRule parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PromoteReleaseRule
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static PromoteReleaseRule parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PromoteReleaseRule
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PromoteReleaseRule parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PromoteReleaseRule
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static PromoteReleaseRule parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
PromoteReleaseRule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static PromoteReleaseRule parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PromoteReleaseRule
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<PromoteReleaseRule> parser()
Returns
Type Description
Parser<PromoteReleaseRule>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCondition()

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];

Returns
Type Description
AutomationRuleCondition

The condition.

getConditionOrBuilder()

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];

Returns
Type Description
AutomationRuleConditionOrBuilder

getDefaultInstanceForType()

public PromoteReleaseRule getDefaultInstanceForType()
Returns
Type Description
PromoteReleaseRule

getDestinationPhase()

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.

getDestinationPhaseBytes()

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.

getDestinationTargetId()

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
  • "@next", the next target in the promotion sequence

string destination_target_id = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The destinationTargetId.

getDestinationTargetIdBytes()

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
  • "@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.

getId()

public String 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?.

string id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The id.

getIdBytes()

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?.

string id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for id.

getParserForType()

public Parser<PromoteReleaseRule> getParserForType()
Returns
Type Description
Parser<PromoteReleaseRule>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getWait()

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];

Returns
Type Description
Duration

The wait.

getWaitOrBuilder()

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];

Returns
Type Description
DurationOrBuilder

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];

Returns
Type Description
boolean

Whether the condition field is set.

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];

Returns
Type Description
boolean

Whether the wait field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public PromoteReleaseRule.Builder newBuilderForType()
Returns
Type Description
PromoteReleaseRule.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected PromoteReleaseRule.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
PromoteReleaseRule.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public PromoteReleaseRule.Builder toBuilder()
Returns
Type Description
PromoteReleaseRule.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException