Class BigQueryDestination.Builder (0.1.0)

public static final class BigQueryDestination.Builder extends GeneratedMessageV3.Builder<BigQueryDestination.Builder> implements BigQueryDestinationOrBuilder

A BigQuery destination for exporting assets to.

Protobuf type google.cloud.capacityplanner.v1beta.BigQueryDestination

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BigQueryDestination build()
Returns
Type Description
BigQueryDestination

buildPartial()

public BigQueryDestination buildPartial()
Returns
Type Description
BigQueryDestination

clear()

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

clearCreateDisposition()

public BigQueryDestination.Builder clearCreateDisposition()

Optional. Specifies the action that occurs if the destination table does not exist

.google.cloud.capacityplanner.v1beta.BigQueryDestination.CreateDisposition create_disposition = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BigQueryDestination.Builder

This builder for chaining.

clearDataset()

public BigQueryDestination.Builder clearDataset()

Required. The BigQuery dataset in format "projects/{projectId}/datasets/{datasetId}", to which the snapshot result should be exported. If this dataset does not exist, the export call returns an INVALID_ARGUMENT error.

string dataset = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BigQueryDestination.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearGcsLocation()

public BigQueryDestination.Builder clearGcsLocation()

Optional. Specifies the Cloud Storage location. Users can choose to provide a location for Cloud Storage bucket to store the exported data. (as it is possible that some locations are restricted via org policy for that project) Temporary Cloud Storage bucket creation is an interim step for BigQuery upload. If no value is provided, the default location used will be 'US'.

string gcs_location = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BigQueryDestination.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPartitionKey()

public BigQueryDestination.Builder clearPartitionKey()

Optional. The partition key for BigQuery partitioned table.

.google.cloud.capacityplanner.v1beta.BigQueryDestination.PartitionKey partition_key = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BigQueryDestination.Builder

This builder for chaining.

clearTable()

public BigQueryDestination.Builder clearTable()

Required. The BigQuery table to which the snapshot result should be written.

string table = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BigQueryDestination.Builder

This builder for chaining.

clearWriteDisposition()

public BigQueryDestination.Builder clearWriteDisposition()

Optional. Specifies the action that occurs if the destination table or partition already exists.

.google.cloud.capacityplanner.v1beta.BigQueryDestination.WriteDisposition write_disposition = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BigQueryDestination.Builder

This builder for chaining.

clone()

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

getCreateDisposition()

public BigQueryDestination.CreateDisposition getCreateDisposition()

Optional. Specifies the action that occurs if the destination table does not exist

.google.cloud.capacityplanner.v1beta.BigQueryDestination.CreateDisposition create_disposition = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BigQueryDestination.CreateDisposition

The createDisposition.

getCreateDispositionValue()

public int getCreateDispositionValue()

Optional. Specifies the action that occurs if the destination table does not exist

.google.cloud.capacityplanner.v1beta.BigQueryDestination.CreateDisposition create_disposition = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for createDisposition.

getDataset()

public String getDataset()

Required. The BigQuery dataset in format "projects/{projectId}/datasets/{datasetId}", to which the snapshot result should be exported. If this dataset does not exist, the export call returns an INVALID_ARGUMENT error.

string dataset = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The dataset.

getDatasetBytes()

public ByteString getDatasetBytes()

Required. The BigQuery dataset in format "projects/{projectId}/datasets/{datasetId}", to which the snapshot result should be exported. If this dataset does not exist, the export call returns an INVALID_ARGUMENT error.

string dataset = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for dataset.

getDefaultInstanceForType()

public BigQueryDestination getDefaultInstanceForType()
Returns
Type Description
BigQueryDestination

getDescriptorForType()

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

getGcsLocation()

public String getGcsLocation()

Optional. Specifies the Cloud Storage location. Users can choose to provide a location for Cloud Storage bucket to store the exported data. (as it is possible that some locations are restricted via org policy for that project) Temporary Cloud Storage bucket creation is an interim step for BigQuery upload. If no value is provided, the default location used will be 'US'.

string gcs_location = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The gcsLocation.

getGcsLocationBytes()

public ByteString getGcsLocationBytes()

Optional. Specifies the Cloud Storage location. Users can choose to provide a location for Cloud Storage bucket to store the exported data. (as it is possible that some locations are restricted via org policy for that project) Temporary Cloud Storage bucket creation is an interim step for BigQuery upload. If no value is provided, the default location used will be 'US'.

string gcs_location = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for gcsLocation.

getPartitionKey()

public BigQueryDestination.PartitionKey getPartitionKey()

Optional. The partition key for BigQuery partitioned table.

.google.cloud.capacityplanner.v1beta.BigQueryDestination.PartitionKey partition_key = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BigQueryDestination.PartitionKey

The partitionKey.

getPartitionKeyValue()

public int getPartitionKeyValue()

Optional. The partition key for BigQuery partitioned table.

.google.cloud.capacityplanner.v1beta.BigQueryDestination.PartitionKey partition_key = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for partitionKey.

getTable()

public String getTable()

Required. The BigQuery table to which the snapshot result should be written.

string table = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The table.

getTableBytes()

public ByteString getTableBytes()

Required. The BigQuery table to which the snapshot result should be written.

string table = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for table.

getWriteDisposition()

public BigQueryDestination.WriteDisposition getWriteDisposition()

Optional. Specifies the action that occurs if the destination table or partition already exists.

