Class Listing.BigQueryDatasetSource.Builder

  • All Implemented Interfaces:
    Listing.BigQueryDatasetSourceOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    Listing.BigQueryDatasetSource

    public static final class Listing.BigQueryDatasetSource.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Listing.BigQueryDatasetSource.Builder>
    implements Listing.BigQueryDatasetSourceOrBuilder
     A reference to a shared dataset. It is an existing BigQuery dataset with a
     collection of objects such as tables and views that you want to share
     with subscribers.
     When subscriber's subscribe to a listing, Analytics Hub creates a linked
     dataset in
     the subscriber's project. A Linked dataset is an opaque, read-only BigQuery
     dataset that serves as a _symbolic link_ to a shared dataset.
     
    Protobuf type google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Listing.BigQueryDatasetSource.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.GeneratedMessageV3.Builder<Listing.BigQueryDatasetSource.Builder>
      • getDefaultInstanceForType

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

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

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

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

        public Listing.BigQueryDatasetSource.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.BigQueryDatasetSource.Builder>
        Throws:
        IOException
      • getDataset

        public String getDataset()
         Resource name of the dataset source for this listing.
         e.g. `projects/myproject/datasets/123`
         
        string dataset = 1 [(.google.api.resource_reference) = { ... }
        Specified by:
        getDataset in interface Listing.BigQueryDatasetSourceOrBuilder
        Returns:
        The dataset.
      • getDatasetBytes

        public com.google.protobuf.ByteString getDatasetBytes()
         Resource name of the dataset source for this listing.
         e.g. `projects/myproject/datasets/123`
         
        string dataset = 1 [(.google.api.resource_reference) = { ... }
        Specified by:
        getDatasetBytes in interface Listing.BigQueryDatasetSourceOrBuilder
        Returns:
        The bytes for dataset.
      • setDataset

        public Listing.BigQueryDatasetSource.Builder setDataset​(String value)
         Resource name of the dataset source for this listing.
         e.g. `projects/myproject/datasets/123`
         
        string dataset = 1 [(.google.api.resource_reference) = { ... }
        Parameters:
        value - The dataset to set.
        Returns:
        This builder for chaining.
      • clearDataset

        public Listing.BigQueryDatasetSource.Builder clearDataset()
         Resource name of the dataset source for this listing.
         e.g. `projects/myproject/datasets/123`
         
        string dataset = 1 [(.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setDatasetBytes

        public Listing.BigQueryDatasetSource.Builder setDatasetBytes​(com.google.protobuf.ByteString value)
         Resource name of the dataset source for this listing.
         e.g. `projects/myproject/datasets/123`
         
        string dataset = 1 [(.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for dataset to set.
        Returns:
        This builder for chaining.