Class RepairRolloutRule (1.47.0)

public final class RepairRolloutRule extends GeneratedMessageV3 implements RepairRolloutRuleOrBuilder

The RepairRolloutRule automation rule will automatically repair a failed Rollout.

Protobuf type google.cloud.deploy.v1.RepairRolloutRule

Static Fields

CONDITION_FIELD_NUMBER

public static final int CONDITION_FIELD_NUMBER
Field Value
Type Description
int

ID_FIELD_NUMBER

public static final int ID_FIELD_NUMBER
Field Value
Type Description
int

JOBS_FIELD_NUMBER

public static final int JOBS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static RepairRolloutRule getDefaultInstance()
Returns
Type Description
RepairRolloutRule

getDescriptor()

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

newBuilder()

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

newBuilder(RepairRolloutRule prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

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 = 6 [(.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 = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AutomationRuleConditionOrBuilder

getDefaultInstanceForType()

public RepairRolloutRule getDefaultInstanceForType()
Returns
Type Description
RepairRolloutRule

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.

getJobs(int index)

public String getJobs(int index)

Optional. Jobs to repair. Proceeds only after job name matched any one in the list, or for all jobs if unspecified or empty. The phase that includes the job must match the phase ID specified in source_phase. 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 jobs = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The jobs at the given index.

getJobsBytes(int index)

public ByteString getJobsBytes(int index)

Optional. Jobs to repair. Proceeds only after job name matched any one in the list, or for all jobs if unspecified or empty. The phase that includes the job must match the phase ID specified in source_phase. 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 jobs = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the jobs at the given index.

getJobsCount()

public int getJobsCount()

Optional. Jobs to repair. Proceeds only after job name matched any one in the list, or for all jobs if unspecified or empty. The phase that includes the job must match the phase ID specified in source_phase. 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 jobs = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of jobs.

getJobsList()

public ProtocolStringList getJobsList()

Optional. Jobs to repair. Proceeds only after job name matched any one in the list, or for all jobs if unspecified or empty. The phase that includes the job must match the phase ID specified in source_phase. 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 jobs = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the jobs.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasCondition()

public boolean hasCondition()

Output only. Information around the state of the 'Automation' rule.

.google.cloud.deploy.v1.AutomationRuleCondition condition = 6 [(.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 RepairRolloutRule.Builder newBuilderForType()
Returns
Type Description
RepairRolloutRule.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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