Class AutomationRule (1.28.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
TypeDescription
int

PROMOTE_RELEASE_RULE_FIELD_NUMBER

public static final int PROMOTE_RELEASE_RULE_FIELD_NUMBER
Field Value
TypeDescription
int

REPAIR_ROLLOUT_RULE_FIELD_NUMBER

public static final int REPAIR_ROLLOUT_RULE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static AutomationRule getDefaultInstance()
Returns
TypeDescription
AutomationRule

getDescriptor()

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

newBuilder()

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

newBuilder(AutomationRule prototype)

public static AutomationRule.Builder newBuilder(AutomationRule prototype)
Parameter
NameDescription
prototypeAutomationRule
Returns
TypeDescription
AutomationRule.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public AutomationRule getDefaultInstanceForType()
Returns
TypeDescription
AutomationRule

getParserForType()

public Parser<AutomationRule> getParserForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
RepairRolloutRuleOrBuilder

getRuleCase()

public AutomationRule.RuleCase getRuleCase()
Returns
TypeDescription
AutomationRule.RuleCase

getSerializedSize()

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

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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