diff --git a/PubSub/metadata/V1/Pubsub.php b/PubSub/metadata/V1/Pubsub.php index f3397d12f3a..493b7610f5b 100644 Binary files a/PubSub/metadata/V1/Pubsub.php and b/PubSub/metadata/V1/Pubsub.php differ diff --git a/PubSub/src/V1/CloudStorageConfig/AvroConfig.php b/PubSub/src/V1/CloudStorageConfig/AvroConfig.php index 9b410cfa6ed..a4da0ac163e 100644 --- a/PubSub/src/V1/CloudStorageConfig/AvroConfig.php +++ b/PubSub/src/V1/CloudStorageConfig/AvroConfig.php @@ -27,6 +27,13 @@ class AvroConfig extends \Google\Protobuf\Internal\Message * Generated from protobuf field bool write_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; */ private $write_metadata = false; + /** + * Optional. When true, the output Cloud Storage file will be serialized + * using the topic schema, if it exists. + * + * Generated from protobuf field bool use_topic_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $use_topic_schema = false; /** * Constructor. @@ -41,6 +48,9 @@ class AvroConfig extends \Google\Protobuf\Internal\Message * put in their own fields while all other message properties other than * data (for example, an ordering_key, if present) are added as entries in * the attributes map. + * @type bool $use_topic_schema + * Optional. When true, the output Cloud Storage file will be serialized + * using the topic schema, if it exists. * } */ public function __construct($data = NULL) { @@ -84,6 +94,34 @@ public function setWriteMetadata($var) return $this; } + /** + * Optional. When true, the output Cloud Storage file will be serialized + * using the topic schema, if it exists. + * + * Generated from protobuf field bool use_topic_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getUseTopicSchema() + { + return $this->use_topic_schema; + } + + /** + * Optional. When true, the output Cloud Storage file will be serialized + * using the topic schema, if it exists. + * + * Generated from protobuf field bool use_topic_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setUseTopicSchema($var) + { + GPBUtil::checkBool($var); + $this->use_topic_schema = $var; + + return $this; + } + } diff --git a/PubSub/src/V1/CloudStorageConfig/State.php b/PubSub/src/V1/CloudStorageConfig/State.php index 94318fdc0e2..a25e92b3901 100644 --- a/PubSub/src/V1/CloudStorageConfig/State.php +++ b/PubSub/src/V1/CloudStorageConfig/State.php @@ -45,6 +45,13 @@ class State * Generated from protobuf enum IN_TRANSIT_LOCATION_RESTRICTION = 4; */ const IN_TRANSIT_LOCATION_RESTRICTION = 4; + /** + * Cannot write to the Cloud Storage bucket due to an incompatibility + * between the topic schema and subscription settings. + * + * Generated from protobuf enum SCHEMA_MISMATCH = 5; + */ + const SCHEMA_MISMATCH = 5; private static $valueToName = [ self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', @@ -52,6 +59,7 @@ class State self::PERMISSION_DENIED => 'PERMISSION_DENIED', self::NOT_FOUND => 'NOT_FOUND', self::IN_TRANSIT_LOCATION_RESTRICTION => 'IN_TRANSIT_LOCATION_RESTRICTION', + self::SCHEMA_MISMATCH => 'SCHEMA_MISMATCH', ]; public static function name($value)