public enum

DynamicProto.DurationPartType

extends java.lang.Enum<DynamicProto.DurationPartType>

 java.lang.Object

↳java.lang.Enum<DynamicProto.DurationPartType>

↳androidx.wear.protolayout.expression.proto.DynamicProto.DurationPartType

Overview

 The duration part to retrieve using GetDurationPartOp.
 
Protobuf enum androidx.wear.protolayout.expression.proto.DurationPartType

Summary

Enum Constants
DURATION_PART_TYPE_DAYS
 Number of days part in the duration.
DURATION_PART_TYPE_HOURS
 Number of hours part in the duration.
DURATION_PART_TYPE_MINUTES
 Number of minutes part in the duration.
DURATION_PART_TYPE_SECONDS
 Number of seconds part in the duration.
DURATION_PART_TYPE_TOTAL_DAYS
 Total number of days in a duration.
DURATION_PART_TYPE_TOTAL_HOURS
 Total number of hours in a duration.
DURATION_PART_TYPE_TOTAL_MINUTES
 Total number of minutes in a duration.
DURATION_PART_TYPE_TOTAL_SECONDS
 Total number of seconds in a duration.
DURATION_PART_TYPE_UNDEFINED
 Undefined duration part type.
UNRECOGNIZED
Fields
public static final intDURATION_PART_TYPE_DAYS_VALUE

 Number of days part in the duration.

public static final intDURATION_PART_TYPE_HOURS_VALUE

 Number of hours part in the duration.

public static final intDURATION_PART_TYPE_MINUTES_VALUE

 Number of minutes part in the duration.

public static final intDURATION_PART_TYPE_SECONDS_VALUE

 Number of seconds part in the duration.

public static final intDURATION_PART_TYPE_TOTAL_DAYS_VALUE

 Total number of days in a duration.

public static final intDURATION_PART_TYPE_TOTAL_HOURS_VALUE

 Total number of hours in a duration.

public static final intDURATION_PART_TYPE_TOTAL_MINUTES_VALUE

 Total number of minutes in a duration.

public static final intDURATION_PART_TYPE_TOTAL_SECONDS_VALUE

 Total number of seconds in a duration.

public static final intDURATION_PART_TYPE_UNDEFINED_VALUE

 Undefined duration part type.

Methods
public static DynamicProto.DurationPartTypeforNumber(int value)

public final intgetNumber()

public static <any>internalGetValueMap()

public static com.google.protobuf.Internal.EnumVerifierinternalGetVerifier()

public static DynamicProto.DurationPartTypevalueOf(int value)

public static DynamicProto.DurationPartTypevalueOf(java.lang.String name)

public static DynamicProto.DurationPartTypevalues()

from java.lang.Enum<E>clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
from java.lang.ObjectgetClass, notify, notifyAll, wait, wait, wait

Enum Constants

DURATION_PART_TYPE_UNDEFINED

 Undefined duration part type.
 
DURATION_PART_TYPE_UNDEFINED = 0;

DURATION_PART_TYPE_TOTAL_DAYS

 Total number of days in a duration. The fraction part of the result will be
 truncated. This is based on the standard definition of a day as 24 hours.
 Notice that the duration can be negative, in which case total number of
 days will be also negative.
 
DURATION_PART_TYPE_TOTAL_DAYS = 1;

DURATION_PART_TYPE_TOTAL_HOURS

 Total number of hours in a duration. The fraction part of the result will
 be truncated. Notice that the duration can be negative, in which case total
 number of hours will be also negative.
 
DURATION_PART_TYPE_TOTAL_HOURS = 2;

DURATION_PART_TYPE_TOTAL_MINUTES

 Total number of minutes in a duration. The fraction part of the result will
 be truncated. Notice that the duration can be negative, in which case total
 number of minutes will be also negative.
 
DURATION_PART_TYPE_TOTAL_MINUTES = 3;

DURATION_PART_TYPE_TOTAL_SECONDS

 Total number of seconds in a duration. Notice that the duration can be
 negative, in which case total number of seconds will be also negative.
 
DURATION_PART_TYPE_TOTAL_SECONDS = 4;

