Package io.hstream.internal
Enum ResourceType
- java.lang.Object
-
- java.lang.Enum<ResourceType>
-
- io.hstream.internal.ResourceType
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<ResourceType>
public enum ResourceType extends Enum<ResourceType> implements com.google.protobuf.ProtocolMessageEnum
Protobuf enumhstream.server.ResourceType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ResConnectorResConnector = 4;ResQueryResQuery = 5;ResShardResShard = 2;ResShardReaderResShardReader = 3;ResStreamResStream = 0;ResSubscriptionResSubscription = 1;ResViewResView = 6;UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static intResConnector_VALUEResConnector = 4;static intResQuery_VALUEResQuery = 5;static intResShard_VALUEResShard = 2;static intResShardReader_VALUEResShardReader = 3;static intResStream_VALUEResStream = 0;static intResSubscription_VALUEResSubscription = 1;static intResView_VALUEResView = 6;
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static ResourceTypeforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<ResourceType>internalGetValueMap()static ResourceTypevalueOf(int value)Deprecated.static ResourceTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static ResourceTypevalueOf(String name)Returns the enum constant of this type with the specified name.static ResourceType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ResStream
public static final ResourceType ResStream
ResStream = 0;
-
ResSubscription
public static final ResourceType ResSubscription
ResSubscription = 1;
-
ResShard
public static final ResourceType ResShard
ResShard = 2;
-
ResShardReader
public static final ResourceType ResShardReader
ResShardReader = 3;
-
ResConnector
public static final ResourceType ResConnector
ResConnector = 4;
-
ResQuery
public static final ResourceType ResQuery
ResQuery = 5;
-
ResView
public static final ResourceType ResView
ResView = 6;
-
UNRECOGNIZED
public static final ResourceType UNRECOGNIZED
-
-
Field Detail
-
ResStream_VALUE
public static final int ResStream_VALUE
ResStream = 0;- See Also:
- Constant Field Values
-
ResSubscription_VALUE
public static final int ResSubscription_VALUE
ResSubscription = 1;- See Also:
- Constant Field Values
-
ResShard_VALUE
public static final int ResShard_VALUE
ResShard = 2;- See Also:
- Constant Field Values
-
ResShardReader_VALUE
public static final int ResShardReader_VALUE
ResShardReader = 3;- See Also:
- Constant Field Values
-
ResConnector_VALUE
public static final int ResConnector_VALUE
ResConnector = 4;- See Also:
- Constant Field Values
-
ResQuery_VALUE
public static final int ResQuery_VALUE
ResQuery = 5;- See Also:
- Constant Field Values
-
ResView_VALUE
public static final int ResView_VALUE
ResView = 6;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static ResourceType[] 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 (ResourceType c : ResourceType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ResourceType 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
-
getNumber
public final int getNumber()
- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static ResourceType 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 nameNullPointerException- if the argument is null
-
forNumber
public static ResourceType 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<ResourceType> 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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static ResourceType 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
-
-