Class PromoteReleaseRule (1.30.0)

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

Static Fields

CONDITION_FIELD_NUMBER

public static final int CONDITION_FIELD_NUMBER
Field Value
TypeDescription
int

DESTINATION_PHASE_FIELD_NUMBER

public static final int DESTINATION_PHASE_FIELD_NUMBER
Field Value
TypeDescription
int

DESTINATION_TARGET_ID_FIELD_NUMBER

public static final int DESTINATION_TARGET_ID_FIELD_NUMBER
Field Value
TypeDescription
int

ID_FIELD_NUMBER

public static final int ID_FIELD_NUMBER
Field Value
TypeDescription
int

WAIT_FIELD_NUMBER

public static final int WAIT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static PromoteReleaseRule getDefaultInstance()
Returns
TypeDescription
PromoteReleaseRule

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static PromoteReleaseRule.Builder newBuilder()
Returns
TypeDescription
PromoteReleaseRule.Builder

newBuilder(PromoteReleaseRule prototype)

public static PromoteReleaseRule.Builder newBuilder(PromoteReleaseRule prototype)
Parameter
NameDescription
prototypePromoteReleaseRule
Returns
TypeDescription
PromoteReleaseRule.Builder

parseDelimitedFrom(InputStream input)

public static PromoteReleaseRule parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
PromoteReleaseRule
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PromoteReleaseRule parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PromoteReleaseRule
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static PromoteReleaseRule parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
PromoteReleaseRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static PromoteReleaseRule parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PromoteReleaseRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static PromoteReleaseRule parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
PromoteReleaseRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static PromoteReleaseRule parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PromoteReleaseRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static PromoteReleaseRule parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
PromoteReleaseRule
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static PromoteReleaseRule parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PromoteReleaseRule
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static PromoteReleaseRule parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
PromoteReleaseRule
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PromoteReleaseRule parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PromoteReleaseRule
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static PromoteReleaseRule parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
PromoteReleaseRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static PromoteReleaseRule parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PromoteReleaseRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<PromoteReleaseRule> parser()
Returns
TypeDescription
Parser<PromoteReleaseRule>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
AutomationRuleConditionOrBuilder

getDefaultInstanceForType()

public PromoteReleaseRule getDefaultInstanceForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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. 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
TypeDescription
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. 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
TypeDescription
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{0,62}.

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

Returns
TypeDescription
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{0,62}.

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

Returns
TypeDescription
ByteString

The bytes for id.

getParserForType()

public Parser<PromoteReleaseRule> getParserForType()
Returns
TypeDescription
Parser<PromoteReleaseRule>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the wait field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public PromoteReleaseRule.Builder newBuilderForType()
Returns
TypeDescription
PromoteReleaseRule.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected PromoteReleaseRule.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
PromoteReleaseRule.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public PromoteReleaseRule.Builder toBuilder()
Returns
TypeDescription
PromoteReleaseRule.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException