Class RepairRolloutRule.Builder (1.32.0)

public static final class RepairRolloutRule.Builder extends GeneratedMessageV3.Builder<RepairRolloutRule.Builder> implements RepairRolloutRuleOrBuilder

The RepairRolloutRule automation rule will automatically repair a failed Rollout.

Protobuf type google.cloud.deploy.v1.RepairRolloutRule

Static Methods

getDescriptor()

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

Methods

addAllJobs(Iterable<String> values)

public RepairRolloutRule.Builder addAllJobs(Iterable<String> values)

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
NameDescription
valuesIterable<String>

The jobs to add.

Returns
TypeDescription
RepairRolloutRule.Builder

This builder for chaining.

addAllRepairModes(Iterable<? extends RepairMode> values)

public RepairRolloutRule.Builder addAllRepairModes(Iterable<? extends RepairMode> values)

Required. Defines the types of automatic repair actions for failed jobs.

repeated .google.cloud.deploy.v1.RepairMode repair_modes = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.deploy.v1.RepairMode>
Returns
TypeDescription
RepairRolloutRule.Builder

addAllSourcePhases(Iterable<String> values)

public RepairRolloutRule.Builder addAllSourcePhases(Iterable<String> values)

Optional. Phases within which jobs are subject to automatic repair actions on failure. Proceeds only after phase name matched any one in the list, or for all phases if unspecified. 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 = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuesIterable<String>

The sourcePhases to add.

Returns
TypeDescription
RepairRolloutRule.Builder

This builder for chaining.

addJobs(String value)

public RepairRolloutRule.Builder addJobs(String value)

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
NameDescription
valueString

The jobs to add.

Returns
TypeDescription
RepairRolloutRule.Builder

This builder for chaining.

addJobsBytes(ByteString value)

public RepairRolloutRule.Builder addJobsBytes(ByteString value)

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
NameDescription
valueByteString

The bytes of the jobs to add.

Returns
TypeDescription
RepairRolloutRule.Builder

This builder for chaining.

addRepairModes(RepairMode value)

public RepairRolloutRule.Builder addRepairModes(RepairMode value)

Required. Defines the types of automatic repair actions for failed jobs.

repeated .google.cloud.deploy.v1.RepairMode repair_modes = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueRepairMode
Returns
TypeDescription
RepairRolloutRule.Builder

addRepairModes(RepairMode.Builder builderForValue)

public RepairRolloutRule.Builder addRepairModes(RepairMode.Builder builderForValue)

Required. Defines the types of automatic repair actions for failed jobs.

repeated .google.cloud.deploy.v1.RepairMode repair_modes = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueRepairMode.Builder
Returns
TypeDescription
RepairRolloutRule.Builder

addRepairModes(int index, RepairMode value)

public RepairRolloutRule.Builder addRepairModes(int index, RepairMode value)

Required. Defines the types of automatic repair actions for failed jobs.

repeated .google.cloud.deploy.v1.RepairMode repair_modes = 4 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint
valueRepairMode
Returns
TypeDescription
RepairRolloutRule.Builder

addRepairModes(int index, RepairMode.Builder builderForValue)

public RepairRolloutRule.Builder addRepairModes(int index, RepairMode.Builder builderForValue)

Required. Defines the types of automatic repair actions for failed jobs.

repeated .google.cloud.deploy.v1.RepairMode repair_modes = 4 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint
builderForValueRepairMode.Builder
Returns
TypeDescription
RepairRolloutRule.Builder

addRepairModesBuilder()

public RepairMode.Builder addRepairModesBuilder()

Required. Defines the types of automatic repair actions for failed jobs.

repeated .google.cloud.deploy.v1.RepairMode repair_modes = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
RepairMode.Builder

addRepairModesBuilder(int index)

public RepairMode.Builder addRepairModesBuilder(int index)

Required. Defines the types of automatic repair actions for failed jobs.

repeated .google.cloud.deploy.v1.RepairMode repair_modes = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
RepairMode.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RepairRolloutRule.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
RepairRolloutRule.Builder
Overrides

addSourcePhases(String value)

public RepairRolloutRule.Builder addSourcePhases(String value)

Optional. Phases within which jobs are subject to automatic repair actions on failure. Proceeds only after phase name matched any one in the list, or for all phases if unspecified. 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 = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The sourcePhases to add.

Returns
TypeDescription
RepairRolloutRule.Builder

This builder for chaining.

addSourcePhasesBytes(ByteString value)

