﻿<!DOCTYPE html>
<html devsite="">
  <head>
    <meta name="project_path" value="/dotnet/_project.yaml">
    <meta name="book_path" value="/dotnet/_book.yaml">
  </head>
  <body>
    {% verbatim %}
    <div>
      <article data-uid="Google.Cloud.Asset.V1.BigQueryDestination">
<h1 class="page-title">Class BigQueryDestination
</h1>
  
  
  <div class="codewrapper">
    <pre class="prettyprint"><code>public sealed class BigQueryDestination : IMessage&lt;BigQueryDestination&gt;, IEquatable&lt;BigQueryDestination&gt;, IDeepCloneable&lt;BigQueryDestination&gt;, IBufferMessage, IMessage</code></pre>
  </div>
  <div class="markdown level0 summary"><p>A BigQuery destination for exporting assets to.</p>
</div>
  <div class="inheritance">
    <h2>Inheritance</h2>
    <span><span class="xref">System.Object</span></span> <span> &gt; </span>
    <span class="xref">BigQueryDestination</span>
  </div>
  <div classs="implements">
    <h2>Implements</h2>
    <span><span class="xref">Google.Protobuf.IMessage</span>&lt;<a class="xref" href="Google.Cloud.Asset.V1.BigQueryDestination.html">BigQueryDestination</a>&gt;,</span>
    <span><span class="xref">System.IEquatable</span>&lt;<a class="xref" href="Google.Cloud.Asset.V1.BigQueryDestination.html">BigQueryDestination</a>&gt;,</span>
    <span><span class="xref">Google.Protobuf.IDeepCloneable</span>&lt;<a class="xref" href="Google.Cloud.Asset.V1.BigQueryDestination.html">BigQueryDestination</a>&gt;,</span>
    <span><span class="xref">Google.Protobuf.IBufferMessage</span>,</span>
    <span><span class="xref">Google.Protobuf.IMessage</span></span>
  </div>
  <div class="inheritedMembers expandable">
    <h2 class="showalways">Inherited Members</h2>
    <div>
      <span class="xref">System.Object.GetHashCode()</span>
    </div>
    <div>
      <span class="xref">System.Object.GetType()</span>
    </div>
    <div>
      <span class="xref">System.Object.MemberwiseClone()</span>
    </div>
    <div>
      <span class="xref">System.Object.ToString()</span>
    </div>
  </div>
  <h2>Namespace</h2>
  <a class="xref" href="Google.Cloud.Asset.V1.html">Google.Cloud.Asset.V1</a>
  <h2>Assembly</h2>
  <p>Google.Cloud.Asset.V1.dll</p>
  <h2 id="constructors">Constructors
  </h2>
  <a id="Google_Cloud_Asset_V1_BigQueryDestination__ctor_" data-uid="Google.Cloud.Asset.V1.BigQueryDestination.#ctor*"></a>
  <h3 id="Google_Cloud_Asset_V1_BigQueryDestination__ctor" data-uid="Google.Cloud.Asset.V1.BigQueryDestination.#ctor" class="notranslate">BigQueryDestination()</h3>
  <div class="codewrapper">
    <pre class="prettyprint"><code>public BigQueryDestination()</code></pre>
  </div>
  <a id="Google_Cloud_Asset_V1_BigQueryDestination__ctor_" data-uid="Google.Cloud.Asset.V1.BigQueryDestination.#ctor*"></a>
  <h3 id="Google_Cloud_Asset_V1_BigQueryDestination__ctor_Google_Cloud_Asset_V1_BigQueryDestination_" data-uid="Google.Cloud.Asset.V1.BigQueryDestination.#ctor(Google.Cloud.Asset.V1.BigQueryDestination)" class="notranslate">BigQueryDestination(BigQueryDestination)</h3>
  <div class="codewrapper">
    <pre class="prettyprint"><code>public BigQueryDestination(BigQueryDestination other)</code></pre>
  </div>
  <strong>Parameter</strong>
  <table class="responsive">
    <tbody>
      <tr>
        <td><strong>Name</strong></td>
        <td><strong>Description</strong></td>
      </tr>
      <tr>
        <td><span class="parametername">other</span></td>
        <td><code><a class="xref" href="Google.Cloud.Asset.V1.BigQueryDestination.html">BigQueryDestination</a></code><br></td>
      </tr>
    </tbody>
  </table>
  <h2 id="properties">Properties
  </h2>
  <a id="Google_Cloud_Asset_V1_BigQueryDestination_Dataset_" data-uid="Google.Cloud.Asset.V1.BigQueryDestination.Dataset*"></a>
  <h3 id="Google_Cloud_Asset_V1_BigQueryDestination_Dataset" data-uid="Google.Cloud.Asset.V1.BigQueryDestination.Dataset" class="notranslate">Dataset</h3>
  <div class="codewrapper">
    <pre class="prettyprint"><code>public string Dataset { get; set; }</code></pre>
  </div>
  <div class="markdown level1 summary"><p>Required. The BigQuery dataset in format
