public static enum MetadataExchangeResponse.ResponseCode extends Enum<MetadataExchangeResponse.ResponseCode> implements com.google.protobuf.ProtocolMessageEnum
Response code.Protobuf enum
google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode| Enum Constant and Description |
|---|
ERROR
Failure
|
OK
Success
|
RESPONSE_CODE_UNSPECIFIED
Unknown response code
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
ERROR_VALUE
Failure
|
static int |
OK_VALUE
Success
|
static int |
RESPONSE_CODE_UNSPECIFIED_VALUE
Unknown response code
|
| Modifier and Type | Method and Description |
|---|---|
static MetadataExchangeResponse.ResponseCode |
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<MetadataExchangeResponse.ResponseCode> |
internalGetValueMap() |
static MetadataExchangeResponse.ResponseCode |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static MetadataExchangeResponse.ResponseCode |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static MetadataExchangeResponse.ResponseCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MetadataExchangeResponse.ResponseCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MetadataExchangeResponse.ResponseCode RESPONSE_CODE_UNSPECIFIED
Unknown response code
RESPONSE_CODE_UNSPECIFIED = 0;public static final MetadataExchangeResponse.ResponseCode OK
Success
OK = 1;public static final MetadataExchangeResponse.ResponseCode ERROR
Failure
ERROR = 2;public static final MetadataExchangeResponse.ResponseCode UNRECOGNIZED
public static final int RESPONSE_CODE_UNSPECIFIED_VALUE
Unknown response code
RESPONSE_CODE_UNSPECIFIED = 0;public static final int OK_VALUE
Success
OK = 1;public static final int ERROR_VALUE
Failure
ERROR = 2;public static MetadataExchangeResponse.ResponseCode[] values()
for (MetadataExchangeResponse.ResponseCode c : MetadataExchangeResponse.ResponseCode.values()) System.out.println(c);
public static MetadataExchangeResponse.ResponseCode 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 MetadataExchangeResponse.ResponseCode valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static MetadataExchangeResponse.ResponseCode forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<MetadataExchangeResponse.ResponseCode> 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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static MetadataExchangeResponse.ResponseCode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2024 Google LLC. All rights reserved.