public RepairRolloutRule.Builder addSourcePhasesBytes(ByteString value)

Optional. Phases within which jobs are subject to automatic repair actions on failure. Proceeds only after phase name matched any one in the list, or for all phases if unspecified. 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 = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes of the sourcePhases to add.

Returns
TypeDescription
RepairRolloutRule.Builder

This builder for chaining.

build()

public RepairRolloutRule build()
Returns
TypeDescription
RepairRolloutRule

buildPartial()

public RepairRolloutRule buildPartial()
Returns
TypeDescription
RepairRolloutRule

clear()

public RepairRolloutRule.Builder clear()
Returns
TypeDescription
RepairRolloutRule.Builder
Overrides

clearCondition()

public RepairRolloutRule.Builder clearCondition()

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

.google.cloud.deploy.v1.AutomationRuleCondition condition = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
RepairRolloutRule.Builder

clearField(Descriptors.FieldDescriptor field)

public RepairRolloutRule.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
RepairRolloutRule.Builder
Overrides

clearId()

public RepairRolloutRule.Builder clearId()

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
RepairRolloutRule.Builder

This builder for chaining.

clearJobs()

public RepairRolloutRule.Builder clearJobs()

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
TypeDescription
RepairRolloutRule.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public RepairRolloutRule.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
RepairRolloutRule.Builder
Overrides

clearRepairModes()

public RepairRolloutRule.Builder clearRepairModes()

Required. Defines the types of automatic repair actions for failed jobs.

repeated .google.cloud.deploy.v1.RepairMode repair_modes = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
RepairRolloutRule.Builder

clearSourcePhases()

public RepairRolloutRule.Builder clearSourcePhases()

Optional. Phases within which jobs are subject to automatic repair actions on failure. Proceeds only after phase name matched any one in the list, or for all phases if unspecified. 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 = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
RepairRolloutRule.Builder

This builder for chaining.

clone()

public RepairRolloutRule.Builder clone()
Returns
TypeDescription
RepairRolloutRule.Builder
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
TypeDescription
AutomationRuleCondition

The condition.

getConditionBuilder()

public AutomationRuleCondition.Builder getConditionBuilder()

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

.google.cloud.deploy.v1.AutomationRuleCondition condition = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
AutomationRuleCondition.Builder

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
TypeDescription
AutomationRuleConditionOrBuilder

getDefaultInstanceForType()

public RepairRolloutRule getDefaultInstanceForType()
Returns
TypeDescription
RepairRolloutRule

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.

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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProtocolStringList

A list containing the jobs.

getRepairModes(int index)

public RepairMode getRepairModes(int index)

Required. Defines the types of automatic repair actions for failed jobs.

repeated .google.cloud.deploy.v1.RepairMode repair_modes = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
RepairMode

getRepairModesBuilder(int index)

public RepairMode.Builder getRepairModesBuilder(int index)

Required. Defines the types of automatic repair actions for failed jobs.

repeated .google.cloud.deploy.v1.RepairMode repair_modes = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
RepairMode.Builder

getRepairModesBuilderList()

public List<RepairMode.Builder> getRepairModesBuilderList()

Required. Defines the types of automatic repair actions for failed jobs.

repeated .google.cloud.deploy.v1.RepairMode repair_modes = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
List<Builder>

getRepairModesCount()

public int getRepairModesCount()

Required. Defines the types of automatic repair actions for failed jobs.

repeated .google.cloud.deploy.v1.RepairMode repair_modes = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

getRepairModesList()

public List<RepairMode> getRepairModesList()

Required. Defines the types of automatic repair actions for failed jobs.

repeated .google.cloud.deploy.v1.RepairMode repair_modes = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
List<RepairMode>

getRepairModesOrBuilder(int index)

public RepairModeOrBuilder getRepairModesOrBuilder(int index)

Required. Defines the types of automatic repair actions for failed jobs.

repeated .google.cloud.deploy.v1.RepairMode repair_modes = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
RepairModeOrBuilder

getRepairModesOrBuilderList()

public List<? extends RepairModeOrBuilder> getRepairModesOrBuilderList()

Required. Defines the types of automatic repair actions for failed jobs.

repeated .google.cloud.deploy.v1.RepairMode repair_modes = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
List<? extends com.google.cloud.deploy.v1.RepairModeOrBuilder>

getSourcePhases(int index)

public String getSourcePhases(int index)

