# Eventarc V1 API - Class Google::Cloud::Eventarc::V1::StateCondition (v2.8.0)

2.8.0 (latest) 2.7.1 2.6.0 2.5.0 2.4.1 2.3.0 2.2.0 2.1.0 2.0.1 1.3.0 1.2.0 1.1.0 1.0.1 0.10.0 0.9.2 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.1 0.1.4 Reference documentation and code samples for the Eventarc V1 API class Google::Cloud::Eventarc::V1::StateCondition.

A condition that is part of the trigger state computation.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #code

    def code() -> ::Google::Rpc::Code

**Returns**

- ([::Google::Rpc::Code](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-eventarc-v1/latest/Google-Rpc-Code)) --- The canonical code of the condition.

### #code=

    def code=(value) -> ::Google::Rpc::Code

**Parameter**

- **value** ([::Google::Rpc::Code](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-eventarc-v1/latest/Google-Rpc-Code)) --- The canonical code of the condition.
**Returns**

- ([::Google::Rpc::Code](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-eventarc-v1/latest/Google-Rpc-Code)) --- The canonical code of the condition.

### #message

    def message() -> ::String

**Returns**

- (::String) --- Human-readable message.

### #message=

    def message=(value) -> ::String

**Parameter**

- **value** (::String) --- Human-readable message.
**Returns**

- (::String) --- Human-readable message.