Class Condition.Builder (0.4.0)

public static final class Condition.Builder extends GeneratedMessageV3.Builder<Condition.Builder> implements ConditionOrBuilder

Defines a status condition for a resource.

Protobuf type google.cloud.run.v2.Condition

Implements

ConditionOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Condition build()
Returns
TypeDescription
Condition

buildPartial()

public Condition buildPartial()
Returns
TypeDescription
Condition

clear()

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

clearExecutionReason()

public Condition.Builder clearExecutionReason()

A reason for the execution condition.

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

Returns
TypeDescription
Condition.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearLastTransitionTime()

public Condition.Builder clearLastTransitionTime()

Last time the condition transitioned from one status to another.

.google.protobuf.Timestamp last_transition_time = 4;

Returns
TypeDescription
Condition.Builder

clearMessage()

public Condition.Builder clearMessage()

Human readable message indicating details about the current status.

string message = 3;

Returns
TypeDescription
Condition.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearReason()

public Condition.Builder clearReason()

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

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

Returns
TypeDescription
Condition.Builder

This builder for chaining.

clearReasons()

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

clearRevisionReason()

public Condition.Builder clearRevisionReason()

A reason for the revision condition.

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

Returns
TypeDescription
Condition.Builder

This builder for chaining.

clearSeverity()

public Condition.Builder clearSeverity()

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

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

Returns
TypeDescription
Condition.Builder

This builder for chaining.

clearState()

public Condition.Builder clearState()

State of the condition.

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

Returns
TypeDescription
Condition.Builder

This builder for chaining.

clearType()

public Condition.Builder clearType()

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

This builder for chaining.

clone()

public Condition.Builder clone()
Returns
TypeDescription
Condition.Builder
Overrides

getDefaultInstanceForType()

public Condition getDefaultInstanceForType()
Returns
TypeDescription
Condition

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.

getLastTransitionTimeBuilder()

public Timestamp.Builder getLastTransitionTimeBuilder()

Last time the condition transitioned from one status to another.

.google.protobuf.Timestamp last_transition_time = 4;

Returns
TypeDescription
Builder

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.

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.

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Condition other)

public Condition.Builder mergeFrom(Condition other)
Parameter
NameDescription
otherCondition
Returns
TypeDescription
Condition.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeLastTransitionTime(Timestamp value)

public Condition.Builder mergeLastTransitionTime(Timestamp value)

Last time the condition transitioned from one status to another.

.google.protobuf.Timestamp last_transition_time = 4;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Condition.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setExecutionReason(Condition.ExecutionReason value)

public Condition.Builder setExecutionReason(Condition.ExecutionReason value)

A reason for the execution condition.

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

Parameter
NameDescription
valueCondition.ExecutionReason

The executionReason to set.

Returns
TypeDescription
Condition.Builder

This builder for chaining.

setExecutionReasonValue(int value)

public Condition.Builder setExecutionReasonValue(int value)

A reason for the execution condition.

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

Parameter
NameDescription
valueint

The enum numeric value on the wire for executionReason to set.

Returns
TypeDescription
Condition.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setLastTransitionTime(Timestamp value)

public Condition.Builder setLastTransitionTime(Timestamp value)

Last time the condition transitioned from one status to another.

.google.protobuf.Timestamp last_transition_time = 4;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Condition.Builder

setLastTransitionTime(Timestamp.Builder builderForValue)

public Condition.Builder setLastTransitionTime(Timestamp.Builder builderForValue)

Last time the condition transitioned from one status to another.

.google.protobuf.Timestamp last_transition_time = 4;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Condition.Builder

setMessage(String value)

public Condition.Builder setMessage(String value)

Human readable message indicating details about the current status.

string message = 3;

Parameter
NameDescription
valueString

The message to set.

Returns
TypeDescription
Condition.Builder

This builder for chaining.

setMessageBytes(ByteString value)

public Condition.Builder setMessageBytes(ByteString value)

Human readable message indicating details about the current status.

string message = 3;

Parameter
NameDescription
valueByteString

The bytes for message to set.

Returns
TypeDescription
Condition.Builder

This builder for chaining.

setReason(Condition.CommonReason value)

public Condition.Builder setReason(Condition.CommonReason value)

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

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

Parameter
NameDescription
valueCondition.CommonReason

The reason to set.

Returns
TypeDescription
Condition.Builder

This builder for chaining.

setReasonValue(int value)

public Condition.Builder setReasonValue(int value)

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

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

Parameter
NameDescription
valueint

The enum numeric value on the wire for reason to set.

Returns
TypeDescription
Condition.Builder

This builder for chaining.

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

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

setRevisionReason(Condition.RevisionReason value)

public Condition.Builder setRevisionReason(Condition.RevisionReason value)

A reason for the revision condition.

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

Parameter
NameDescription
valueCondition.RevisionReason

The revisionReason to set.

Returns
TypeDescription
Condition.Builder

This builder for chaining.

setRevisionReasonValue(int value)

public Condition.Builder setRevisionReasonValue(int value)

A reason for the revision condition.

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

Parameter
NameDescription
valueint

The enum numeric value on the wire for revisionReason to set.

Returns
TypeDescription
Condition.Builder

This builder for chaining.

setSeverity(Condition.Severity value)

public Condition.Builder setSeverity(Condition.Severity value)

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

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

Parameter
NameDescription
valueCondition.Severity

The severity to set.

Returns
TypeDescription
Condition.Builder

This builder for chaining.

setSeverityValue(int value)

public Condition.Builder setSeverityValue(int value)

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

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

Parameter
NameDescription
valueint

The enum numeric value on the wire for severity to set.

Returns
TypeDescription
Condition.Builder

This builder for chaining.

setState(Condition.State value)

public Condition.Builder setState(Condition.State value)

State of the condition.

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

Parameter
NameDescription
valueCondition.State

The state to set.

Returns
TypeDescription
Condition.Builder

This builder for chaining.

setStateValue(int value)

public Condition.Builder setStateValue(int value)

State of the condition.

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

Parameter
NameDescription
valueint

The enum numeric value on the wire for state to set.

Returns
TypeDescription
Condition.Builder

This builder for chaining.

setType(String value)

public Condition.Builder setType(String value)

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;

Parameter
NameDescription
valueString

The type to set.

Returns
TypeDescription
Condition.Builder

This builder for chaining.

setTypeBytes(ByteString value)

public Condition.Builder setTypeBytes(ByteString value)

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;

Parameter
NameDescription
valueByteString

The bytes for type to set.

Returns
TypeDescription
Condition.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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