public static final class BigQueryOptions.Builder extends GeneratedMessage.Builder<BigQueryOptions.Builder> implements BigQueryOptionsOrBuilderOptions that change functionality of a sink exporting data to BigQuery.
Protobuf type google.logging.v2.BigQueryOptions
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > BigQueryOptions.BuilderImplements
BigQueryOptionsOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public BigQueryOptions build()| Returns | |
|---|---|
| Type | Description |
BigQueryOptions |
|
buildPartial()
public BigQueryOptions buildPartial()| Returns | |
|---|---|
| Type | Description |
BigQueryOptions |
|
clear()
public BigQueryOptions.Builder clear()| Returns | |
|---|---|
| Type | Description |
BigQueryOptions.Builder |
|
clearUsePartitionedTables()
public BigQueryOptions.Builder clearUsePartitionedTables()Optional. Whether to use BigQuery's partition tables. By default, Cloud Logging creates dated tables based on the log entries' timestamps, e.g. syslog_20170523. With partitioned tables the date suffix is no longer present and special query syntax has to be used instead. In both cases, tables are sharded based on UTC timezone.
bool use_partitioned_tables = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
BigQueryOptions.Builder |
This builder for chaining. |
clearUsesTimestampColumnPartitioning()
public BigQueryOptions.Builder clearUsesTimestampColumnPartitioning()Output only. True if new timestamp column based partitioning is in use, false if legacy ingestion-time partitioning is in use.
All new sinks will have this field set true and will use timestamp column based partitioning. If use_partitioned_tables is false, this value has no meaning and will be false. Legacy sinks using partitioned tables will have this field set to false.
bool uses_timestamp_column_partitioning = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
BigQueryOptions.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public BigQueryOptions getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
BigQueryOptions |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getUsePartitionedTables()
public boolean getUsePartitionedTables()Optional. Whether to use BigQuery's partition tables. By default, Cloud Logging creates dated tables based on the log entries' timestamps, e.g. syslog_20170523. With partitioned tables the date suffix is no longer present and special query syntax has to be used instead. In both cases, tables are sharded based on UTC timezone.
bool use_partitioned_tables = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The usePartitionedTables. |
getUsesTimestampColumnPartitioning()
public boolean getUsesTimestampColumnPartitioning()Output only. True if new timestamp column based partitioning is in use, false if legacy ingestion-time partitioning is in use.
All new sinks will have this field set true and will use timestamp column based partitioning. If use_partitioned_tables is false, this value has no meaning and will be false. Legacy sinks using partitioned tables will have this field set to false.
bool uses_timestamp_column_partitioning = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
The usesTimestampColumnPartitioning. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(BigQueryOptions other)
public BigQueryOptions.Builder mergeFrom(BigQueryOptions other)| Parameter | |
|---|---|
| Name | Description |
other |
BigQueryOptions |
| Returns | |
|---|---|
| Type | Description |
BigQueryOptions.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public BigQueryOptions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
BigQueryOptions.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public BigQueryOptions.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
BigQueryOptions.Builder |
|
setUsePartitionedTables(boolean value)
public BigQueryOptions.Builder setUsePartitionedTables(boolean value)Optional. Whether to use BigQuery's partition tables. By default, Cloud Logging creates dated tables based on the log entries' timestamps, e.g. syslog_20170523. With partitioned tables the date suffix is no longer present and special query syntax has to be used instead. In both cases, tables are sharded based on UTC timezone.
bool use_partitioned_tables = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe usePartitionedTables to set. |
| Returns | |
|---|---|
| Type | Description |
BigQueryOptions.Builder |
This builder for chaining. |
setUsesTimestampColumnPartitioning(boolean value)
public BigQueryOptions.Builder setUsesTimestampColumnPartitioning(boolean value)Output only. True if new timestamp column based partitioning is in use, false if legacy ingestion-time partitioning is in use.
All new sinks will have this field set true and will use timestamp column based partitioning. If use_partitioned_tables is false, this value has no meaning and will be false. Legacy sinks using partitioned tables will have this field set to false.
bool uses_timestamp_column_partitioning = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe usesTimestampColumnPartitioning to set. |
| Returns | |
|---|---|
| Type | Description |
BigQueryOptions.Builder |
This builder for chaining. |