public enum GatewayAuthMethod extends Enum<GatewayAuthMethod> implements ProtocolMessageEnum
The gateway authorization/authentication method. This setting determines how Cloud IoT Core authorizes/authenticate devices to access the gateway.Protobuf enum
google.cloud.iot.v1.GatewayAuthMethod
Enum Constant and Description |
---|
ASSOCIATION_AND_DEVICE_AUTH_TOKEN
The device is authenticated through both device credentials and gateway
association.
|
ASSOCIATION_ONLY
The device is authenticated through the gateway association only.
|
DEVICE_AUTH_TOKEN_ONLY
The device is authenticated through its own credentials.
|
GATEWAY_AUTH_METHOD_UNSPECIFIED
No authentication/authorization method specified.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
ASSOCIATION_AND_DEVICE_AUTH_TOKEN_VALUE
The device is authenticated through both device credentials and gateway
association.
|
static int |
ASSOCIATION_ONLY_VALUE
The device is authenticated through the gateway association only.
|
static int |
DEVICE_AUTH_TOKEN_ONLY_VALUE
The device is authenticated through its own credentials.
|
static int |
GATEWAY_AUTH_METHOD_UNSPECIFIED_VALUE
No authentication/authorization method specified.
|
Modifier and Type | Method and Description |
---|---|
static GatewayAuthMethod |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<GatewayAuthMethod> |
internalGetValueMap() |
static GatewayAuthMethod |
valueOf(Descriptors.EnumValueDescriptor desc) |
static GatewayAuthMethod |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static GatewayAuthMethod |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GatewayAuthMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GatewayAuthMethod GATEWAY_AUTH_METHOD_UNSPECIFIED
No authentication/authorization method specified. No devices are allowed to access the gateway.
GATEWAY_AUTH_METHOD_UNSPECIFIED = 0;
public static final GatewayAuthMethod ASSOCIATION_ONLY
The device is authenticated through the gateway association only. Device credentials are ignored even if provided.
ASSOCIATION_ONLY = 1;
public static final GatewayAuthMethod DEVICE_AUTH_TOKEN_ONLY
The device is authenticated through its own credentials. Gateway association is not checked.
DEVICE_AUTH_TOKEN_ONLY = 2;
public static final GatewayAuthMethod ASSOCIATION_AND_DEVICE_AUTH_TOKEN
The device is authenticated through both device credentials and gateway association. The device must be bound to the gateway and must provide its own credentials.
ASSOCIATION_AND_DEVICE_AUTH_TOKEN = 3;
public static final GatewayAuthMethod UNRECOGNIZED
public static final int GATEWAY_AUTH_METHOD_UNSPECIFIED_VALUE
No authentication/authorization method specified. No devices are allowed to access the gateway.
GATEWAY_AUTH_METHOD_UNSPECIFIED = 0;
public static final int ASSOCIATION_ONLY_VALUE
The device is authenticated through the gateway association only. Device credentials are ignored even if provided.
ASSOCIATION_ONLY = 1;
public static final int DEVICE_AUTH_TOKEN_ONLY_VALUE
The device is authenticated through its own credentials. Gateway association is not checked.
DEVICE_AUTH_TOKEN_ONLY = 2;
public static final int ASSOCIATION_AND_DEVICE_AUTH_TOKEN_VALUE
The device is authenticated through both device credentials and gateway association. The device must be bound to the gateway and must provide its own credentials.
ASSOCIATION_AND_DEVICE_AUTH_TOKEN = 3;
public static GatewayAuthMethod[] values()
for (GatewayAuthMethod c : GatewayAuthMethod.values()) System.out.println(c);
public static GatewayAuthMethod 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 GatewayAuthMethod valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static GatewayAuthMethod forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static Internal.EnumLiteMap<GatewayAuthMethod> 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 GatewayAuthMethod valueOf(Descriptors.EnumValueDescriptor desc)
Copyright © 2022 Google LLC. All rights reserved.