Package com.google.cloud.asset.v1
Enum PartitionSpec.PartitionKey
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<PartitionSpec.PartitionKey>
- Enclosing class:
- PartitionSpec
public static enum PartitionSpec.PartitionKey
extends Enum<PartitionSpec.PartitionKey>
implements com.google.protobuf.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 Summary
Enum ConstantsEnum ConstantDescriptionUnspecified partition key.The time when the snapshot is taken.The time when the request is received and started to be processed. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intUnspecified partition key.static final intThe time when the snapshot is taken.static final intThe time when the request is received and started to be processed. -
Method Summary
Modifier and TypeMethodDescriptionstatic PartitionSpec.PartitionKeyforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<PartitionSpec.PartitionKey>static PartitionSpec.PartitionKeyvalueOf(int value) Deprecated.static PartitionSpec.PartitionKeyvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static PartitionSpec.PartitionKeyReturns 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.
-
Enum Constant Details
-
PARTITION_KEY_UNSPECIFIED
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 partitioned 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 partitioned by the requestTime column, an additional timestamp column representing when the request was received.
REQUEST_TIME = 2; -
UNRECOGNIZED
-
-
Field Details
-
PARTITION_KEY_UNSPECIFIED_VALUE
public static final int PARTITION_KEY_UNSPECIFIED_VALUEUnspecified partition key. If used, it means using non-partitioned table.
PARTITION_KEY_UNSPECIFIED = 0;- See Also:
-
READ_TIME_VALUE
public static final int READ_TIME_VALUEThe time when the snapshot is taken. If specified as partition key, the result table(s) is partitioned 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;- See Also:
-
REQUEST_TIME_VALUE
public static final int REQUEST_TIME_VALUEThe time when the request is received and started to be processed. If specified as partition key, the result table(s) is partitioned by the requestTime column, an additional timestamp column representing when the request was received.
REQUEST_TIME = 2;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<PartitionSpec.PartitionKey> internalGetValueMap() -
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
public static PartitionSpec.PartitionKey valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-