Class Condition.Builder

  • All Implemented Interfaces:
    ConditionOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    Condition

    public static final class Condition.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Condition.Builder>
    implements ConditionOrBuilder
     Defines a status condition for a resource.
     
    Protobuf type google.cloud.run.v2.Condition
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Condition.Builder>
      • clear

        public Condition.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<Condition.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Condition.Builder>
      • getDefaultInstanceForType

        public Condition getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public Condition build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public Condition buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public Condition.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Condition.Builder>
      • setField

        public Condition.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                          Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Condition.Builder>
      • clearField

        public Condition.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Condition.Builder>
      • clearOneof

        public Condition.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Condition.Builder>
      • setRepeatedField

        public Condition.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                  int index,
                                                  Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Condition.Builder>
      • addRepeatedField

        public Condition.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                  Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Condition.Builder>
      • mergeFrom

        public Condition.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Condition.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Condition.Builder>
      • mergeFrom

        public Condition.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                    throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Condition.Builder>
        Throws:
        IOException
      • 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;
        Specified by:
        getType in interface ConditionOrBuilder
        Returns:
        The type.
      • getTypeBytes

        public com.google.protobuf.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;
        Specified by:
        getTypeBytes in interface ConditionOrBuilder
        Returns:
        The bytes for type.
      • setType

        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;
        Parameters:
        value - The type to set.
        Returns:
        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:
        This builder for chaining.
      • setTypeBytes

        public Condition.Builder setTypeBytes​(com.google.protobuf.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;
        Parameters:
        value - The bytes for type to set.
        Returns:
        This builder for chaining.
      • getStateValue

        public int getStateValue()
         State of the condition.
         
        .google.cloud.run.v2.Condition.State state = 2;
        Specified by:
        getStateValue in interface ConditionOrBuilder
        Returns:
        The enum numeric value on the wire for state.
      • setStateValue

        public Condition.Builder setStateValue​(int value)
         State of the condition.
         
        .google.cloud.run.v2.Condition.State state = 2;
        Parameters:
        value - The enum numeric value on the wire for state to set.
        Returns:
        This builder for chaining.
      • setState

        public Condition.Builder setState​(Condition.State value)
         State of the condition.
         
        .google.cloud.run.v2.Condition.State state = 2;
        Parameters:
        value - The state to set.
        Returns:
        This builder for chaining.
      • clearState

        public Condition.Builder clearState()
         State of the condition.
         
        .google.cloud.run.v2.Condition.State state = 2;
        Returns:
        This builder for chaining.
      • getMessage

        public String getMessage()
         Human readable message indicating details about the current status.
         
        string message = 3;
        Specified by:
        getMessage in interface ConditionOrBuilder
        Returns:
        The message.
      • getMessageBytes

        public com.google.protobuf.ByteString getMessageBytes()
         Human readable message indicating details about the current status.
         
        string message = 3;
        Specified by:
        getMessageBytes in interface ConditionOrBuilder
        Returns:
        The bytes for message.
      • setMessage

        public Condition.Builder setMessage​(String value)
         Human readable message indicating details about the current status.
         
        string message = 3;
        Parameters:
        value - The message to set.
        Returns:
        This builder for chaining.
      • clearMessage

        public Condition.Builder clearMessage()
         Human readable message indicating details about the current status.
         
        string message = 3;
        Returns:
        This builder for chaining.
      • setMessageBytes

        public Condition.Builder setMessageBytes​(com.google.protobuf.ByteString value)
         Human readable message indicating details about the current status.
         
        string message = 3;
        Parameters:
        value - The bytes for message to set.
        Returns:
        This builder for chaining.
      • hasLastTransitionTime

        public boolean hasLastTransitionTime()
         Last time the condition transitioned from one status to another.
         
        .google.protobuf.Timestamp last_transition_time = 4;
        Specified by:
        hasLastTransitionTime in interface ConditionOrBuilder
        Returns:
        Whether the lastTransitionTime field is set.
      • getLastTransitionTime

        public com.google.protobuf.Timestamp getLastTransitionTime()
         Last time the condition transitioned from one status to another.
         
        .google.protobuf.Timestamp last_transition_time = 4;
        Specified by:
        getLastTransitionTime in interface ConditionOrBuilder
        Returns:
        The lastTransitionTime.
      • setLastTransitionTime

        public Condition.Builder setLastTransitionTime​(com.google.protobuf.Timestamp value)
         Last time the condition transitioned from one status to another.
         
        .google.protobuf.Timestamp last_transition_time = 4;
      • setLastTransitionTime

        public Condition.Builder setLastTransitionTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Last time the condition transitioned from one status to another.
         
        .google.protobuf.Timestamp last_transition_time = 4;
      • mergeLastTransitionTime

        public Condition.Builder mergeLastTransitionTime​(com.google.protobuf.Timestamp value)
         Last time the condition transitioned from one status to another.
         
        .google.protobuf.Timestamp last_transition_time = 4;
      • clearLastTransitionTime

        public Condition.Builder clearLastTransitionTime()
         Last time the condition transitioned from one status to another.
         
        .google.protobuf.Timestamp last_transition_time = 4;
      • getLastTransitionTimeBuilder

        public com.google.protobuf.Timestamp.Builder getLastTransitionTimeBuilder()
         Last time the condition transitioned from one status to another.
         
        .google.protobuf.Timestamp last_transition_time = 4;
      • getLastTransitionTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getLastTransitionTimeOrBuilder()
         Last time the condition transitioned from one status to another.
         
        .google.protobuf.Timestamp last_transition_time = 4;
        Specified by:
        getLastTransitionTimeOrBuilder in interface ConditionOrBuilder
      • getSeverityValue

        public int getSeverityValue()
         How to interpret failures of this condition, one of Error, Warning, Info
         
        .google.cloud.run.v2.Condition.Severity severity = 5;
        Specified by:
        getSeverityValue in interface ConditionOrBuilder
        Returns:
        The enum numeric value on the wire for severity.
      • setSeverityValue

        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;
        Parameters:
        value - The enum numeric value on the wire for severity to set.
        Returns:
        This builder for chaining.
      • 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;
        Specified by:
        getSeverity in interface ConditionOrBuilder
        Returns:
        The severity.
      • setSeverity

        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;
        Parameters:
        value - The severity to set.
        Returns:
        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:
        This builder for chaining.
      • hasReason

        public boolean hasReason()
         A common (service-level) reason for this condition.
         
        .google.cloud.run.v2.Condition.CommonReason reason = 6;
        Specified by:
        hasReason in interface ConditionOrBuilder
        Returns:
        Whether the reason field is set.
      • getReasonValue

        public int getReasonValue()
         A common (service-level) reason for this condition.
         
        .google.cloud.run.v2.Condition.CommonReason reason = 6;
        Specified by:
        getReasonValue in interface ConditionOrBuilder
        Returns:
        The enum numeric value on the wire for reason.
      • setReasonValue

        public Condition.Builder setReasonValue​(int value)
         A common (service-level) reason for this condition.
         
        .google.cloud.run.v2.Condition.CommonReason reason = 6;
        Parameters:
        value - The enum numeric value on the wire for reason to set.
        Returns:
        This builder for chaining.
      • setReason

        public Condition.Builder setReason​(Condition.CommonReason value)
         A common (service-level) reason for this condition.
         
        .google.cloud.run.v2.Condition.CommonReason reason = 6;
        Parameters:
        value - The reason to set.
        Returns:
        This builder for chaining.
      • clearReason

        public Condition.Builder clearReason()
         A common (service-level) reason for this condition.
         
        .google.cloud.run.v2.Condition.CommonReason reason = 6;
        Returns:
        This builder for chaining.
      • hasRevisionReason

        public boolean hasRevisionReason()
         A reason for the revision condition.
         
        .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9;
        Specified by:
        hasRevisionReason in interface ConditionOrBuilder
        Returns:
        Whether the revisionReason field is set.
      • getRevisionReasonValue

        public int getRevisionReasonValue()
         A reason for the revision condition.
         
        .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9;
        Specified by:
        getRevisionReasonValue in interface ConditionOrBuilder
        Returns:
        The enum numeric value on the wire for revisionReason.
      • setRevisionReasonValue

        public Condition.Builder setRevisionReasonValue​(int value)
         A reason for the revision condition.
         
        .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9;
        Parameters:
        value - The enum numeric value on the wire for revisionReason to set.
        Returns:
        This builder for chaining.
      • setRevisionReason

        public Condition.Builder setRevisionReason​(Condition.RevisionReason value)
         A reason for the revision condition.
         
        .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9;
        Parameters:
        value - The revisionReason to set.
        Returns:
        This builder for chaining.
      • clearRevisionReason

        public Condition.Builder clearRevisionReason()
         A reason for the revision condition.
         
        .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9;
        Returns:
        This builder for chaining.
      • hasExecutionReason

        public boolean hasExecutionReason()
         A reason for the execution condition.
         
        .google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11;
        Specified by:
        hasExecutionReason in interface ConditionOrBuilder
        Returns:
        Whether the executionReason field is set.
      • getExecutionReasonValue

        public int getExecutionReasonValue()
         A reason for the execution condition.
         
        .google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11;
        Specified by:
        getExecutionReasonValue in interface ConditionOrBuilder
        Returns:
        The enum numeric value on the wire for executionReason.
      • setExecutionReasonValue

        public Condition.Builder setExecutionReasonValue​(int value)
         A reason for the execution condition.
         
        .google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11;
        Parameters:
        value - The enum numeric value on the wire for executionReason to set.
        Returns:
        This builder for chaining.
      • setExecutionReason

        public Condition.Builder setExecutionReason​(Condition.ExecutionReason value)
         A reason for the execution condition.
         
        .google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11;
        Parameters:
        value - The executionReason to set.
        Returns:
        This builder for chaining.
      • clearExecutionReason

        public Condition.Builder clearExecutionReason()
         A reason for the execution condition.
         
        .google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final Condition.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Condition.Builder>
      • mergeUnknownFields

        public final Condition.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Condition.Builder>