Class TimedPromoteReleaseRule (1.53.0)

public final class TimedPromoteReleaseRule extends GeneratedMessageV3 implements TimedPromoteReleaseRuleOrBuilder

The TimedPromoteReleaseRule will automatically promote a release from the current target(s) to the specified target(s) on a configured schedule.

Protobuf type google.cloud.deploy.v1.TimedPromoteReleaseRule

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

SCHEDULE_FIELD_NUMBER

public static final int SCHEDULE_FIELD_NUMBER
Field Value
Type Description
int

TIME_ZONE_FIELD_NUMBER

public static final int TIME_ZONE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static TimedPromoteReleaseRule getDefaultInstance()
Returns
Type Description
TimedPromoteReleaseRule

getDescriptor()

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

newBuilder()

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

newBuilder(TimedPromoteReleaseRule prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

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 TimedPromoteReleaseRule getDefaultInstanceForType()
Returns
Type Description
TimedPromoteReleaseRule

getDestinationPhase()

public String getDestinationPhase()

Optional. The starting phase of the rollout created by this rule. Default to the first phase.

string destination_phase = 6 [(.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 rule. Default to the first phase.

string destination_phase = 6 [(.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 = 2 [(.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 = 2 [(.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<TimedPromoteReleaseRule> getParserForType()
Returns
Type Description
Parser<TimedPromoteReleaseRule>
Overrides

getSchedule()

public String getSchedule()

Required. Schedule in crontab format. e.g. "0 9 * * 1" for every Monday at 9am.

string schedule = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The schedule.

getScheduleBytes()

public ByteString getScheduleBytes()

Required. Schedule in crontab format. e.g. "0 9 * * 1" for every Monday at 9am.

string schedule = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for schedule.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTimeZone()

public String getTimeZone()

Required. The time zone in IANA format IANA Time Zone Database (e.g. America/New_York).

string time_zone = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The timeZone.

getTimeZoneBytes()

public ByteString getTimeZoneBytes()

Required. The time zone in IANA format IANA Time Zone Database (e.g. America/New_York).

string time_zone = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for timeZone.

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.

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 TimedPromoteReleaseRule.Builder newBuilderForType()
Returns
Type Description
TimedPromoteReleaseRule.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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