public static enum CloseSessionRequest.CloseSessionReason extends Enum<CloseSessionRequest.CloseSessionReason> implements com.google.protobuf.ProtocolMessageEnum
Client-generated reason for terminating the session, including a plain-text description of why. 'reason' may be used for metrics, while both may be logged (server-side).Protobuf enum
google.bigtable.v2.CloseSessionRequest.CloseSessionReason| Enum Constant and Description |
|---|
CLOSE_SESSION_REASON_DOWNSIZE
CLOSE_SESSION_REASON_DOWNSIZE = 4; |
CLOSE_SESSION_REASON_ERROR
CLOSE_SESSION_REASON_ERROR = 2; |
CLOSE_SESSION_REASON_GOAWAY
CLOSE_SESSION_REASON_GOAWAY = 1; |
CLOSE_SESSION_REASON_MISSED_HEARTBEAT
CLOSE_SESSION_REASON_MISSED_HEARTBEAT = 5; |
CLOSE_SESSION_REASON_UNSET
CLOSE_SESSION_REASON_UNSET = 0; |
CLOSE_SESSION_REASON_USER
CLOSE_SESSION_REASON_USER = 3; |
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
CLOSE_SESSION_REASON_DOWNSIZE_VALUE
CLOSE_SESSION_REASON_DOWNSIZE = 4; |
static int |
CLOSE_SESSION_REASON_ERROR_VALUE
CLOSE_SESSION_REASON_ERROR = 2; |
static int |
CLOSE_SESSION_REASON_GOAWAY_VALUE
CLOSE_SESSION_REASON_GOAWAY = 1; |
static int |
CLOSE_SESSION_REASON_MISSED_HEARTBEAT_VALUE
CLOSE_SESSION_REASON_MISSED_HEARTBEAT = 5; |
static int |
CLOSE_SESSION_REASON_UNSET_VALUE
CLOSE_SESSION_REASON_UNSET = 0; |
static int |
CLOSE_SESSION_REASON_USER_VALUE
CLOSE_SESSION_REASON_USER = 3; |
| Modifier and Type | Method and Description |
|---|---|
static CloseSessionRequest.CloseSessionReason |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<CloseSessionRequest.CloseSessionReason> |
internalGetValueMap() |
static CloseSessionRequest.CloseSessionReason |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static CloseSessionRequest.CloseSessionReason |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static CloseSessionRequest.CloseSessionReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CloseSessionRequest.CloseSessionReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CloseSessionRequest.CloseSessionReason CLOSE_SESSION_REASON_UNSET
CLOSE_SESSION_REASON_UNSET = 0;public static final CloseSessionRequest.CloseSessionReason CLOSE_SESSION_REASON_GOAWAY
CLOSE_SESSION_REASON_GOAWAY = 1;public static final CloseSessionRequest.CloseSessionReason CLOSE_SESSION_REASON_ERROR
CLOSE_SESSION_REASON_ERROR = 2;public static final CloseSessionRequest.CloseSessionReason CLOSE_SESSION_REASON_USER
CLOSE_SESSION_REASON_USER = 3;public static final CloseSessionRequest.CloseSessionReason CLOSE_SESSION_REASON_DOWNSIZE
CLOSE_SESSION_REASON_DOWNSIZE = 4;public static final CloseSessionRequest.CloseSessionReason CLOSE_SESSION_REASON_MISSED_HEARTBEAT
CLOSE_SESSION_REASON_MISSED_HEARTBEAT = 5;public static final CloseSessionRequest.CloseSessionReason UNRECOGNIZED
public static final int CLOSE_SESSION_REASON_UNSET_VALUE
CLOSE_SESSION_REASON_UNSET = 0;public static final int CLOSE_SESSION_REASON_GOAWAY_VALUE
CLOSE_SESSION_REASON_GOAWAY = 1;public static final int CLOSE_SESSION_REASON_ERROR_VALUE
CLOSE_SESSION_REASON_ERROR = 2;public static final int CLOSE_SESSION_REASON_USER_VALUE
CLOSE_SESSION_REASON_USER = 3;public static final int CLOSE_SESSION_REASON_DOWNSIZE_VALUE
CLOSE_SESSION_REASON_DOWNSIZE = 4;public static final int CLOSE_SESSION_REASON_MISSED_HEARTBEAT_VALUE
CLOSE_SESSION_REASON_MISSED_HEARTBEAT = 5;public static CloseSessionRequest.CloseSessionReason[] values()
for (CloseSessionRequest.CloseSessionReason c : CloseSessionRequest.CloseSessionReason.values()) System.out.println(c);
public static CloseSessionRequest.CloseSessionReason 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 com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static CloseSessionRequest.CloseSessionReason valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static CloseSessionRequest.CloseSessionReason forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<CloseSessionRequest.CloseSessionReason> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static CloseSessionRequest.CloseSessionReason valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2026 Google LLC. All rights reserved.