Class Condition (0.32.0)

public final class Condition extends GeneratedMessageV3 implements ConditionOrBuilder

Defines a status condition for a resource.

Protobuf type google.cloud.run.v2.Condition

Implements

ConditionOrBuilder

Static Fields

EXECUTION_REASON_FIELD_NUMBER

public static final int EXECUTION_REASON_FIELD_NUMBER
Field Value
TypeDescription
int

LAST_TRANSITION_TIME_FIELD_NUMBER

public static final int LAST_TRANSITION_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

MESSAGE_FIELD_NUMBER

public static final int MESSAGE_FIELD_NUMBER
Field Value
TypeDescription
int

REASON_FIELD_NUMBER

public static final int REASON_FIELD_NUMBER
Field Value
TypeDescription
int

REVISION_REASON_FIELD_NUMBER

public static final int REVISION_REASON_FIELD_NUMBER
Field Value
TypeDescription
int

SEVERITY_FIELD_NUMBER

public static final int SEVERITY_FIELD_NUMBER
Field Value
TypeDescription
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
TypeDescription
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Condition getDefaultInstance()
Returns
TypeDescription
Condition

getDescriptor()

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

newBuilder()

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

newBuilder(Condition prototype)

public static Condition.Builder newBuilder(Condition prototype)
Parameter
NameDescription
prototypeCondition
Returns
TypeDescription
Condition.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public Condition getDefaultInstanceForType()
Returns
TypeDescription
Condition

getExecutionReason()

public Condition.ExecutionReason getExecutionReason()

A reason for the execution condition.

.google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11;

Returns
TypeDescription
Condition.ExecutionReason

The executionReason.

getExecutionReasonValue()

public int getExecutionReasonValue()

A reason for the execution condition.

.google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11;

Returns
TypeDescription
int

The enum numeric value on the wire for executionReason.

getLastTransitionTime()

public Timestamp getLastTransitionTime()

Last time the condition transitioned from one status to another.

.google.protobuf.Timestamp last_transition_time = 4;

Returns
TypeDescription
Timestamp

The lastTransitionTime.

getLastTransitionTimeOrBuilder()

public TimestampOrBuilder getLastTransitionTimeOrBuilder()

Last time the condition transitioned from one status to another.

.google.protobuf.Timestamp last_transition_time = 4;

Returns
TypeDescription
TimestampOrBuilder

getMessage()

public String getMessage()

Human readable message indicating details about the current status.

string message = 3;

Returns
TypeDescription
String

The message.

getMessageBytes()

public ByteString getMessageBytes()

Human readable message indicating details about the current status.

string message = 3;

Returns
TypeDescription
ByteString

The bytes for message.

getParserForType()

public Parser<Condition> getParserForType()
Returns
TypeDescription
Parser<Condition>
Overrides

getReason()

public Condition.CommonReason getReason()

A common (service-level) reason for this condition.

.google.cloud.run.v2.Condition.CommonReason reason = 6;

Returns
TypeDescription
Condition.CommonReason

The reason.

getReasonValue()

public int getReasonValue()

A common (service-level) reason for this condition.

.google.cloud.run.v2.Condition.CommonReason reason = 6;

Returns
TypeDescription
int

The enum numeric value on the wire for reason.

getReasonsCase()

public Condition.ReasonsCase getReasonsCase()
Returns
TypeDescription
Condition.ReasonsCase

getRevisionReason()

public Condition.RevisionReason getRevisionReason()

A reason for the revision condition.

.google.cloud.run.v2.Condition.RevisionReason revision_reason = 9;

Returns
TypeDescription
Condition.RevisionReason

The revisionReason.

getRevisionReasonValue()

public int getRevisionReasonValue()

A reason for the revision condition.

.google.cloud.run.v2.Condition.RevisionReason revision_reason = 9;

Returns
TypeDescription
int

The enum numeric value on the wire for revisionReason.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSeverity()

public Condition.Severity getSeverity()

How to interpret failures of this condition, one of Error, Warning, Info

.google.cloud.run.v2.Condition.Severity severity = 5;

Returns
TypeDescription
Condition.Severity

The severity.

getSeverityValue()

public int getSeverityValue()

How to interpret failures of this condition, one of Error, Warning, Info

.google.cloud.run.v2.Condition.Severity severity = 5;

Returns
TypeDescription
int

The enum numeric value on the wire for severity.

getState()

public Condition.State getState()

State of the condition.

.google.cloud.run.v2.Condition.State state = 2;

Returns
TypeDescription
Condition.State

The state.

getStateValue()

public int getStateValue()

State of the condition.

.google.cloud.run.v2.Condition.State state = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for state.

getType()

public String getType()

type is used to communicate the status of the reconciliation process. See also: https://github.com/knative/serving/blob/main/docs/spec/errors.md#error-conditions-and-reporting Types common to all resources include:

  • "Ready": True when the Resource is ready.

string type = 1;

Returns
TypeDescription
String

The type.

getTypeBytes()

public ByteString getTypeBytes()

type is used to communicate the status of the reconciliation process. See also: https://github.com/knative/serving/blob/main/docs/spec/errors.md#error-conditions-and-reporting Types common to all resources include:

  • "Ready": True when the Resource is ready.

string type = 1;

Returns
TypeDescription
ByteString

The bytes for type.

hasExecutionReason()

public boolean hasExecutionReason()

A reason for the execution condition.

.google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11;

Returns
TypeDescription
boolean

Whether the executionReason field is set.

hasLastTransitionTime()

public boolean hasLastTransitionTime()

Last time the condition transitioned from one status to another.

.google.protobuf.Timestamp last_transition_time = 4;

Returns
TypeDescription
boolean

Whether the lastTransitionTime field is set.

hasReason()

public boolean hasReason()

A common (service-level) reason for this condition.

.google.cloud.run.v2.Condition.CommonReason reason = 6;

Returns
TypeDescription
boolean

Whether the reason field is set.

hasRevisionReason()

public boolean hasRevisionReason()

A reason for the revision condition.

.google.cloud.run.v2.Condition.RevisionReason revision_reason = 9;

Returns
TypeDescription
boolean

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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