.google.cloud.capacityplanner.v1beta.BigQueryDestination.WriteDisposition write_disposition = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BigQueryDestination.WriteDisposition

The writeDisposition.

getWriteDispositionValue()

public int getWriteDispositionValue()

Optional. Specifies the action that occurs if the destination table or partition already exists.

.google.cloud.capacityplanner.v1beta.BigQueryDestination.WriteDisposition write_disposition = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for writeDisposition.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BigQueryDestination other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCreateDisposition(BigQueryDestination.CreateDisposition value)

public BigQueryDestination.Builder setCreateDisposition(BigQueryDestination.CreateDisposition value)

Optional. Specifies the action that occurs if the destination table does not exist

.google.cloud.capacityplanner.v1beta.BigQueryDestination.CreateDisposition create_disposition = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value BigQueryDestination.CreateDisposition

The createDisposition to set.

Returns
Type Description
BigQueryDestination.Builder

This builder for chaining.

setCreateDispositionValue(int value)

public BigQueryDestination.Builder setCreateDispositionValue(int value)

Optional. Specifies the action that occurs if the destination table does not exist

.google.cloud.capacityplanner.v1beta.BigQueryDestination.CreateDisposition create_disposition = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for createDisposition to set.

Returns
Type Description
BigQueryDestination.Builder

This builder for chaining.

setDataset(String value)

public BigQueryDestination.Builder setDataset(String value)

Required. The BigQuery dataset in format "projects/{projectId}/datasets/{datasetId}", to which the snapshot result should be exported. If this dataset does not exist, the export call returns an INVALID_ARGUMENT error.

string dataset = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The dataset to set.

Returns
Type Description
BigQueryDestination.Builder

This builder for chaining.

setDatasetBytes(ByteString value)

public BigQueryDestination.Builder setDatasetBytes(ByteString value)

Required. The BigQuery dataset in format "projects/{projectId}/datasets/{datasetId}", to which the snapshot result should be exported. If this dataset does not exist, the export call returns an INVALID_ARGUMENT error.

string dataset = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for dataset to set.

Returns
Type Description
BigQueryDestination.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setGcsLocation(String value)

public BigQueryDestination.Builder setGcsLocation(String value)

Optional. Specifies the Cloud Storage location. Users can choose to provide a location for Cloud Storage bucket to store the exported data. (as it is possible that some locations are restricted via org policy for that project) Temporary Cloud Storage bucket creation is an interim step for BigQuery upload. If no value is provided, the default location used will be 'US'.

string gcs_location = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The gcsLocation to set.

Returns
Type Description
BigQueryDestination.Builder

This builder for chaining.

setGcsLocationBytes(ByteString value)

public BigQueryDestination.Builder setGcsLocationBytes(ByteString value)

Optional. Specifies the Cloud Storage location. Users can choose to provide a location for Cloud Storage bucket to store the exported data. (as it is possible that some locations are restricted via org policy for that project) Temporary Cloud Storage bucket creation is an interim step for BigQuery upload. If no value is provided, the default location used will be 'US'.

string gcs_location = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for gcsLocation to set.

Returns
Type Description
BigQueryDestination.Builder

This builder for chaining.

setPartitionKey(BigQueryDestination.PartitionKey value)

public BigQueryDestination.Builder setPartitionKey(BigQueryDestination.PartitionKey value)

Optional. The partition key for BigQuery partitioned table.

.google.cloud.capacityplanner.v1beta.BigQueryDestination.PartitionKey partition_key = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value BigQueryDestination.PartitionKey

The partitionKey to set.

Returns
Type Description
BigQueryDestination.Builder

This builder for chaining.

setPartitionKeyValue(int value)

public BigQueryDestination.Builder setPartitionKeyValue(int value)

Optional. The partition key for BigQuery partitioned table.

.google.cloud.capacityplanner.v1beta.BigQueryDestination.PartitionKey partition_key = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for partitionKey to set.

Returns
Type Description
BigQueryDestination.Builder

This builder for chaining.

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

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

setTable(String value)

public BigQueryDestination.Builder setTable(String value)

Required. The BigQuery table to which the snapshot result should be written.

string table = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The table to set.

Returns
Type Description
BigQueryDestination.Builder

This builder for chaining.

setTableBytes(ByteString value)

public BigQueryDestination.Builder setTableBytes(ByteString value)

Required. The BigQuery table to which the snapshot result should be written.

string table = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for table to set.

Returns
Type Description
BigQueryDestination.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setWriteDisposition(BigQueryDestination.WriteDisposition value)

public BigQueryDestination.Builder setWriteDisposition(BigQueryDestination.WriteDisposition value)

Optional. Specifies the action that occurs if the destination table or partition already exists.

.google.cloud.capacityplanner.v1beta.BigQueryDestination.WriteDisposition write_disposition = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value BigQueryDestination.WriteDisposition

The writeDisposition to set.

Returns
Type Description
BigQueryDestination.Builder

This builder for chaining.

setWriteDispositionValue(int value)

public BigQueryDestination.Builder setWriteDispositionValue(int value)

Optional. Specifies the action that occurs if the destination table or partition already exists.

.google.cloud.capacityplanner.v1beta.BigQueryDestination.WriteDisposition write_disposition = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for writeDisposition to set.

Returns
Type Description
BigQueryDestination.Builder

This builder for chaining.