Class AutomationRule (1.49.0)

public final class AutomationRule extends GeneratedMessageV3 implements AutomationRuleOrBuilder

AutomationRule defines the automation activities.

Protobuf type google.cloud.deploy.v1.AutomationRule

Static Fields

ADVANCE_ROLLOUT_RULE_FIELD_NUMBER

public static final int ADVANCE_ROLLOUT_RULE_FIELD_NUMBER
Field Value
Type Description
int

PROMOTE_RELEASE_RULE_FIELD_NUMBER

public static final int PROMOTE_RELEASE_RULE_FIELD_NUMBER
Field Value
Type Description
int

REPAIR_ROLLOUT_RULE_FIELD_NUMBER

public static final int REPAIR_ROLLOUT_RULE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AutomationRule getDefaultInstance()
Returns
Type Description
AutomationRule

getDescriptor()

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

newBuilder()

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

newBuilder(AutomationRule prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getAdvanceRolloutRule()

public AdvanceRolloutRule getAdvanceRolloutRule()

Optional. The AdvanceRolloutRule will automatically advance a successful Rollout.

.google.cloud.deploy.v1.AdvanceRolloutRule advance_rollout_rule = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AdvanceRolloutRule

The advanceRolloutRule.

getAdvanceRolloutRuleOrBuilder()

public AdvanceRolloutRuleOrBuilder getAdvanceRolloutRuleOrBuilder()

Optional. The AdvanceRolloutRule will automatically advance a successful Rollout.

.google.cloud.deploy.v1.AdvanceRolloutRule advance_rollout_rule = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AdvanceRolloutRuleOrBuilder

getDefaultInstanceForType()

public AutomationRule getDefaultInstanceForType()
Returns
Type Description
AutomationRule

getParserForType()

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

getPromoteReleaseRule()

public PromoteReleaseRule getPromoteReleaseRule()

Optional. PromoteReleaseRule will automatically promote a release from the current target to a specified target.

.google.cloud.deploy.v1.PromoteReleaseRule promote_release_rule = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PromoteReleaseRule

The promoteReleaseRule.

getPromoteReleaseRuleOrBuilder()

public PromoteReleaseRuleOrBuilder getPromoteReleaseRuleOrBuilder()

Optional. PromoteReleaseRule will automatically promote a release from the current target to a specified target.

.google.cloud.deploy.v1.PromoteReleaseRule promote_release_rule = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PromoteReleaseRuleOrBuilder

getRepairRolloutRule()

public RepairRolloutRule getRepairRolloutRule()

Optional. The RepairRolloutRule will automatically repair a failed rollout.

.google.cloud.deploy.v1.RepairRolloutRule repair_rollout_rule = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RepairRolloutRule

The repairRolloutRule.

getRepairRolloutRuleOrBuilder()

public RepairRolloutRuleOrBuilder getRepairRolloutRuleOrBuilder()

Optional. The RepairRolloutRule will automatically repair a failed rollout.

.google.cloud.deploy.v1.RepairRolloutRule repair_rollout_rule = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RepairRolloutRuleOrBuilder

getRuleCase()

public AutomationRule.RuleCase getRuleCase()
Returns
Type Description
AutomationRule.RuleCase

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasAdvanceRolloutRule()

public boolean hasAdvanceRolloutRule()

Optional. The AdvanceRolloutRule will automatically advance a successful Rollout.

.google.cloud.deploy.v1.AdvanceRolloutRule advance_rollout_rule = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the advanceRolloutRule field is set.

hasPromoteReleaseRule()

public boolean hasPromoteReleaseRule()

Optional. PromoteReleaseRule will automatically promote a release from the current target to a specified target.

.google.cloud.deploy.v1.PromoteReleaseRule promote_release_rule = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the promoteReleaseRule field is set.

hasRepairRolloutRule()

public boolean hasRepairRolloutRule()

Optional. The RepairRolloutRule will automatically repair a failed rollout.

.google.cloud.deploy.v1.RepairRolloutRule repair_rollout_rule = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the repairRolloutRule 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 AutomationRule.Builder newBuilderForType()
Returns
Type Description
AutomationRule.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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