Class AdvanceRolloutRule (1.30.0)

public final class AdvanceRolloutRule extends GeneratedMessageV3 implements AdvanceRolloutRuleOrBuilder

The AdvanceRollout automation rule will automatically advance a successful Rollout to the next phase.

Protobuf type google.cloud.deploy.v1.AdvanceRolloutRule

Static Fields

CONDITION_FIELD_NUMBER

public static final int CONDITION_FIELD_NUMBER
Field Value
TypeDescription
int

ID_FIELD_NUMBER

public static final int ID_FIELD_NUMBER
Field Value
TypeDescription
int

SOURCE_PHASES_FIELD_NUMBER

public static final int SOURCE_PHASES_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 AdvanceRolloutRule getDefaultInstance()
Returns
TypeDescription
AdvanceRolloutRule

getDescriptor()

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

newBuilder()

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

newBuilder(AdvanceRolloutRule prototype)

public static AdvanceRolloutRule.Builder newBuilder(AdvanceRolloutRule prototype)
Parameter
NameDescription
prototypeAdvanceRolloutRule
Returns
TypeDescription
AdvanceRolloutRule.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

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 AdvanceRolloutRule getDefaultInstanceForType()
Returns
TypeDescription
AdvanceRolloutRule

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<AdvanceRolloutRule> getParserForType()
Returns
TypeDescription
Parser<AdvanceRolloutRule>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSourcePhases(int index)

public String getSourcePhases(int index)

Optional. Proceeds only after phase name matched any one in the list. This value must consist of lower-case letters, numbers, and hyphens, start with a letter and end with a letter or a number, and have a max length of 63 characters. In other words, it must match the following regex: ^a-z?$.

repeated string source_phases = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The sourcePhases at the given index.

getSourcePhasesBytes(int index)

public ByteString getSourcePhasesBytes(int index)

Optional. Proceeds only after phase name matched any one in the list. This value must consist of lower-case letters, numbers, and hyphens, start with a letter and end with a letter or a number, and have a max length of 63 characters. In other words, it must match the following regex: ^a-z?$.

repeated string source_phases = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the sourcePhases at the given index.

getSourcePhasesCount()

public int getSourcePhasesCount()

Optional. Proceeds only after phase name matched any one in the list. This value must consist of lower-case letters, numbers, and hyphens, start with a letter and end with a letter or a number, and have a max length of 63 characters. In other words, it must match the following regex: ^a-z?$.

repeated string source_phases = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The count of sourcePhases.

getSourcePhasesList()

public ProtocolStringList getSourcePhasesList()

Optional. Proceeds only after phase name matched any one in the list. This value must consist of lower-case letters, numbers, and hyphens, start with a letter and end with a letter or a number, and have a max length of 63 characters. In other words, it must match the following regex: ^a-z?$.

repeated string source_phases = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ProtocolStringList

A list containing the sourcePhases.

getWait()

public Duration getWait()

Optional. How long to wait after a rollout is finished.

.google.protobuf.Duration wait = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Duration

The wait.

getWaitOrBuilder()

public DurationOrBuilder getWaitOrBuilder()

Optional. How long to wait after a rollout is finished.

.google.protobuf.Duration wait = 3 [(.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 to wait after a rollout is finished.

.google.protobuf.Duration wait = 3 [(.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 AdvanceRolloutRule.Builder newBuilderForType()
Returns
TypeDescription
AdvanceRolloutRule.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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