Class Listing.BigQueryDatasetSource.Builder (0.38.0)

public static final class Listing.BigQueryDatasetSource.Builder extends 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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllSelectedResources(Iterable<? extends Listing.BigQueryDatasetSource.SelectedResource> values)

public Listing.BigQueryDatasetSource.Builder addAllSelectedResources(Iterable<? extends Listing.BigQueryDatasetSource.SelectedResource> values)

Optional. Resources in this dataset that are selectively shared. If this field is empty, then the entire dataset (all resources) are shared. This field is only valid for data clean room exchanges.

repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource>
Returns
Type Description
Listing.BigQueryDatasetSource.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Listing.BigQueryDatasetSource.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Listing.BigQueryDatasetSource.Builder
Overrides

addSelectedResources(Listing.BigQueryDatasetSource.SelectedResource value)

public Listing.BigQueryDatasetSource.Builder addSelectedResources(Listing.BigQueryDatasetSource.SelectedResource value)

Optional. Resources in this dataset that are selectively shared. If this field is empty, then the entire dataset (all resources) are shared. This field is only valid for data clean room exchanges.

repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Listing.BigQueryDatasetSource.SelectedResource
Returns
Type Description
Listing.BigQueryDatasetSource.Builder

addSelectedResources(Listing.BigQueryDatasetSource.SelectedResource.Builder builderForValue)

public Listing.BigQueryDatasetSource.Builder addSelectedResources(Listing.BigQueryDatasetSource.SelectedResource.Builder builderForValue)

Optional. Resources in this dataset that are selectively shared. If this field is empty, then the entire dataset (all resources) are shared. This field is only valid for data clean room exchanges.

repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Listing.BigQueryDatasetSource.SelectedResource.Builder
Returns
Type Description
Listing.BigQueryDatasetSource.Builder

addSelectedResources(int index, Listing.BigQueryDatasetSource.SelectedResource value)

public Listing.BigQueryDatasetSource.Builder addSelectedResources(int index, Listing.BigQueryDatasetSource.SelectedResource value)

Optional. Resources in this dataset that are selectively shared. If this field is empty, then the entire dataset (all resources) are shared. This field is only valid for data clean room exchanges.

repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value Listing.BigQueryDatasetSource.SelectedResource
Returns
Type Description
Listing.BigQueryDatasetSource.Builder

addSelectedResources(int index, Listing.BigQueryDatasetSource.SelectedResource.Builder builderForValue)

public Listing.BigQueryDatasetSource.Builder addSelectedResources(int index, Listing.BigQueryDatasetSource.SelectedResource.Builder builderForValue)

Optional. Resources in this dataset that are selectively shared. If this field is empty, then the entire dataset (all resources) are shared. This field is only valid for data clean room exchanges.

repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue Listing.BigQueryDatasetSource.SelectedResource.Builder
Returns
Type Description
Listing.BigQueryDatasetSource.Builder

addSelectedResourcesBuilder()

public Listing.BigQueryDatasetSource.SelectedResource.Builder addSelectedResourcesBuilder()

Optional. Resources in this dataset that are selectively shared. If this field is empty, then the entire dataset (all resources) are shared. This field is only valid for data clean room exchanges.

repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Listing.BigQueryDatasetSource.SelectedResource.Builder

addSelectedResourcesBuilder(int index)

public Listing.BigQueryDatasetSource.SelectedResource.Builder addSelectedResourcesBuilder(int index)

Optional. Resources in this dataset that are selectively shared. If this field is empty, then the entire dataset (all resources) are shared. This field is only valid for data clean room exchanges.

repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Listing.BigQueryDatasetSource.SelectedResource.Builder

build()

public Listing.BigQueryDatasetSource build()
Returns
Type Description
Listing.BigQueryDatasetSource

buildPartial()

public Listing.BigQueryDatasetSource buildPartial()
Returns
Type Description
Listing.BigQueryDatasetSource

clear()

public Listing.BigQueryDatasetSource.Builder clear()
Returns
Type Description
Listing.BigQueryDatasetSource.Builder
Overrides

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
Type Description
Listing.BigQueryDatasetSource.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Listing.BigQueryDatasetSource.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Listing.BigQueryDatasetSource.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Listing.BigQueryDatasetSource.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Listing.BigQueryDatasetSource.Builder
Overrides

clearSelectedResources()

public Listing.BigQueryDatasetSource.Builder clearSelectedResources()

Optional. Resources in this dataset that are selectively shared. If this field is empty, then the entire dataset (all resources) are shared. This field is only valid for data clean room exchanges.

repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Listing.BigQueryDatasetSource.Builder

clone()

public Listing.BigQueryDatasetSource.Builder clone()
Returns
Type Description
Listing.BigQueryDatasetSource.Builder
Overrides

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) = { ... }

Returns
Type Description
String

The dataset.

getDatasetBytes()

public ByteString getDatasetBytes()

Resource name of the dataset source for this listing. e.g. projects/myproject/datasets/123

string dataset = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for dataset.

getDefaultInstanceForType()

public Listing.BigQueryDatasetSource getDefaultInstanceForType()
Returns
Type Description
Listing.BigQueryDatasetSource

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getSelectedResources(int index)

