Cloud PubSub V1 Client - Class ApiViolationReason (2.8.0)

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

Specifies the reason why some data may have been left out of the desired Pub/Sub message due to the API message limits (https://cloud.google.com/pubsub/quotas#resource_limits). For example, when the number of attributes is larger than 100, the number of attributes is truncated to 100 to respect the limit on the attribute count.

Other attribute limits are treated similarly. When the size of the desired message would've been larger than 10MB, the message won't be published at all, and ingestion of the subsequent messages will proceed as normal.

Generated from protobuf message google.pubsub.v1.IngestionFailureEvent.ApiViolationReason

Namespace

Google \ Cloud \ PubSub \ V1 \ IngestionFailureEvent

Methods

__construct

Constructor.

Parameter
Name Description
data array

Optional. Data for populating the Message object.