Skip to content

Commit e9f401f

Browse files
1 parent f3e137a commit e9f401f

3 files changed

Lines changed: 17 additions & 3 deletions

File tree

src/Pubsub/BigQueryConfig.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@ class BigQueryConfig extends \Google\Model
5050
* and the destination locations are not in the allowed regions.
5151
*/
5252
public const STATE_IN_TRANSIT_LOCATION_RESTRICTION = 'IN_TRANSIT_LOCATION_RESTRICTION';
53+
/**
54+
* Cannot write to the BigQuery table because the table is not in the same
55+
* location as where Vertex AI models used in `message_transform`s are
56+
* deployed.
57+
*/
58+
public const STATE_VERTEX_AI_LOCATION_RESTRICTION = 'VERTEX_AI_LOCATION_RESTRICTION';
5359
/**
5460
* Optional. When true and use_topic_schema is true, any fields that are a
5561
* part of the topic schema that are not part of the BigQuery table schema are
@@ -158,7 +164,8 @@ public function getServiceAccountEmail()
158164
* subscription can receive messages.
159165
*
160166
* Accepted values: STATE_UNSPECIFIED, ACTIVE, PERMISSION_DENIED, NOT_FOUND,
161-
* SCHEMA_MISMATCH, IN_TRANSIT_LOCATION_RESTRICTION
167+
* SCHEMA_MISMATCH, IN_TRANSIT_LOCATION_RESTRICTION,
168+
* VERTEX_AI_LOCATION_RESTRICTION
162169
*
163170
* @param self::STATE_* $state
164171
*/

src/Pubsub/CloudStorageConfig.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ class CloudStorageConfig extends \Google\Model
4646
* the topic schema and subscription settings.
4747
*/
4848
public const STATE_SCHEMA_MISMATCH = 'SCHEMA_MISMATCH';
49+
/**
50+
* Cannot write to the Cloud Storage bucket because the bucket is not in the
51+
* same location as where Vertex AI models used in `message_transform`s are
52+
* deployed.
53+
*/
54+
public const STATE_VERTEX_AI_LOCATION_RESTRICTION = 'VERTEX_AI_LOCATION_RESTRICTION';
4955
protected $avroConfigType = AvroConfig::class;
5056
protected $avroConfigDataType = '';
5157
/**
@@ -294,7 +300,8 @@ public function getServiceAccountEmail()
294300
* subscription can receive messages.
295301
*
296302
* Accepted values: STATE_UNSPECIFIED, ACTIVE, PERMISSION_DENIED, NOT_FOUND,
297-
* IN_TRANSIT_LOCATION_RESTRICTION, SCHEMA_MISMATCH
303+
* IN_TRANSIT_LOCATION_RESTRICTION, SCHEMA_MISMATCH,
304+
* VERTEX_AI_LOCATION_RESTRICTION
298305
*
299306
* @param self::STATE_* $state
300307
*/

src/Pubsub/Subscription.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ public function getAckDeadlineSeconds()
220220
}
221221
/**
222222
* Output only. Information about the associated Analytics Hub subscription.
223-
* Only set if the subscritpion is created by Analytics Hub.
223+
* Only set if the subscription is created by Analytics Hub.
224224
*
225225
* @param AnalyticsHubSubscriptionInfo $analyticsHubSubscriptionInfo
226226
*/

0 commit comments

Comments
 (0)