Enum PartitionSpec.PartitionKey

java.lang.Object
java.lang.Enum<PartitionSpec.PartitionKey>
com.google.cloud.asset.v1.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 Details

    • PARTITION_KEY_UNSPECIFIED

      public static final PartitionSpec.PartitionKey PARTITION_KEY_UNSPECIFIED
       Unspecified partition key. If used, it means using non-partitioned table.
       
      PARTITION_KEY_UNSPECIFIED = 0;
    • READ_TIME

      public static final PartitionSpec.PartitionKey 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

      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 partitioned by the
       requestTime column, an additional timestamp column representing when the
       request was received.
       
      REQUEST_TIME = 2;
    • UNRECOGNIZED

      public static final PartitionSpec.PartitionKey UNRECOGNIZED
  • Field Details

    • PARTITION_KEY_UNSPECIFIED_VALUE

      public static final int PARTITION_KEY_UNSPECIFIED_VALUE
       Unspecified 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_VALUE
       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;
      See Also:
    • REQUEST_TIME_VALUE

      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 partitioned by the
       requestTime column, an additional timestamp column representing when the
       request was received.
       
      REQUEST_TIME = 2;
      See Also:
  • Method Details

    • values

      public static PartitionSpec.PartitionKey[] 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

      public static PartitionSpec.PartitionKey valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      @Deprecated public static PartitionSpec.PartitionKey valueOf(int value)
      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 name
      NullPointerException - if the argument is null
    • forNumber

      public static PartitionSpec.PartitionKey forNumber(int value)
      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:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.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 name
      NullPointerException - if the argument is null