Package com.google.cloud.compute.v1
Enum NetworkPeering.UpdateStrategy
java.lang.Object
java.lang.Enum<NetworkPeering.UpdateStrategy>
com.google.cloud.compute.v1.NetworkPeering.UpdateStrategy
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<NetworkPeering.UpdateStrategy>
- Enclosing class:
- NetworkPeering
public static enum NetworkPeering.UpdateStrategy
extends Enum<NetworkPeering.UpdateStrategy>
implements com.google.protobuf.ProtocolMessageEnum
The update strategy determines the semantics for updates and deletes to the peering connection configuration.Protobuf enum
google.cloud.compute.v1.NetworkPeering.UpdateStrategy-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUpdates are reflected in the local peering but aren't applied to the peering connection until a complementary change is made to the matching peering.In this mode, changes to the peering configuration can be unilaterally altered by changing either side of the peering.A value indicating that the enum field is not set.Peerings with update strategy UNSPECIFIED are created with update strategy INDEPENDENT. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intUpdates are reflected in the local peering but aren't applied to the peering connection until a complementary change is made to the matching peering.static final intIn this mode, changes to the peering configuration can be unilaterally altered by changing either side of the peering.static final intA value indicating that the enum field is not set.static final intPeerings with update strategy UNSPECIFIED are created with update strategy INDEPENDENT. -
Method Summary
Modifier and TypeMethodDescriptionforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<NetworkPeering.UpdateStrategy>valueOf(int value) Deprecated.valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.Returns the enum constant of this type with the specified name.static NetworkPeering.UpdateStrategy[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
UNDEFINED_UPDATE_STRATEGY
A value indicating that the enum field is not set.
UNDEFINED_UPDATE_STRATEGY = 0; -
CONSENSUS
Updates are reflected in the local peering but aren't applied to the peering connection until a complementary change is made to the matching peering. To delete a peering with the consensus update strategy, both the peerings must request the deletion of the peering before the peering can be deleted.
CONSENSUS = 203373655; -
INDEPENDENT
In this mode, changes to the peering configuration can be unilaterally altered by changing either side of the peering. This is the default value if the field is unspecified.
INDEPENDENT = 127011674; -
UNSPECIFIED
Peerings with update strategy UNSPECIFIED are created with update strategy INDEPENDENT.
UNSPECIFIED = 526786327; -
UNRECOGNIZED
-
-
Field Details
-
UNDEFINED_UPDATE_STRATEGY_VALUE
public static final int UNDEFINED_UPDATE_STRATEGY_VALUEA value indicating that the enum field is not set.
UNDEFINED_UPDATE_STRATEGY = 0;- See Also:
-
CONSENSUS_VALUE
public static final int CONSENSUS_VALUEUpdates are reflected in the local peering but aren't applied to the peering connection until a complementary change is made to the matching peering. To delete a peering with the consensus update strategy, both the peerings must request the deletion of the peering before the peering can be deleted.
CONSENSUS = 203373655;- See Also:
-
INDEPENDENT_VALUE
public static final int INDEPENDENT_VALUEIn this mode, changes to the peering configuration can be unilaterally altered by changing either side of the peering. This is the default value if the field is unspecified.
INDEPENDENT = 127011674;- See Also:
-
UNSPECIFIED_VALUE
public static final int UNSPECIFIED_VALUEPeerings with update strategy UNSPECIFIED are created with update strategy INDEPENDENT.
UNSPECIFIED = 526786327;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<NetworkPeering.UpdateStrategy> internalGetValueMap() -
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
public static NetworkPeering.UpdateStrategy valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-