Class Condition.Builder (0.42.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Condition.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Condition.Builder
Overrides

build()

public Condition build()
Returns
Type Description
Condition

buildPartial()

public Condition buildPartial()
Returns
Type Description
Condition

clear()

public Condition.Builder clear()
Returns
Type Description
Condition.Builder
Overrides

clearExecutionReason()

public Condition.Builder clearExecutionReason()

A reason for the execution condition.

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

Returns
Type Description
Condition.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Condition.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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
Type Description
Condition.Builder

clearMessage()

public Condition.Builder clearMessage()

Human readable message indicating details about the current status.

string message = 3;

Returns
Type Description
Condition.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Condition.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
Condition.Builder

This builder for chaining.

clearReasons()

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

clearRevisionReason()

public Condition.Builder clearRevisionReason()

A reason for the revision condition.

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

Returns
Type Description
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
Type Description
Condition.Builder

This builder for chaining.

clearState()

public Condition.Builder clearState()

State of the condition.

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

Returns
Type Description
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
Type Description
Condition.Builder

This builder for chaining.

clone()

public Condition.Builder clone()
Returns
Type Description
Condition.Builder
Overrides

getDefaultInstanceForType()

public Condition getDefaultInstanceForType()
Returns
Type Description
Condition

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

getLastTransitionTimeBuilder()

public Timestamp.Builder getLastTransitionTimeBuilder()

Last time the condition transitioned from one status to another.

.google.protobuf.Timestamp last_transition_time = 4;

Returns
Type Description
Builder

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.

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.

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Condition other)

public Condition.Builder mergeFrom(Condition other)
Parameter
Name Description
other Condition
Returns
Type Description
Condition.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Condition.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Condition.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Condition.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
Condition.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Condition.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value Condition.ExecutionReason

The executionReason to set.

Returns
Type Description
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
Name Description
value int

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

Returns
Type Description
Condition.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Condition.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
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
Name Description
builderForValue Builder
Returns
Type Description
Condition.Builder

setMessage(String value)

public Condition.Builder setMessage(String value)

Human readable message indicating details about the current status.

string message = 3;

Parameter
Name Description
value String

The message to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for message to set.

Returns
Type Description
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
Name Description
value Condition.CommonReason

The reason to set.

Returns
Type Description
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
Name Description
value int

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

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
value Condition.RevisionReason

The revisionReason to set.

Returns
Type Description
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
Name Description
value int

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

Returns
Type Description
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
Name Description
value Condition.Severity

The severity to set.

Returns
Type Description
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
Name Description
value int

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

Returns
Type Description
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
Name Description
value Condition.State

The state to set.

Returns
Type Description
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
Name Description
value int

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

Returns
Type Description
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
Name Description
value String

The type to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for type to set.

Returns
Type Description
Condition.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Condition.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Condition.Builder
Overrides