Class DestinationDataset.Builder (2.37.0)

public static final class DestinationDataset.Builder extends GeneratedMessageV3.Builder<DestinationDataset.Builder> implements DestinationDatasetOrBuilder

Defines the destination bigquery dataset.

Protobuf type google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DestinationDataset build()
Returns
Type Description
DestinationDataset

buildPartial()

public DestinationDataset buildPartial()
Returns
Type Description
DestinationDataset

clear()

public DestinationDataset.Builder clear()
Returns
Type Description
DestinationDataset.Builder
Overrides

clearDatasetReference()

public DestinationDataset.Builder clearDatasetReference()

Required. A reference that identifies the destination dataset.

.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DestinationDataset.Builder

clearDescription()

public DestinationDataset.Builder clearDescription()

Optional. A user-friendly description of the dataset.

.google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DestinationDataset.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearFriendlyName()

public DestinationDataset.Builder clearFriendlyName()

Optional. A descriptive name for the dataset.

.google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DestinationDataset.Builder

clearLabels()

public DestinationDataset.Builder clearLabels()
Returns
Type Description
DestinationDataset.Builder

clearLocation()

public DestinationDataset.Builder clearLocation()

Required. The geographic location where the dataset should reside. See https://cloud.google.com/bigquery/docs/locations for supported locations.

string location = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DestinationDataset.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public DestinationDataset.Builder clone()
Returns
Type Description
DestinationDataset.Builder
Overrides

containsLabels(String key)

public boolean containsLabels(String key)

Optional. The labels associated with this dataset. You can use these to organize and group your datasets. You can set this property when inserting or updating a dataset. See https://cloud.google.com/resource-manager/docs/creating-managing-labels for more information.

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
boolean

getDatasetReference()

public DestinationDatasetReference getDatasetReference()

Required. A reference that identifies the destination dataset.

.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DestinationDatasetReference

The datasetReference.

getDatasetReferenceBuilder()

public DestinationDatasetReference.Builder getDatasetReferenceBuilder()

Required. A reference that identifies the destination dataset.

.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DestinationDatasetReference.Builder

getDatasetReferenceOrBuilder()

public DestinationDatasetReferenceOrBuilder getDatasetReferenceOrBuilder()

Required. A reference that identifies the destination dataset.

.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DestinationDatasetReferenceOrBuilder

getDefaultInstanceForType()

public DestinationDataset getDefaultInstanceForType()
Returns
Type Description
DestinationDataset

getDescription()

public StringValue getDescription()

Optional. A user-friendly description of the dataset.

.google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
StringValue

The description.

getDescriptionBuilder()

public StringValue.Builder getDescriptionBuilder()

Optional. A user-friendly description of the dataset.

.google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Builder

getDescriptionOrBuilder()

public StringValueOrBuilder getDescriptionOrBuilder()

Optional. A user-friendly description of the dataset.

.google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
StringValueOrBuilder

getDescriptorForType()

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

getFriendlyName()

public StringValue getFriendlyName()

Optional. A descriptive name for the dataset.

.google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
StringValue

The friendlyName.

getFriendlyNameBuilder()

public StringValue.Builder getFriendlyNameBuilder()

Optional. A descriptive name for the dataset.

.google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Builder

getFriendlyNameOrBuilder()

public StringValueOrBuilder getFriendlyNameOrBuilder()

Optional. A descriptive name for the dataset.

.google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
StringValueOrBuilder

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Optional. The labels associated with this dataset. You can use these to organize and group your datasets. You can set this property when inserting or updating a dataset. See https://cloud.google.com/resource-manager/docs/creating-managing-labels for more information.

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Optional. The labels associated with this dataset. You can use these to organize and group your datasets. You can set this property when inserting or updating a dataset. See https://cloud.google.com/resource-manager/docs/creating-managing-labels for more information.

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Optional. The labels associated with this dataset. You can use these to organize and group your datasets. You can set this property when inserting or updating a dataset. See https://cloud.google.com/resource-manager/docs/creating-managing-labels for more information.

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Optional. The labels associated with this dataset. You can use these to organize and group your datasets. You can set this property when inserting or updating a dataset. See https://cloud.google.com/resource-manager/docs/creating-managing-labels for more information.

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
String

getLocation()

public String getLocation()

Required. The geographic location where the dataset should reside. See https://cloud.google.com/bigquery/docs/locations for supported locations.

string location = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The location.

getLocationBytes()

