Package com.google.cloud.pubsublite
Enum SeekTarget.Kind
- java.lang.Object
-
- java.lang.Enum<SeekTarget.Kind>
-
- com.google.cloud.pubsublite.SeekTarget.Kind
-
- All Implemented Interfaces:
Serializable
,Comparable<SeekTarget.Kind>
- Enclosing class:
- SeekTarget
public static enum SeekTarget.Kind extends Enum<SeekTarget.Kind>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BACKLOG_LOCATION
EVENT_TIME
PUBLISH_TIME
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SeekTarget.Kind
valueOf(String name)
Returns the enum constant of this type with the specified name.static SeekTarget.Kind[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BACKLOG_LOCATION
public static final SeekTarget.Kind BACKLOG_LOCATION
-
PUBLISH_TIME
public static final SeekTarget.Kind PUBLISH_TIME
-
EVENT_TIME
public static final SeekTarget.Kind EVENT_TIME
-
-
Method Detail
-
values
public static SeekTarget.Kind[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SeekTarget.Kind c : SeekTarget.Kind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SeekTarget.Kind 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 nameNullPointerException
- if the argument is null
-
-