public static 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.v1.PartitionSpec.PartitionKey
Enum Constant and Description |
---|
PARTITION_KEY_UNSPECIFIED
Unspecified partition key.
|
READ_TIME
The time when the snapshot is taken.
|
REQUEST_TIME
The time when the request is received and started to be processed.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
PARTITION_KEY_UNSPECIFIED_VALUE
Unspecified partition key.
|
static int |
READ_TIME_VALUE
The time when the snapshot is taken.
|
static int |
REQUEST_TIME_VALUE
The time when the request is received and started to be processed.
|
Modifier and Type | Method and Description |
---|---|
static PartitionSpec.PartitionKey |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<PartitionSpec.PartitionKey> |
internalGetValueMap() |
static PartitionSpec.PartitionKey |
valueOf(Descriptors.EnumValueDescriptor desc) |
static PartitionSpec.PartitionKey |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static PartitionSpec.PartitionKey |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PartitionSpec.PartitionKey[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PartitionSpec.PartitionKey PARTITION_KEY_UNSPECIFIED
Unspecified partition key. If used, it means using non-partitioned table.
PARTITION_KEY_UNSPECIFIED = 0;
public static final PartitionSpec.PartitionKey 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;
public static final PartitionSpec.PartitionKey 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;
public static final PartitionSpec.PartitionKey UNRECOGNIZED
public static final int PARTITION_KEY_UNSPECIFIED_VALUE
Unspecified partition key. If used, it means using non-partitioned table.
PARTITION_KEY_UNSPECIFIED = 0;
public static final int 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;
public static final int 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;
public static PartitionSpec.PartitionKey[] values()
for (PartitionSpec.PartitionKey c : PartitionSpec.PartitionKey.values()) System.out.println(c);
public static PartitionSpec.PartitionKey valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface Internal.EnumLite
getNumber
in interface ProtocolMessageEnum
@Deprecated public static PartitionSpec.PartitionKey valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static PartitionSpec.PartitionKey forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static Internal.EnumLiteMap<PartitionSpec.PartitionKey> internalGetValueMap()
public final Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface ProtocolMessageEnum
public final Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface ProtocolMessageEnum
public static final Descriptors.EnumDescriptor getDescriptor()
public static PartitionSpec.PartitionKey valueOf(Descriptors.EnumValueDescriptor desc)
Copyright © 2022 Google LLC. All rights reserved.