Package com.google.cloud.deploy.v1
Class RepairRolloutRule
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.deploy.v1.RepairRolloutRule
- All Implemented Interfaces:
RepairRolloutRuleOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class RepairRolloutRule
extends com.google.protobuf.GeneratedMessage
implements RepairRolloutRuleOrBuilder
The `RepairRolloutRule` automation rule will automatically repair a failed `Rollout`.Protobuf type
google.cloud.deploy.v1.RepairRolloutRule- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThe `RepairRolloutRule` automation rule will automatically repair a failed `Rollout`.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanOutput only.Output only.static RepairRolloutRulestatic final com.google.protobuf.Descriptors.DescriptorgetId()Required.com.google.protobuf.ByteStringRequired.getJobs(int index) Optional.com.google.protobuf.ByteStringgetJobsBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.com.google.protobuf.Parser<RepairRolloutRule>getPhases(int index) Optional.com.google.protobuf.ByteStringgetPhasesBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.getRepairPhases(int index) Required.intRequired.Required.getRepairPhasesOrBuilder(int index) Required.List<? extends RepairPhaseConfigOrBuilder>Required.intbooleanOutput only.inthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic RepairRolloutRule.Builderstatic RepairRolloutRule.BuildernewBuilder(RepairRolloutRule prototype) protected RepairRolloutRule.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static RepairRolloutRuleparseDelimitedFrom(InputStream input) static RepairRolloutRuleparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RepairRolloutRuleparseFrom(byte[] data) static RepairRolloutRuleparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RepairRolloutRuleparseFrom(com.google.protobuf.ByteString data) static RepairRolloutRuleparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RepairRolloutRuleparseFrom(com.google.protobuf.CodedInputStream input) static RepairRolloutRuleparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RepairRolloutRuleparseFrom(InputStream input) static RepairRolloutRuleparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RepairRolloutRuleparseFrom(ByteBuffer data) static RepairRolloutRuleparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<RepairRolloutRule>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER- See Also:
-
PHASES_FIELD_NUMBER
public static final int PHASES_FIELD_NUMBER- See Also:
-
JOBS_FIELD_NUMBER
public static final int JOBS_FIELD_NUMBER- See Also:
-
CONDITION_FIELD_NUMBER
public static final int CONDITION_FIELD_NUMBER- See Also:
-
REPAIR_PHASES_FIELD_NUMBER
public static final int REPAIR_PHASES_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
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]([a-z0-9-]{0,61}[a-z0-9])?`.string id = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getIdin interfaceRepairRolloutRuleOrBuilder- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.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]([a-z0-9-]{0,61}[a-z0-9])?`.string id = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getIdBytesin interfaceRepairRolloutRuleOrBuilder- Returns:
- The bytes for id.
-
getPhasesList
public com.google.protobuf.ProtocolStringList getPhasesList()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]([a-z0-9-]{0,61}[a-z0-9])?$`.repeated string phases = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPhasesListin interfaceRepairRolloutRuleOrBuilder- Returns:
- A list containing the phases.
-
getPhasesCount
public int getPhasesCount()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]([a-z0-9-]{0,61}[a-z0-9])?$`.repeated string phases = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPhasesCountin interfaceRepairRolloutRuleOrBuilder- Returns:
- The count of phases.
-
getPhases
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]([a-z0-9-]{0,61}[a-z0-9])?$`.repeated string phases = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPhasesin interfaceRepairRolloutRuleOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The phases at the given index.
-
getPhasesBytes
public com.google.protobuf.ByteString getPhasesBytes(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]([a-z0-9-]{0,61}[a-z0-9])?$`.repeated string phases = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPhasesBytesin interfaceRepairRolloutRuleOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the phases at the given index.
-
getJobsList
public com.google.protobuf.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]([a-z0-9-]{0,61}[a-z0-9])?$`.repeated string jobs = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getJobsListin interfaceRepairRolloutRuleOrBuilder- Returns:
- A list containing the jobs.
-
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]([a-z0-9-]{0,61}[a-z0-9])?$`.repeated string jobs = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getJobsCountin interfaceRepairRolloutRuleOrBuilder- Returns:
- The count of jobs.
-
getJobs
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]([a-z0-9-]{0,61}[a-z0-9])?$`.repeated string jobs = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getJobsin interfaceRepairRolloutRuleOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The jobs at the given index.
-
getJobsBytes
public com.google.protobuf.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]([a-z0-9-]{0,61}[a-z0-9])?$`.repeated string jobs = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getJobsBytesin interfaceRepairRolloutRuleOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the jobs at the given index.
-
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];- Specified by:
hasConditionin interfaceRepairRolloutRuleOrBuilder- Returns:
- Whether the condition field is set.
-
getCondition
Output only. Information around the state of the 'Automation' rule.
.google.cloud.deploy.v1.AutomationRuleCondition condition = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getConditionin interfaceRepairRolloutRuleOrBuilder- Returns:
- The condition.
-
getConditionOrBuilder
Output only. Information around the state of the 'Automation' rule.
.google.cloud.deploy.v1.AutomationRuleCondition condition = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getConditionOrBuilderin interfaceRepairRolloutRuleOrBuilder
-
getRepairPhasesList
Required. Defines the types of automatic repair phases for failed jobs.
repeated .google.cloud.deploy.v1.RepairPhaseConfig repair_phases = 8 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getRepairPhasesListin interfaceRepairRolloutRuleOrBuilder
-
getRepairPhasesOrBuilderList
Required. Defines the types of automatic repair phases for failed jobs.
repeated .google.cloud.deploy.v1.RepairPhaseConfig repair_phases = 8 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getRepairPhasesOrBuilderListin interfaceRepairRolloutRuleOrBuilder
-
getRepairPhasesCount
public int getRepairPhasesCount()Required. Defines the types of automatic repair phases for failed jobs.
repeated .google.cloud.deploy.v1.RepairPhaseConfig repair_phases = 8 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getRepairPhasesCountin interfaceRepairRolloutRuleOrBuilder
-
getRepairPhases
Required. Defines the types of automatic repair phases for failed jobs.
repeated .google.cloud.deploy.v1.RepairPhaseConfig repair_phases = 8 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getRepairPhasesin interfaceRepairRolloutRuleOrBuilder
-
getRepairPhasesOrBuilder
Required. Defines the types of automatic repair phases for failed jobs.
repeated .google.cloud.deploy.v1.RepairPhaseConfig repair_phases = 8 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getRepairPhasesOrBuilderin interfaceRepairRolloutRuleOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static RepairRolloutRule parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RepairRolloutRule parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RepairRolloutRule parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RepairRolloutRule parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RepairRolloutRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RepairRolloutRule parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static RepairRolloutRule parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static RepairRolloutRule parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static RepairRolloutRule parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static RepairRolloutRule parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected RepairRolloutRule.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-