&quot;projects/projectId/datasets/datasetId&quot;, to which the snapshot result
should be exported. If this dataset does not exist, the export call returns
an INVALID_ARGUMENT error.</p>
</div>
  <strong>Property Value</strong>
  <table class="responsive">
    <tbody>
      <tr>
        <td><strong>Type</strong></td>
        <td><strong>Description</strong></td>
      </tr>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <a id="Google_Cloud_Asset_V1_BigQueryDestination_Force_" data-uid="Google.Cloud.Asset.V1.BigQueryDestination.Force*"></a>
  <h3 id="Google_Cloud_Asset_V1_BigQueryDestination_Force" data-uid="Google.Cloud.Asset.V1.BigQueryDestination.Force" class="notranslate">Force</h3>
  <div class="codewrapper">
    <pre class="prettyprint"><code>public bool Force { get; set; }</code></pre>
  </div>
  <div class="markdown level1 summary"><p>If the destination table already exists and this flag is <code>TRUE</code>, the
table will be overwritten by the contents of assets snapshot. If the flag
is <code>FALSE</code> or unset and the destination table already exists, the export
call returns an INVALID_ARGUMEMT error.</p>
</div>
  <strong>Property Value</strong>
  <table class="responsive">
    <tbody>
      <tr>
        <td><strong>Type</strong></td>
        <td><strong>Description</strong></td>
      </tr>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <a id="Google_Cloud_Asset_V1_BigQueryDestination_PartitionSpec_" data-uid="Google.Cloud.Asset.V1.BigQueryDestination.PartitionSpec*"></a>
  <h3 id="Google_Cloud_Asset_V1_BigQueryDestination_PartitionSpec" data-uid="Google.Cloud.Asset.V1.BigQueryDestination.PartitionSpec" class="notranslate">PartitionSpec</h3>
  <div class="codewrapper">
    <pre class="prettyprint"><code>public PartitionSpec PartitionSpec { get; set; }</code></pre>
  </div>
  <div class="markdown level1 summary"><p>[partition_spec] determines whether to export to partitioned table(s) and
