Class Subscription.LinkedResource.Builder

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

public static final class Subscription.LinkedResource.Builder extends com.google.protobuf.GeneratedMessage.Builder<Subscription.LinkedResource.Builder> implements Subscription.LinkedResourceOrBuilder
 Reference to a linked resource tracked by this Subscription.
 
Protobuf type google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource
  • 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<Subscription.LinkedResource.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.LinkedResource.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.LinkedResource.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

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

      public Subscription.LinkedResource.ReferenceCase getReferenceCase()
      Specified by:
      getReferenceCase in interface Subscription.LinkedResourceOrBuilder
    • clearReference

      public Subscription.LinkedResource.Builder clearReference()
    • hasLinkedDataset

      public boolean hasLinkedDataset()
       Output only. Name of the linked dataset, e.g.
       projects/subscriberproject/datasets/linked_dataset
       
      string linked_dataset = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasLinkedDataset in interface Subscription.LinkedResourceOrBuilder
      Returns:
      Whether the linkedDataset field is set.
    • getLinkedDataset

      public String getLinkedDataset()
       Output only. Name of the linked dataset, e.g.
       projects/subscriberproject/datasets/linked_dataset
       
      string linked_dataset = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLinkedDataset in interface Subscription.LinkedResourceOrBuilder
      Returns:
      The linkedDataset.
    • getLinkedDatasetBytes

      public com.google.protobuf.ByteString getLinkedDatasetBytes()
       Output only. Name of the linked dataset, e.g.
       projects/subscriberproject/datasets/linked_dataset
       
      string linked_dataset = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLinkedDatasetBytes in interface Subscription.LinkedResourceOrBuilder
      Returns:
      The bytes for linkedDataset.
    • setLinkedDataset

      public Subscription.LinkedResource.Builder setLinkedDataset(String value)
       Output only. Name of the linked dataset, e.g.
       projects/subscriberproject/datasets/linked_dataset
       
      string linked_dataset = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The linkedDataset to set.
      Returns:
      This builder for chaining.
    • clearLinkedDataset

      public Subscription.LinkedResource.Builder clearLinkedDataset()
       Output only. Name of the linked dataset, e.g.
       projects/subscriberproject/datasets/linked_dataset
       
      string linked_dataset = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setLinkedDatasetBytes

      public Subscription.LinkedResource.Builder setLinkedDatasetBytes(com.google.protobuf.ByteString value)
       Output only. Name of the linked dataset, e.g.
       projects/subscriberproject/datasets/linked_dataset
       
      string linked_dataset = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for linkedDataset to set.
      Returns:
      This builder for chaining.
    • hasLinkedPubsubSubscription

      public boolean hasLinkedPubsubSubscription()
       Output only. Name of the Pub/Sub subscription, e.g.
       projects/subscriberproject/subscriptions/subscriptions/sub_id
       
      string linked_pubsub_subscription = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasLinkedPubsubSubscription in interface Subscription.LinkedResourceOrBuilder
      Returns:
      Whether the linkedPubsubSubscription field is set.
    • getLinkedPubsubSubscription

      public String getLinkedPubsubSubscription()
       Output only. Name of the Pub/Sub subscription, e.g.
       projects/subscriberproject/subscriptions/subscriptions/sub_id
       
      string linked_pubsub_subscription = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLinkedPubsubSubscription in interface Subscription.LinkedResourceOrBuilder
      Returns:
      The linkedPubsubSubscription.
    • getLinkedPubsubSubscriptionBytes

      public com.google.protobuf.ByteString getLinkedPubsubSubscriptionBytes()
       Output only. Name of the Pub/Sub subscription, e.g.
       projects/subscriberproject/subscriptions/subscriptions/sub_id
       
      string linked_pubsub_subscription = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLinkedPubsubSubscriptionBytes in interface Subscription.LinkedResourceOrBuilder
      Returns:
      The bytes for linkedPubsubSubscription.
    • setLinkedPubsubSubscription

      public Subscription.LinkedResource.Builder setLinkedPubsubSubscription(String value)
       Output only. Name of the Pub/Sub subscription, e.g.
       projects/subscriberproject/subscriptions/subscriptions/sub_id
       
      string linked_pubsub_subscription = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The linkedPubsubSubscription to set.
      Returns:
      This builder for chaining.
    • clearLinkedPubsubSubscription

      public Subscription.LinkedResource.Builder clearLinkedPubsubSubscription()
       Output only. Name of the Pub/Sub subscription, e.g.
       projects/subscriberproject/subscriptions/subscriptions/sub_id
       
      string linked_pubsub_subscription = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setLinkedPubsubSubscriptionBytes

      public Subscription.LinkedResource.Builder setLinkedPubsubSubscriptionBytes(com.google.protobuf.ByteString value)
       Output only. Name of the Pub/Sub subscription, e.g.
       projects/subscriberproject/subscriptions/subscriptions/sub_id
       
      string linked_pubsub_subscription = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for linkedPubsubSubscription to set.
      Returns:
      This builder for chaining.
    • getListing

      public String getListing()
       Output only. Listing for which linked resource is created.
       
      string listing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getListing in interface Subscription.LinkedResourceOrBuilder
      Returns:
      The listing.
    • getListingBytes

      public com.google.protobuf.ByteString getListingBytes()
       Output only. Listing for which linked resource is created.
       
      string listing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getListingBytes in interface Subscription.LinkedResourceOrBuilder
      Returns:
      The bytes for listing.
    • setListing

      public Subscription.LinkedResource.Builder setListing(String value)
       Output only. Listing for which linked resource is created.
       
      string listing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The listing to set.
      Returns:
      This builder for chaining.
    • clearListing

      public Subscription.LinkedResource.Builder clearListing()
       Output only. Listing for which linked resource is created.
       
      string listing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setListingBytes

      public Subscription.LinkedResource.Builder setListingBytes(com.google.protobuf.ByteString value)
       Output only. Listing for which linked resource is created.
       
      string listing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for listing to set.
      Returns:
      This builder for chaining.