Enum DataRetentionSettings.RetentionDuration

java.lang.Object
java.lang.Enum<DataRetentionSettings.RetentionDuration>
com.google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<DataRetentionSettings.RetentionDuration>
Enclosing class:
DataRetentionSettings

public static enum DataRetentionSettings.RetentionDuration extends Enum<DataRetentionSettings.RetentionDuration> implements com.google.protobuf.ProtocolMessageEnum
 Valid values for the data retention duration.
 
Protobuf enum google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration
  • Enum Constant Details

  • Field Details

    • RETENTION_DURATION_UNSPECIFIED_VALUE

      public static final int RETENTION_DURATION_UNSPECIFIED_VALUE
       Data retention time duration is not specified.
       
      RETENTION_DURATION_UNSPECIFIED = 0;
      See Also:
    • TWO_MONTHS_VALUE

      public static final int TWO_MONTHS_VALUE
       The data retention time duration is 2 months.
       
      TWO_MONTHS = 1;
      See Also:
    • FOURTEEN_MONTHS_VALUE

      public static final int FOURTEEN_MONTHS_VALUE
       The data retention time duration is 14 months.
       
      FOURTEEN_MONTHS = 3;
      See Also:
    • TWENTY_SIX_MONTHS_VALUE

      public static final int TWENTY_SIX_MONTHS_VALUE
       The data retention time duration is 26 months.
       Available to 360 properties only. Available for event data only.
       
      TWENTY_SIX_MONTHS = 4;
      See Also:
    • THIRTY_EIGHT_MONTHS_VALUE

      public static final int THIRTY_EIGHT_MONTHS_VALUE
       The data retention time duration is 38 months.
       Available to 360 properties only. Available for event data only.
       
      THIRTY_EIGHT_MONTHS = 5;
      See Also:
    • FIFTY_MONTHS_VALUE

      public static final int FIFTY_MONTHS_VALUE
       The data retention time duration is 50 months.
       Available to 360 properties only. Available for event data only.
       
      FIFTY_MONTHS = 6;
      See Also:
  • Method Details

    • values

      public static DataRetentionSettings.RetentionDuration[] 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 DataRetentionSettings.RetentionDuration 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 DataRetentionSettings.RetentionDuration 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 DataRetentionSettings.RetentionDuration 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<DataRetentionSettings.RetentionDuration> 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 DataRetentionSettings.RetentionDuration 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