Class Listing.BigQueryDatasetSource

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource
All Implemented Interfaces:
Listing.BigQueryDatasetSourceOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
Listing

public static final class Listing.BigQueryDatasetSource extends com.google.protobuf.GeneratedMessage 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
See Also:
  • Field Details

    • DATASET_FIELD_NUMBER

      public static final int DATASET_FIELD_NUMBER
      See Also:
    • SELECTED_RESOURCES_FIELD_NUMBER

      public static final int SELECTED_RESOURCES_FIELD_NUMBER
      See Also:
    • RESTRICTED_EXPORT_POLICY_FIELD_NUMBER

      public static final int RESTRICTED_EXPORT_POLICY_FIELD_NUMBER
      See Also:
    • REPLICA_LOCATIONS_FIELD_NUMBER

      public static final int REPLICA_LOCATIONS_FIELD_NUMBER
      See Also:
    • EFFECTIVE_REPLICAS_FIELD_NUMBER

      public static final int EFFECTIVE_REPLICAS_FIELD_NUMBER
      See Also:
  • 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
    • getDataset

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

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

      public List<Listing.BigQueryDatasetSource.SelectedResource> getSelectedResourcesList()
       Optional. Resource in this dataset that is selectively shared.
       This field is required for data clean room exchanges.
       
      repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSelectedResourcesList in interface Listing.BigQueryDatasetSourceOrBuilder
    • getSelectedResourcesOrBuilderList

      public List<? extends Listing.BigQueryDatasetSource.SelectedResourceOrBuilder> getSelectedResourcesOrBuilderList()
       Optional. Resource in this dataset that is selectively shared.
       This field is required for data clean room exchanges.
       
      repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSelectedResourcesOrBuilderList in interface Listing.BigQueryDatasetSourceOrBuilder
    • getSelectedResourcesCount

      public int getSelectedResourcesCount()
       Optional. Resource in this dataset that is selectively shared.
       This field is required for data clean room exchanges.
       
      repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSelectedResourcesCount in interface Listing.BigQueryDatasetSourceOrBuilder
    • getSelectedResources

      public Listing.BigQueryDatasetSource.SelectedResource getSelectedResources(int index)
       Optional. Resource in this dataset that is selectively shared.
       This field is required for data clean room exchanges.
       
      repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSelectedResources in interface Listing.BigQueryDatasetSourceOrBuilder
    • getSelectedResourcesOrBuilder

      public Listing.BigQueryDatasetSource.SelectedResourceOrBuilder getSelectedResourcesOrBuilder(int index)
       Optional. Resource in this dataset that is selectively shared.
       This field is required for data clean room exchanges.
       
      repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSelectedResourcesOrBuilder in interface Listing.BigQueryDatasetSourceOrBuilder
    • hasRestrictedExportPolicy

      public boolean hasRestrictedExportPolicy()
       Optional. If set, restricted export policy will be propagated and
       enforced on the linked dataset.
       
      .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.RestrictedExportPolicy restricted_export_policy = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasRestrictedExportPolicy in interface Listing.BigQueryDatasetSourceOrBuilder
      Returns:
      Whether the restrictedExportPolicy field is set.
    • getRestrictedExportPolicy

      public Listing.BigQueryDatasetSource.RestrictedExportPolicy getRestrictedExportPolicy()
       Optional. If set, restricted export policy will be propagated and
       enforced on the linked dataset.
       
      .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.RestrictedExportPolicy restricted_export_policy = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRestrictedExportPolicy in interface Listing.BigQueryDatasetSourceOrBuilder
      Returns:
      The restrictedExportPolicy.
    • getRestrictedExportPolicyOrBuilder

      public Listing.BigQueryDatasetSource.RestrictedExportPolicyOrBuilder getRestrictedExportPolicyOrBuilder()
       Optional. If set, restricted export policy will be propagated and
       enforced on the linked dataset.
       
      .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.RestrictedExportPolicy restricted_export_policy = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRestrictedExportPolicyOrBuilder in interface Listing.BigQueryDatasetSourceOrBuilder
    • getReplicaLocationsList

      public com.google.protobuf.ProtocolStringList getReplicaLocationsList()
       Optional. A list of regions where the publisher has created shared
       dataset replicas.
       
      repeated string replica_locations = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getReplicaLocationsList in interface Listing.BigQueryDatasetSourceOrBuilder
      Returns:
      A list containing the replicaLocations.
    • getReplicaLocationsCount

      public int getReplicaLocationsCount()
       Optional. A list of regions where the publisher has created shared
       dataset replicas.
       
      repeated string replica_locations = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getReplicaLocationsCount in interface Listing.BigQueryDatasetSourceOrBuilder
      Returns:
      The count of replicaLocations.
    • getReplicaLocations

      public String getReplicaLocations(int index)
       Optional. A list of regions where the publisher has created shared
       dataset replicas.
       
      repeated string replica_locations = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getReplicaLocations in interface Listing.BigQueryDatasetSourceOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The replicaLocations at the given index.
    • getReplicaLocationsBytes

      public com.google.protobuf.ByteString getReplicaLocationsBytes(int index)
       Optional. A list of regions where the publisher has created shared
       dataset replicas.
       
      repeated string replica_locations = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getReplicaLocationsBytes in interface Listing.BigQueryDatasetSourceOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the replicaLocations at the given index.
    • getEffectiveReplicasList

      public List<Listing.BigQueryDatasetSource.Replica> getEffectiveReplicasList()
       Output only. Server-owned effective state of replicas.
       Contains both primary and secondary replicas.
       Each replica includes a system-computed (output-only) state and primary
       designation.
       
      repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica effective_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEffectiveReplicasList in interface Listing.BigQueryDatasetSourceOrBuilder
    • getEffectiveReplicasOrBuilderList

      public List<? extends Listing.BigQueryDatasetSource.ReplicaOrBuilder> getEffectiveReplicasOrBuilderList()
       Output only. Server-owned effective state of replicas.
       Contains both primary and secondary replicas.
       Each replica includes a system-computed (output-only) state and primary
       designation.
       
      repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica effective_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEffectiveReplicasOrBuilderList in interface Listing.BigQueryDatasetSourceOrBuilder
    • getEffectiveReplicasCount

      public int getEffectiveReplicasCount()
       Output only. Server-owned effective state of replicas.
       Contains both primary and secondary replicas.
       Each replica includes a system-computed (output-only) state and primary
       designation.
       
      repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica effective_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEffectiveReplicasCount in interface Listing.BigQueryDatasetSourceOrBuilder
    • getEffectiveReplicas

      public Listing.BigQueryDatasetSource.Replica getEffectiveReplicas(int index)
       Output only. Server-owned effective state of replicas.
       Contains both primary and secondary replicas.
       Each replica includes a system-computed (output-only) state and primary
       designation.
       
      repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica effective_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEffectiveReplicas in interface Listing.BigQueryDatasetSourceOrBuilder
    • getEffectiveReplicasOrBuilder

      public Listing.BigQueryDatasetSource.ReplicaOrBuilder getEffectiveReplicasOrBuilder(int index)
       Output only. Server-owned effective state of replicas.
       Contains both primary and secondary replicas.
       Each replica includes a system-computed (output-only) state and primary
       designation.
       
      repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica effective_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEffectiveReplicasOrBuilder in interface Listing.BigQueryDatasetSourceOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Listing.BigQueryDatasetSource parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Listing.BigQueryDatasetSource parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Listing.BigQueryDatasetSource parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Listing.BigQueryDatasetSource parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Listing.BigQueryDatasetSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Listing.BigQueryDatasetSource parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Listing.BigQueryDatasetSource parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Listing.BigQueryDatasetSource parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Listing.BigQueryDatasetSource parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Listing.BigQueryDatasetSource parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Listing.BigQueryDatasetSource parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Listing.BigQueryDatasetSource parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static Listing.BigQueryDatasetSource.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Listing.BigQueryDatasetSource.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static Listing.BigQueryDatasetSource getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Listing.BigQueryDatasetSource> parser()
    • getParserForType

      public com.google.protobuf.Parser<Listing.BigQueryDatasetSource> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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