Compute V1 Client - Class ConnectionPreference (2.11.0)
Stay organized with collections
Save and categorize content based on your preferences.
Reference documentation and code samples for the Compute V1 Client class ConnectionPreference.
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 type google.cloud.compute.v1.ServiceAttachment.ConnectionPreference
Namespace
Google \ Cloud \ Compute \ V1 \ ServiceAttachment
Methods
static::name
Parameter
Name
Description
value
mixed
static::value
Parameter
Name
Description
name
mixed
Constants
UNDEFINED_CONNECTION_PREFERENCE
Value: 0
A value indicating that the enum field is not set.
Generated from protobuf enum UNDEFINED_CONNECTION_PREFERENCE = 0;
ACCEPT_AUTOMATIC
Value: 75250580
Generated from protobuf enum ACCEPT_AUTOMATIC = 75250580;
ACCEPT_MANUAL
Value: 373061341
Generated from protobuf enum ACCEPT_MANUAL = 373061341;
CONNECTION_PREFERENCE_UNSPECIFIED
Value: 34590772
Generated from protobuf enum CONNECTION_PREFERENCE_UNSPECIFIED = 34590772;
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-08-01 UTC."],[],[]]