Class Listing.PubSubTopicSource.Builder (0.80.0)

public static final class Listing.PubSubTopicSource.Builder extends GeneratedMessage.Builder<Listing.PubSubTopicSource.Builder> implements Listing.PubSubTopicSourceOrBuilder

Pub/Sub topic source.

Protobuf type google.cloud.bigquery.analyticshub.v1.Listing.PubSubTopicSource

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllDataAffinityRegions(Iterable<String> values)

public Listing.PubSubTopicSource.Builder addAllDataAffinityRegions(Iterable<String> values)

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.

repeated string data_affinity_regions = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The dataAffinityRegions to add.

Returns
Type Description
Listing.PubSubTopicSource.Builder

This builder for chaining.

addDataAffinityRegions(String value)

public Listing.PubSubTopicSource.Builder addDataAffinityRegions(String value)

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.

repeated string data_affinity_regions = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The dataAffinityRegions to add.

Returns
Type Description
Listing.PubSubTopicSource.Builder

This builder for chaining.

addDataAffinityRegionsBytes(ByteString value)

public Listing.PubSubTopicSource.Builder addDataAffinityRegionsBytes(ByteString value)

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.

repeated string data_affinity_regions = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the dataAffinityRegions to add.

Returns
Type Description
Listing.PubSubTopicSource.Builder

This builder for chaining.

build()

public Listing.PubSubTopicSource build()
Returns
Type Description
Listing.PubSubTopicSource

buildPartial()

public Listing.PubSubTopicSource buildPartial()
Returns
Type Description
Listing.PubSubTopicSource

clear()

public Listing.PubSubTopicSource.Builder clear()
Returns
Type Description
Listing.PubSubTopicSource.Builder
Overrides

clearDataAffinityRegions()

public Listing.PubSubTopicSource.Builder clearDataAffinityRegions()

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.

repeated string data_affinity_regions = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Listing.PubSubTopicSource.Builder

This builder for chaining.

clearTopic()

public Listing.PubSubTopicSource.Builder clearTopic()

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

string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
Listing.PubSubTopicSource.Builder

This builder for chaining.

getDataAffinityRegions(int index)

public String getDataAffinityRegions(int index)

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.

repeated string data_affinity_regions = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The dataAffinityRegions at the given index.

getDataAffinityRegionsBytes(int index)

public ByteString getDataAffinityRegionsBytes(int index)

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.

repeated string data_affinity_regions = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the dataAffinityRegions at the given index.

getDataAffinityRegionsCount()

public int getDataAffinityRegionsCount()

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.

repeated string data_affinity_regions = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of dataAffinityRegions.

getDataAffinityRegionsList()

public ProtocolStringList getDataAffinityRegionsList()

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.

repeated string data_affinity_regions = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the dataAffinityRegions.

getDefaultInstanceForType()

public Listing.PubSubTopicSource getDefaultInstanceForType()
Returns
Type Description
Listing.PubSubTopicSource

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getTopic()

public String getTopic()

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

string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The topic.

getTopicBytes()

public ByteString getTopicBytes()

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

string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for topic.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Listing.PubSubTopicSource other)

public Listing.PubSubTopicSource.Builder mergeFrom(Listing.PubSubTopicSource other)
Parameter
Name Description
other Listing.PubSubTopicSource
Returns
Type Description
Listing.PubSubTopicSource.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Listing.PubSubTopicSource.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Listing.PubSubTopicSource.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Listing.PubSubTopicSource.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Listing.PubSubTopicSource.Builder
Overrides

setDataAffinityRegions(int index, String value)

public Listing.PubSubTopicSource.Builder setDataAffinityRegions(int index, String value)

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.

repeated string data_affinity_regions = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The dataAffinityRegions to set.

Returns
Type Description
Listing.PubSubTopicSource.Builder

This builder for chaining.

setTopic(String value)

public Listing.PubSubTopicSource.Builder setTopic(String value)

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

string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The topic to set.

Returns
Type Description
Listing.PubSubTopicSource.Builder

This builder for chaining.

setTopicBytes(ByteString value)

public Listing.PubSubTopicSource.Builder setTopicBytes(ByteString value)

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

string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for topic to set.

Returns
Type Description
Listing.PubSubTopicSource.Builder

This builder for chaining.