Class QueryAssetsOutputConfig.BigQueryDestination.Builder (3.45.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public QueryAssetsOutputConfig.BigQueryDestination build()
Returns
TypeDescription
QueryAssetsOutputConfig.BigQueryDestination

buildPartial()

public QueryAssetsOutputConfig.BigQueryDestination buildPartial()
Returns
TypeDescription
QueryAssetsOutputConfig.BigQueryDestination

clear()

public QueryAssetsOutputConfig.BigQueryDestination.Builder clear()
Returns
TypeDescription
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
TypeDescription
QueryAssetsOutputConfig.BigQueryDestination.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public QueryAssetsOutputConfig.BigQueryDestination.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
QueryAssetsOutputConfig.BigQueryDestination.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public QueryAssetsOutputConfig.BigQueryDestination.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
QueryAssetsOutputConfig.BigQueryDestination.Builder

This builder for chaining.

clone()

public QueryAssetsOutputConfig.BigQueryDestination.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for dataset.

getDefaultInstanceForType()

public QueryAssetsOutputConfig.BigQueryDestination getDefaultInstanceForType()
Returns
TypeDescription
QueryAssetsOutputConfig.BigQueryDestination

getDescriptorForType()

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

The bytes for writeDisposition.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(QueryAssetsOutputConfig.BigQueryDestination other)

public QueryAssetsOutputConfig.BigQueryDestination.Builder mergeFrom(QueryAssetsOutputConfig.BigQueryDestination other)
Parameter
NameDescription
otherQueryAssetsOutputConfig.BigQueryDestination
Returns
TypeDescription
QueryAssetsOutputConfig.BigQueryDestination.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final QueryAssetsOutputConfig.BigQueryDestination.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The dataset to set.

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

The bytes for dataset to set.

Returns
TypeDescription
QueryAssetsOutputConfig.BigQueryDestination.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

The table to set.

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

The bytes for table to set.

Returns
TypeDescription
QueryAssetsOutputConfig.BigQueryDestination.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final QueryAssetsOutputConfig.BigQueryDestination.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The writeDisposition to set.

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

The bytes for writeDisposition to set.

Returns
TypeDescription
QueryAssetsOutputConfig.BigQueryDestination.Builder

This builder for chaining.