public enum MqttState extends Enum<MqttState> implements ProtocolMessageEnum
Indicates whether an MQTT connection is enabled or disabled. See the field description for details.Protobuf enum
google.cloud.iot.v1.MqttState
Enum Constant and Description |
---|
MQTT_DISABLED
Disables a MQTT connection.
|
MQTT_ENABLED
Enables a MQTT connection.
|
MQTT_STATE_UNSPECIFIED
No MQTT state specified.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
MQTT_DISABLED_VALUE
Disables a MQTT connection.
|
static int |
MQTT_ENABLED_VALUE
Enables a MQTT connection.
|
static int |
MQTT_STATE_UNSPECIFIED_VALUE
No MQTT state specified.
|
Modifier and Type | Method and Description |
---|---|
static MqttState |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<MqttState> |
internalGetValueMap() |
static MqttState |
valueOf(Descriptors.EnumValueDescriptor desc) |
static MqttState |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static MqttState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MqttState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MqttState MQTT_STATE_UNSPECIFIED
No MQTT state specified. If not specified, MQTT will be enabled by default.
MQTT_STATE_UNSPECIFIED = 0;
public static final MqttState MQTT_ENABLED
Enables a MQTT connection.
MQTT_ENABLED = 1;
public static final MqttState MQTT_DISABLED
Disables a MQTT connection.
MQTT_DISABLED = 2;
public static final MqttState UNRECOGNIZED
public static final int MQTT_STATE_UNSPECIFIED_VALUE
No MQTT state specified. If not specified, MQTT will be enabled by default.
MQTT_STATE_UNSPECIFIED = 0;
public static final int MQTT_ENABLED_VALUE
Enables a MQTT connection.
MQTT_ENABLED = 1;
public static final int MQTT_DISABLED_VALUE
Disables a MQTT connection.
MQTT_DISABLED = 2;
public static MqttState[] values()
for (MqttState c : MqttState.values()) System.out.println(c);
public static MqttState 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 MqttState valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static MqttState forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static Internal.EnumLiteMap<MqttState> 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 MqttState valueOf(Descriptors.EnumValueDescriptor desc)
Copyright © 2022 Google LLC. All rights reserved.