Optional. Phases within which jobs are subject to automatic repair actions on failure. Proceeds only after phase name matched any one in the list, or for all phases if unspecified. 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 = 2 [(.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. Phases within which jobs are subject to automatic repair actions on failure. Proceeds only after phase name matched any one in the list, or for all phases if unspecified. 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 = 2 [(.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. Phases within which jobs are subject to automatic repair actions on failure. Proceeds only after phase name matched any one in the list, or for all phases if unspecified. 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 = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The count of sourcePhases.

getSourcePhasesList()

public ProtocolStringList getSourcePhasesList()

Optional. Phases within which jobs are subject to automatic repair actions on failure. Proceeds only after phase name matched any one in the list, or for all phases if unspecified. 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 = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ProtocolStringList

A list containing the sourcePhases.

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
TypeDescription
boolean

Whether the condition field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCondition(AutomationRuleCondition value)

public RepairRolloutRule.Builder mergeCondition(AutomationRuleCondition value)

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

.google.cloud.deploy.v1.AutomationRuleCondition condition = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueAutomationRuleCondition
Returns
TypeDescription
RepairRolloutRule.Builder

mergeFrom(RepairRolloutRule other)

public RepairRolloutRule.Builder mergeFrom(RepairRolloutRule other)
Parameter
NameDescription
otherRepairRolloutRule
Returns
TypeDescription
RepairRolloutRule.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RepairRolloutRule.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RepairRolloutRule.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public RepairRolloutRule.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
RepairRolloutRule.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RepairRolloutRule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RepairRolloutRule.Builder
Overrides

removeRepairModes(int index)

public RepairRolloutRule.Builder removeRepairModes(int index)

Required. Defines the types of automatic repair actions for failed jobs.

repeated .google.cloud.deploy.v1.RepairMode repair_modes = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
RepairRolloutRule.Builder

setCondition(AutomationRuleCondition value)

public RepairRolloutRule.Builder setCondition(AutomationRuleCondition value)

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

.google.cloud.deploy.v1.AutomationRuleCondition condition = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueAutomationRuleCondition
Returns
TypeDescription
RepairRolloutRule.Builder

setCondition(AutomationRuleCondition.Builder builderForValue)

public RepairRolloutRule.Builder setCondition(AutomationRuleCondition.Builder builderForValue)

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

.google.cloud.deploy.v1.AutomationRuleCondition condition = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueAutomationRuleCondition.Builder
Returns
TypeDescription
RepairRolloutRule.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public RepairRolloutRule.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
RepairRolloutRule.Builder
Overrides

setId(String value)

public RepairRolloutRule.Builder setId(String value)

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];

Parameter
NameDescription
valueString

The id to set.

Returns
TypeDescription
RepairRolloutRule.Builder

This builder for chaining.

setIdBytes(ByteString value)

public RepairRolloutRule.Builder setIdBytes(ByteString value)

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];

Parameter
NameDescription
valueByteString

The bytes for id to set.

Returns
TypeDescription
RepairRolloutRule.Builder

This builder for chaining.

setJobs(int index, String value)

public RepairRolloutRule.Builder setJobs(int index, String value)

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];

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The jobs to set.

Returns
TypeDescription
RepairRolloutRule.Builder

This builder for chaining.

setRepairModes(int index, RepairMode value)

public RepairRolloutRule.Builder setRepairModes(int index, RepairMode value)

Required. Defines the types of automatic repair actions for failed jobs.

repeated .google.cloud.deploy.v1.RepairMode repair_modes = 4 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint
valueRepairMode
Returns
TypeDescription
RepairRolloutRule.Builder

setRepairModes(int index, RepairMode.Builder builderForValue)

public RepairRolloutRule.Builder setRepairModes(int index, RepairMode.Builder builderForValue)

Required. Defines the types of automatic repair actions for failed jobs.

repeated .google.cloud.deploy.v1.RepairMode repair_modes = 4 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint
builderForValueRepairMode.Builder
Returns
TypeDescription
RepairRolloutRule.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public RepairRolloutRule.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
RepairRolloutRule.Builder
Overrides

setSourcePhases(int index, String value)

public RepairRolloutRule.Builder setSourcePhases(int index, String value)

Optional. Phases within which jobs are subject to automatic repair actions on failure. Proceeds only after phase name matched any one in the list, or for all phases if unspecified. 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 = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The sourcePhases to set.

Returns
TypeDescription
RepairRolloutRule.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final RepairRolloutRule.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RepairRolloutRule.Builder
Overrides