public enum HttpState extends Enum<HttpState> implements ProtocolMessageEnum
Indicates whether DeviceService (HTTP) is enabled or disabled for the registry. See the field description for details.Protobuf enum
google.cloud.iot.v1.HttpState
Enum Constant and Description |
---|
HTTP_DISABLED
Disables DeviceService (HTTP) service for the registry.
|
HTTP_ENABLED
Enables DeviceService (HTTP) service for the registry.
|
HTTP_STATE_UNSPECIFIED
No HTTP state specified.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
HTTP_DISABLED_VALUE
Disables DeviceService (HTTP) service for the registry.
|
static int |
HTTP_ENABLED_VALUE
Enables DeviceService (HTTP) service for the registry.
|
static int |
HTTP_STATE_UNSPECIFIED_VALUE
No HTTP state specified.
|
Modifier and Type | Method and Description |
---|---|
static HttpState |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<HttpState> |
internalGetValueMap() |
static HttpState |
valueOf(Descriptors.EnumValueDescriptor desc) |
static HttpState |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static HttpState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HttpState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpState HTTP_STATE_UNSPECIFIED
No HTTP state specified. If not specified, DeviceService will be enabled by default.
HTTP_STATE_UNSPECIFIED = 0;
public static final HttpState HTTP_ENABLED
Enables DeviceService (HTTP) service for the registry.
HTTP_ENABLED = 1;
public static final HttpState HTTP_DISABLED
Disables DeviceService (HTTP) service for the registry.
HTTP_DISABLED = 2;
public static final HttpState UNRECOGNIZED
public static final int HTTP_STATE_UNSPECIFIED_VALUE
No HTTP state specified. If not specified, DeviceService will be enabled by default.
HTTP_STATE_UNSPECIFIED = 0;
public static final int HTTP_ENABLED_VALUE
Enables DeviceService (HTTP) service for the registry.
HTTP_ENABLED = 1;
public static final int HTTP_DISABLED_VALUE
Disables DeviceService (HTTP) service for the registry.
HTTP_DISABLED = 2;
public static HttpState[] values()
for (HttpState c : HttpState.values()) System.out.println(c);
public static HttpState valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface Internal.EnumLite
getNumber
in interface ProtocolMessageEnum
@Deprecated public static HttpState valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static HttpState forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static Internal.EnumLiteMap<HttpState> internalGetValueMap()
public final Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface ProtocolMessageEnum
public final Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface ProtocolMessageEnum
public static final Descriptors.EnumDescriptor getDescriptor()
public static HttpState valueOf(Descriptors.EnumValueDescriptor desc)
Copyright © 2022 Google LLC. All rights reserved.