diff --git a/PubSub/metadata/V1/Pubsub.php b/PubSub/metadata/V1/Pubsub.php index f3a95c0e8a4c..8f4190a08cc3 100644 Binary files a/PubSub/metadata/V1/Pubsub.php and b/PubSub/metadata/V1/Pubsub.php differ diff --git a/PubSub/samples/V1/PublisherClient/delete_topic.php b/PubSub/samples/V1/PublisherClient/delete_topic.php index 6ab5dff2bb96..b4c56d8c9bf3 100644 --- a/PubSub/samples/V1/PublisherClient/delete_topic.php +++ b/PubSub/samples/V1/PublisherClient/delete_topic.php @@ -34,7 +34,7 @@ * configuration or subscriptions. Existing subscriptions to this topic are * not deleted, but their `topic` field is set to `_deleted-topic_`. * - * @param string $formattedTopic Identifier. Name of the topic to delete. + * @param string $formattedTopic Name of the topic to delete. * Format is `projects/{project}/topics/{topic}`. Please see * {@see PublisherClient::topicName()} for help formatting this field. */ diff --git a/PubSub/samples/V1/PublisherClient/get_topic.php b/PubSub/samples/V1/PublisherClient/get_topic.php index 74e3fb5ff8be..79844c0e34a1 100644 --- a/PubSub/samples/V1/PublisherClient/get_topic.php +++ b/PubSub/samples/V1/PublisherClient/get_topic.php @@ -31,7 +31,7 @@ /** * Gets the configuration of a topic. * - * @param string $formattedTopic Identifier. The name of the topic to get. + * @param string $formattedTopic The name of the topic to get. * Format is `projects/{project}/topics/{topic}`. Please see * {@see PublisherClient::topicName()} for help formatting this field. */ diff --git a/PubSub/samples/V1/PublisherClient/list_topics.php b/PubSub/samples/V1/PublisherClient/list_topics.php index a5a3a327d61f..d7fc27d81950 100644 --- a/PubSub/samples/V1/PublisherClient/list_topics.php +++ b/PubSub/samples/V1/PublisherClient/list_topics.php @@ -32,7 +32,7 @@ /** * Lists matching topics. * - * @param string $formattedProject Identifier. The name of the project in which to list topics. + * @param string $formattedProject The name of the project in which to list topics. * Format is `projects/{project-id}`. Please see * {@see PublisherClient::projectName()} for help formatting this field. */ diff --git a/PubSub/samples/V1/PublisherClient/publish.php b/PubSub/samples/V1/PublisherClient/publish.php index 24e68d32612d..29c66f0182ec 100644 --- a/PubSub/samples/V1/PublisherClient/publish.php +++ b/PubSub/samples/V1/PublisherClient/publish.php @@ -33,8 +33,8 @@ * Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic * does not exist. * - * @param string $formattedTopic Identifier. The messages in the request will be published on this - * topic. Format is `projects/{project}/topics/{topic}`. Please see + * @param string $formattedTopic The messages in the request will be published on this topic. + * Format is `projects/{project}/topics/{topic}`. Please see * {@see PublisherClient::topicName()} for help formatting this field. */ function publish_sample(string $formattedTopic): void diff --git a/PubSub/samples/V1/SubscriberClient/create_snapshot.php b/PubSub/samples/V1/SubscriberClient/create_snapshot.php index fa6f7c1cd96c..33f7c8ea1349 100644 --- a/PubSub/samples/V1/SubscriberClient/create_snapshot.php +++ b/PubSub/samples/V1/SubscriberClient/create_snapshot.php @@ -46,10 +46,10 @@ * generated name is populated in the returned Snapshot object. Note that for * REST API requests, you must specify a name in the request. * - * @param string $formattedName Identifier. User-provided name for this snapshot. If the name is - * not provided in the request, the server will assign a random name for this - * snapshot on the same project as the subscription. Note that for REST API - * requests, you must specify a name. See the [resource name + * @param string $formattedName User-provided name for this snapshot. If the name is not provided + * in the request, the server will assign a random name for this snapshot on + * the same project as the subscription. Note that for REST API requests, you + * must specify a name. See the [resource name * rules](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). * Format is `projects/{project}/snapshots/{snap}`. Please see * {@see SubscriberClient::snapshotName()} for help formatting this field. diff --git a/PubSub/samples/V1/SubscriberClient/delete_snapshot.php b/PubSub/samples/V1/SubscriberClient/delete_snapshot.php index 5ef52c0f1ab6..840a16b6d499 100644 --- a/PubSub/samples/V1/SubscriberClient/delete_snapshot.php +++ b/PubSub/samples/V1/SubscriberClient/delete_snapshot.php @@ -38,7 +38,7 @@ * created with the same name, but the new one has no association with the old * snapshot or its subscription, unless the same subscription is specified. * - * @param string $formattedSnapshot Identifier. The name of the snapshot to delete. + * @param string $formattedSnapshot The name of the snapshot to delete. * Format is `projects/{project}/snapshots/{snap}`. Please see * {@see SubscriberClient::snapshotName()} for help formatting this field. */ diff --git a/PubSub/samples/V1/SubscriberClient/delete_subscription.php b/PubSub/samples/V1/SubscriberClient/delete_subscription.php index 968f21385911..1627fca628a0 100644 --- a/PubSub/samples/V1/SubscriberClient/delete_subscription.php +++ b/PubSub/samples/V1/SubscriberClient/delete_subscription.php @@ -34,7 +34,7 @@ * the same name, but the new one has no association with the old * subscription or its topic unless the same topic is specified. * - * @param string $formattedSubscription Identifier. The subscription to delete. + * @param string $formattedSubscription The subscription to delete. * Format is `projects/{project}/subscriptions/{sub}`. Please see * {@see SubscriberClient::subscriptionName()} for help formatting this field. */ diff --git a/PubSub/samples/V1/SubscriberClient/get_snapshot.php b/PubSub/samples/V1/SubscriberClient/get_snapshot.php index 583e700e51a8..10d3da8b2986 100644 --- a/PubSub/samples/V1/SubscriberClient/get_snapshot.php +++ b/PubSub/samples/V1/SubscriberClient/get_snapshot.php @@ -35,7 +35,7 @@ * set the acknowledgment state of messages in an existing subscription to the * state captured by a snapshot. * - * @param string $formattedSnapshot Identifier. The name of the snapshot to get. + * @param string $formattedSnapshot The name of the snapshot to get. * Format is `projects/{project}/snapshots/{snap}`. Please see * {@see SubscriberClient::snapshotName()} for help formatting this field. */ diff --git a/PubSub/samples/V1/SubscriberClient/get_subscription.php b/PubSub/samples/V1/SubscriberClient/get_subscription.php index 2006b4edcfa1..174e7918b241 100644 --- a/PubSub/samples/V1/SubscriberClient/get_subscription.php +++ b/PubSub/samples/V1/SubscriberClient/get_subscription.php @@ -31,7 +31,7 @@ /** * Gets the configuration details of a subscription. * - * @param string $formattedSubscription Identifier. The name of the subscription to get. + * @param string $formattedSubscription The name of the subscription to get. * Format is `projects/{project}/subscriptions/{sub}`. Please see * {@see SubscriberClient::subscriptionName()} for help formatting this field. */ diff --git a/PubSub/samples/V1/SubscriberClient/list_snapshots.php b/PubSub/samples/V1/SubscriberClient/list_snapshots.php index 87c1f20db4cc..fe1b3d5dbae9 100644 --- a/PubSub/samples/V1/SubscriberClient/list_snapshots.php +++ b/PubSub/samples/V1/SubscriberClient/list_snapshots.php @@ -36,7 +36,7 @@ * the acknowledgment state of messages in an existing subscription to the * state captured by a snapshot. * - * @param string $formattedProject Identifier. The name of the project in which to list snapshots. + * @param string $formattedProject The name of the project in which to list snapshots. * Format is `projects/{project-id}`. Please see * {@see SubscriberClient::projectName()} for help formatting this field. */ diff --git a/PubSub/samples/V1/SubscriberClient/list_subscriptions.php b/PubSub/samples/V1/SubscriberClient/list_subscriptions.php index 88a15cb2eb25..be3e279d7324 100644 --- a/PubSub/samples/V1/SubscriberClient/list_subscriptions.php +++ b/PubSub/samples/V1/SubscriberClient/list_subscriptions.php @@ -32,8 +32,8 @@ /** * Lists matching subscriptions. * - * @param string $formattedProject Identifier. The name of the project in which to list - * subscriptions. Format is `projects/{project-id}`. Please see + * @param string $formattedProject The name of the project in which to list subscriptions. + * Format is `projects/{project-id}`. Please see * {@see SubscriberClient::projectName()} for help formatting this field. */ function list_subscriptions_sample(string $formattedProject): void diff --git a/PubSub/src/V1/AIInference.php b/PubSub/src/V1/AIInference.php new file mode 100644 index 000000000000..71614904a6cc --- /dev/null +++ b/PubSub/src/V1/AIInference.php @@ -0,0 +1,175 @@ +google.pubsub.v1.AIInference + */ +class AIInference extends \Google\Protobuf\Internal\Message +{ + /** + * Required. An endpoint to a Vertex AI model of the form + * `projects/{project}/locations/{location}/endpoints/{endpoint}` or + * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`. + * Vertex AI API requests will be sent to this endpoint. + * + * Generated from protobuf field string endpoint = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private $endpoint = ''; + /** + * Optional. The service account to use to make prediction requests against + * endpoints. The resource creator or updater that specifies this field must + * have `iam.serviceAccounts.actAs` permission on the service account. If not + * specified, the Pub/Sub [service + * agent]({$universe.dns_names.final_documentation_domain}/iam/docs/service-agents), + * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used. + * + * Generated from protobuf field string service_account_email = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $service_account_email = ''; + protected $inference_mode; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $endpoint + * Required. An endpoint to a Vertex AI model of the form + * `projects/{project}/locations/{location}/endpoints/{endpoint}` or + * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`. + * Vertex AI API requests will be sent to this endpoint. + * @type \Google\Cloud\PubSub\V1\AIInference\UnstructuredInference $unstructured_inference + * Optional. Requests and responses can be any arbitrary JSON object. + * @type string $service_account_email + * Optional. The service account to use to make prediction requests against + * endpoints. The resource creator or updater that specifies this field must + * have `iam.serviceAccounts.actAs` permission on the service account. If not + * specified, the Pub/Sub [service + * agent]({$universe.dns_names.final_documentation_domain}/iam/docs/service-agents), + * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Pubsub\V1\Pubsub::initOnce(); + parent::__construct($data); + } + + /** + * Required. An endpoint to a Vertex AI model of the form + * `projects/{project}/locations/{location}/endpoints/{endpoint}` or + * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`. + * Vertex AI API requests will be sent to this endpoint. + * + * Generated from protobuf field string endpoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getEndpoint() + { + return $this->endpoint; + } + + /** + * Required. An endpoint to a Vertex AI model of the form + * `projects/{project}/locations/{location}/endpoints/{endpoint}` or + * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`. + * Vertex AI API requests will be sent to this endpoint. + * + * Generated from protobuf field string endpoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setEndpoint($var) + { + GPBUtil::checkString($var, True); + $this->endpoint = $var; + + return $this; + } + + /** + * Optional. Requests and responses can be any arbitrary JSON object. + * + * Generated from protobuf field .google.pubsub.v1.AIInference.UnstructuredInference unstructured_inference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\PubSub\V1\AIInference\UnstructuredInference|null + */ + public function getUnstructuredInference() + { + return $this->readOneof(2); + } + + public function hasUnstructuredInference() + { + return $this->hasOneof(2); + } + + /** + * Optional. Requests and responses can be any arbitrary JSON object. + * + * Generated from protobuf field .google.pubsub.v1.AIInference.UnstructuredInference unstructured_inference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\PubSub\V1\AIInference\UnstructuredInference $var + * @return $this + */ + public function setUnstructuredInference($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\PubSub\V1\AIInference\UnstructuredInference::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Optional. The service account to use to make prediction requests against + * endpoints. The resource creator or updater that specifies this field must + * have `iam.serviceAccounts.actAs` permission on the service account. If not + * specified, the Pub/Sub [service + * agent]({$universe.dns_names.final_documentation_domain}/iam/docs/service-agents), + * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used. + * + * Generated from protobuf field string service_account_email = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getServiceAccountEmail() + { + return $this->service_account_email; + } + + /** + * Optional. The service account to use to make prediction requests against + * endpoints. The resource creator or updater that specifies this field must + * have `iam.serviceAccounts.actAs` permission on the service account. If not + * specified, the Pub/Sub [service + * agent]({$universe.dns_names.final_documentation_domain}/iam/docs/service-agents), + * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used. + * + * Generated from protobuf field string service_account_email = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setServiceAccountEmail($var) + { + GPBUtil::checkString($var, True); + $this->service_account_email = $var; + + return $this; + } + + /** + * @return string + */ + public function getInferenceMode() + { + return $this->whichOneof("inference_mode"); + } + +} + diff --git a/PubSub/src/V1/AIInference/UnstructuredInference.php b/PubSub/src/V1/AIInference/UnstructuredInference.php new file mode 100644 index 000000000000..b8ed2398b818 --- /dev/null +++ b/PubSub/src/V1/AIInference/UnstructuredInference.php @@ -0,0 +1,86 @@ +google.pubsub.v1.AIInference.UnstructuredInference + */ +class UnstructuredInference extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. A parameters object to be included in each inference request. + * The parameters object is combined with the data field of the Pub/Sub + * message to form the inference request. + * + * Generated from protobuf field .google.protobuf.Struct parameters = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $parameters = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Struct $parameters + * Optional. A parameters object to be included in each inference request. + * The parameters object is combined with the data field of the Pub/Sub + * message to form the inference request. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Pubsub\V1\Pubsub::initOnce(); + parent::__construct($data); + } + + /** + * Optional. A parameters object to be included in each inference request. + * The parameters object is combined with the data field of the Pub/Sub + * message to form the inference request. + * + * Generated from protobuf field .google.protobuf.Struct parameters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Struct|null + */ + public function getParameters() + { + return $this->parameters; + } + + public function hasParameters() + { + return isset($this->parameters); + } + + public function clearParameters() + { + unset($this->parameters); + } + + /** + * Optional. A parameters object to be included in each inference request. + * The parameters object is combined with the data field of the Pub/Sub + * message to form the inference request. + * + * Generated from protobuf field .google.protobuf.Struct parameters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\Struct $var + * @return $this + */ + public function setParameters($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); + $this->parameters = $var; + + return $this; + } + +} + + diff --git a/PubSub/src/V1/BigQueryConfig/State.php b/PubSub/src/V1/BigQueryConfig/State.php index f084d317b1a0..dd4d327f5b94 100644 --- a/PubSub/src/V1/BigQueryConfig/State.php +++ b/PubSub/src/V1/BigQueryConfig/State.php @@ -55,6 +55,14 @@ class State * Generated from protobuf enum IN_TRANSIT_LOCATION_RESTRICTION = 5; */ const IN_TRANSIT_LOCATION_RESTRICTION = 5; + /** + * Cannot write to the BigQuery table because the table is not in the same + * location as where Vertex AI models used in `message_transform`s are + * deployed. + * + * Generated from protobuf enum VERTEX_AI_LOCATION_RESTRICTION = 6; + */ + const VERTEX_AI_LOCATION_RESTRICTION = 6; private static $valueToName = [ self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', @@ -63,6 +71,7 @@ class State self::NOT_FOUND => 'NOT_FOUND', self::SCHEMA_MISMATCH => 'SCHEMA_MISMATCH', self::IN_TRANSIT_LOCATION_RESTRICTION => 'IN_TRANSIT_LOCATION_RESTRICTION', + self::VERTEX_AI_LOCATION_RESTRICTION => 'VERTEX_AI_LOCATION_RESTRICTION', ]; public static function name($value) diff --git a/PubSub/src/V1/CloudStorageConfig/State.php b/PubSub/src/V1/CloudStorageConfig/State.php index a25e92b39016..9a074b53c1ec 100644 --- a/PubSub/src/V1/CloudStorageConfig/State.php +++ b/PubSub/src/V1/CloudStorageConfig/State.php @@ -52,6 +52,14 @@ class State * Generated from protobuf enum SCHEMA_MISMATCH = 5; */ const SCHEMA_MISMATCH = 5; + /** + * Cannot write to the Cloud Storage bucket because the bucket is not in the + * same location as where Vertex AI models used in `message_transform`s are + * deployed. + * + * Generated from protobuf enum VERTEX_AI_LOCATION_RESTRICTION = 6; + */ + const VERTEX_AI_LOCATION_RESTRICTION = 6; private static $valueToName = [ self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', @@ -60,6 +68,7 @@ class State self::NOT_FOUND => 'NOT_FOUND', self::IN_TRANSIT_LOCATION_RESTRICTION => 'IN_TRANSIT_LOCATION_RESTRICTION', self::SCHEMA_MISMATCH => 'SCHEMA_MISMATCH', + self::VERTEX_AI_LOCATION_RESTRICTION => 'VERTEX_AI_LOCATION_RESTRICTION', ]; public static function name($value) diff --git a/PubSub/src/V1/CreateSnapshotRequest.php b/PubSub/src/V1/CreateSnapshotRequest.php index 597bd15a2014..59169c3e2460 100644 --- a/PubSub/src/V1/CreateSnapshotRequest.php +++ b/PubSub/src/V1/CreateSnapshotRequest.php @@ -16,14 +16,14 @@ class CreateSnapshotRequest extends \Google\Protobuf\Internal\Message { /** - * Required. Identifier. User-provided name for this snapshot. If the name is - * not provided in the request, the server will assign a random name for this - * snapshot on the same project as the subscription. Note that for REST API - * requests, you must specify a name. See the [resource name + * Required. User-provided name for this snapshot. If the name is not provided + * in the request, the server will assign a random name for this snapshot on + * the same project as the subscription. Note that for REST API requests, you + * must specify a name. See the [resource name * rules](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). * Format is `projects/{project}/snapshots/{snap}`. * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ private $name = ''; /** @@ -60,10 +60,10 @@ class CreateSnapshotRequest extends \Google\Protobuf\Internal\Message private $tags; /** - * @param string $name Required. Identifier. User-provided name for this snapshot. If the name is - * not provided in the request, the server will assign a random name for this - * snapshot on the same project as the subscription. Note that for REST API - * requests, you must specify a name. See the [resource name + * @param string $name Required. User-provided name for this snapshot. If the name is not provided + * in the request, the server will assign a random name for this snapshot on + * the same project as the subscription. Note that for REST API requests, you + * must specify a name. See the [resource name * rules](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). * Format is `projects/{project}/snapshots/{snap}`. Please see * {@see SubscriberClient::snapshotName()} for help formatting this field. @@ -96,10 +96,10 @@ public static function build(string $name, string $subscription): self * Optional. Data for populating the Message object. * * @type string $name - * Required. Identifier. User-provided name for this snapshot. If the name is - * not provided in the request, the server will assign a random name for this - * snapshot on the same project as the subscription. Note that for REST API - * requests, you must specify a name. See the [resource name + * Required. User-provided name for this snapshot. If the name is not provided + * in the request, the server will assign a random name for this snapshot on + * the same project as the subscription. Note that for REST API requests, you + * must specify a name. See the [resource name * rules](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). * Format is `projects/{project}/snapshots/{snap}`. * @type string $subscription @@ -130,14 +130,14 @@ public function __construct($data = NULL) { } /** - * Required. Identifier. User-provided name for this snapshot. If the name is - * not provided in the request, the server will assign a random name for this - * snapshot on the same project as the subscription. Note that for REST API - * requests, you must specify a name. See the [resource name + * Required. User-provided name for this snapshot. If the name is not provided + * in the request, the server will assign a random name for this snapshot on + * the same project as the subscription. Note that for REST API requests, you + * must specify a name. See the [resource name * rules](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). * Format is `projects/{project}/snapshots/{snap}`. * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @return string */ public function getName() @@ -146,14 +146,14 @@ public function getName() } /** - * Required. Identifier. User-provided name for this snapshot. If the name is - * not provided in the request, the server will assign a random name for this - * snapshot on the same project as the subscription. Note that for REST API - * requests, you must specify a name. See the [resource name + * Required. User-provided name for this snapshot. If the name is not provided + * in the request, the server will assign a random name for this snapshot on + * the same project as the subscription. Note that for REST API requests, you + * must specify a name. See the [resource name * rules](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). * Format is `projects/{project}/snapshots/{snap}`. * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @param string $var * @return $this */ diff --git a/PubSub/src/V1/DeleteSnapshotRequest.php b/PubSub/src/V1/DeleteSnapshotRequest.php index 27772705ead6..af2313427339 100644 --- a/PubSub/src/V1/DeleteSnapshotRequest.php +++ b/PubSub/src/V1/DeleteSnapshotRequest.php @@ -16,15 +16,15 @@ class DeleteSnapshotRequest extends \Google\Protobuf\Internal\Message { /** - * Required. Identifier. The name of the snapshot to delete. + * Required. The name of the snapshot to delete. * Format is `projects/{project}/snapshots/{snap}`. * - * Generated from protobuf field string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { + * Generated from protobuf field string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ private $snapshot = ''; /** - * @param string $snapshot Required. Identifier. The name of the snapshot to delete. + * @param string $snapshot Required. The name of the snapshot to delete. * Format is `projects/{project}/snapshots/{snap}`. Please see * {@see SubscriberClient::snapshotName()} for help formatting this field. * @@ -45,7 +45,7 @@ public static function build(string $snapshot): self * Optional. Data for populating the Message object. * * @type string $snapshot - * Required. Identifier. The name of the snapshot to delete. + * Required. The name of the snapshot to delete. * Format is `projects/{project}/snapshots/{snap}`. * } */ @@ -55,10 +55,10 @@ public function __construct($data = NULL) { } /** - * Required. Identifier. The name of the snapshot to delete. + * Required. The name of the snapshot to delete. * Format is `projects/{project}/snapshots/{snap}`. * - * Generated from protobuf field string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { + * Generated from protobuf field string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @return string */ public function getSnapshot() @@ -67,10 +67,10 @@ public function getSnapshot() } /** - * Required. Identifier. The name of the snapshot to delete. + * Required. The name of the snapshot to delete. * Format is `projects/{project}/snapshots/{snap}`. * - * Generated from protobuf field string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { + * Generated from protobuf field string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @param string $var * @return $this */ diff --git a/PubSub/src/V1/DeleteSubscriptionRequest.php b/PubSub/src/V1/DeleteSubscriptionRequest.php index 289de92aedb0..24bd06654d42 100644 --- a/PubSub/src/V1/DeleteSubscriptionRequest.php +++ b/PubSub/src/V1/DeleteSubscriptionRequest.php @@ -16,15 +16,15 @@ class DeleteSubscriptionRequest extends \Google\Protobuf\Internal\Message { /** - * Required. Identifier. The subscription to delete. + * Required. The subscription to delete. * Format is `projects/{project}/subscriptions/{sub}`. * - * Generated from protobuf field string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { + * Generated from protobuf field string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ private $subscription = ''; /** - * @param string $subscription Required. Identifier. The subscription to delete. + * @param string $subscription Required. The subscription to delete. * Format is `projects/{project}/subscriptions/{sub}`. Please see * {@see SubscriberClient::subscriptionName()} for help formatting this field. * @@ -45,7 +45,7 @@ public static function build(string $subscription): self * Optional. Data for populating the Message object. * * @type string $subscription - * Required. Identifier. The subscription to delete. + * Required. The subscription to delete. * Format is `projects/{project}/subscriptions/{sub}`. * } */ @@ -55,10 +55,10 @@ public function __construct($data = NULL) { } /** - * Required. Identifier. The subscription to delete. + * Required. The subscription to delete. * Format is `projects/{project}/subscriptions/{sub}`. * - * Generated from protobuf field string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { + * Generated from protobuf field string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @return string */ public function getSubscription() @@ -67,10 +67,10 @@ public function getSubscription() } /** - * Required. Identifier. The subscription to delete. + * Required. The subscription to delete. * Format is `projects/{project}/subscriptions/{sub}`. * - * Generated from protobuf field string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { + * Generated from protobuf field string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @param string $var * @return $this */ diff --git a/PubSub/src/V1/DeleteTopicRequest.php b/PubSub/src/V1/DeleteTopicRequest.php index b4e811433423..a0099885c511 100644 --- a/PubSub/src/V1/DeleteTopicRequest.php +++ b/PubSub/src/V1/DeleteTopicRequest.php @@ -16,15 +16,15 @@ class DeleteTopicRequest extends \Google\Protobuf\Internal\Message { /** - * Required. Identifier. Name of the topic to delete. + * Required. Name of the topic to delete. * Format is `projects/{project}/topics/{topic}`. * - * Generated from protobuf field string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { + * Generated from protobuf field string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ private $topic = ''; /** - * @param string $topic Required. Identifier. Name of the topic to delete. + * @param string $topic Required. Name of the topic to delete. * Format is `projects/{project}/topics/{topic}`. Please see * {@see PublisherClient::topicName()} for help formatting this field. * @@ -45,7 +45,7 @@ public static function build(string $topic): self * Optional. Data for populating the Message object. * * @type string $topic - * Required. Identifier. Name of the topic to delete. + * Required. Name of the topic to delete. * Format is `projects/{project}/topics/{topic}`. * } */ @@ -55,10 +55,10 @@ public function __construct($data = NULL) { } /** - * Required. Identifier. Name of the topic to delete. + * Required. Name of the topic to delete. * Format is `projects/{project}/topics/{topic}`. * - * Generated from protobuf field string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { + * Generated from protobuf field string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @return string */ public function getTopic() @@ -67,10 +67,10 @@ public function getTopic() } /** - * Required. Identifier. Name of the topic to delete. + * Required. Name of the topic to delete. * Format is `projects/{project}/topics/{topic}`. * - * Generated from protobuf field string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { + * Generated from protobuf field string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @param string $var * @return $this */ diff --git a/PubSub/src/V1/GetSnapshotRequest.php b/PubSub/src/V1/GetSnapshotRequest.php index 34e32849db9d..3e4288099d5c 100644 --- a/PubSub/src/V1/GetSnapshotRequest.php +++ b/PubSub/src/V1/GetSnapshotRequest.php @@ -16,15 +16,15 @@ class GetSnapshotRequest extends \Google\Protobuf\Internal\Message { /** - * Required. Identifier. The name of the snapshot to get. + * Required. The name of the snapshot to get. * Format is `projects/{project}/snapshots/{snap}`. * - * Generated from protobuf field string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { + * Generated from protobuf field string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ private $snapshot = ''; /** - * @param string $snapshot Required. Identifier. The name of the snapshot to get. + * @param string $snapshot Required. The name of the snapshot to get. * Format is `projects/{project}/snapshots/{snap}`. Please see * {@see SubscriberClient::snapshotName()} for help formatting this field. * @@ -45,7 +45,7 @@ public static function build(string $snapshot): self * Optional. Data for populating the Message object. * * @type string $snapshot - * Required. Identifier. The name of the snapshot to get. + * Required. The name of the snapshot to get. * Format is `projects/{project}/snapshots/{snap}`. * } */ @@ -55,10 +55,10 @@ public function __construct($data = NULL) { } /** - * Required. Identifier. The name of the snapshot to get. + * Required. The name of the snapshot to get. * Format is `projects/{project}/snapshots/{snap}`. * - * Generated from protobuf field string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { + * Generated from protobuf field string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @return string */ public function getSnapshot() @@ -67,10 +67,10 @@ public function getSnapshot() } /** - * Required. Identifier. The name of the snapshot to get. + * Required. The name of the snapshot to get. * Format is `projects/{project}/snapshots/{snap}`. * - * Generated from protobuf field string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { + * Generated from protobuf field string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @param string $var * @return $this */ diff --git a/PubSub/src/V1/GetSubscriptionRequest.php b/PubSub/src/V1/GetSubscriptionRequest.php index 5def17049520..131b199a5fdc 100644 --- a/PubSub/src/V1/GetSubscriptionRequest.php +++ b/PubSub/src/V1/GetSubscriptionRequest.php @@ -16,15 +16,15 @@ class GetSubscriptionRequest extends \Google\Protobuf\Internal\Message { /** - * Required. Identifier. The name of the subscription to get. + * Required. The name of the subscription to get. * Format is `projects/{project}/subscriptions/{sub}`. * - * Generated from protobuf field string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { + * Generated from protobuf field string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ private $subscription = ''; /** - * @param string $subscription Required. Identifier. The name of the subscription to get. + * @param string $subscription Required. The name of the subscription to get. * Format is `projects/{project}/subscriptions/{sub}`. Please see * {@see SubscriberClient::subscriptionName()} for help formatting this field. * @@ -45,7 +45,7 @@ public static function build(string $subscription): self * Optional. Data for populating the Message object. * * @type string $subscription - * Required. Identifier. The name of the subscription to get. + * Required. The name of the subscription to get. * Format is `projects/{project}/subscriptions/{sub}`. * } */ @@ -55,10 +55,10 @@ public function __construct($data = NULL) { } /** - * Required. Identifier. The name of the subscription to get. + * Required. The name of the subscription to get. * Format is `projects/{project}/subscriptions/{sub}`. * - * Generated from protobuf field string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { + * Generated from protobuf field string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @return string */ public function getSubscription() @@ -67,10 +67,10 @@ public function getSubscription() } /** - * Required. Identifier. The name of the subscription to get. + * Required. The name of the subscription to get. * Format is `projects/{project}/subscriptions/{sub}`. * - * Generated from protobuf field string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { + * Generated from protobuf field string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @param string $var * @return $this */ diff --git a/PubSub/src/V1/GetTopicRequest.php b/PubSub/src/V1/GetTopicRequest.php index 0bdcb08a20a6..a35801bd03f6 100644 --- a/PubSub/src/V1/GetTopicRequest.php +++ b/PubSub/src/V1/GetTopicRequest.php @@ -16,15 +16,15 @@ class GetTopicRequest extends \Google\Protobuf\Internal\Message { /** - * Required. Identifier. The name of the topic to get. + * Required. The name of the topic to get. * Format is `projects/{project}/topics/{topic}`. * - * Generated from protobuf field string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { + * Generated from protobuf field string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ private $topic = ''; /** - * @param string $topic Required. Identifier. The name of the topic to get. + * @param string $topic Required. The name of the topic to get. * Format is `projects/{project}/topics/{topic}`. Please see * {@see PublisherClient::topicName()} for help formatting this field. * @@ -45,7 +45,7 @@ public static function build(string $topic): self * Optional. Data for populating the Message object. * * @type string $topic - * Required. Identifier. The name of the topic to get. + * Required. The name of the topic to get. * Format is `projects/{project}/topics/{topic}`. * } */ @@ -55,10 +55,10 @@ public function __construct($data = NULL) { } /** - * Required. Identifier. The name of the topic to get. + * Required. The name of the topic to get. * Format is `projects/{project}/topics/{topic}`. * - * Generated from protobuf field string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { + * Generated from protobuf field string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @return string */ public function getTopic() @@ -67,10 +67,10 @@ public function getTopic() } /** - * Required. Identifier. The name of the topic to get. + * Required. The name of the topic to get. * Format is `projects/{project}/topics/{topic}`. * - * Generated from protobuf field string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { + * Generated from protobuf field string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @param string $var * @return $this */ diff --git a/PubSub/src/V1/ListSnapshotsRequest.php b/PubSub/src/V1/ListSnapshotsRequest.php index b6b35c1a4210..1082fedc4d40 100644 --- a/PubSub/src/V1/ListSnapshotsRequest.php +++ b/PubSub/src/V1/ListSnapshotsRequest.php @@ -16,10 +16,10 @@ class ListSnapshotsRequest extends \Google\Protobuf\Internal\Message { /** - * Required. Identifier. The name of the project in which to list snapshots. + * Required. The name of the project in which to list snapshots. * Format is `projects/{project-id}`. * - * Generated from protobuf field string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { + * Generated from protobuf field string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ private $project = ''; /** @@ -38,7 +38,7 @@ class ListSnapshotsRequest extends \Google\Protobuf\Internal\Message private $page_token = ''; /** - * @param string $project Required. Identifier. The name of the project in which to list snapshots. + * @param string $project Required. The name of the project in which to list snapshots. * Format is `projects/{project-id}`. Please see * {@see SubscriberClient::projectName()} for help formatting this field. * @@ -59,7 +59,7 @@ public static function build(string $project): self * Optional. Data for populating the Message object. * * @type string $project - * Required. Identifier. The name of the project in which to list snapshots. + * Required. The name of the project in which to list snapshots. * Format is `projects/{project-id}`. * @type int $page_size * Optional. Maximum number of snapshots to return. @@ -75,10 +75,10 @@ public function __construct($data = NULL) { } /** - * Required. Identifier. The name of the project in which to list snapshots. + * Required. The name of the project in which to list snapshots. * Format is `projects/{project-id}`. * - * Generated from protobuf field string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { + * Generated from protobuf field string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @return string */ public function getProject() @@ -87,10 +87,10 @@ public function getProject() } /** - * Required. Identifier. The name of the project in which to list snapshots. + * Required. The name of the project in which to list snapshots. * Format is `projects/{project-id}`. * - * Generated from protobuf field string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { + * Generated from protobuf field string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @param string $var * @return $this */ diff --git a/PubSub/src/V1/ListSubscriptionsRequest.php b/PubSub/src/V1/ListSubscriptionsRequest.php index 06a99ff788e6..56246538dc0d 100644 --- a/PubSub/src/V1/ListSubscriptionsRequest.php +++ b/PubSub/src/V1/ListSubscriptionsRequest.php @@ -16,10 +16,10 @@ class ListSubscriptionsRequest extends \Google\Protobuf\Internal\Message { /** - * Required. Identifier. The name of the project in which to list - * subscriptions. Format is `projects/{project-id}`. + * Required. The name of the project in which to list subscriptions. + * Format is `projects/{project-id}`. * - * Generated from protobuf field string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { + * Generated from protobuf field string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ private $project = ''; /** @@ -38,8 +38,8 @@ class ListSubscriptionsRequest extends \Google\Protobuf\Internal\Message private $page_token = ''; /** - * @param string $project Required. Identifier. The name of the project in which to list - * subscriptions. Format is `projects/{project-id}`. Please see + * @param string $project Required. The name of the project in which to list subscriptions. + * Format is `projects/{project-id}`. Please see * {@see SubscriberClient::projectName()} for help formatting this field. * * @return \Google\Cloud\PubSub\V1\ListSubscriptionsRequest @@ -59,8 +59,8 @@ public static function build(string $project): self * Optional. Data for populating the Message object. * * @type string $project - * Required. Identifier. The name of the project in which to list - * subscriptions. Format is `projects/{project-id}`. + * Required. The name of the project in which to list subscriptions. + * Format is `projects/{project-id}`. * @type int $page_size * Optional. Maximum number of subscriptions to return. * @type string $page_token @@ -75,10 +75,10 @@ public function __construct($data = NULL) { } /** - * Required. Identifier. The name of the project in which to list - * subscriptions. Format is `projects/{project-id}`. + * Required. The name of the project in which to list subscriptions. + * Format is `projects/{project-id}`. * - * Generated from protobuf field string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { + * Generated from protobuf field string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @return string */ public function getProject() @@ -87,10 +87,10 @@ public function getProject() } /** - * Required. Identifier. The name of the project in which to list - * subscriptions. Format is `projects/{project-id}`. + * Required. The name of the project in which to list subscriptions. + * Format is `projects/{project-id}`. * - * Generated from protobuf field string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { + * Generated from protobuf field string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @param string $var * @return $this */ diff --git a/PubSub/src/V1/ListTopicsRequest.php b/PubSub/src/V1/ListTopicsRequest.php index fe8efa7a77cb..d54385c94d37 100644 --- a/PubSub/src/V1/ListTopicsRequest.php +++ b/PubSub/src/V1/ListTopicsRequest.php @@ -16,10 +16,10 @@ class ListTopicsRequest extends \Google\Protobuf\Internal\Message { /** - * Required. Identifier. The name of the project in which to list topics. + * Required. The name of the project in which to list topics. * Format is `projects/{project-id}`. * - * Generated from protobuf field string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { + * Generated from protobuf field string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ private $project = ''; /** @@ -38,7 +38,7 @@ class ListTopicsRequest extends \Google\Protobuf\Internal\Message private $page_token = ''; /** - * @param string $project Required. Identifier. The name of the project in which to list topics. + * @param string $project Required. The name of the project in which to list topics. * Format is `projects/{project-id}`. Please see * {@see PublisherClient::projectName()} for help formatting this field. * @@ -59,7 +59,7 @@ public static function build(string $project): self * Optional. Data for populating the Message object. * * @type string $project - * Required. Identifier. The name of the project in which to list topics. + * Required. The name of the project in which to list topics. * Format is `projects/{project-id}`. * @type int $page_size * Optional. Maximum number of topics to return. @@ -75,10 +75,10 @@ public function __construct($data = NULL) { } /** - * Required. Identifier. The name of the project in which to list topics. + * Required. The name of the project in which to list topics. * Format is `projects/{project-id}`. * - * Generated from protobuf field string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { + * Generated from protobuf field string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @return string */ public function getProject() @@ -87,10 +87,10 @@ public function getProject() } /** - * Required. Identifier. The name of the project in which to list topics. + * Required. The name of the project in which to list topics. * Format is `projects/{project-id}`. * - * Generated from protobuf field string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { + * Generated from protobuf field string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @param string $var * @return $this */ diff --git a/PubSub/src/V1/MessageTransform.php b/PubSub/src/V1/MessageTransform.php index 6415d3eb5778..25202b7ef1b6 100644 --- a/PubSub/src/V1/MessageTransform.php +++ b/PubSub/src/V1/MessageTransform.php @@ -41,6 +41,10 @@ class MessageTransform extends \Google\Protobuf\Internal\Message * @type \Google\Cloud\PubSub\V1\JavaScriptUDF $javascript_udf * Optional. JavaScript User Defined Function. If multiple JavaScriptUDF's * are specified on a resource, each must have a unique `function_name`. + * @type \Google\Cloud\PubSub\V1\AIInference $ai_inference + * Optional. AI Inference. Specifies the Vertex AI endpoint that inference + * requests built from the Pub/Sub message data and provided parameters will + * be sent to. * @type bool $enabled * Optional. This field is deprecated, use the `disabled` field to disable * transforms. @@ -87,6 +91,41 @@ public function setJavascriptUdf($var) return $this; } + /** + * Optional. AI Inference. Specifies the Vertex AI endpoint that inference + * requests built from the Pub/Sub message data and provided parameters will + * be sent to. + * + * Generated from protobuf field .google.pubsub.v1.AIInference ai_inference = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\PubSub\V1\AIInference|null + */ + public function getAiInference() + { + return $this->readOneof(6); + } + + public function hasAiInference() + { + return $this->hasOneof(6); + } + + /** + * Optional. AI Inference. Specifies the Vertex AI endpoint that inference + * requests built from the Pub/Sub message data and provided parameters will + * be sent to. + * + * Generated from protobuf field .google.pubsub.v1.AIInference ai_inference = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\PubSub\V1\AIInference $var + * @return $this + */ + public function setAiInference($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\PubSub\V1\AIInference::class); + $this->writeOneof(6, $var); + + return $this; + } + /** * Optional. This field is deprecated, use the `disabled` field to disable * transforms. diff --git a/PubSub/src/V1/PublishRequest.php b/PubSub/src/V1/PublishRequest.php index 83d16502c70b..b33ef4dbf990 100644 --- a/PubSub/src/V1/PublishRequest.php +++ b/PubSub/src/V1/PublishRequest.php @@ -16,10 +16,10 @@ class PublishRequest extends \Google\Protobuf\Internal\Message { /** - * Required. Identifier. The messages in the request will be published on this - * topic. Format is `projects/{project}/topics/{topic}`. + * Required. The messages in the request will be published on this topic. + * Format is `projects/{project}/topics/{topic}`. * - * Generated from protobuf field string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { + * Generated from protobuf field string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ private $topic = ''; /** @@ -30,8 +30,8 @@ class PublishRequest extends \Google\Protobuf\Internal\Message private $messages; /** - * @param string $topic Required. Identifier. The messages in the request will be published on this - * topic. Format is `projects/{project}/topics/{topic}`. Please see + * @param string $topic Required. The messages in the request will be published on this topic. + * Format is `projects/{project}/topics/{topic}`. Please see * {@see PublisherClient::topicName()} for help formatting this field. * @param \Google\Cloud\PubSub\V1\PubsubMessage[] $messages Required. The messages to publish. * @@ -53,8 +53,8 @@ public static function build(string $topic, array $messages): self * Optional. Data for populating the Message object. * * @type string $topic - * Required. Identifier. The messages in the request will be published on this - * topic. Format is `projects/{project}/topics/{topic}`. + * Required. The messages in the request will be published on this topic. + * Format is `projects/{project}/topics/{topic}`. * @type array<\Google\Cloud\PubSub\V1\PubsubMessage>|\Google\Protobuf\Internal\RepeatedField $messages * Required. The messages to publish. * } @@ -65,10 +65,10 @@ public function __construct($data = NULL) { } /** - * Required. Identifier. The messages in the request will be published on this - * topic. Format is `projects/{project}/topics/{topic}`. + * Required. The messages in the request will be published on this topic. + * Format is `projects/{project}/topics/{topic}`. * - * Generated from protobuf field string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { + * Generated from protobuf field string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @return string */ public function getTopic() @@ -77,10 +77,10 @@ public function getTopic() } /** - * Required. Identifier. The messages in the request will be published on this - * topic. Format is `projects/{project}/topics/{topic}`. + * Required. The messages in the request will be published on this topic. + * Format is `projects/{project}/topics/{topic}`. * - * Generated from protobuf field string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { + * Generated from protobuf field string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @param string $var * @return $this */ diff --git a/PubSub/src/V1/Subscription.php b/PubSub/src/V1/Subscription.php index 790086b6b7c6..0f755415bc87 100644 --- a/PubSub/src/V1/Subscription.php +++ b/PubSub/src/V1/Subscription.php @@ -206,7 +206,7 @@ class Subscription extends \Google\Protobuf\Internal\Message private $state = 0; /** * Output only. Information about the associated Analytics Hub subscription. - * Only set if the subscritpion is created by Analytics Hub. + * Only set if the subscription is created by Analytics Hub. * * Generated from protobuf field .google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo analytics_hub_subscription_info = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @@ -400,7 +400,7 @@ public static function build(string $name, string $topic, \Google\Cloud\PubSub\V * subscription can receive messages. * @type \Google\Cloud\PubSub\V1\Subscription\AnalyticsHubSubscriptionInfo $analytics_hub_subscription_info * Output only. Information about the associated Analytics Hub subscription. - * Only set if the subscritpion is created by Analytics Hub. + * Only set if the subscription is created by Analytics Hub. * @type array<\Google\Cloud\PubSub\V1\MessageTransform>|\Google\Protobuf\Internal\RepeatedField $message_transforms * Optional. Transforms to be applied to messages before they are delivered to * subscribers. Transforms are applied in the order specified. @@ -1126,7 +1126,7 @@ public function setState($var) /** * Output only. Information about the associated Analytics Hub subscription. - * Only set if the subscritpion is created by Analytics Hub. + * Only set if the subscription is created by Analytics Hub. * * Generated from protobuf field .google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo analytics_hub_subscription_info = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return \Google\Cloud\PubSub\V1\Subscription\AnalyticsHubSubscriptionInfo|null @@ -1148,7 +1148,7 @@ public function clearAnalyticsHubSubscriptionInfo() /** * Output only. Information about the associated Analytics Hub subscription. - * Only set if the subscritpion is created by Analytics Hub. + * Only set if the subscription is created by Analytics Hub. * * Generated from protobuf field .google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo analytics_hub_subscription_info = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param \Google\Cloud\PubSub\V1\Subscription\AnalyticsHubSubscriptionInfo $var