1.12.0 (latest) 1.11.0 1.10.0 1.9.0 1.8.0 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

    public sealed class Listing.Types.PubSubTopicSource : IMessage<Listing.Types.PubSubTopicSource>, IEquatable<Listing.Types.PubSubTopicSource>, IDeepCloneable<Listing.Types.PubSubTopicSource>, IBufferMessage, IMessage

Reference documentation and code samples for the Analytics Hub v1 API class Listing.Types.PubSubTopicSource.

Pub/Sub topic source.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> Listing.Types.PubSubTopicSource

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[Listing](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.AnalyticsHub.V1/latest/Google.Cloud.BigQuery.AnalyticsHub.V1.Listing.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.AnalyticsHub.V1/latest/Google.Cloud.BigQuery.AnalyticsHub.V1.Listing.Types.md.txt)[PubSubTopicSource](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.AnalyticsHub.V1/latest/Google.Cloud.BigQuery.AnalyticsHub.V1.Listing.Types.PubSubTopicSource.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Listing](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.AnalyticsHub.V1/latest/Google.Cloud.BigQuery.AnalyticsHub.V1.Listing.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.AnalyticsHub.V1/latest/Google.Cloud.BigQuery.AnalyticsHub.V1.Listing.Types.md.txt)[PubSubTopicSource](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.AnalyticsHub.V1/latest/Google.Cloud.BigQuery.AnalyticsHub.V1.Listing.Types.PubSubTopicSource.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[Listing](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.AnalyticsHub.V1/latest/Google.Cloud.BigQuery.AnalyticsHub.V1.Listing.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.AnalyticsHub.V1/latest/Google.Cloud.BigQuery.AnalyticsHub.V1.Listing.Types.md.txt)[PubSubTopicSource](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.AnalyticsHub.V1/latest/Google.Cloud.BigQuery.AnalyticsHub.V1.Listing.Types.PubSubTopicSource.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.BigQuery.AnalyticsHub.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.AnalyticsHub.V1/latest/Google.Cloud.BigQuery.AnalyticsHub.V1.md.txt)

## Assembly

Google.Cloud.BigQuery.AnalyticsHub.V1.dll

## Constructors

### PubSubTopicSource()

    public PubSubTopicSource()

### PubSubTopicSource(PubSubTopicSource)

    public PubSubTopicSource(Listing.Types.PubSubTopicSource other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `ListingTypesPubSubTopicSource` |

## Properties

### DataAffinityRegions

    public RepeatedField<string> DataAffinityRegions { get; }

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldstring` |   |

### Topic

    public string Topic { get; set; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### TopicAsTopicName

    public TopicName TopicAsTopicName { get; set; }

[TopicName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.AnalyticsHub.V1/latest/Google.Cloud.BigQuery.AnalyticsHub.V1.TopicName.md.txt)-typed view over the [Topic](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.AnalyticsHub.V1/latest/Google.Cloud.BigQuery.AnalyticsHub.V1.Listing.Types.PubSubTopicSource.md.txt#Google_Cloud_BigQuery_AnalyticsHub_V1_Listing_Types_PubSubTopicSource_Topic) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `TopicName` |   |