Class LifecyclePolicy.ActionCondition (0.1.0)

public static final class LifecyclePolicy.ActionCondition extends GeneratedMessageV3 implements LifecyclePolicy.ActionConditionOrBuilder

Conditions for actions to deal with task failures.

Protobuf type google.cloud.batch.v1.LifecyclePolicy.ActionCondition

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > LifecyclePolicy.ActionCondition

Static Fields

EXIT_CODES_FIELD_NUMBER

public static final int EXIT_CODES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static LifecyclePolicy.ActionCondition getDefaultInstance()
Returns
TypeDescription
LifecyclePolicy.ActionCondition

getDescriptor()

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

newBuilder()

public static LifecyclePolicy.ActionCondition.Builder newBuilder()
Returns
TypeDescription
LifecyclePolicy.ActionCondition.Builder

newBuilder(LifecyclePolicy.ActionCondition prototype)

public static LifecyclePolicy.ActionCondition.Builder newBuilder(LifecyclePolicy.ActionCondition prototype)
Parameter
NameDescription
prototypeLifecyclePolicy.ActionCondition
Returns
TypeDescription
LifecyclePolicy.ActionCondition.Builder

parseDelimitedFrom(InputStream input)

public static LifecyclePolicy.ActionCondition parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
LifecyclePolicy.ActionCondition
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static LifecyclePolicy.ActionCondition parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
LifecyclePolicy.ActionCondition
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static LifecyclePolicy.ActionCondition parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
LifecyclePolicy.ActionCondition
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static LifecyclePolicy.ActionCondition parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
LifecyclePolicy.ActionCondition
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static LifecyclePolicy.ActionCondition parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
LifecyclePolicy.ActionCondition
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<LifecyclePolicy.ActionCondition> parser()
Returns
TypeDescription
Parser<ActionCondition>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public LifecyclePolicy.ActionCondition getDefaultInstanceForType()
Returns
TypeDescription
LifecyclePolicy.ActionCondition

getExitCodes(int index)

public int getExitCodes(int index)

Exit codes of a task execution. If there are more than 1 exit codes, when task executes with any of the exit code in the list, the condition is met and the action will be executed.

repeated int32 exit_codes = 1;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
int

The exitCodes at the given index.

getExitCodesCount()

public int getExitCodesCount()

Exit codes of a task execution. If there are more than 1 exit codes, when task executes with any of the exit code in the list, the condition is met and the action will be executed.

repeated int32 exit_codes = 1;

Returns
TypeDescription
int

The count of exitCodes.

getExitCodesList()

public List<Integer> getExitCodesList()

Exit codes of a task execution. If there are more than 1 exit codes, when task executes with any of the exit code in the list, the condition is met and the action will be executed.

repeated int32 exit_codes = 1;

Returns
TypeDescription
List<Integer>

A list containing the exitCodes.

getParserForType()

public Parser<LifecyclePolicy.ActionCondition> getParserForType()
Returns
TypeDescription
Parser<ActionCondition>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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 LifecyclePolicy.ActionCondition.Builder newBuilderForType()
Returns
TypeDescription
LifecyclePolicy.ActionCondition.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public LifecyclePolicy.ActionCondition.Builder toBuilder()
Returns
TypeDescription
LifecyclePolicy.ActionCondition.Builder

writeTo(CodedOutputStream output)

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