Enum PartitionSpec.PartitionKey (3.58.0)

public enum PartitionSpec.PartitionKey extends Enum<PartitionSpec.PartitionKey> implements ProtocolMessageEnum

This enum is used to determine the partition key column when exporting assets to BigQuery partitioned table(s). Note that, if the partition key is a timestamp column, the actual partition is based on its date value (expressed in UTC. see details in https://cloud.google.com/bigquery/docs/partitioned-tables#date_timestamp_partitioned_tables).

Protobuf enum google.cloud.asset.v1p7beta1.PartitionSpec.PartitionKey

Implements

ProtocolMessageEnum

Static Fields

Name Description
PARTITION_KEY_UNSPECIFIED

Unspecified partition key. If used, it means using non-partitioned table.

PARTITION_KEY_UNSPECIFIED = 0;

PARTITION_KEY_UNSPECIFIED_VALUE

Unspecified partition key. If used, it means using non-partitioned table.

PARTITION_KEY_UNSPECIFIED = 0;

READ_TIME

The time when the snapshot is taken. If specified as partition key, the result table(s) is partitoned by the additional timestamp column, readTime. If [read_time] in ExportAssetsRequest is specified, the readTime column's value will be the same as it. Otherwise, its value will be the current time that is used to take the snapshot.

READ_TIME = 1;

READ_TIME_VALUE

The time when the snapshot is taken. If specified as partition key, the result table(s) is partitoned by the additional timestamp column, readTime. If [read_time] in ExportAssetsRequest is specified, the readTime column's value will be the same as it. Otherwise, its value will be the current time that is used to take the snapshot.

READ_TIME = 1;

REQUEST_TIME

The time when the request is received and started to be processed. If specified as partition key, the result table(s) is partitoned by the requestTime column, an additional timestamp column representing when the request was received.

REQUEST_TIME = 2;

REQUEST_TIME_VALUE

The time when the request is received and started to be processed. If specified as partition key, the result table(s) is partitoned by the requestTime column, an additional timestamp column representing when the request was received.

REQUEST_TIME = 2;

UNRECOGNIZED

Static Methods

Name Description
forNumber(int value)
getDescriptor()
internalGetValueMap()
valueOf(Descriptors.EnumValueDescriptor desc)
valueOf(int value)

Deprecated. Use #forNumber(int) instead.

valueOf(String name)
values()

Methods

Name Description
getDescriptorForType()
getNumber()
getValueDescriptor()