Class Condition (0.46.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
Type Description
int

LAST_TRANSITION_TIME_FIELD_NUMBER

public static final int LAST_TRANSITION_TIME_FIELD_NUMBER
Field Value
Type Description
int

MESSAGE_FIELD_NUMBER

public static final int MESSAGE_FIELD_NUMBER
Field Value
Type Description
int

REASON_FIELD_NUMBER

public static final int REASON_FIELD_NUMBER
Field Value
Type Description
int

REVISION_REASON_FIELD_NUMBER

public static final int REVISION_REASON_FIELD_NUMBER
Field Value
Type Description
int

SEVERITY_FIELD_NUMBER

public static final int SEVERITY_FIELD_NUMBER
Field Value
Type Description
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
Type Description
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Condition getDefaultInstance()
Returns
Type Description
Condition

getDescriptor()

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

newBuilder()

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

newBuilder(Condition prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public Condition getDefaultInstanceForType()
Returns
Type Description
Condition

getExecutionReason()

public Condition.ExecutionReason getExecutionReason()

A reason for the execution condition.

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

Returns
Type Description
Condition.ExecutionReason

The executionReason.

getExecutionReasonValue()

public int getExecutionReasonValue()

A reason for the execution condition.

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

Returns
Type Description
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
Type Description
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
Type Description
TimestampOrBuilder

getMessage()

public String getMessage()

Human readable message indicating details about the current status.

string message = 3;

Returns
Type Description
String

The message.

getMessageBytes()

public ByteString getMessageBytes()

Human readable message indicating details about the current status.

string message = 3;

Returns
Type Description
ByteString

The bytes for message.

getParserForType()

public Parser<Condition> getParserForType()
Returns
Type Description
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
Type Description
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
Type Description
int

The enum numeric value on the wire for reason.

getReasonsCase()

public Condition.ReasonsCase getReasonsCase()
Returns
Type Description
Condition.ReasonsCase

getRevisionReason()

public Condition.RevisionReason getRevisionReason()

A reason for the revision condition.

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

Returns
Type Description
Condition.RevisionReason

The revisionReason.

getRevisionReasonValue()

public int getRevisionReasonValue()

A reason for the revision condition.

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

Returns
Type Description
int

The enum numeric value on the wire for revisionReason.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
Condition.State

The state.

getStateValue()

public int getStateValue()

State of the condition.

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

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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