Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Update experimental methods documentation to @internalapi #3552

Merged
merged 2 commits into from
Oct 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

package com.google.cloud.bigquery;

import com.google.api.core.InternalApi;
import com.google.cloud.bigquery.JobInfo.CreateDisposition;
import com.google.cloud.bigquery.JobInfo.SchemaUpdateOption;
import com.google.cloud.bigquery.JobInfo.WriteDisposition;
Expand Down Expand Up @@ -99,17 +100,17 @@ interface Builder {
Builder setIgnoreUnknownValues(Boolean ignoreUnknownValues);

/**
* [Experimental] Sets options allowing the schema of the destination table to be updated as a
* side effect of the load job. Schema update options are supported in two cases: when
* writeDisposition is WRITE_APPEND; when writeDisposition is WRITE_TRUNCATE and the destination
* table is a partition of a table, specified by partition decorators. For normal tables,
* WRITE_TRUNCATE will always overwrite the schema.
* Sets options allowing the schema of the destination table to be updated as a side effect of
* the load job. Schema update options are supported in two cases: when writeDisposition is
* WRITE_APPEND; when writeDisposition is WRITE_TRUNCATE and the destination table is a
* partition of a table, specified by partition decorators. For normal tables, WRITE_TRUNCATE
* will always overwrite the schema.
*/
@InternalApi
Builder setSchemaUpdateOptions(List<SchemaUpdateOption> schemaUpdateOptions);

/**
* [Experimental] Sets automatic inference of the options and schema for CSV and JSON sources.
*/
/** Sets automatic inference of the options and schema for CSV and JSON sources. */
@InternalApi
Builder setAutodetect(Boolean autodetect);

/** Sets the time partitioning specification for the destination table. */
Expand Down Expand Up @@ -202,18 +203,19 @@ interface Builder {
DatastoreBackupOptions getDatastoreBackupOptions();

/**
* [Experimental] Returns options allowing the schema of the destination table to be updated as a
* side effect of the load job. Schema update options are supported in two cases: when
* writeDisposition is WRITE_APPEND; when writeDisposition is WRITE_TRUNCATE and the destination
* table is a partition of a table, specified by partition decorators. For normal tables,
* WRITE_TRUNCATE will always overwrite the schema.
* Returns options allowing the schema of the destination table to be updated as a side effect of
* the load job. Schema update options are supported in two cases: when writeDisposition is
* WRITE_APPEND; when writeDisposition is WRITE_TRUNCATE and the destination table is a partition
* of a table, specified by partition decorators. For normal tables, WRITE_TRUNCATE will always
* overwrite the schema.
*/
@InternalApi
List<SchemaUpdateOption> getSchemaUpdateOptions();

/**
* [Experimental] Returns whether automatic inference of the options and schema for CSV and JSON
* sources is set.
* Returns whether automatic inference of the options and schema for CSV and JSON sources is set.
*/
@InternalApi
Boolean getAutodetect();

/** Returns the time partitioning specification defined for the destination table. */
Expand Down
Loading