Class DestinationDataset.Builder (0.9.0)

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

Defines the destination bigquery dataset.

Protobuf type google.cloud.bigquery.analyticshub.v1.DestinationDataset

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DestinationDataset.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DestinationDataset.Builder
Overrides

build()

public DestinationDataset build()
Returns
TypeDescription
DestinationDataset

buildPartial()

public DestinationDataset buildPartial()
Returns
TypeDescription
DestinationDataset

clear()

public DestinationDataset.Builder clear()
Returns
TypeDescription
DestinationDataset.Builder
Overrides

clearDatasetReference()

public DestinationDataset.Builder clearDatasetReference()

Required. A reference that identifies the destination dataset.

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

Returns
TypeDescription
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
TypeDescription
DestinationDataset.Builder

clearField(Descriptors.FieldDescriptor field)

public DestinationDataset.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
DestinationDataset.Builder

clearLabels()

public DestinationDataset.Builder clearLabels()
Returns
TypeDescription
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
TypeDescription
DestinationDataset.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public DestinationDataset.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
DestinationDataset.Builder
Overrides

clone()

public DestinationDataset.Builder clone()
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
boolean

getDatasetReference()

public DestinationDatasetReference getDatasetReference()

Required. A reference that identifies the destination dataset.

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

Returns
TypeDescription
DestinationDatasetReference

The datasetReference.

getDatasetReferenceBuilder()

public DestinationDatasetReference.Builder getDatasetReferenceBuilder()

Required. A reference that identifies the destination dataset.

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

Returns
TypeDescription
DestinationDatasetReference.Builder

getDatasetReferenceOrBuilder()

public DestinationDatasetReferenceOrBuilder getDatasetReferenceOrBuilder()

Required. A reference that identifies the destination dataset.

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

Returns
TypeDescription
DestinationDatasetReferenceOrBuilder

getDefaultInstanceForType()

public DestinationDataset getDefaultInstanceForType()
Returns
TypeDescription
DestinationDataset

getDescription()

public StringValue getDescription()

Optional. A user-friendly description of the dataset.

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

Returns
TypeDescription
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
TypeDescription
Builder

getDescriptionOrBuilder()

public StringValueOrBuilder getDescriptionOrBuilder()

Optional. A user-friendly description of the dataset.

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

Returns
TypeDescription
StringValueOrBuilder

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Builder

getFriendlyNameOrBuilder()

public StringValueOrBuilder getFriendlyNameOrBuilder()

Optional. A descriptive name for the dataset.

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

Returns
TypeDescription
StringValueOrBuilder

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
keyString
defaultValueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for location.

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

hasDatasetReference()

public boolean hasDatasetReference()

Required. A reference that identifies the destination dataset.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the friendlyName field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeDatasetReference(DestinationDatasetReference value)

public DestinationDataset.Builder mergeDatasetReference(DestinationDatasetReference value)

Required. A reference that identifies the destination dataset.

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

Parameter
NameDescription
valueDestinationDatasetReference
Returns
TypeDescription
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
NameDescription
valueStringValue
Returns
TypeDescription
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
NameDescription
valueStringValue
Returns
TypeDescription
DestinationDataset.Builder

mergeFrom(DestinationDataset other)

public DestinationDataset.Builder mergeFrom(DestinationDataset other)
Parameter
NameDescription
otherDestinationDataset
Returns
TypeDescription
DestinationDataset.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DestinationDataset.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DestinationDataset.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public DestinationDataset.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
DestinationDataset.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DestinationDataset.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valuesMap<String,String>
Returns
TypeDescription
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
NameDescription
keyString
valueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
DestinationDataset.Builder

setDatasetReference(DestinationDatasetReference value)

public DestinationDataset.Builder setDatasetReference(DestinationDatasetReference value)

Required. A reference that identifies the destination dataset.

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

Parameter
NameDescription
valueDestinationDatasetReference
Returns
TypeDescription
DestinationDataset.Builder

setDatasetReference(DestinationDatasetReference.Builder builderForValue)

public DestinationDataset.Builder setDatasetReference(DestinationDatasetReference.Builder builderForValue)

Required. A reference that identifies the destination dataset.

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

Parameter
NameDescription
builderForValueDestinationDatasetReference.Builder
Returns
TypeDescription
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
NameDescription
valueStringValue
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
DestinationDataset.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public DestinationDataset.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueStringValue
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueString

The location to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for location to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
DestinationDataset.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final DestinationDataset.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DestinationDataset.Builder
Overrides