Class Subscription.Builder

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

public static final class Subscription.Builder extends com.google.protobuf.GeneratedMessage.Builder<Subscription.Builder> implements SubscriptionOrBuilder
 A subscription represents a subscribers' access to a particular set of
 published data. It contains references to associated listings,
 data exchanges, and linked datasets.
 
Protobuf type google.cloud.bigquery.analyticshub.v1.Subscription
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Subscription.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Subscription.Builder>
    • internalGetFieldAccessorTable

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

      public Subscription.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<Subscription.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<Subscription.Builder>
    • getDefaultInstanceForType

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

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

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

      public Subscription.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<Subscription.Builder>
    • mergeFrom

      public Subscription.Builder mergeFrom(Subscription other)
    • isInitialized

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

      public Subscription.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<Subscription.Builder>
      Throws:
      IOException
    • getResourceNameCase

      public Subscription.ResourceNameCase getResourceNameCase()
      Specified by:
      getResourceNameCase in interface SubscriptionOrBuilder
    • clearResourceName

      public Subscription.Builder clearResourceName()
    • hasListing

      public boolean hasListing()
       Output only. Resource name of the source Listing.
       e.g. projects/123/locations/us/dataExchanges/456/listings/789
       
      string listing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasListing in interface SubscriptionOrBuilder
      Returns:
      Whether the listing field is set.
    • getListing

      public String getListing()
       Output only. Resource name of the source Listing.
       e.g. projects/123/locations/us/dataExchanges/456/listings/789
       
      string listing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getListing in interface SubscriptionOrBuilder
      Returns:
      The listing.
    • getListingBytes

      public com.google.protobuf.ByteString getListingBytes()
       Output only. Resource name of the source Listing.
       e.g. projects/123/locations/us/dataExchanges/456/listings/789
       
      string listing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getListingBytes in interface SubscriptionOrBuilder
      Returns:
      The bytes for listing.
    • setListing

      public Subscription.Builder setListing(String value)
       Output only. Resource name of the source Listing.
       e.g. projects/123/locations/us/dataExchanges/456/listings/789
       
      string listing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The listing to set.
      Returns:
      This builder for chaining.
    • clearListing

      public Subscription.Builder clearListing()
       Output only. Resource name of the source Listing.
       e.g. projects/123/locations/us/dataExchanges/456/listings/789
       
      string listing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setListingBytes

      public Subscription.Builder setListingBytes(com.google.protobuf.ByteString value)
       Output only. Resource name of the source Listing.
       e.g. projects/123/locations/us/dataExchanges/456/listings/789
       
      string listing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for listing to set.
      Returns:
      This builder for chaining.
    • hasDataExchange

      public boolean hasDataExchange()
       Output only. Resource name of the source Data Exchange.
       e.g. projects/123/locations/us/dataExchanges/456
       
      string data_exchange = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasDataExchange in interface SubscriptionOrBuilder
      Returns:
      Whether the dataExchange field is set.
    • getDataExchange

      public String getDataExchange()
       Output only. Resource name of the source Data Exchange.
       e.g. projects/123/locations/us/dataExchanges/456
       
      string data_exchange = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDataExchange in interface SubscriptionOrBuilder
      Returns:
      The dataExchange.
    • getDataExchangeBytes

      public com.google.protobuf.ByteString getDataExchangeBytes()
       Output only. Resource name of the source Data Exchange.
       e.g. projects/123/locations/us/dataExchanges/456
       
      string data_exchange = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDataExchangeBytes in interface SubscriptionOrBuilder
      Returns:
      The bytes for dataExchange.
    • setDataExchange

      public Subscription.Builder setDataExchange(String value)
       Output only. Resource name of the source Data Exchange.
       e.g. projects/123/locations/us/dataExchanges/456
       
      string data_exchange = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The dataExchange to set.
      Returns:
      This builder for chaining.
    • clearDataExchange

      public Subscription.Builder clearDataExchange()
       Output only. Resource name of the source Data Exchange.
       e.g. projects/123/locations/us/dataExchanges/456
       
      string data_exchange = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setDataExchangeBytes

      public Subscription.Builder setDataExchangeBytes(com.google.protobuf.ByteString value)
       Output only. Resource name of the source Data Exchange.
       e.g. projects/123/locations/us/dataExchanges/456
       
      string data_exchange = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for dataExchange to set.
      Returns:
      This builder for chaining.
    • getName

      public String getName()
       Output only. The resource name of the subscription.
       e.g. `projects/myproject/locations/us/subscriptions/123`.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getName in interface SubscriptionOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Output only. The resource name of the subscription.
       e.g. `projects/myproject/locations/us/subscriptions/123`.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getNameBytes in interface SubscriptionOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Subscription.Builder setName(String value)
       Output only. The resource name of the subscription.
       e.g. `projects/myproject/locations/us/subscriptions/123`.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Subscription.Builder clearName()
       Output only. The resource name of the subscription.
       e.g. `projects/myproject/locations/us/subscriptions/123`.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Subscription.Builder setNameBytes(com.google.protobuf.ByteString value)
       Output only. The resource name of the subscription.
       e.g. `projects/myproject/locations/us/subscriptions/123`.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasCreationTime

      public boolean hasCreationTime()
       Output only. Timestamp when the subscription was created.
       
      .google.protobuf.Timestamp creation_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreationTime in interface SubscriptionOrBuilder
      Returns:
      Whether the creationTime field is set.
    • getCreationTime

      public com.google.protobuf.Timestamp getCreationTime()
       Output only. Timestamp when the subscription was created.
       
      .google.protobuf.Timestamp creation_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreationTime in interface SubscriptionOrBuilder
      Returns:
      The creationTime.
    • setCreationTime

      public Subscription.Builder setCreationTime(com.google.protobuf.Timestamp value)
       Output only. Timestamp when the subscription was created.
       
      .google.protobuf.Timestamp creation_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreationTime

      public Subscription.Builder setCreationTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Timestamp when the subscription was created.
       
      .google.protobuf.Timestamp creation_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreationTime

      public Subscription.Builder mergeCreationTime(com.google.protobuf.Timestamp value)
       Output only. Timestamp when the subscription was created.
       
      .google.protobuf.Timestamp creation_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreationTime

      public Subscription.Builder clearCreationTime()
       Output only. Timestamp when the subscription was created.
       
      .google.protobuf.Timestamp creation_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreationTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreationTimeBuilder()
       Output only. Timestamp when the subscription was created.
       
      .google.protobuf.Timestamp creation_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreationTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreationTimeOrBuilder()
       Output only. Timestamp when the subscription was created.
       
      .google.protobuf.Timestamp creation_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreationTimeOrBuilder in interface SubscriptionOrBuilder
    • hasLastModifyTime

      public boolean hasLastModifyTime()
       Output only. Timestamp when the subscription was last modified.
       
      .google.protobuf.Timestamp last_modify_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasLastModifyTime in interface SubscriptionOrBuilder
      Returns:
      Whether the lastModifyTime field is set.
    • getLastModifyTime

      public com.google.protobuf.Timestamp getLastModifyTime()
       Output only. Timestamp when the subscription was last modified.
       
      .google.protobuf.Timestamp last_modify_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLastModifyTime in interface SubscriptionOrBuilder
      Returns:
      The lastModifyTime.
    • setLastModifyTime

      public Subscription.Builder setLastModifyTime(com.google.protobuf.Timestamp value)
       Output only. Timestamp when the subscription was last modified.
       
      .google.protobuf.Timestamp last_modify_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setLastModifyTime

      public Subscription.Builder setLastModifyTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Timestamp when the subscription was last modified.
       
      .google.protobuf.Timestamp last_modify_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeLastModifyTime

      public Subscription.Builder mergeLastModifyTime(com.google.protobuf.Timestamp value)
       Output only. Timestamp when the subscription was last modified.
       
      .google.protobuf.Timestamp last_modify_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearLastModifyTime

      public Subscription.Builder clearLastModifyTime()
       Output only. Timestamp when the subscription was last modified.
       
      .google.protobuf.Timestamp last_modify_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getLastModifyTimeBuilder

      public com.google.protobuf.Timestamp.Builder getLastModifyTimeBuilder()
       Output only. Timestamp when the subscription was last modified.
       
      .google.protobuf.Timestamp last_modify_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getLastModifyTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getLastModifyTimeOrBuilder()
       Output only. Timestamp when the subscription was last modified.
       
      .google.protobuf.Timestamp last_modify_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLastModifyTimeOrBuilder in interface SubscriptionOrBuilder
    • getOrganizationId

      public String getOrganizationId()
       Output only. Organization of the project this subscription belongs to.
       
      string organization_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getOrganizationId in interface SubscriptionOrBuilder
      Returns:
      The organizationId.
    • getOrganizationIdBytes

      public com.google.protobuf.ByteString getOrganizationIdBytes()
       Output only. Organization of the project this subscription belongs to.
       
      string organization_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getOrganizationIdBytes in interface SubscriptionOrBuilder
      Returns:
      The bytes for organizationId.
    • setOrganizationId

      public Subscription.Builder setOrganizationId(String value)
       Output only. Organization of the project this subscription belongs to.
       
      string organization_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The organizationId to set.
      Returns:
      This builder for chaining.
    • clearOrganizationId

      public Subscription.Builder clearOrganizationId()
       Output only. Organization of the project this subscription belongs to.
       
      string organization_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setOrganizationIdBytes

      public Subscription.Builder setOrganizationIdBytes(com.google.protobuf.ByteString value)
       Output only. Organization of the project this subscription belongs to.
       
      string organization_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for organizationId to set.
      Returns:
      This builder for chaining.
    • getOrganizationDisplayName

      public String getOrganizationDisplayName()
       Output only. Display name of the project of this subscription.
       
      string organization_display_name = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getOrganizationDisplayName in interface SubscriptionOrBuilder
      Returns:
      The organizationDisplayName.
    • getOrganizationDisplayNameBytes

      public com.google.protobuf.ByteString getOrganizationDisplayNameBytes()
       Output only. Display name of the project of this subscription.
       
      string organization_display_name = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getOrganizationDisplayNameBytes in interface SubscriptionOrBuilder
      Returns:
      The bytes for organizationDisplayName.
    • setOrganizationDisplayName

      public Subscription.Builder setOrganizationDisplayName(String value)
       Output only. Display name of the project of this subscription.
       
      string organization_display_name = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The organizationDisplayName to set.
      Returns:
      This builder for chaining.
    • clearOrganizationDisplayName

      public Subscription.Builder clearOrganizationDisplayName()
       Output only. Display name of the project of this subscription.
       
      string organization_display_name = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setOrganizationDisplayNameBytes

      public Subscription.Builder setOrganizationDisplayNameBytes(com.google.protobuf.ByteString value)
       Output only. Display name of the project of this subscription.
       
      string organization_display_name = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for organizationDisplayName to set.
      Returns:
      This builder for chaining.
    • getStateValue

      public int getStateValue()
       Output only. Current state of the subscription.
       
      .google.cloud.bigquery.analyticshub.v1.Subscription.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateValue in interface SubscriptionOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public Subscription.Builder setStateValue(int value)
       Output only. Current state of the subscription.
       
      .google.cloud.bigquery.analyticshub.v1.Subscription.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • getState

      public Subscription.State getState()
       Output only. Current state of the subscription.
       
      .google.cloud.bigquery.analyticshub.v1.Subscription.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface SubscriptionOrBuilder
      Returns:
      The state.
    • setState

      public Subscription.Builder setState(Subscription.State value)
       Output only. Current state of the subscription.
       
      .google.cloud.bigquery.analyticshub.v1.Subscription.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public Subscription.Builder clearState()
       Output only. Current state of the subscription.
       
      .google.cloud.bigquery.analyticshub.v1.Subscription.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getLinkedDatasetMapCount

      public int getLinkedDatasetMapCount()
      Description copied from interface: SubscriptionOrBuilder
       Output only. Map of listing resource names to associated linked resource,
       e.g. projects/123/locations/us/dataExchanges/456/listings/789
       ->
       projects/123/datasets/my_dataset
      
       For listing-level subscriptions, this is a map of size 1.
       Only contains values if state == STATE_ACTIVE.
       
      map<string, .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource> linked_dataset_map = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLinkedDatasetMapCount in interface SubscriptionOrBuilder
    • containsLinkedDatasetMap

      public boolean containsLinkedDatasetMap(String key)
       Output only. Map of listing resource names to associated linked resource,
       e.g. projects/123/locations/us/dataExchanges/456/listings/789
       ->
       projects/123/datasets/my_dataset
      
       For listing-level subscriptions, this is a map of size 1.
       Only contains values if state == STATE_ACTIVE.
       
      map<string, .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource> linked_dataset_map = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      containsLinkedDatasetMap in interface SubscriptionOrBuilder
    • getLinkedDatasetMap

      @Deprecated public Map<String,Subscription.LinkedResource> getLinkedDatasetMap()
      Deprecated.
      Specified by:
      getLinkedDatasetMap in interface SubscriptionOrBuilder
    • getLinkedDatasetMapMap

      public Map<String,Subscription.LinkedResource> getLinkedDatasetMapMap()
       Output only. Map of listing resource names to associated linked resource,
       e.g. projects/123/locations/us/dataExchanges/456/listings/789
       ->
       projects/123/datasets/my_dataset
      
       For listing-level subscriptions, this is a map of size 1.
       Only contains values if state == STATE_ACTIVE.
       
      map<string, .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource> linked_dataset_map = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLinkedDatasetMapMap in interface SubscriptionOrBuilder
    • getLinkedDatasetMapOrDefault

      public Subscription.LinkedResource getLinkedDatasetMapOrDefault(String key, Subscription.LinkedResource defaultValue)
       Output only. Map of listing resource names to associated linked resource,
       e.g. projects/123/locations/us/dataExchanges/456/listings/789
       ->
       projects/123/datasets/my_dataset
      
       For listing-level subscriptions, this is a map of size 1.
       Only contains values if state == STATE_ACTIVE.
       
      map<string, .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource> linked_dataset_map = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLinkedDatasetMapOrDefault in interface SubscriptionOrBuilder
    • getLinkedDatasetMapOrThrow

      public Subscription.LinkedResource getLinkedDatasetMapOrThrow(String key)
       Output only. Map of listing resource names to associated linked resource,
       e.g. projects/123/locations/us/dataExchanges/456/listings/789
       ->
       projects/123/datasets/my_dataset
      
       For listing-level subscriptions, this is a map of size 1.
       Only contains values if state == STATE_ACTIVE.
       
      map<string, .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource> linked_dataset_map = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLinkedDatasetMapOrThrow in interface SubscriptionOrBuilder
    • clearLinkedDatasetMap

      public Subscription.Builder clearLinkedDatasetMap()
    • removeLinkedDatasetMap

      public Subscription.Builder removeLinkedDatasetMap(String key)
       Output only. Map of listing resource names to associated linked resource,
       e.g. projects/123/locations/us/dataExchanges/456/listings/789
       ->
       projects/123/datasets/my_dataset
      
       For listing-level subscriptions, this is a map of size 1.
       Only contains values if state == STATE_ACTIVE.
       
      map<string, .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource> linked_dataset_map = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getMutableLinkedDatasetMap

      @Deprecated public Map<String,Subscription.LinkedResource> getMutableLinkedDatasetMap()
      Deprecated.
      Use alternate mutation accessors instead.
    • putLinkedDatasetMap

      public Subscription.Builder putLinkedDatasetMap(String key, Subscription.LinkedResource value)
       Output only. Map of listing resource names to associated linked resource,
       e.g. projects/123/locations/us/dataExchanges/456/listings/789
       ->
       projects/123/datasets/my_dataset
      
       For listing-level subscriptions, this is a map of size 1.
       Only contains values if state == STATE_ACTIVE.
       
      map<string, .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource> linked_dataset_map = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • putAllLinkedDatasetMap

      public Subscription.Builder putAllLinkedDatasetMap(Map<String,Subscription.LinkedResource> values)
       Output only. Map of listing resource names to associated linked resource,
       e.g. projects/123/locations/us/dataExchanges/456/listings/789
       ->
       projects/123/datasets/my_dataset
      
       For listing-level subscriptions, this is a map of size 1.
       Only contains values if state == STATE_ACTIVE.
       
      map<string, .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource> linked_dataset_map = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • putLinkedDatasetMapBuilderIfAbsent

      public Subscription.LinkedResource.Builder putLinkedDatasetMapBuilderIfAbsent(String key)
       Output only. Map of listing resource names to associated linked resource,
       e.g. projects/123/locations/us/dataExchanges/456/listings/789
       ->
       projects/123/datasets/my_dataset
      
       For listing-level subscriptions, this is a map of size 1.
       Only contains values if state == STATE_ACTIVE.
       
      map<string, .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource> linked_dataset_map = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getSubscriberContact

      public String getSubscriberContact()
       Output only. Email of the subscriber.
       
      string subscriber_contact = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSubscriberContact in interface SubscriptionOrBuilder
      Returns:
      The subscriberContact.
    • getSubscriberContactBytes

      public com.google.protobuf.ByteString getSubscriberContactBytes()
       Output only. Email of the subscriber.
       
      string subscriber_contact = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSubscriberContactBytes in interface SubscriptionOrBuilder
      Returns:
      The bytes for subscriberContact.
    • setSubscriberContact

      public Subscription.Builder setSubscriberContact(String value)
       Output only. Email of the subscriber.
       
      string subscriber_contact = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The subscriberContact to set.
      Returns:
      This builder for chaining.
    • clearSubscriberContact

      public Subscription.Builder clearSubscriberContact()
       Output only. Email of the subscriber.
       
      string subscriber_contact = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setSubscriberContactBytes

      public Subscription.Builder setSubscriberContactBytes(com.google.protobuf.ByteString value)
       Output only. Email of the subscriber.
       
      string subscriber_contact = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for subscriberContact to set.
      Returns:
      This builder for chaining.
    • getLinkedResourcesList

      public List<Subscription.LinkedResource> getLinkedResourcesList()
       Output only. Linked resources created in the subscription. Only contains
       values if state = STATE_ACTIVE.
       
      repeated .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource linked_resources = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLinkedResourcesList in interface SubscriptionOrBuilder
    • getLinkedResourcesCount

      public int getLinkedResourcesCount()
       Output only. Linked resources created in the subscription. Only contains
       values if state = STATE_ACTIVE.
       
      repeated .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource linked_resources = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLinkedResourcesCount in interface SubscriptionOrBuilder
    • getLinkedResources

      public Subscription.LinkedResource getLinkedResources(int index)
       Output only. Linked resources created in the subscription. Only contains
       values if state = STATE_ACTIVE.
       
      repeated .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource linked_resources = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLinkedResources in interface SubscriptionOrBuilder
    • setLinkedResources

      public Subscription.Builder setLinkedResources(int index, Subscription.LinkedResource value)
       Output only. Linked resources created in the subscription. Only contains
       values if state = STATE_ACTIVE.
       
      repeated .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource linked_resources = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setLinkedResources

      public Subscription.Builder setLinkedResources(int index, Subscription.LinkedResource.Builder builderForValue)
       Output only. Linked resources created in the subscription. Only contains
       values if state = STATE_ACTIVE.
       
      repeated .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource linked_resources = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addLinkedResources

      public Subscription.Builder addLinkedResources(Subscription.LinkedResource value)
       Output only. Linked resources created in the subscription. Only contains
       values if state = STATE_ACTIVE.
       
      repeated .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource linked_resources = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addLinkedResources

      public Subscription.Builder addLinkedResources(int index, Subscription.LinkedResource value)
       Output only. Linked resources created in the subscription. Only contains
       values if state = STATE_ACTIVE.
       
      repeated .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource linked_resources = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addLinkedResources

      public Subscription.Builder addLinkedResources(Subscription.LinkedResource.Builder builderForValue)
       Output only. Linked resources created in the subscription. Only contains
       values if state = STATE_ACTIVE.
       
      repeated .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource linked_resources = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addLinkedResources

      public Subscription.Builder addLinkedResources(int index, Subscription.LinkedResource.Builder builderForValue)
       Output only. Linked resources created in the subscription. Only contains
       values if state = STATE_ACTIVE.
       
      repeated .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource linked_resources = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addAllLinkedResources

      public Subscription.Builder addAllLinkedResources(Iterable<? extends Subscription.LinkedResource> values)
       Output only. Linked resources created in the subscription. Only contains
       values if state = STATE_ACTIVE.
       
      repeated .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource linked_resources = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearLinkedResources

      public Subscription.Builder clearLinkedResources()
       Output only. Linked resources created in the subscription. Only contains
       values if state = STATE_ACTIVE.
       
      repeated .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource linked_resources = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • removeLinkedResources

      public Subscription.Builder removeLinkedResources(int index)
       Output only. Linked resources created in the subscription. Only contains
       values if state = STATE_ACTIVE.
       
      repeated .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource linked_resources = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getLinkedResourcesBuilder

      public Subscription.LinkedResource.Builder getLinkedResourcesBuilder(int index)
       Output only. Linked resources created in the subscription. Only contains
       values if state = STATE_ACTIVE.
       
      repeated .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource linked_resources = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getLinkedResourcesOrBuilder

      public Subscription.LinkedResourceOrBuilder getLinkedResourcesOrBuilder(int index)
       Output only. Linked resources created in the subscription. Only contains
       values if state = STATE_ACTIVE.
       
      repeated .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource linked_resources = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLinkedResourcesOrBuilder in interface SubscriptionOrBuilder
    • getLinkedResourcesOrBuilderList

      public List<? extends Subscription.LinkedResourceOrBuilder> getLinkedResourcesOrBuilderList()
       Output only. Linked resources created in the subscription. Only contains
       values if state = STATE_ACTIVE.
       
      repeated .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource linked_resources = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLinkedResourcesOrBuilderList in interface SubscriptionOrBuilder
    • addLinkedResourcesBuilder

      public Subscription.LinkedResource.Builder addLinkedResourcesBuilder()
       Output only. Linked resources created in the subscription. Only contains
       values if state = STATE_ACTIVE.
       
      repeated .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource linked_resources = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addLinkedResourcesBuilder

      public Subscription.LinkedResource.Builder addLinkedResourcesBuilder(int index)
       Output only. Linked resources created in the subscription. Only contains
       values if state = STATE_ACTIVE.
       
      repeated .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource linked_resources = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getLinkedResourcesBuilderList

      public List<Subscription.LinkedResource.Builder> getLinkedResourcesBuilderList()
       Output only. Linked resources created in the subscription. Only contains
       values if state = STATE_ACTIVE.
       
      repeated .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource linked_resources = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getResourceTypeValue

      public int getResourceTypeValue()
       Output only. Listing shared asset type.
       
      .google.cloud.bigquery.analyticshub.v1.SharedResourceType resource_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getResourceTypeValue in interface SubscriptionOrBuilder
      Returns:
      The enum numeric value on the wire for resourceType.
    • setResourceTypeValue

      public Subscription.Builder setResourceTypeValue(int value)
       Output only. Listing shared asset type.
       
      .google.cloud.bigquery.analyticshub.v1.SharedResourceType resource_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for resourceType to set.
      Returns:
      This builder for chaining.
    • getResourceType

      public SharedResourceType getResourceType()
       Output only. Listing shared asset type.
       
      .google.cloud.bigquery.analyticshub.v1.SharedResourceType resource_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getResourceType in interface SubscriptionOrBuilder
      Returns:
      The resourceType.
    • setResourceType

      public Subscription.Builder setResourceType(SharedResourceType value)
       Output only. Listing shared asset type.
       
      .google.cloud.bigquery.analyticshub.v1.SharedResourceType resource_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The resourceType to set.
      Returns:
      This builder for chaining.
    • clearResourceType

      public Subscription.Builder clearResourceType()
       Output only. Listing shared asset type.
       
      .google.cloud.bigquery.analyticshub.v1.SharedResourceType resource_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • hasCommercialInfo

      public boolean hasCommercialInfo()
       Output only. This is set if this is a commercial subscription i.e. if this
       subscription was created from subscribing to a commercial listing.
       
      .google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo commercial_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCommercialInfo in interface SubscriptionOrBuilder
      Returns:
      Whether the commercialInfo field is set.
    • getCommercialInfo

      public Subscription.CommercialInfo getCommercialInfo()
       Output only. This is set if this is a commercial subscription i.e. if this
       subscription was created from subscribing to a commercial listing.
       
      .google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo commercial_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCommercialInfo in interface SubscriptionOrBuilder
      Returns:
      The commercialInfo.
    • setCommercialInfo

      public Subscription.Builder setCommercialInfo(Subscription.CommercialInfo value)
       Output only. This is set if this is a commercial subscription i.e. if this
       subscription was created from subscribing to a commercial listing.
       
      .google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo commercial_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCommercialInfo

      public Subscription.Builder setCommercialInfo(Subscription.CommercialInfo.Builder builderForValue)
       Output only. This is set if this is a commercial subscription i.e. if this
       subscription was created from subscribing to a commercial listing.
       
      .google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo commercial_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCommercialInfo

      public Subscription.Builder mergeCommercialInfo(Subscription.CommercialInfo value)
       Output only. This is set if this is a commercial subscription i.e. if this
       subscription was created from subscribing to a commercial listing.
       
      .google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo commercial_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCommercialInfo

      public Subscription.Builder clearCommercialInfo()
       Output only. This is set if this is a commercial subscription i.e. if this
       subscription was created from subscribing to a commercial listing.
       
      .google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo commercial_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCommercialInfoBuilder

      public Subscription.CommercialInfo.Builder getCommercialInfoBuilder()
       Output only. This is set if this is a commercial subscription i.e. if this
       subscription was created from subscribing to a commercial listing.
       
      .google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo commercial_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCommercialInfoOrBuilder

      public Subscription.CommercialInfoOrBuilder getCommercialInfoOrBuilder()
       Output only. This is set if this is a commercial subscription i.e. if this
       subscription was created from subscribing to a commercial listing.
       
      .google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo commercial_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCommercialInfoOrBuilder in interface SubscriptionOrBuilder
    • hasLogLinkedDatasetQueryUserEmail

      public boolean hasLogLinkedDatasetQueryUserEmail()
       Output only. By default, false.
       If true, the Subscriber agreed to the email sharing mandate
       that is enabled for DataExchange/Listing.
       
      optional bool log_linked_dataset_query_user_email = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasLogLinkedDatasetQueryUserEmail in interface SubscriptionOrBuilder
      Returns:
      Whether the logLinkedDatasetQueryUserEmail field is set.
    • getLogLinkedDatasetQueryUserEmail

      public boolean getLogLinkedDatasetQueryUserEmail()
       Output only. By default, false.
       If true, the Subscriber agreed to the email sharing mandate
       that is enabled for DataExchange/Listing.
       
      optional bool log_linked_dataset_query_user_email = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLogLinkedDatasetQueryUserEmail in interface SubscriptionOrBuilder
      Returns:
      The logLinkedDatasetQueryUserEmail.
    • setLogLinkedDatasetQueryUserEmail

      public Subscription.Builder setLogLinkedDatasetQueryUserEmail(boolean value)
       Output only. By default, false.
       If true, the Subscriber agreed to the email sharing mandate
       that is enabled for DataExchange/Listing.
       
      optional bool log_linked_dataset_query_user_email = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The logLinkedDatasetQueryUserEmail to set.
      Returns:
      This builder for chaining.
    • clearLogLinkedDatasetQueryUserEmail

      public Subscription.Builder clearLogLinkedDatasetQueryUserEmail()
       Output only. By default, false.
       If true, the Subscriber agreed to the email sharing mandate
       that is enabled for DataExchange/Listing.
       
      optional bool log_linked_dataset_query_user_email = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • hasDestinationDataset

      public boolean hasDestinationDataset()
       Optional. BigQuery destination dataset to create for the subscriber.
       
      .google.cloud.bigquery.analyticshub.v1.DestinationDataset destination_dataset = 15 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasDestinationDataset in interface SubscriptionOrBuilder
      Returns:
      Whether the destinationDataset field is set.
    • getDestinationDataset

      public DestinationDataset getDestinationDataset()
       Optional. BigQuery destination dataset to create for the subscriber.
       
      .google.cloud.bigquery.analyticshub.v1.DestinationDataset destination_dataset = 15 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDestinationDataset in interface SubscriptionOrBuilder
      Returns:
      The destinationDataset.
    • setDestinationDataset

      public Subscription.Builder setDestinationDataset(DestinationDataset value)
       Optional. BigQuery destination dataset to create for the subscriber.
       
      .google.cloud.bigquery.analyticshub.v1.DestinationDataset destination_dataset = 15 [(.google.api.field_behavior) = OPTIONAL];
    • setDestinationDataset

      public Subscription.Builder setDestinationDataset(DestinationDataset.Builder builderForValue)
       Optional. BigQuery destination dataset to create for the subscriber.
       
      .google.cloud.bigquery.analyticshub.v1.DestinationDataset destination_dataset = 15 [(.google.api.field_behavior) = OPTIONAL];
    • mergeDestinationDataset

      public Subscription.Builder mergeDestinationDataset(DestinationDataset value)
       Optional. BigQuery destination dataset to create for the subscriber.
       
      .google.cloud.bigquery.analyticshub.v1.DestinationDataset destination_dataset = 15 [(.google.api.field_behavior) = OPTIONAL];
    • clearDestinationDataset

      public Subscription.Builder clearDestinationDataset()
       Optional. BigQuery destination dataset to create for the subscriber.
       
      .google.cloud.bigquery.analyticshub.v1.DestinationDataset destination_dataset = 15 [(.google.api.field_behavior) = OPTIONAL];
    • getDestinationDatasetBuilder

      public DestinationDataset.Builder getDestinationDatasetBuilder()
       Optional. BigQuery destination dataset to create for the subscriber.
       
      .google.cloud.bigquery.analyticshub.v1.DestinationDataset destination_dataset = 15 [(.google.api.field_behavior) = OPTIONAL];
    • getDestinationDatasetOrBuilder

      public DestinationDatasetOrBuilder getDestinationDatasetOrBuilder()
       Optional. BigQuery destination dataset to create for the subscriber.
       
      .google.cloud.bigquery.analyticshub.v1.DestinationDataset destination_dataset = 15 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDestinationDatasetOrBuilder in interface SubscriptionOrBuilder