Class Listing.PubSubTopicSource.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Listing.PubSubTopicSource.Builder>
com.google.cloud.bigquery.analyticshub.v1.Listing.PubSubTopicSource.Builder
All Implemented Interfaces:
Listing.PubSubTopicSourceOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Listing.PubSubTopicSource

public static final class Listing.PubSubTopicSource.Builder extends com.google.protobuf.GeneratedMessage.Builder<Listing.PubSubTopicSource.Builder> implements Listing.PubSubTopicSourceOrBuilder
 Pub/Sub topic source.
 
Protobuf type google.cloud.bigquery.analyticshub.v1.Listing.PubSubTopicSource
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Listing.PubSubTopicSource.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Listing.PubSubTopicSource.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Listing.PubSubTopicSource.Builder>
    • getDefaultInstanceForType

      public Listing.PubSubTopicSource getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Listing.PubSubTopicSource build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Listing.PubSubTopicSource buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Listing.PubSubTopicSource.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Listing.PubSubTopicSource.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Listing.PubSubTopicSource.Builder>
    • mergeFrom

      public Listing.PubSubTopicSource.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Listing.PubSubTopicSource.Builder>
      Throws:
      IOException
    • 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) = { ... }
      Specified by:
      getTopic in interface Listing.PubSubTopicSourceOrBuilder
      Returns:
      The topic.
    • getTopicBytes

      public com.google.protobuf.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) = { ... }
      Specified by:
      getTopicBytes in interface Listing.PubSubTopicSourceOrBuilder
      Returns:
      The bytes for topic.
    • setTopic

      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) = { ... }
      Parameters:
      value - The topic to set.
      Returns:
      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:
      This builder for chaining.
    • setTopicBytes

      public Listing.PubSubTopicSource.Builder setTopicBytes(com.google.protobuf.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) = { ... }
      Parameters:
      value - The bytes for topic to set.
      Returns:
      This builder for chaining.
    • getDataAffinityRegionsList

      public com.google.protobuf.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];
      Specified by:
      getDataAffinityRegionsList in interface Listing.PubSubTopicSourceOrBuilder
      Returns:
      A list containing the dataAffinityRegions.
    • 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];
      Specified by:
      getDataAffinityRegionsCount in interface Listing.PubSubTopicSourceOrBuilder
      Returns:
      The count of dataAffinityRegions.
    • getDataAffinityRegions

      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];
      Specified by:
      getDataAffinityRegions in interface Listing.PubSubTopicSourceOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The dataAffinityRegions at the given index.
    • getDataAffinityRegionsBytes

      public com.google.protobuf.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];
      Specified by:
      getDataAffinityRegionsBytes in interface Listing.PubSubTopicSourceOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the dataAffinityRegions at the given index.
    • setDataAffinityRegions

      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:
      index - The index to set the value at.
      value - The dataAffinityRegions to set.
      Returns:
      This builder for chaining.
    • addDataAffinityRegions

      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];
      Parameters:
      value - The dataAffinityRegions to add.
      Returns:
      This builder for chaining.
    • addAllDataAffinityRegions

      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];
      Parameters:
      values - The dataAffinityRegions to add.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • addDataAffinityRegionsBytes

      public Listing.PubSubTopicSource.Builder addDataAffinityRegionsBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes of the dataAffinityRegions to add.
      Returns:
      This builder for chaining.