Note: The following fields are mutually exclusive: destination_dataset, destination_pubsub_subscription. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: destination_dataset, destination_pubsub_subscription. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: destination_dataset, destination_pubsub_subscription. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: destination_pubsub_subscription, destination_dataset. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: destination_pubsub_subscription, destination_dataset. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: destination_pubsub_subscription, destination_dataset. If a field in that set is populated, all other fields in the set will automatically be cleared.
#name
defname()->::String
Returns
(::String) — Required. Resource name of the listing that you want to subscribe to.
e.g. projects/myproject/locations/us/dataExchanges/123/listings/456.
#name=
defname=(value)->::String
Parameter
value (::String) — Required. Resource name of the listing that you want to subscribe to.
e.g. projects/myproject/locations/us/dataExchanges/123/listings/456.
Returns
(::String) — Required. Resource name of the listing that you want to subscribe to.
e.g. projects/myproject/locations/us/dataExchanges/123/listings/456.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Analytics Hub V1 API - Class Google::Cloud::Bigquery::AnalyticsHub::V1::SubscribeListingRequest (v0.13.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.13.1 (latest)](/ruby/docs/reference/google-cloud-bigquery-analytics_hub-v1/latest/Google-Cloud-Bigquery-AnalyticsHub-V1-SubscribeListingRequest)\n- [0.13.0](/ruby/docs/reference/google-cloud-bigquery-analytics_hub-v1/0.13.0/Google-Cloud-Bigquery-AnalyticsHub-V1-SubscribeListingRequest)\n- [0.12.0](/ruby/docs/reference/google-cloud-bigquery-analytics_hub-v1/0.12.0/Google-Cloud-Bigquery-AnalyticsHub-V1-SubscribeListingRequest)\n- [0.11.1](/ruby/docs/reference/google-cloud-bigquery-analytics_hub-v1/0.11.1/Google-Cloud-Bigquery-AnalyticsHub-V1-SubscribeListingRequest)\n- [0.10.0](/ruby/docs/reference/google-cloud-bigquery-analytics_hub-v1/0.10.0/Google-Cloud-Bigquery-AnalyticsHub-V1-SubscribeListingRequest)\n- [0.9.0](/ruby/docs/reference/google-cloud-bigquery-analytics_hub-v1/0.9.0/Google-Cloud-Bigquery-AnalyticsHub-V1-SubscribeListingRequest)\n- [0.8.1](/ruby/docs/reference/google-cloud-bigquery-analytics_hub-v1/0.8.1/Google-Cloud-Bigquery-AnalyticsHub-V1-SubscribeListingRequest)\n- [0.7.0](/ruby/docs/reference/google-cloud-bigquery-analytics_hub-v1/0.7.0/Google-Cloud-Bigquery-AnalyticsHub-V1-SubscribeListingRequest)\n- [0.6.0](/ruby/docs/reference/google-cloud-bigquery-analytics_hub-v1/0.6.0/Google-Cloud-Bigquery-AnalyticsHub-V1-SubscribeListingRequest)\n- [0.5.2](/ruby/docs/reference/google-cloud-bigquery-analytics_hub-v1/0.5.2/Google-Cloud-Bigquery-AnalyticsHub-V1-SubscribeListingRequest)\n- [0.4.0](/ruby/docs/reference/google-cloud-bigquery-analytics_hub-v1/0.4.0/Google-Cloud-Bigquery-AnalyticsHub-V1-SubscribeListingRequest)\n- [0.3.0](/ruby/docs/reference/google-cloud-bigquery-analytics_hub-v1/0.3.0/Google-Cloud-Bigquery-AnalyticsHub-V1-SubscribeListingRequest)\n- [0.2.1](/ruby/docs/reference/google-cloud-bigquery-analytics_hub-v1/0.2.1/Google-Cloud-Bigquery-AnalyticsHub-V1-SubscribeListingRequest)\n- [0.1.0](/ruby/docs/reference/google-cloud-bigquery-analytics_hub-v1/0.1.0/Google-Cloud-Bigquery-AnalyticsHub-V1-SubscribeListingRequest) \nReference documentation and code samples for the Analytics Hub V1 API class Google::Cloud::Bigquery::AnalyticsHub::V1::SubscribeListingRequest.\n\nMessage for subscribing to a listing. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #destination_dataset\n\n def destination_dataset() -\u003e ::Google::Cloud::Bigquery::AnalyticsHub::V1::DestinationDataset\n\n**Returns**\n\n- ([::Google::Cloud::Bigquery::AnalyticsHub::V1::DestinationDataset](./Google-Cloud-Bigquery-AnalyticsHub-V1-DestinationDataset)) --- Input only. BigQuery destination dataset to create for the subscriber.\n\n\n Note: The following fields are mutually exclusive: `destination_dataset`, `destination_pubsub_subscription`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #destination_dataset=\n\n def destination_dataset=(value) -\u003e ::Google::Cloud::Bigquery::AnalyticsHub::V1::DestinationDataset\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Bigquery::AnalyticsHub::V1::DestinationDataset](./Google-Cloud-Bigquery-AnalyticsHub-V1-DestinationDataset)) --- Input only. BigQuery destination dataset to create for the subscriber.\n\n\nNote: The following fields are mutually exclusive: `destination_dataset`, `destination_pubsub_subscription`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- ([::Google::Cloud::Bigquery::AnalyticsHub::V1::DestinationDataset](./Google-Cloud-Bigquery-AnalyticsHub-V1-DestinationDataset)) --- Input only. BigQuery destination dataset to create for the subscriber.\n\n\n Note: The following fields are mutually exclusive: `destination_dataset`, `destination_pubsub_subscription`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #destination_pubsub_subscription\n\n def destination_pubsub_subscription() -\u003e ::Google::Cloud::Bigquery::AnalyticsHub::V1::DestinationPubSubSubscription\n\n**Returns**\n\n- ([::Google::Cloud::Bigquery::AnalyticsHub::V1::DestinationPubSubSubscription](./Google-Cloud-Bigquery-AnalyticsHub-V1-DestinationPubSubSubscription)) --- Input only. Destination Pub/Sub subscription to create for the subscriber.\n\n\n Note: The following fields are mutually exclusive: `destination_pubsub_subscription`, `destination_dataset`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #destination_pubsub_subscription=\n\n def destination_pubsub_subscription=(value) -\u003e ::Google::Cloud::Bigquery::AnalyticsHub::V1::DestinationPubSubSubscription\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Bigquery::AnalyticsHub::V1::DestinationPubSubSubscription](./Google-Cloud-Bigquery-AnalyticsHub-V1-DestinationPubSubSubscription)) --- Input only. Destination Pub/Sub subscription to create for the subscriber.\n\n\nNote: The following fields are mutually exclusive: `destination_pubsub_subscription`, `destination_dataset`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- ([::Google::Cloud::Bigquery::AnalyticsHub::V1::DestinationPubSubSubscription](./Google-Cloud-Bigquery-AnalyticsHub-V1-DestinationPubSubSubscription)) --- Input only. Destination Pub/Sub subscription to create for the subscriber.\n\n\n Note: The following fields are mutually exclusive: `destination_pubsub_subscription`, `destination_dataset`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #name\n\n def name() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. Resource name of the listing that you want to subscribe to. e.g. `projects/myproject/locations/us/dataExchanges/123/listings/456`.\n\n### #name=\n\n def name=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. Resource name of the listing that you want to subscribe to. e.g. `projects/myproject/locations/us/dataExchanges/123/listings/456`. \n**Returns**\n\n- (::String) --- Required. Resource name of the listing that you want to subscribe to. e.g. `projects/myproject/locations/us/dataExchanges/123/listings/456`."]]