# Analytics Hub V1 API - Class Google::Cloud::Bigquery::AnalyticsHub::V1::Listing::PubSubTopicSource (v0.19.0)

0.19.0 (latest) 0.18.0 0.17.0 0.16.1 0.15.0 0.14.0 0.13.1 0.12.0 0.11.1 0.10.0 0.9.0 0.8.1 0.7.0 0.6.0 0.5.2 0.4.0 0.3.0 0.2.1 0.1.0 Reference documentation and code samples for the Analytics Hub V1 API class Google::Cloud::Bigquery::AnalyticsHub::V1::Listing::PubSubTopicSource.

Pub/Sub topic source.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #data_affinity_regions

    def data_affinity_regions() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- Optional. Region hint on where the data might be published. Data affinity regions are modifiable. See https://cloud.google.com/about/locations for full listing of possible Cloud regions.

### #data_affinity_regions=

    def data_affinity_regions=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- Optional. Region hint on where the data might be published. Data affinity regions are modifiable. See https://cloud.google.com/about/locations for full listing of possible Cloud regions.
**Returns**

- (::Array\<::String\>) --- Optional. Region hint on where the data might be published. Data affinity regions are modifiable. See https://cloud.google.com/about/locations for full listing of possible Cloud regions.

### #topic

    def topic() -> ::String

**Returns**

- (::String) --- Required. Resource name of the Pub/Sub topic source for this listing. e.g. projects/myproject/topics/topicId

### #topic=

    def topic=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. Resource name of the Pub/Sub topic source for this listing. e.g. projects/myproject/topics/topicId
**Returns**

- (::String) --- Required. Resource name of the Pub/Sub topic source for this listing. e.g. projects/myproject/topics/topicId