diff --git a/PubSub/metadata/V1/Pubsub.php b/PubSub/metadata/V1/Pubsub.php index 493b7610f5b..24fe3d2dfab 100644 Binary files a/PubSub/metadata/V1/Pubsub.php and b/PubSub/metadata/V1/Pubsub.php differ diff --git a/PubSub/src/V1/CloudStorageConfig.php b/PubSub/src/V1/CloudStorageConfig.php index 59bd8903f91..8c3594eb92d 100644 --- a/PubSub/src/V1/CloudStorageConfig.php +++ b/PubSub/src/V1/CloudStorageConfig.php @@ -63,6 +63,13 @@ class CloudStorageConfig extends \Google\Protobuf\Internal\Message * Generated from protobuf field int64 max_bytes = 7 [(.google.api.field_behavior) = OPTIONAL]; */ private $max_bytes = 0; + /** + * Optional. The maximum number of messages that can be written to a Cloud + * Storage file before a new file is created. Min 1000 messages. + * + * Generated from protobuf field int64 max_messages = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $max_messages = 0; /** * Output only. An output-only field that indicates whether or not the * subscription can receive messages. @@ -119,6 +126,9 @@ class CloudStorageConfig extends \Google\Protobuf\Internal\Message * Optional. The maximum bytes that can be written to a Cloud Storage file * before a new file is created. Min 1 KB, max 10 GiB. The max_bytes limit may * be exceeded in cases where messages are larger than the limit. + * @type int|string $max_messages + * Optional. The maximum number of messages that can be written to a Cloud + * Storage file before a new file is created. Min 1000 messages. * @type int $state * Output only. An output-only field that indicates whether or not the * subscription can receive messages. @@ -392,6 +402,34 @@ public function setMaxBytes($var) return $this; } + /** + * Optional. The maximum number of messages that can be written to a Cloud + * Storage file before a new file is created. Min 1000 messages. + * + * Generated from protobuf field int64 max_messages = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return int|string + */ + public function getMaxMessages() + { + return $this->max_messages; + } + + /** + * Optional. The maximum number of messages that can be written to a Cloud + * Storage file before a new file is created. Min 1000 messages. + * + * Generated from protobuf field int64 max_messages = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param int|string $var + * @return $this + */ + public function setMaxMessages($var) + { + GPBUtil::checkInt64($var); + $this->max_messages = $var; + + return $this; + } + /** * Output only. An output-only field that indicates whether or not the * subscription can receive messages.