public Listing.BigQueryDatasetSource.SelectedResource getSelectedResources(int index)

Optional. Resources in this dataset that are selectively shared. If this field is empty, then the entire dataset (all resources) are shared. This field is only valid for data clean room exchanges.

repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Listing.BigQueryDatasetSource.SelectedResource

getSelectedResourcesBuilder(int index)

public Listing.BigQueryDatasetSource.SelectedResource.Builder getSelectedResourcesBuilder(int index)

Optional. Resources in this dataset that are selectively shared. If this field is empty, then the entire dataset (all resources) are shared. This field is only valid for data clean room exchanges.

repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Listing.BigQueryDatasetSource.SelectedResource.Builder

getSelectedResourcesBuilderList()

public List<Listing.BigQueryDatasetSource.SelectedResource.Builder> getSelectedResourcesBuilderList()

Optional. Resources in this dataset that are selectively shared. If this field is empty, then the entire dataset (all resources) are shared. This field is only valid for data clean room exchanges.

repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getSelectedResourcesCount()

public int getSelectedResourcesCount()

Optional. Resources in this dataset that are selectively shared. If this field is empty, then the entire dataset (all resources) are shared. This field is only valid for data clean room exchanges.

repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getSelectedResourcesList()

public List<Listing.BigQueryDatasetSource.SelectedResource> getSelectedResourcesList()

Optional. Resources in this dataset that are selectively shared. If this field is empty, then the entire dataset (all resources) are shared. This field is only valid for data clean room exchanges.

repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<SelectedResource>

getSelectedResourcesOrBuilder(int index)

public Listing.BigQueryDatasetSource.SelectedResourceOrBuilder getSelectedResourcesOrBuilder(int index)

Optional. Resources in this dataset that are selectively shared. If this field is empty, then the entire dataset (all resources) are shared. This field is only valid for data clean room exchanges.

repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Listing.BigQueryDatasetSource.SelectedResourceOrBuilder

getSelectedResourcesOrBuilderList()

public List<? extends Listing.BigQueryDatasetSource.SelectedResourceOrBuilder> getSelectedResourcesOrBuilderList()

Optional. Resources in this dataset that are selectively shared. If this field is empty, then the entire dataset (all resources) are shared. This field is only valid for data clean room exchanges.

repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResourceOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Listing.BigQueryDatasetSource other)

public Listing.BigQueryDatasetSource.Builder mergeFrom(Listing.BigQueryDatasetSource other)
Parameter
Name Description
other Listing.BigQueryDatasetSource
Returns
Type Description
Listing.BigQueryDatasetSource.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Listing.BigQueryDatasetSource.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Listing.BigQueryDatasetSource.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Listing.BigQueryDatasetSource.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Listing.BigQueryDatasetSource.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Listing.BigQueryDatasetSource.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Listing.BigQueryDatasetSource.Builder
Overrides

removeSelectedResources(int index)

public Listing.BigQueryDatasetSource.Builder removeSelectedResources(int index)

Optional. Resources in this dataset that are selectively shared. If this field is empty, then the entire dataset (all resources) are shared. This field is only valid for data clean room exchanges.

repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Listing.BigQueryDatasetSource.Builder

setDataset(String value)

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) = { ... }

Parameter
Name Description
value String

The dataset to set.

Returns
Type Description
Listing.BigQueryDatasetSource.Builder

This builder for chaining.

setDatasetBytes(ByteString value)

public Listing.BigQueryDatasetSource.Builder setDatasetBytes(ByteString value)

Resource name of the dataset source for this listing. e.g. projects/myproject/datasets/123

string dataset = 1 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for dataset to set.

Returns
Type Description
Listing.BigQueryDatasetSource.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Listing.BigQueryDatasetSource.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Listing.BigQueryDatasetSource.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Listing.BigQueryDatasetSource.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Listing.BigQueryDatasetSource.Builder
Overrides

setSelectedResources(int index, Listing.BigQueryDatasetSource.SelectedResource value)

public Listing.BigQueryDatasetSource.Builder setSelectedResources(int index, Listing.BigQueryDatasetSource.SelectedResource value)

Optional. Resources in this dataset that are selectively shared. If this field is empty, then the entire dataset (all resources) are shared. This field is only valid for data clean room exchanges.

repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value Listing.BigQueryDatasetSource.SelectedResource
Returns
Type Description
Listing.BigQueryDatasetSource.Builder

setSelectedResources(int index, Listing.BigQueryDatasetSource.SelectedResource.Builder builderForValue)

public Listing.BigQueryDatasetSource.Builder setSelectedResources(int index, Listing.BigQueryDatasetSource.SelectedResource.Builder builderForValue)

Optional. Resources in this dataset that are selectively shared. If this field is empty, then the entire dataset (all resources) are shared. This field is only valid for data clean room exchanges.

repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue Listing.BigQueryDatasetSource.SelectedResource.Builder
Returns
Type Description
Listing.BigQueryDatasetSource.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Listing.BigQueryDatasetSource.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Listing.BigQueryDatasetSource.Builder
Overrides