how to partition the data.</p>
<p>If [partition_spec] is unset or [partition_spec.partition_key] is unset or
<code>PARTITION_KEY_UNSPECIFIED</code>, the snapshot results will be exported to
non-partitioned table(s). [force] will decide whether to overwrite existing
table(s).</p>
<p>If [partition_spec] is specified. First, the snapshot results will be
written to partitioned table(s) with two additional timestamp columns,
readTime and requestTime, one of which will be the partition key. Secondly,
in the case when any destination table already exists, it will first try to
update existing table&apos;s schema as necessary by appending additional
columns. Then, if [force] is <code>TRUE</code>, the corresponding partition will be
overwritten by the snapshot results (data in different partitions will
remain intact); if [force] is unset or <code>FALSE</code>, it will append the data. An
error will be returned if the schema update or data appension fails.</p>
</div>
  <strong>Property Value</strong>
  <table class="responsive">
    <tbody>
      <tr>
        <td><strong>Type</strong></td>
        <td><strong>Description</strong></td>
      </tr>
      <tr>
        <td><a class="xref" href="Google.Cloud.Asset.V1.PartitionSpec.html">PartitionSpec</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <a id="Google_Cloud_Asset_V1_BigQueryDestination_SeparateTablesPerAssetType_" data-uid="Google.Cloud.Asset.V1.BigQueryDestination.SeparateTablesPerAssetType*"></a>
  <h3 id="Google_Cloud_Asset_V1_BigQueryDestination_SeparateTablesPerAssetType" data-uid="Google.Cloud.Asset.V1.BigQueryDestination.SeparateTablesPerAssetType" class="notranslate">SeparateTablesPerAssetType</h3>
  <div class="codewrapper">
    <pre class="prettyprint"><code>public bool SeparateTablesPerAssetType { get; set; }</code></pre>
  </div>
  <div class="markdown level1 summary"><p>If this flag is <code>TRUE</code>, the snapshot results will be written to one or
multiple tables, each of which contains results of one asset type. The
[force] and [partition_spec] fields will apply to each of them.</p>
<p>Field [table] will be concatenated with &quot;<em>&quot; and the asset type names (see
<a href="https://cloud.google.com/asset-inventory/docs/supported-asset-types">https://cloud.google.com/asset-inventory/docs/supported-asset-types</a> for
supported asset types) to construct per-asset-type table names, in which
all non-alphanumeric characters like &quot;.&quot; and &quot;/&quot; will be substituted by
&quot;</em>&quot;. Example: if field [table] is &quot;mytable&quot; and snapshot results
contain &quot;storage.googleapis.com/Bucket&quot; assets, the corresponding table
name will be &quot;mytable_storage_googleapis_com_Bucket&quot;. If any of these
tables does not exist, a new table with the concatenated name will be
created.</p>
<p>When [content_type] in the ExportAssetsRequest is <code>RESOURCE</code>, the schema of
each table will include RECORD-type columns mapped to the nested fields in
the Asset.resource.data field of that asset type (up to the 15 nested level
BigQuery supports
(<a href="https://cloud.google.com/bigquery/docs/nested-repeated#limitations">https://cloud.google.com/bigquery/docs/nested-repeated#limitations</a>)). The
fields in &gt;15 nested levels will be stored in JSON format string as a child
column of its parent RECORD column.</p>
<p>If error occurs when exporting to any table, the whole export call will
return an error but the export results that already succeed will persist.
Example: if exporting to table_type_A succeeds when exporting to
table_type_B fails during one export call, the results in table_type_A will
persist and there will not be partial results persisting in a table.</p>
</div>
  <strong>Property Value</strong>
  <table class="responsive">
    <tbody>
      <tr>
        <td><strong>Type</strong></td>
        <td><strong>Description</strong></td>
      </tr>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <a id="Google_Cloud_Asset_V1_BigQueryDestination_Table_" data-uid="Google.Cloud.Asset.V1.BigQueryDestination.Table*"></a>
  <h3 id="Google_Cloud_Asset_V1_BigQueryDestination_Table" data-uid="Google.Cloud.Asset.V1.BigQueryDestination.Table" class="notranslate">Table</h3>
  <div class="codewrapper">
    <pre class="prettyprint"><code>public string Table { get; set; }</code></pre>
  </div>
  <div class="markdown level1 summary"><p>Required. The BigQuery table to which the snapshot result should be
written. If this table does not exist, a new table with the given name
will be created.</p>
</div>
  <strong>Property Value</strong>
  <table class="responsive">
    <tbody>
      <tr>
        <td><strong>Type</strong></td>
        <td><strong>Description</strong></td>
      </tr>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
</article>
    </div>
    {% endverbatim %}
  </body>
</html>
