Class QueryAssetsOutputConfig.BigQueryDestination.Builder (3.38.0)

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

BigQuery destination.

Protobuf type google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public QueryAssetsOutputConfig.BigQueryDestination build()
Returns
Type Description
QueryAssetsOutputConfig.BigQueryDestination

buildPartial()

public QueryAssetsOutputConfig.BigQueryDestination buildPartial()
Returns
Type Description
QueryAssetsOutputConfig.BigQueryDestination

clear()

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

clearDataset()

public QueryAssetsOutputConfig.BigQueryDestination.Builder clearDataset()

Required. The BigQuery dataset where the query results will be saved. It has the format of "projects/{projectId}/datasets/{datasetId}".

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

Returns
Type Description
QueryAssetsOutputConfig.BigQueryDestination.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTable()

public QueryAssetsOutputConfig.BigQueryDestination.Builder clearTable()

Required. The BigQuery table where the query results will be saved. If this table does not exist, a new table with the given name will be created.

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

Returns
Type Description
QueryAssetsOutputConfig.BigQueryDestination.Builder

This builder for chaining.

clearWriteDisposition()

public QueryAssetsOutputConfig.BigQueryDestination.Builder clearWriteDisposition()

Specifies the action that occurs if the destination table or partition already exists. The following values are supported:

  • WRITE_TRUNCATE: If the table or partition already exists, BigQuery overwrites the entire table or all the partitions data.
  • WRITE_APPEND: If the table or partition already exists, BigQuery appends the data to the table or the latest partition.
  • WRITE_EMPTY: If the table already exists and contains data, a 'duplicate' error is returned in the job result.

    The default value is WRITE_EMPTY.

string write_disposition = 3;

Returns
Type Description
QueryAssetsOutputConfig.BigQueryDestination.Builder

This builder for chaining.

clone()

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

getDataset()

public String getDataset()

Required. The BigQuery dataset where the query results will be saved. It has the format of "projects/{projectId}/datasets/{datasetId}".

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

Returns
Type Description
String

The dataset.

getDatasetBytes()

public ByteString getDatasetBytes()

Required. The BigQuery dataset where the query results will be saved. It has the format of "projects/{projectId}/datasets/{datasetId}".

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

Returns
Type Description
ByteString

The bytes for dataset.

getDefaultInstanceForType()

public QueryAssetsOutputConfig.BigQueryDestination getDefaultInstanceForType()
Returns
Type Description
QueryAssetsOutputConfig.BigQueryDestination

getDescriptorForType()

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

getTable()

public String getTable()

Required. The BigQuery table where the query results will be saved. If this table does not exist, a new table with the given name will be created.

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

Returns
Type Description
String

The table.

getTableBytes()

public ByteString getTableBytes()

Required. The BigQuery table where the query results will be saved. If this table does not exist, a new table with the given name will be created.

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

Returns
Type Description
ByteString

The bytes for table.

getWriteDisposition()

public String getWriteDisposition()

Specifies the action that occurs if the destination table or partition already exists. The following values are supported:

  • WRITE_TRUNCATE: If the table or partition already exists, BigQuery overwrites the entire table or all the partitions data.
  • WRITE_APPEND: If the table or partition already exists, BigQuery appends the data to the table or the latest partition.
  • WRITE_EMPTY: If the table already exists and contains data, a 'duplicate' error is returned in the job result.

    The default value is WRITE_EMPTY.

string write_disposition = 3;

Returns
Type Description
String

The writeDisposition.

getWriteDispositionBytes()

public ByteString getWriteDispositionBytes()

Specifies the action that occurs if the destination table or partition already exists. The following values are supported:

  • WRITE_TRUNCATE: If the table or partition already exists, BigQuery overwrites the entire table or all the partitions data.
  • WRITE_APPEND: If the table or partition already exists, BigQuery appends the data to the table or the latest partition.
  • WRITE_EMPTY: If the table already exists and contains data, a 'duplicate' error is returned in the job result.

    The default value is WRITE_EMPTY.

string write_disposition = 3;

Returns
Type Description
ByteString

The bytes for writeDisposition.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(QueryAssetsOutputConfig.BigQueryDestination other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDataset(String value)

public QueryAssetsOutputConfig.BigQueryDestination.Builder setDataset(String value)

Required. The BigQuery dataset where the query results will be saved. It has the format of "projects/{projectId}/datasets/{datasetId}".

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

Parameter
Name Description
value String

The dataset to set.

Returns
Type Description
QueryAssetsOutputConfig.BigQueryDestination.Builder

This builder for chaining.

setDatasetBytes(ByteString value)

public QueryAssetsOutputConfig.BigQueryDestination.Builder setDatasetBytes(ByteString value)

Required. The BigQuery dataset where the query results will be saved. It has the format of "projects/{projectId}/datasets/{datasetId}".

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

Parameter
Name Description
value ByteString

The bytes for dataset to set.

Returns
Type Description
QueryAssetsOutputConfig.BigQueryDestination.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setTable(String value)

public QueryAssetsOutputConfig.BigQueryDestination.Builder setTable(String value)

Required. The BigQuery table where the query results will be saved. If this table does not exist, a new table with the given name will be created.

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

Parameter
Name Description
value String

The table to set.

Returns
Type Description
QueryAssetsOutputConfig.BigQueryDestination.Builder

This builder for chaining.

setTableBytes(ByteString value)

public QueryAssetsOutputConfig.BigQueryDestination.Builder setTableBytes(ByteString value)

Required. The BigQuery table where the query results will be saved. If this table does not exist, a new table with the given name will be created.

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

Parameter
Name Description
value ByteString

The bytes for table to set.

Returns
Type Description
QueryAssetsOutputConfig.BigQueryDestination.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setWriteDisposition(String value)

public QueryAssetsOutputConfig.BigQueryDestination.Builder setWriteDisposition(String value)

Specifies the action that occurs if the destination table or partition already exists. The following values are supported:

  • WRITE_TRUNCATE: If the table or partition already exists, BigQuery overwrites the entire table or all the partitions data.
  • WRITE_APPEND: If the table or partition already exists, BigQuery appends the data to the table or the latest partition.
  • WRITE_EMPTY: If the table already exists and contains data, a 'duplicate' error is returned in the job result.

    The default value is WRITE_EMPTY.

string write_disposition = 3;

Parameter
Name Description
value String

The writeDisposition to set.

Returns
Type Description
QueryAssetsOutputConfig.BigQueryDestination.Builder

This builder for chaining.

setWriteDispositionBytes(ByteString value)

public QueryAssetsOutputConfig.BigQueryDestination.Builder setWriteDispositionBytes(ByteString value)

Specifies the action that occurs if the destination table or partition already exists. The following values are supported:

  • WRITE_TRUNCATE: If the table or partition already exists, BigQuery overwrites the entire table or all the partitions data.
  • WRITE_APPEND: If the table or partition already exists, BigQuery appends the data to the table or the latest partition.
  • WRITE_EMPTY: If the table already exists and contains data, a 'duplicate' error is returned in the job result.

    The default value is WRITE_EMPTY.

string write_disposition = 3;

Parameter
Name Description
value ByteString

The bytes for writeDisposition to set.

Returns
Type Description
QueryAssetsOutputConfig.BigQueryDestination.Builder

This builder for chaining.