public ByteString getLocationBytes()

Required. The geographic location where the dataset should reside. See https://cloud.google.com/bigquery/docs/locations for supported locations.

string location = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for location.

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

hasDatasetReference()

public boolean hasDatasetReference()

Required. A reference that identifies the destination dataset.

.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the datasetReference field is set.

hasDescription()

public boolean hasDescription()

Optional. A user-friendly description of the dataset.

.google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the description field is set.

hasFriendlyName()

public boolean hasFriendlyName()

Optional. A descriptive name for the dataset.

.google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the friendlyName field is set.

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDatasetReference(DestinationDatasetReference value)

public DestinationDataset.Builder mergeDatasetReference(DestinationDatasetReference value)

Required. A reference that identifies the destination dataset.

.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value DestinationDatasetReference
Returns
Type Description
DestinationDataset.Builder

mergeDescription(StringValue value)

public DestinationDataset.Builder mergeDescription(StringValue value)

Optional. A user-friendly description of the dataset.

.google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value StringValue
Returns
Type Description
DestinationDataset.Builder

mergeFriendlyName(StringValue value)

public DestinationDataset.Builder mergeFriendlyName(StringValue value)

Optional. A descriptive name for the dataset.

.google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value StringValue
Returns
Type Description
DestinationDataset.Builder

mergeFrom(DestinationDataset other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllLabels(Map<String,String> values)

public DestinationDataset.Builder putAllLabels(Map<String,String> values)

Optional. The labels associated with this dataset. You can use these to organize and group your datasets. You can set this property when inserting or updating a dataset. See https://cloud.google.com/resource-manager/docs/creating-managing-labels for more information.

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Map<String,String>
Returns
Type Description
DestinationDataset.Builder

putLabels(String key, String value)

public DestinationDataset.Builder putLabels(String key, String value)

Optional. The labels associated with this dataset. You can use these to organize and group your datasets. You can set this property when inserting or updating a dataset. See https://cloud.google.com/resource-manager/docs/creating-managing-labels for more information.

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
value String
Returns
Type Description
DestinationDataset.Builder

removeLabels(String key)

public DestinationDataset.Builder removeLabels(String key)

Optional. The labels associated with this dataset. You can use these to organize and group your datasets. You can set this property when inserting or updating a dataset. See https://cloud.google.com/resource-manager/docs/creating-managing-labels for more information.

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
DestinationDataset.Builder

setDatasetReference(DestinationDatasetReference value)

public DestinationDataset.Builder setDatasetReference(DestinationDatasetReference value)

Required. A reference that identifies the destination dataset.

.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value DestinationDatasetReference
Returns
Type Description
DestinationDataset.Builder

setDatasetReference(DestinationDatasetReference.Builder builderForValue)

public DestinationDataset.Builder setDatasetReference(DestinationDatasetReference.Builder builderForValue)

Required. A reference that identifies the destination dataset.

.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue DestinationDatasetReference.Builder
Returns
Type Description
DestinationDataset.Builder

setDescription(StringValue value)

public DestinationDataset.Builder setDescription(StringValue value)

Optional. A user-friendly description of the dataset.

.google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value StringValue
Returns
Type Description
DestinationDataset.Builder

setDescription(StringValue.Builder builderForValue)

public DestinationDataset.Builder setDescription(StringValue.Builder builderForValue)

Optional. A user-friendly description of the dataset.

.google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
DestinationDataset.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setFriendlyName(StringValue value)

public DestinationDataset.Builder setFriendlyName(StringValue value)

Optional. A descriptive name for the dataset.

.google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value StringValue
Returns
Type Description
DestinationDataset.Builder

setFriendlyName(StringValue.Builder builderForValue)

public DestinationDataset.Builder setFriendlyName(StringValue.Builder builderForValue)

Optional. A descriptive name for the dataset.

.google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
DestinationDataset.Builder

setLocation(String value)

public DestinationDataset.Builder setLocation(String value)

Required. The geographic location where the dataset should reside. See https://cloud.google.com/bigquery/docs/locations for supported locations.

string location = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The location to set.

Returns
Type Description
DestinationDataset.Builder

This builder for chaining.

setLocationBytes(ByteString value)

public DestinationDataset.Builder setLocationBytes(ByteString value)

Required. The geographic location where the dataset should reside. See https://cloud.google.com/bigquery/docs/locations for supported locations.

string location = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for location to set.

Returns
Type Description
DestinationDataset.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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