googleapis / googleapis/google-cloud-java
[java-pubsub] Enforcing max limits set by getApiMaxRequestElementCount() and getApiMaxRequestBytes(). (batch messaging)
- Dominant language
- Java
- Stars
- 2.1k
- Forks
- 1.2k
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 154
Description
Enforcing max limits set by getApiMaxRequestElementCount() and getApiMaxRequestBytes().
The limits are documented in the pubsub documentation [here (Quotas and limits on batch messaging).](https://docs.cloud.google.com/pubsub/docs/batch-messaging#quotas_and_limits_on_batch_messaging)
[getApiMaxRequestElementCount()](https://github.com/googleapis/java-pubsub/blob/09c01ed8b24ce019cea629dcb0d45dacfe5f112a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java#L140) and [getApiMaxRequestBytes()](https://github.com/googleapis/java-pubsub/blob/09c01ed8b24ce019cea629dcb0d45dacfe5f112a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java#L145) are not new methods, just has not previously been enforced.
Contributor guide
Assessment
This issue has not been assessed yet.