state property

String? state
getter/setter pair

An output-only field that indicates whether or not the subscription can receive messages.

Output only. Possible string values are:

  • "STATE_UNSPECIFIED" : Default value. This value is unused.
  • "ACTIVE" : The subscription can actively send messages to Cloud Storage.
  • "PERMISSION_DENIED" : Cannot write to the Cloud Storage bucket because of permission denied errors.
  • "NOT_FOUND" : Cannot write to the Cloud Storage bucket because it does not exist.
  • "IN_TRANSIT_LOCATION_RESTRICTION" : Cannot write to the destination because enforce_in_transit is set to true and the destination locations are not in the allowed regions.

Implementation

core.String? state;