public static enum ServiceAttachment.ConnectionPreference extends Enum<ServiceAttachment.ConnectionPreference> implements com.google.protobuf.ProtocolMessageEnum
The connection preference of service attachment. The value can be set to ACCEPT_AUTOMATIC. An ACCEPT_AUTOMATIC service attachment is one that always accepts the connection from consumer forwarding rules.Protobuf enum
google.cloud.compute.v1.ServiceAttachment.ConnectionPreference| Enum Constant and Description |
|---|
ACCEPT_AUTOMATIC
ACCEPT_AUTOMATIC = 75250580; |
ACCEPT_MANUAL
ACCEPT_MANUAL = 373061341; |
CONNECTION_PREFERENCE_UNSPECIFIED
CONNECTION_PREFERENCE_UNSPECIFIED = 34590772; |
UNDEFINED_CONNECTION_PREFERENCE
A value indicating that the enum field is not set.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
ACCEPT_AUTOMATIC_VALUE
ACCEPT_AUTOMATIC = 75250580; |
static int |
ACCEPT_MANUAL_VALUE
ACCEPT_MANUAL = 373061341; |
static int |
CONNECTION_PREFERENCE_UNSPECIFIED_VALUE
CONNECTION_PREFERENCE_UNSPECIFIED = 34590772; |
static int |
UNDEFINED_CONNECTION_PREFERENCE_VALUE
A value indicating that the enum field is not set.
|
| Modifier and Type | Method and Description |
|---|---|
static ServiceAttachment.ConnectionPreference |
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<ServiceAttachment.ConnectionPreference> |
internalGetValueMap() |
static ServiceAttachment.ConnectionPreference |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static ServiceAttachment.ConnectionPreference |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static ServiceAttachment.ConnectionPreference |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ServiceAttachment.ConnectionPreference[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ServiceAttachment.ConnectionPreference UNDEFINED_CONNECTION_PREFERENCE
A value indicating that the enum field is not set.
UNDEFINED_CONNECTION_PREFERENCE = 0;public static final ServiceAttachment.ConnectionPreference ACCEPT_AUTOMATIC
ACCEPT_AUTOMATIC = 75250580;public static final ServiceAttachment.ConnectionPreference ACCEPT_MANUAL
ACCEPT_MANUAL = 373061341;public static final ServiceAttachment.ConnectionPreference CONNECTION_PREFERENCE_UNSPECIFIED
CONNECTION_PREFERENCE_UNSPECIFIED = 34590772;public static final ServiceAttachment.ConnectionPreference UNRECOGNIZED
public static final int UNDEFINED_CONNECTION_PREFERENCE_VALUE
A value indicating that the enum field is not set.
UNDEFINED_CONNECTION_PREFERENCE = 0;public static final int ACCEPT_AUTOMATIC_VALUE
ACCEPT_AUTOMATIC = 75250580;public static final int ACCEPT_MANUAL_VALUE
ACCEPT_MANUAL = 373061341;public static final int CONNECTION_PREFERENCE_UNSPECIFIED_VALUE
CONNECTION_PREFERENCE_UNSPECIFIED = 34590772;public static ServiceAttachment.ConnectionPreference[] values()
for (ServiceAttachment.ConnectionPreference c : ServiceAttachment.ConnectionPreference.values()) System.out.println(c);
public static ServiceAttachment.ConnectionPreference 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 ServiceAttachment.ConnectionPreference valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static ServiceAttachment.ConnectionPreference forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<ServiceAttachment.ConnectionPreference> 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 ServiceAttachment.ConnectionPreference valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023 Google LLC. All rights reserved.