diff --git a/BigQueryAnalyticsHub/metadata/V1/Analyticshub.php b/BigQueryAnalyticsHub/metadata/V1/Analyticshub.php index fe2d99e7191d..91016b17f551 100644 Binary files a/BigQueryAnalyticsHub/metadata/V1/Analyticshub.php and b/BigQueryAnalyticsHub/metadata/V1/Analyticshub.php differ diff --git a/BigQueryAnalyticsHub/src/V1/DataExchange.php b/BigQueryAnalyticsHub/src/V1/DataExchange.php index 08234c5823c8..c8eefaa39b1f 100644 --- a/BigQueryAnalyticsHub/src/V1/DataExchange.php +++ b/BigQueryAnalyticsHub/src/V1/DataExchange.php @@ -78,6 +78,14 @@ class DataExchange extends \Google\Protobuf\Internal\Message * Generated from protobuf field .google.cloud.bigquery.analyticshub.v1.SharingEnvironmentConfig sharing_environment_config = 8 [(.google.api.field_behavior) = OPTIONAL]; */ protected $sharing_environment_config = null; + /** + * Optional. Type of discovery on the discovery page for all the listings + * under this exchange. Updating this field also updates (overwrites) the + * discovery_type field for all the listings under this exchange. + * + * Generated from protobuf field optional .google.cloud.bigquery.analyticshub.v1.DiscoveryType discovery_type = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $discovery_type = null; /** * Constructor. @@ -114,6 +122,10 @@ class DataExchange extends \Google\Protobuf\Internal\Message * size of the data by 33-36%) when using JSON on the wire. * @type \Google\Cloud\BigQuery\AnalyticsHub\V1\SharingEnvironmentConfig $sharing_environment_config * Optional. Configurable data sharing environment option for a data exchange. + * @type int $discovery_type + * Optional. Type of discovery on the discovery page for all the listings + * under this exchange. Updating this field also updates (overwrites) the + * discovery_type field for all the listings under this exchange. * } */ public function __construct($data = NULL) { @@ -365,5 +377,45 @@ public function setSharingEnvironmentConfig($var) return $this; } + /** + * Optional. Type of discovery on the discovery page for all the listings + * under this exchange. Updating this field also updates (overwrites) the + * discovery_type field for all the listings under this exchange. + * + * Generated from protobuf field optional .google.cloud.bigquery.analyticshub.v1.DiscoveryType discovery_type = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getDiscoveryType() + { + return isset($this->discovery_type) ? $this->discovery_type : 0; + } + + public function hasDiscoveryType() + { + return isset($this->discovery_type); + } + + public function clearDiscoveryType() + { + unset($this->discovery_type); + } + + /** + * Optional. Type of discovery on the discovery page for all the listings + * under this exchange. Updating this field also updates (overwrites) the + * discovery_type field for all the listings under this exchange. + * + * Generated from protobuf field optional .google.cloud.bigquery.analyticshub.v1.DiscoveryType discovery_type = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setDiscoveryType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\BigQuery\AnalyticsHub\V1\DiscoveryType::class); + $this->discovery_type = $var; + + return $this; + } + } diff --git a/BigQueryAnalyticsHub/src/V1/DiscoveryType.php b/BigQueryAnalyticsHub/src/V1/DiscoveryType.php new file mode 100644 index 000000000000..2726ed751e8a --- /dev/null +++ b/BigQueryAnalyticsHub/src/V1/DiscoveryType.php @@ -0,0 +1,65 @@ +google.cloud.bigquery.analyticshub.v1.DiscoveryType + */ +class DiscoveryType +{ + /** + * Unspecified. Defaults to DISCOVERY_TYPE_PRIVATE. + * + * Generated from protobuf enum DISCOVERY_TYPE_UNSPECIFIED = 0; + */ + const DISCOVERY_TYPE_UNSPECIFIED = 0; + /** + * The Data exchange/listing can be discovered in the 'Private' results + * list. + * + * Generated from protobuf enum DISCOVERY_TYPE_PRIVATE = 1; + */ + const DISCOVERY_TYPE_PRIVATE = 1; + /** + * The Data exchange/listing can be discovered in the 'Public' results + * list. + * + * Generated from protobuf enum DISCOVERY_TYPE_PUBLIC = 2; + */ + const DISCOVERY_TYPE_PUBLIC = 2; + + private static $valueToName = [ + self::DISCOVERY_TYPE_UNSPECIFIED => 'DISCOVERY_TYPE_UNSPECIFIED', + self::DISCOVERY_TYPE_PRIVATE => 'DISCOVERY_TYPE_PRIVATE', + self::DISCOVERY_TYPE_PUBLIC => 'DISCOVERY_TYPE_PUBLIC', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/BigQueryAnalyticsHub/src/V1/ListSubscriptionsRequest.php b/BigQueryAnalyticsHub/src/V1/ListSubscriptionsRequest.php index bc3abe39037e..eb2bf9d45198 100644 --- a/BigQueryAnalyticsHub/src/V1/ListSubscriptionsRequest.php +++ b/BigQueryAnalyticsHub/src/V1/ListSubscriptionsRequest.php @@ -23,7 +23,17 @@ class ListSubscriptionsRequest extends \Google\Protobuf\Internal\Message */ protected $parent = ''; /** - * The filter expression may be used to filter by Data Exchange or Listing. + * An expression for filtering the results of the request. Eligible + * fields for filtering are: + * * `listing` + * * `data_exchange` + * Alternatively, a literal wrapped in double quotes may be provided. + * This will be checked for an exact match against both fields above. + * In all cases, the full Data Exchange or Listing resource name must + * be provided. Some example of using filters: + * * data_exchange="projects/myproject/locations/us/dataExchanges/123" + * * listing="projects/123/locations/us/dataExchanges/456/listings/789" + * * "projects/myproject/locations/us/dataExchanges/123" * * Generated from protobuf field string filter = 2; */ @@ -66,7 +76,17 @@ public static function build(string $parent): self * Required. The parent resource path of the subscription. * e.g. projects/myproject/locations/US * @type string $filter - * The filter expression may be used to filter by Data Exchange or Listing. + * An expression for filtering the results of the request. Eligible + * fields for filtering are: + * * `listing` + * * `data_exchange` + * Alternatively, a literal wrapped in double quotes may be provided. + * This will be checked for an exact match against both fields above. + * In all cases, the full Data Exchange or Listing resource name must + * be provided. Some example of using filters: + * * data_exchange="projects/myproject/locations/us/dataExchanges/123" + * * listing="projects/123/locations/us/dataExchanges/456/listings/789" + * * "projects/myproject/locations/us/dataExchanges/123" * @type int $page_size * The maximum number of results to return in a single response page. * @type string $page_token @@ -107,7 +127,17 @@ public function setParent($var) } /** - * The filter expression may be used to filter by Data Exchange or Listing. + * An expression for filtering the results of the request. Eligible + * fields for filtering are: + * * `listing` + * * `data_exchange` + * Alternatively, a literal wrapped in double quotes may be provided. + * This will be checked for an exact match against both fields above. + * In all cases, the full Data Exchange or Listing resource name must + * be provided. Some example of using filters: + * * data_exchange="projects/myproject/locations/us/dataExchanges/123" + * * listing="projects/123/locations/us/dataExchanges/456/listings/789" + * * "projects/myproject/locations/us/dataExchanges/123" * * Generated from protobuf field string filter = 2; * @return string @@ -118,7 +148,17 @@ public function getFilter() } /** - * The filter expression may be used to filter by Data Exchange or Listing. + * An expression for filtering the results of the request. Eligible + * fields for filtering are: + * * `listing` + * * `data_exchange` + * Alternatively, a literal wrapped in double quotes may be provided. + * This will be checked for an exact match against both fields above. + * In all cases, the full Data Exchange or Listing resource name must + * be provided. Some example of using filters: + * * data_exchange="projects/myproject/locations/us/dataExchanges/123" + * * listing="projects/123/locations/us/dataExchanges/456/listings/789" + * * "projects/myproject/locations/us/dataExchanges/123" * * Generated from protobuf field string filter = 2; * @param string $var diff --git a/BigQueryAnalyticsHub/src/V1/Listing.php b/BigQueryAnalyticsHub/src/V1/Listing.php index 17cc89b6c1f5..6119711f11d3 100644 --- a/BigQueryAnalyticsHub/src/V1/Listing.php +++ b/BigQueryAnalyticsHub/src/V1/Listing.php @@ -106,6 +106,12 @@ class Listing extends \Google\Protobuf\Internal\Message * Generated from protobuf field .google.cloud.bigquery.analyticshub.v1.Listing.RestrictedExportConfig restricted_export_config = 13 [(.google.api.field_behavior) = OPTIONAL]; */ protected $restricted_export_config = null; + /** + * Optional. Type of discovery of the listing on the discovery page. + * + * Generated from protobuf field optional .google.cloud.bigquery.analyticshub.v1.DiscoveryType discovery_type = 14 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $discovery_type = null; protected $source; /** @@ -156,6 +162,8 @@ class Listing extends \Google\Protobuf\Internal\Message * @type \Google\Cloud\BigQuery\AnalyticsHub\V1\Listing\RestrictedExportConfig $restricted_export_config * Optional. If set, restricted export configuration will be propagated and * enforced on the linked dataset. + * @type int $discovery_type + * Optional. Type of discovery of the listing on the discovery page. * } */ public function __construct($data = NULL) { @@ -568,6 +576,42 @@ public function setRestrictedExportConfig($var) return $this; } + /** + * Optional. Type of discovery of the listing on the discovery page. + * + * Generated from protobuf field optional .google.cloud.bigquery.analyticshub.v1.DiscoveryType discovery_type = 14 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getDiscoveryType() + { + return isset($this->discovery_type) ? $this->discovery_type : 0; + } + + public function hasDiscoveryType() + { + return isset($this->discovery_type); + } + + public function clearDiscoveryType() + { + unset($this->discovery_type); + } + + /** + * Optional. Type of discovery of the listing on the discovery page. + * + * Generated from protobuf field optional .google.cloud.bigquery.analyticshub.v1.DiscoveryType discovery_type = 14 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setDiscoveryType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\BigQuery\AnalyticsHub\V1\DiscoveryType::class); + $this->discovery_type = $var; + + return $this; + } + /** * @return string */ diff --git a/BigQueryAnalyticsHub/src/V1/Listing/BigQueryDatasetSource.php b/BigQueryAnalyticsHub/src/V1/Listing/BigQueryDatasetSource.php index 935ff334f2a1..0f395da6688e 100644 --- a/BigQueryAnalyticsHub/src/V1/Listing/BigQueryDatasetSource.php +++ b/BigQueryAnalyticsHub/src/V1/Listing/BigQueryDatasetSource.php @@ -36,6 +36,13 @@ class BigQueryDatasetSource extends \Google\Protobuf\Internal\Message * Generated from protobuf field repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL]; */ private $selected_resources; + /** + * Optional. If set, restricted export policy will be propagated and + * enforced on the linked dataset. + * + * Generated from protobuf field .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.RestrictedExportPolicy restricted_export_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $restricted_export_policy = null; /** * Constructor. @@ -50,6 +57,9 @@ class BigQueryDatasetSource extends \Google\Protobuf\Internal\Message * Optional. Resources in this dataset that are selectively shared. * If this field is empty, then the entire dataset (all resources) are * shared. This field is only valid for data clean room exchanges. + * @type \Google\Cloud\BigQuery\AnalyticsHub\V1\Listing\BigQueryDatasetSource\RestrictedExportPolicy $restricted_export_policy + * Optional. If set, restricted export policy will be propagated and + * enforced on the linked dataset. * } */ public function __construct($data = NULL) { @@ -115,6 +125,44 @@ public function setSelectedResources($var) return $this; } + /** + * Optional. If set, restricted export policy will be propagated and + * enforced on the linked dataset. + * + * Generated from protobuf field .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.RestrictedExportPolicy restricted_export_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\BigQuery\AnalyticsHub\V1\Listing\BigQueryDatasetSource\RestrictedExportPolicy|null + */ + public function getRestrictedExportPolicy() + { + return $this->restricted_export_policy; + } + + public function hasRestrictedExportPolicy() + { + return isset($this->restricted_export_policy); + } + + public function clearRestrictedExportPolicy() + { + unset($this->restricted_export_policy); + } + + /** + * Optional. If set, restricted export policy will be propagated and + * enforced on the linked dataset. + * + * Generated from protobuf field .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.RestrictedExportPolicy restricted_export_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\BigQuery\AnalyticsHub\V1\Listing\BigQueryDatasetSource\RestrictedExportPolicy $var + * @return $this + */ + public function setRestrictedExportPolicy($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\AnalyticsHub\V1\Listing\BigQueryDatasetSource\RestrictedExportPolicy::class); + $this->restricted_export_policy = $var; + + return $this; + } + } diff --git a/BigQueryAnalyticsHub/src/V1/Listing/BigQueryDatasetSource/RestrictedExportPolicy.php b/BigQueryAnalyticsHub/src/V1/Listing/BigQueryDatasetSource/RestrictedExportPolicy.php new file mode 100644 index 000000000000..6cb04d94ad54 --- /dev/null +++ b/BigQueryAnalyticsHub/src/V1/Listing/BigQueryDatasetSource/RestrictedExportPolicy.php @@ -0,0 +1,260 @@ +google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.RestrictedExportPolicy + */ +class RestrictedExportPolicy extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. If true, enable restricted export. + * + * Generated from protobuf field .google.protobuf.BoolValue enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $enabled = null; + /** + * Optional. If true, restrict direct table access (read + * api/tabledata.list) on linked table. + * + * Generated from protobuf field .google.protobuf.BoolValue restrict_direct_table_access = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $restrict_direct_table_access = null; + /** + * Optional. If true, restrict export of query result derived from + * restricted linked dataset table. + * + * Generated from protobuf field .google.protobuf.BoolValue restrict_query_result = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $restrict_query_result = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\BoolValue $enabled + * Optional. If true, enable restricted export. + * @type \Google\Protobuf\BoolValue $restrict_direct_table_access + * Optional. If true, restrict direct table access (read + * api/tabledata.list) on linked table. + * @type \Google\Protobuf\BoolValue $restrict_query_result + * Optional. If true, restrict export of query result derived from + * restricted linked dataset table. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Bigquery\Analyticshub\V1\Analyticshub::initOnce(); + parent::__construct($data); + } + + /** + * Optional. If true, enable restricted export. + * + * Generated from protobuf field .google.protobuf.BoolValue enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\BoolValue|null + */ + public function getEnabled() + { + return $this->enabled; + } + + public function hasEnabled() + { + return isset($this->enabled); + } + + public function clearEnabled() + { + unset($this->enabled); + } + + /** + * Returns the unboxed value from getEnabled() + + * Optional. If true, enable restricted export. + * + * Generated from protobuf field .google.protobuf.BoolValue enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool|null + */ + public function getEnabledUnwrapped() + { + return $this->readWrapperValue("enabled"); + } + + /** + * Optional. If true, enable restricted export. + * + * Generated from protobuf field .google.protobuf.BoolValue enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\BoolValue $var + * @return $this + */ + public function setEnabled($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class); + $this->enabled = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object. + + * Optional. If true, enable restricted export. + * + * Generated from protobuf field .google.protobuf.BoolValue enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool|null $var + * @return $this + */ + public function setEnabledUnwrapped($var) + { + $this->writeWrapperValue("enabled", $var); + return $this;} + + /** + * Optional. If true, restrict direct table access (read + * api/tabledata.list) on linked table. + * + * Generated from protobuf field .google.protobuf.BoolValue restrict_direct_table_access = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\BoolValue|null + */ + public function getRestrictDirectTableAccess() + { + return $this->restrict_direct_table_access; + } + + public function hasRestrictDirectTableAccess() + { + return isset($this->restrict_direct_table_access); + } + + public function clearRestrictDirectTableAccess() + { + unset($this->restrict_direct_table_access); + } + + /** + * Returns the unboxed value from getRestrictDirectTableAccess() + + * Optional. If true, restrict direct table access (read + * api/tabledata.list) on linked table. + * + * Generated from protobuf field .google.protobuf.BoolValue restrict_direct_table_access = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool|null + */ + public function getRestrictDirectTableAccessUnwrapped() + { + return $this->readWrapperValue("restrict_direct_table_access"); + } + + /** + * Optional. If true, restrict direct table access (read + * api/tabledata.list) on linked table. + * + * Generated from protobuf field .google.protobuf.BoolValue restrict_direct_table_access = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\BoolValue $var + * @return $this + */ + public function setRestrictDirectTableAccess($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class); + $this->restrict_direct_table_access = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object. + + * Optional. If true, restrict direct table access (read + * api/tabledata.list) on linked table. + * + * Generated from protobuf field .google.protobuf.BoolValue restrict_direct_table_access = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool|null $var + * @return $this + */ + public function setRestrictDirectTableAccessUnwrapped($var) + { + $this->writeWrapperValue("restrict_direct_table_access", $var); + return $this;} + + /** + * Optional. If true, restrict export of query result derived from + * restricted linked dataset table. + * + * Generated from protobuf field .google.protobuf.BoolValue restrict_query_result = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\BoolValue|null + */ + public function getRestrictQueryResult() + { + return $this->restrict_query_result; + } + + public function hasRestrictQueryResult() + { + return isset($this->restrict_query_result); + } + + public function clearRestrictQueryResult() + { + unset($this->restrict_query_result); + } + + /** + * Returns the unboxed value from getRestrictQueryResult() + + * Optional. If true, restrict export of query result derived from + * restricted linked dataset table. + * + * Generated from protobuf field .google.protobuf.BoolValue restrict_query_result = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool|null + */ + public function getRestrictQueryResultUnwrapped() + { + return $this->readWrapperValue("restrict_query_result"); + } + + /** + * Optional. If true, restrict export of query result derived from + * restricted linked dataset table. + * + * Generated from protobuf field .google.protobuf.BoolValue restrict_query_result = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\BoolValue $var + * @return $this + */ + public function setRestrictQueryResult($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class); + $this->restrict_query_result = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object. + + * Optional. If true, restrict export of query result derived from + * restricted linked dataset table. + * + * Generated from protobuf field .google.protobuf.BoolValue restrict_query_result = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool|null $var + * @return $this + */ + public function setRestrictQueryResultUnwrapped($var) + { + $this->writeWrapperValue("restrict_query_result", $var); + return $this;} + +} + + diff --git a/BigQueryAnalyticsHub/src/V1/SubscribeListingRequest.php b/BigQueryAnalyticsHub/src/V1/SubscribeListingRequest.php index c6041fe76652..bc95350a135c 100644 --- a/BigQueryAnalyticsHub/src/V1/SubscribeListingRequest.php +++ b/BigQueryAnalyticsHub/src/V1/SubscribeListingRequest.php @@ -46,7 +46,7 @@ public static function build(string $name): self * Optional. Data for populating the Message object. * * @type \Google\Cloud\BigQuery\AnalyticsHub\V1\DestinationDataset $destination_dataset - * BigQuery destination dataset to create for the subscriber. + * Input only. BigQuery destination dataset to create for the subscriber. * @type string $name * Required. Resource name of the listing that you want to subscribe to. * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`. @@ -58,9 +58,9 @@ public function __construct($data = NULL) { } /** - * BigQuery destination dataset to create for the subscriber. + * Input only. BigQuery destination dataset to create for the subscriber. * - * Generated from protobuf field .google.cloud.bigquery.analyticshub.v1.DestinationDataset destination_dataset = 3; + * Generated from protobuf field .google.cloud.bigquery.analyticshub.v1.DestinationDataset destination_dataset = 3 [(.google.api.field_behavior) = INPUT_ONLY]; * @return \Google\Cloud\BigQuery\AnalyticsHub\V1\DestinationDataset|null */ public function getDestinationDataset() @@ -74,9 +74,9 @@ public function hasDestinationDataset() } /** - * BigQuery destination dataset to create for the subscriber. + * Input only. BigQuery destination dataset to create for the subscriber. * - * Generated from protobuf field .google.cloud.bigquery.analyticshub.v1.DestinationDataset destination_dataset = 3; + * Generated from protobuf field .google.cloud.bigquery.analyticshub.v1.DestinationDataset destination_dataset = 3 [(.google.api.field_behavior) = INPUT_ONLY]; * @param \Google\Cloud\BigQuery\AnalyticsHub\V1\DestinationDataset $var * @return $this */