Cloud PubSub V1 Client - Class State (1.39.3)

Reference documentation and code samples for the Cloud PubSub V1 Client class State.

Possible states for a subscription.

Protobuf type google.pubsub.v1.Subscription.State

Methods

name

Parameter
NameDescription
value mixed

value

Parameter
NameDescription
name mixed

Constants

STATE_UNSPECIFIED

Value: 0

Default value. This value is unused.

Generated from protobuf enum STATE_UNSPECIFIED = 0;

ACTIVE

Value: 1

The subscription can actively receive messages

Generated from protobuf enum ACTIVE = 1;

RESOURCE_ERROR

Value: 2

The subscription cannot receive messages because of an error with the resource to which it pushes messages. See the more detailed error state in the corresponding configuration.

Generated from protobuf enum RESOURCE_ERROR = 2;