DURATION_PART_TYPE_DAYS

 Number of days part in the duration. This represents the absolute value of
 the total number of days in the duration based on the 24 hours day
 definition. The fraction part of the result will be truncated.
 
DURATION_PART_TYPE_DAYS = 5;

DURATION_PART_TYPE_HOURS

 Number of hours part in the duration. This represents the absolute value of
 remaining hours when dividing total hours by hours in a day (24 hours).
 
DURATION_PART_TYPE_HOURS = 6;

DURATION_PART_TYPE_MINUTES

 Number of minutes part in the duration. This represents the absolute value
 of remaining minutes when dividing total minutes by minutes in an hour (60
 minutes).
 
DURATION_PART_TYPE_MINUTES = 7;

DURATION_PART_TYPE_SECONDS

 Number of seconds part in the duration. This represents the absolute value
 of remaining seconds when dividing total seconds by seconds in a minute (60
 seconds).
 
DURATION_PART_TYPE_SECONDS = 8;

UNRECOGNIZED

Fields

public static final int DURATION_PART_TYPE_UNDEFINED_VALUE

 Undefined duration part type.
 
DURATION_PART_TYPE_UNDEFINED = 0;

public static final int DURATION_PART_TYPE_TOTAL_DAYS_VALUE

 Total number of days in a duration. The fraction part of the result will be
 truncated. This is based on the standard definition of a day as 24 hours.
 Notice that the duration can be negative, in which case total number of
 days will be also negative.
 
DURATION_PART_TYPE_TOTAL_DAYS = 1;

public static final int DURATION_PART_TYPE_TOTAL_HOURS_VALUE

 Total number of hours in a duration. The fraction part of the result will
 be truncated. Notice that the duration can be negative, in which case total
 number of hours will be also negative.
 
DURATION_PART_TYPE_TOTAL_HOURS = 2;

public static final int DURATION_PART_TYPE_TOTAL_MINUTES_VALUE

 Total number of minutes in a duration. The fraction part of the result will
 be truncated. Notice that the duration can be negative, in which case total
 number of minutes will be also negative.
 
DURATION_PART_TYPE_TOTAL_MINUTES = 3;

public static final int DURATION_PART_TYPE_TOTAL_SECONDS_VALUE

 Total number of seconds in a duration. Notice that the duration can be
 negative, in which case total number of seconds will be also negative.
 
DURATION_PART_TYPE_TOTAL_SECONDS = 4;

public static final int DURATION_PART_TYPE_DAYS_VALUE

 Number of days part in the duration. This represents the absolute value of
 the total number of days in the duration based on the 24 hours day
 definition. The fraction part of the result will be truncated.
 
DURATION_PART_TYPE_DAYS = 5;

public static final int DURATION_PART_TYPE_HOURS_VALUE

 Number of hours part in the duration. This represents the absolute value of
 remaining hours when dividing total hours by hours in a day (24 hours).
 
DURATION_PART_TYPE_HOURS = 6;

public static final int DURATION_PART_TYPE_MINUTES_VALUE

 Number of minutes part in the duration. This represents the absolute value
 of remaining minutes when dividing total minutes by minutes in an hour (60
 minutes).
 
DURATION_PART_TYPE_MINUTES = 7;

public static final int DURATION_PART_TYPE_SECONDS_VALUE

 Number of seconds part in the duration. This represents the absolute value
 of remaining seconds when dividing total seconds by seconds in a minute (60
 seconds).
 
DURATION_PART_TYPE_SECONDS = 8;

Methods

public static DynamicProto.DurationPartType values()

public static DynamicProto.DurationPartType valueOf(java.lang.String name)

public final int getNumber()

public static DynamicProto.DurationPartType valueOf(int value)

Deprecated: Use DynamicProto.DurationPartType.forNumber(int) instead.

Parameters:

value: The number of the enum to look for.

Returns:

The enum associated with the given number.

public static DynamicProto.DurationPartType forNumber(int value)

public static <any> internalGetValueMap()

public static com.google.protobuf.Internal.EnumVerifier internalGetVerifier()