Package com.google.cloud.compute.v1
Class VpnTunnel.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<VpnTunnel.Builder>
com.google.cloud.compute.v1.VpnTunnel.Builder
- All Implemented Interfaces:
VpnTunnelOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- VpnTunnel
public static final class VpnTunnel.Builder
extends com.google.protobuf.GeneratedMessage.Builder<VpnTunnel.Builder>
implements VpnTunnelOrBuilder
Represents a Cloud VPN Tunnel resource. For more information about VPN, read the the Cloud VPN Overview.Protobuf type
google.cloud.compute.v1.VpnTunnel-
Method Summary
Modifier and TypeMethodDescriptionaddAllLocalTrafficSelector(Iterable<String> values) Local traffic selector to use when establishing the VPN tunnel with the peer VPN gateway.addAllRemoteTrafficSelector(Iterable<String> values) Remote traffic selectors to use when establishing the VPN tunnel with the peer VPN gateway.addLocalTrafficSelector(String value) Local traffic selector to use when establishing the VPN tunnel with the peer VPN gateway.addLocalTrafficSelectorBytes(com.google.protobuf.ByteString value) Local traffic selector to use when establishing the VPN tunnel with the peer VPN gateway.addRemoteTrafficSelector(String value) Remote traffic selectors to use when establishing the VPN tunnel with the peer VPN gateway.addRemoteTrafficSelectorBytes(com.google.protobuf.ByteString value) Remote traffic selectors to use when establishing the VPN tunnel with the peer VPN gateway.build()clear()User specified list of ciphers to use for the phase 1 and phase 2 of the IKE protocol.Output only.An optional description of this resource.[Output Only] Detailed status message for the VPN tunnel.clearId()[Output Only] The unique identifier for the resource.IKE protocol version to use when establishing the VPN tunnel with the peer VPN gateway.Output only.A fingerprint for the labels being applied to this VpnTunnel, which is essentially a hash of the labels set used for optimistic locking.Local traffic selector to use when establishing the VPN tunnel with the peer VPN gateway.Name of the resource.Input only.URL of the peer side external VPN gateway to which this VPN tunnel is connected.The interface ID of the external VPN gateway to which this VPN tunnel is connected.URL of the peer side HA VPN gateway to which this VPN tunnel is connected.IP address of the peer VPN gateway.[Output Only] URL of the region where the VPN tunnel resides.Remote traffic selectors to use when establishing the VPN tunnel with the peer VPN gateway.URL of the router resource to be used for dynamic routing.[Output Only] Server-defined URL for the resource.Shared secret used to set the secure session between the Cloud VPN gateway and the peer VPN gateway.Hash of the shared secret.[Output Only] The status of the VPN tunnel, which can be one of the following: - PROVISIONING: Resource is being allocated for the VPN tunnelURL of the Target VPN gateway with which this VPN tunnel is associated.URL of the VPN gateway with which this VPN tunnel is associated.The interface ID of the VPN gateway with which this VPN tunnel is associated.booleancontainsLabels(String key) Labels for this resource.User specified list of ciphers to use for the phase 1 and phase 2 of the IKE protocol.User specified list of ciphers to use for the phase 1 and phase 2 of the IKE protocol.User specified list of ciphers to use for the phase 1 and phase 2 of the IKE protocol.Output only.com.google.protobuf.ByteStringOutput only.An optional description of this resource.com.google.protobuf.ByteStringAn optional description of this resource.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptor[Output Only] Detailed status message for the VPN tunnel.com.google.protobuf.ByteString[Output Only] Detailed status message for the VPN tunnel.longgetId()[Output Only] The unique identifier for the resource.intIKE protocol version to use when establishing the VPN tunnel with the peer VPN gateway.getKind()Output only.com.google.protobuf.ByteStringOutput only.A fingerprint for the labels being applied to this VpnTunnel, which is essentially a hash of the labels set used for optimistic locking.com.google.protobuf.ByteStringA fingerprint for the labels being applied to this VpnTunnel, which is essentially a hash of the labels set used for optimistic locking.Deprecated.intLabels for this resource.Labels for this resource.getLabelsOrDefault(String key, String defaultValue) Labels for this resource.getLabelsOrThrow(String key) Labels for this resource.getLocalTrafficSelector(int index) Local traffic selector to use when establishing the VPN tunnel with the peer VPN gateway.com.google.protobuf.ByteStringgetLocalTrafficSelectorBytes(int index) Local traffic selector to use when establishing the VPN tunnel with the peer VPN gateway.intLocal traffic selector to use when establishing the VPN tunnel with the peer VPN gateway.com.google.protobuf.ProtocolStringListLocal traffic selector to use when establishing the VPN tunnel with the peer VPN gateway.Deprecated.getName()Name of the resource.com.google.protobuf.ByteStringName of the resource.Input only.Input only.Input only.URL of the peer side external VPN gateway to which this VPN tunnel is connected.com.google.protobuf.ByteStringURL of the peer side external VPN gateway to which this VPN tunnel is connected.intThe interface ID of the external VPN gateway to which this VPN tunnel is connected.URL of the peer side HA VPN gateway to which this VPN tunnel is connected.com.google.protobuf.ByteStringURL of the peer side HA VPN gateway to which this VPN tunnel is connected.IP address of the peer VPN gateway.com.google.protobuf.ByteStringIP address of the peer VPN gateway.[Output Only] URL of the region where the VPN tunnel resides.com.google.protobuf.ByteString[Output Only] URL of the region where the VPN tunnel resides.getRemoteTrafficSelector(int index) Remote traffic selectors to use when establishing the VPN tunnel with the peer VPN gateway.com.google.protobuf.ByteStringgetRemoteTrafficSelectorBytes(int index) Remote traffic selectors to use when establishing the VPN tunnel with the peer VPN gateway.intRemote traffic selectors to use when establishing the VPN tunnel with the peer VPN gateway.com.google.protobuf.ProtocolStringListRemote traffic selectors to use when establishing the VPN tunnel with the peer VPN gateway.URL of the router resource to be used for dynamic routing.com.google.protobuf.ByteStringURL of the router resource to be used for dynamic routing.[Output Only] Server-defined URL for the resource.com.google.protobuf.ByteString[Output Only] Server-defined URL for the resource.Shared secret used to set the secure session between the Cloud VPN gateway and the peer VPN gateway.com.google.protobuf.ByteStringShared secret used to set the secure session between the Cloud VPN gateway and the peer VPN gateway.Hash of the shared secret.com.google.protobuf.ByteStringHash of the shared secret.[Output Only] The status of the VPN tunnel, which can be one of the following: - PROVISIONING: Resource is being allocated for the VPN tunnelcom.google.protobuf.ByteString[Output Only] The status of the VPN tunnel, which can be one of the following: - PROVISIONING: Resource is being allocated for the VPN tunnelURL of the Target VPN gateway with which this VPN tunnel is associated.com.google.protobuf.ByteStringURL of the Target VPN gateway with which this VPN tunnel is associated.URL of the VPN gateway with which this VPN tunnel is associated.com.google.protobuf.ByteStringURL of the VPN gateway with which this VPN tunnel is associated.intThe interface ID of the VPN gateway with which this VPN tunnel is associated.booleanUser specified list of ciphers to use for the phase 1 and phase 2 of the IKE protocol.booleanOutput only.booleanAn optional description of this resource.boolean[Output Only] Detailed status message for the VPN tunnel.booleanhasId()[Output Only] The unique identifier for the resource.booleanIKE protocol version to use when establishing the VPN tunnel with the peer VPN gateway.booleanhasKind()Output only.booleanA fingerprint for the labels being applied to this VpnTunnel, which is essentially a hash of the labels set used for optimistic locking.booleanhasName()Name of the resource.booleanInput only.booleanURL of the peer side external VPN gateway to which this VPN tunnel is connected.booleanThe interface ID of the external VPN gateway to which this VPN tunnel is connected.booleanURL of the peer side HA VPN gateway to which this VPN tunnel is connected.booleanIP address of the peer VPN gateway.boolean[Output Only] URL of the region where the VPN tunnel resides.booleanURL of the router resource to be used for dynamic routing.boolean[Output Only] Server-defined URL for the resource.booleanShared secret used to set the secure session between the Cloud VPN gateway and the peer VPN gateway.booleanHash of the shared secret.boolean[Output Only] The status of the VPN tunnel, which can be one of the following: - PROVISIONING: Resource is being allocated for the VPN tunnelbooleanURL of the Target VPN gateway with which this VPN tunnel is associated.booleanURL of the VPN gateway with which this VPN tunnel is associated.booleanThe interface ID of the VPN gateway with which this VPN tunnel is associated.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanUser specified list of ciphers to use for the phase 1 and phase 2 of the IKE protocol.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeParams(VpnTunnelParams value) Input only.putAllLabels(Map<String, String> values) Labels for this resource.Labels for this resource.removeLabels(String key) Labels for this resource.User specified list of ciphers to use for the phase 1 and phase 2 of the IKE protocol.setCipherSuite(VpnTunnelCipherSuite.Builder builderForValue) User specified list of ciphers to use for the phase 1 and phase 2 of the IKE protocol.setCreationTimestamp(String value) Output only.setCreationTimestampBytes(com.google.protobuf.ByteString value) Output only.setDescription(String value) An optional description of this resource.setDescriptionBytes(com.google.protobuf.ByteString value) An optional description of this resource.setDetailedStatus(String value) [Output Only] Detailed status message for the VPN tunnel.setDetailedStatusBytes(com.google.protobuf.ByteString value) [Output Only] Detailed status message for the VPN tunnel.setId(long value) [Output Only] The unique identifier for the resource.setIkeVersion(int value) IKE protocol version to use when establishing the VPN tunnel with the peer VPN gateway.Output only.setKindBytes(com.google.protobuf.ByteString value) Output only.setLabelFingerprint(String value) A fingerprint for the labels being applied to this VpnTunnel, which is essentially a hash of the labels set used for optimistic locking.setLabelFingerprintBytes(com.google.protobuf.ByteString value) A fingerprint for the labels being applied to this VpnTunnel, which is essentially a hash of the labels set used for optimistic locking.setLocalTrafficSelector(int index, String value) Local traffic selector to use when establishing the VPN tunnel with the peer VPN gateway.Name of the resource.setNameBytes(com.google.protobuf.ByteString value) Name of the resource.setParams(VpnTunnelParams value) Input only.setParams(VpnTunnelParams.Builder builderForValue) Input only.setPeerExternalGateway(String value) URL of the peer side external VPN gateway to which this VPN tunnel is connected.setPeerExternalGatewayBytes(com.google.protobuf.ByteString value) URL of the peer side external VPN gateway to which this VPN tunnel is connected.setPeerExternalGatewayInterface(int value) The interface ID of the external VPN gateway to which this VPN tunnel is connected.setPeerGcpGateway(String value) URL of the peer side HA VPN gateway to which this VPN tunnel is connected.setPeerGcpGatewayBytes(com.google.protobuf.ByteString value) URL of the peer side HA VPN gateway to which this VPN tunnel is connected.IP address of the peer VPN gateway.setPeerIpBytes(com.google.protobuf.ByteString value) IP address of the peer VPN gateway.[Output Only] URL of the region where the VPN tunnel resides.setRegionBytes(com.google.protobuf.ByteString value) [Output Only] URL of the region where the VPN tunnel resides.setRemoteTrafficSelector(int index, String value) Remote traffic selectors to use when establishing the VPN tunnel with the peer VPN gateway.URL of the router resource to be used for dynamic routing.setRouterBytes(com.google.protobuf.ByteString value) URL of the router resource to be used for dynamic routing.setSelfLink(String value) [Output Only] Server-defined URL for the resource.setSelfLinkBytes(com.google.protobuf.ByteString value) [Output Only] Server-defined URL for the resource.setSharedSecret(String value) Shared secret used to set the secure session between the Cloud VPN gateway and the peer VPN gateway.setSharedSecretBytes(com.google.protobuf.ByteString value) Shared secret used to set the secure session between the Cloud VPN gateway and the peer VPN gateway.setSharedSecretHash(String value) Hash of the shared secret.setSharedSecretHashBytes(com.google.protobuf.ByteString value) Hash of the shared secret.[Output Only] The status of the VPN tunnel, which can be one of the following: - PROVISIONING: Resource is being allocated for the VPN tunnelsetStatusBytes(com.google.protobuf.ByteString value) [Output Only] The status of the VPN tunnel, which can be one of the following: - PROVISIONING: Resource is being allocated for the VPN tunnelsetTargetVpnGateway(String value) URL of the Target VPN gateway with which this VPN tunnel is associated.setTargetVpnGatewayBytes(com.google.protobuf.ByteString value) URL of the Target VPN gateway with which this VPN tunnel is associated.setVpnGateway(String value) URL of the VPN gateway with which this VPN tunnel is associated.setVpnGatewayBytes(com.google.protobuf.ByteString value) URL of the VPN gateway with which this VPN tunnel is associated.setVpnGatewayInterface(int value) The interface ID of the VPN gateway with which this VPN tunnel is associated.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<VpnTunnel.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<VpnTunnel.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<VpnTunnel.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<VpnTunnel.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<VpnTunnel.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<VpnTunnel.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<VpnTunnel.Builder>
-
mergeFrom
public VpnTunnel.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<VpnTunnel.Builder>- Throws:
IOException
-
hasCipherSuite
public boolean hasCipherSuite()User specified list of ciphers to use for the phase 1 and phase 2 of the IKE protocol.
optional .google.cloud.compute.v1.VpnTunnelCipherSuite cipher_suite = 443788228;- Specified by:
hasCipherSuitein interfaceVpnTunnelOrBuilder- Returns:
- Whether the cipherSuite field is set.
-
getCipherSuite
User specified list of ciphers to use for the phase 1 and phase 2 of the IKE protocol.
optional .google.cloud.compute.v1.VpnTunnelCipherSuite cipher_suite = 443788228;- Specified by:
getCipherSuitein interfaceVpnTunnelOrBuilder- Returns:
- The cipherSuite.
-
setCipherSuite
User specified list of ciphers to use for the phase 1 and phase 2 of the IKE protocol.
optional .google.cloud.compute.v1.VpnTunnelCipherSuite cipher_suite = 443788228; -
setCipherSuite
User specified list of ciphers to use for the phase 1 and phase 2 of the IKE protocol.
optional .google.cloud.compute.v1.VpnTunnelCipherSuite cipher_suite = 443788228; -
mergeCipherSuite
User specified list of ciphers to use for the phase 1 and phase 2 of the IKE protocol.
optional .google.cloud.compute.v1.VpnTunnelCipherSuite cipher_suite = 443788228; -
clearCipherSuite
User specified list of ciphers to use for the phase 1 and phase 2 of the IKE protocol.
optional .google.cloud.compute.v1.VpnTunnelCipherSuite cipher_suite = 443788228; -
getCipherSuiteBuilder
User specified list of ciphers to use for the phase 1 and phase 2 of the IKE protocol.
optional .google.cloud.compute.v1.VpnTunnelCipherSuite cipher_suite = 443788228; -
getCipherSuiteOrBuilder
User specified list of ciphers to use for the phase 1 and phase 2 of the IKE protocol.
optional .google.cloud.compute.v1.VpnTunnelCipherSuite cipher_suite = 443788228;- Specified by:
getCipherSuiteOrBuilderin interfaceVpnTunnelOrBuilder
-
hasCreationTimestamp
public boolean hasCreationTimestamp()Output only. [Output Only] Creation timestamp inRFC3339 text format.
optional string creation_timestamp = 30525366;- Specified by:
hasCreationTimestampin interfaceVpnTunnelOrBuilder- Returns:
- Whether the creationTimestamp field is set.
-
getCreationTimestamp
Output only. [Output Only] Creation timestamp inRFC3339 text format.
optional string creation_timestamp = 30525366;- Specified by:
getCreationTimestampin interfaceVpnTunnelOrBuilder- Returns:
- The creationTimestamp.
-
getCreationTimestampBytes
public com.google.protobuf.ByteString getCreationTimestampBytes()Output only. [Output Only] Creation timestamp inRFC3339 text format.
optional string creation_timestamp = 30525366;- Specified by:
getCreationTimestampBytesin interfaceVpnTunnelOrBuilder- Returns:
- The bytes for creationTimestamp.
-
setCreationTimestamp
Output only. [Output Only] Creation timestamp inRFC3339 text format.
optional string creation_timestamp = 30525366;- Parameters:
value- The creationTimestamp to set.- Returns:
- This builder for chaining.
-
clearCreationTimestamp
Output only. [Output Only] Creation timestamp inRFC3339 text format.
optional string creation_timestamp = 30525366;- Returns:
- This builder for chaining.
-
setCreationTimestampBytes
Output only. [Output Only] Creation timestamp inRFC3339 text format.
optional string creation_timestamp = 30525366;- Parameters:
value- The bytes for creationTimestamp to set.- Returns:
- This builder for chaining.
-
hasDescription
public boolean hasDescription()An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Specified by:
hasDescriptionin interfaceVpnTunnelOrBuilder- Returns:
- Whether the description field is set.
-
getDescription
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Specified by:
getDescriptionin interfaceVpnTunnelOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Specified by:
getDescriptionBytesin interfaceVpnTunnelOrBuilder- Returns:
- The bytes for description.
-
setDescription
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Returns:
- This builder for chaining.
-
setDescriptionBytes
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
hasDetailedStatus
public boolean hasDetailedStatus()[Output Only] Detailed status message for the VPN tunnel.
optional string detailed_status = 333501025;- Specified by:
hasDetailedStatusin interfaceVpnTunnelOrBuilder- Returns:
- Whether the detailedStatus field is set.
-
getDetailedStatus
[Output Only] Detailed status message for the VPN tunnel.
optional string detailed_status = 333501025;- Specified by:
getDetailedStatusin interfaceVpnTunnelOrBuilder- Returns:
- The detailedStatus.
-
getDetailedStatusBytes
public com.google.protobuf.ByteString getDetailedStatusBytes()[Output Only] Detailed status message for the VPN tunnel.
optional string detailed_status = 333501025;- Specified by:
getDetailedStatusBytesin interfaceVpnTunnelOrBuilder- Returns:
- The bytes for detailedStatus.
-
setDetailedStatus
[Output Only] Detailed status message for the VPN tunnel.
optional string detailed_status = 333501025;- Parameters:
value- The detailedStatus to set.- Returns:
- This builder for chaining.
-
clearDetailedStatus
[Output Only] Detailed status message for the VPN tunnel.
optional string detailed_status = 333501025;- Returns:
- This builder for chaining.
-
setDetailedStatusBytes
[Output Only] Detailed status message for the VPN tunnel.
optional string detailed_status = 333501025;- Parameters:
value- The bytes for detailedStatus to set.- Returns:
- This builder for chaining.
-
hasId
public boolean hasId()[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;- Specified by:
hasIdin interfaceVpnTunnelOrBuilder- Returns:
- Whether the id field is set.
-
getId
public long getId()[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;- Specified by:
getIdin interfaceVpnTunnelOrBuilder- Returns:
- The id.
-
setId
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;- Returns:
- This builder for chaining.
-
hasIkeVersion
public boolean hasIkeVersion()IKE protocol version to use when establishing the VPN tunnel with the peer VPN gateway. Acceptable IKE versions are 1 or 2. The default version is 2.
optional int32 ike_version = 218376220;- Specified by:
hasIkeVersionin interfaceVpnTunnelOrBuilder- Returns:
- Whether the ikeVersion field is set.
-
getIkeVersion
public int getIkeVersion()IKE protocol version to use when establishing the VPN tunnel with the peer VPN gateway. Acceptable IKE versions are 1 or 2. The default version is 2.
optional int32 ike_version = 218376220;- Specified by:
getIkeVersionin interfaceVpnTunnelOrBuilder- Returns:
- The ikeVersion.
-
setIkeVersion
IKE protocol version to use when establishing the VPN tunnel with the peer VPN gateway. Acceptable IKE versions are 1 or 2. The default version is 2.
optional int32 ike_version = 218376220;- Parameters:
value- The ikeVersion to set.- Returns:
- This builder for chaining.
-
clearIkeVersion
IKE protocol version to use when establishing the VPN tunnel with the peer VPN gateway. Acceptable IKE versions are 1 or 2. The default version is 2.
optional int32 ike_version = 218376220;- Returns:
- This builder for chaining.
-
hasKind
public boolean hasKind()Output only. [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels.
optional string kind = 3292052;- Specified by:
hasKindin interfaceVpnTunnelOrBuilder- Returns:
- Whether the kind field is set.
-
getKind
Output only. [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels.
optional string kind = 3292052;- Specified by:
getKindin interfaceVpnTunnelOrBuilder- Returns:
- The kind.
-
getKindBytes
public com.google.protobuf.ByteString getKindBytes()Output only. [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels.
optional string kind = 3292052;- Specified by:
getKindBytesin interfaceVpnTunnelOrBuilder- Returns:
- The bytes for kind.
-
setKind
Output only. [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels.
optional string kind = 3292052;- Parameters:
value- The kind to set.- Returns:
- This builder for chaining.
-
clearKind
Output only. [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels.
optional string kind = 3292052;- Returns:
- This builder for chaining.
-
setKindBytes
Output only. [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels.
optional string kind = 3292052;- Parameters:
value- The bytes for kind to set.- Returns:
- This builder for chaining.
-
hasLabelFingerprint
public boolean hasLabelFingerprint()A fingerprint for the labels being applied to this VpnTunnel, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a VpnTunnel.
optional string label_fingerprint = 178124825;- Specified by:
hasLabelFingerprintin interfaceVpnTunnelOrBuilder- Returns:
- Whether the labelFingerprint field is set.
-
getLabelFingerprint
A fingerprint for the labels being applied to this VpnTunnel, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a VpnTunnel.
optional string label_fingerprint = 178124825;- Specified by:
getLabelFingerprintin interfaceVpnTunnelOrBuilder- Returns:
- The labelFingerprint.
-
getLabelFingerprintBytes
public com.google.protobuf.ByteString getLabelFingerprintBytes()A fingerprint for the labels being applied to this VpnTunnel, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a VpnTunnel.
optional string label_fingerprint = 178124825;- Specified by:
getLabelFingerprintBytesin interfaceVpnTunnelOrBuilder- Returns:
- The bytes for labelFingerprint.
-
setLabelFingerprint
A fingerprint for the labels being applied to this VpnTunnel, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a VpnTunnel.
optional string label_fingerprint = 178124825;- Parameters:
value- The labelFingerprint to set.- Returns:
- This builder for chaining.
-
clearLabelFingerprint
A fingerprint for the labels being applied to this VpnTunnel, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a VpnTunnel.
optional string label_fingerprint = 178124825;- Returns:
- This builder for chaining.
-
setLabelFingerprintBytes
A fingerprint for the labels being applied to this VpnTunnel, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a VpnTunnel.
optional string label_fingerprint = 178124825;- Parameters:
value- The bytes for labelFingerprint to set.- Returns:
- This builder for chaining.
-
getLabelsCount
public int getLabelsCount()Description copied from interface:VpnTunnelOrBuilderLabels for this resource. These can only be added or modified by thesetLabels method. Each label key/value pair must comply withRFC1035. Label values may be empty.
map<string, string> labels = 500195327;- Specified by:
getLabelsCountin interfaceVpnTunnelOrBuilder
-
containsLabels
Labels for this resource. These can only be added or modified by thesetLabels method. Each label key/value pair must comply withRFC1035. Label values may be empty.
map<string, string> labels = 500195327;- Specified by:
containsLabelsin interfaceVpnTunnelOrBuilder
-
getLabels
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceVpnTunnelOrBuilder
-
getLabelsMap
Labels for this resource. These can only be added or modified by thesetLabels method. Each label key/value pair must comply withRFC1035. Label values may be empty.
map<string, string> labels = 500195327;- Specified by:
getLabelsMapin interfaceVpnTunnelOrBuilder
-
getLabelsOrDefault
Labels for this resource. These can only be added or modified by thesetLabels method. Each label key/value pair must comply withRFC1035. Label values may be empty.
map<string, string> labels = 500195327;- Specified by:
getLabelsOrDefaultin interfaceVpnTunnelOrBuilder
-
getLabelsOrThrow
Labels for this resource. These can only be added or modified by thesetLabels method. Each label key/value pair must comply withRFC1035. Label values may be empty.
map<string, string> labels = 500195327;- Specified by:
getLabelsOrThrowin interfaceVpnTunnelOrBuilder
-
clearLabels
-
removeLabels
Labels for this resource. These can only be added or modified by thesetLabels method. Each label key/value pair must comply withRFC1035. Label values may be empty.
map<string, string> labels = 500195327; -
getMutableLabels
Deprecated.Use alternate mutation accessors instead. -
putLabels
Labels for this resource. These can only be added or modified by thesetLabels method. Each label key/value pair must comply withRFC1035. Label values may be empty.
map<string, string> labels = 500195327; -
putAllLabels
Labels for this resource. These can only be added or modified by thesetLabels method. Each label key/value pair must comply withRFC1035. Label values may be empty.
map<string, string> labels = 500195327; -
getLocalTrafficSelectorList
public com.google.protobuf.ProtocolStringList getLocalTrafficSelectorList()Local traffic selector to use when establishing the VPN tunnel with the peer VPN gateway. The value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges must be disjoint. Only IPv4 is supported for Classic VPN tunnels. This field is output only for HA VPN tunnels.
repeated string local_traffic_selector = 317314613;- Specified by:
getLocalTrafficSelectorListin interfaceVpnTunnelOrBuilder- Returns:
- A list containing the localTrafficSelector.
-
getLocalTrafficSelectorCount
public int getLocalTrafficSelectorCount()Local traffic selector to use when establishing the VPN tunnel with the peer VPN gateway. The value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges must be disjoint. Only IPv4 is supported for Classic VPN tunnels. This field is output only for HA VPN tunnels.
repeated string local_traffic_selector = 317314613;- Specified by:
getLocalTrafficSelectorCountin interfaceVpnTunnelOrBuilder- Returns:
- The count of localTrafficSelector.
-
getLocalTrafficSelector
Local traffic selector to use when establishing the VPN tunnel with the peer VPN gateway. The value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges must be disjoint. Only IPv4 is supported for Classic VPN tunnels. This field is output only for HA VPN tunnels.
repeated string local_traffic_selector = 317314613;- Specified by:
getLocalTrafficSelectorin interfaceVpnTunnelOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The localTrafficSelector at the given index.
-
getLocalTrafficSelectorBytes
public com.google.protobuf.ByteString getLocalTrafficSelectorBytes(int index) Local traffic selector to use when establishing the VPN tunnel with the peer VPN gateway. The value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges must be disjoint. Only IPv4 is supported for Classic VPN tunnels. This field is output only for HA VPN tunnels.
repeated string local_traffic_selector = 317314613;- Specified by:
getLocalTrafficSelectorBytesin interfaceVpnTunnelOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the localTrafficSelector at the given index.
-
setLocalTrafficSelector
Local traffic selector to use when establishing the VPN tunnel with the peer VPN gateway. The value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges must be disjoint. Only IPv4 is supported for Classic VPN tunnels. This field is output only for HA VPN tunnels.
repeated string local_traffic_selector = 317314613;- Parameters:
index- The index to set the value at.value- The localTrafficSelector to set.- Returns:
- This builder for chaining.
-
addLocalTrafficSelector
Local traffic selector to use when establishing the VPN tunnel with the peer VPN gateway. The value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges must be disjoint. Only IPv4 is supported for Classic VPN tunnels. This field is output only for HA VPN tunnels.
repeated string local_traffic_selector = 317314613;- Parameters:
value- The localTrafficSelector to add.- Returns:
- This builder for chaining.
-
addAllLocalTrafficSelector
Local traffic selector to use when establishing the VPN tunnel with the peer VPN gateway. The value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges must be disjoint. Only IPv4 is supported for Classic VPN tunnels. This field is output only for HA VPN tunnels.
repeated string local_traffic_selector = 317314613;- Parameters:
values- The localTrafficSelector to add.- Returns:
- This builder for chaining.
-
clearLocalTrafficSelector
Local traffic selector to use when establishing the VPN tunnel with the peer VPN gateway. The value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges must be disjoint. Only IPv4 is supported for Classic VPN tunnels. This field is output only for HA VPN tunnels.
repeated string local_traffic_selector = 317314613;- Returns:
- This builder for chaining.
-
addLocalTrafficSelectorBytes
Local traffic selector to use when establishing the VPN tunnel with the peer VPN gateway. The value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges must be disjoint. Only IPv4 is supported for Classic VPN tunnels. This field is output only for HA VPN tunnels.
repeated string local_traffic_selector = 317314613;- Parameters:
value- The bytes of the localTrafficSelector to add.- Returns:
- This builder for chaining.
-
hasName
public boolean hasName()Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;- Specified by:
hasNamein interfaceVpnTunnelOrBuilder- Returns:
- Whether the name field is set.
-
getName
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;- Specified by:
getNamein interfaceVpnTunnelOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;- Specified by:
getNameBytesin interfaceVpnTunnelOrBuilder- Returns:
- The bytes for name.
-
setName
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;- Returns:
- This builder for chaining.
-
setNameBytes
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasParams
public boolean hasParams()Input only. [Input Only] Additional params passed with the request, but not persisted as part of resource payload.
optional .google.cloud.compute.v1.VpnTunnelParams params = 78313862;- Specified by:
hasParamsin interfaceVpnTunnelOrBuilder- Returns:
- Whether the params field is set.
-
getParams
Input only. [Input Only] Additional params passed with the request, but not persisted as part of resource payload.
optional .google.cloud.compute.v1.VpnTunnelParams params = 78313862;- Specified by:
getParamsin interfaceVpnTunnelOrBuilder- Returns:
- The params.
-
setParams
Input only. [Input Only] Additional params passed with the request, but not persisted as part of resource payload.
optional .google.cloud.compute.v1.VpnTunnelParams params = 78313862; -
setParams
Input only. [Input Only] Additional params passed with the request, but not persisted as part of resource payload.
optional .google.cloud.compute.v1.VpnTunnelParams params = 78313862; -
mergeParams
Input only. [Input Only] Additional params passed with the request, but not persisted as part of resource payload.
optional .google.cloud.compute.v1.VpnTunnelParams params = 78313862; -
clearParams
Input only. [Input Only] Additional params passed with the request, but not persisted as part of resource payload.
optional .google.cloud.compute.v1.VpnTunnelParams params = 78313862; -
getParamsBuilder
Input only. [Input Only] Additional params passed with the request, but not persisted as part of resource payload.
optional .google.cloud.compute.v1.VpnTunnelParams params = 78313862; -
getParamsOrBuilder
Input only. [Input Only] Additional params passed with the request, but not persisted as part of resource payload.
optional .google.cloud.compute.v1.VpnTunnelParams params = 78313862;- Specified by:
getParamsOrBuilderin interfaceVpnTunnelOrBuilder
-
hasPeerExternalGateway
public boolean hasPeerExternalGateway()URL of the peer side external VPN gateway to which this VPN tunnel is connected. Provided by the client when the VPN tunnel is created. This field is exclusive with the field peerGcpGateway.
optional string peer_external_gateway = 384956173;- Specified by:
hasPeerExternalGatewayin interfaceVpnTunnelOrBuilder- Returns:
- Whether the peerExternalGateway field is set.
-
getPeerExternalGateway
URL of the peer side external VPN gateway to which this VPN tunnel is connected. Provided by the client when the VPN tunnel is created. This field is exclusive with the field peerGcpGateway.
optional string peer_external_gateway = 384956173;- Specified by:
getPeerExternalGatewayin interfaceVpnTunnelOrBuilder- Returns:
- The peerExternalGateway.
-
getPeerExternalGatewayBytes
public com.google.protobuf.ByteString getPeerExternalGatewayBytes()URL of the peer side external VPN gateway to which this VPN tunnel is connected. Provided by the client when the VPN tunnel is created. This field is exclusive with the field peerGcpGateway.
optional string peer_external_gateway = 384956173;- Specified by:
getPeerExternalGatewayBytesin interfaceVpnTunnelOrBuilder- Returns:
- The bytes for peerExternalGateway.
-
setPeerExternalGateway
URL of the peer side external VPN gateway to which this VPN tunnel is connected. Provided by the client when the VPN tunnel is created. This field is exclusive with the field peerGcpGateway.
optional string peer_external_gateway = 384956173;- Parameters:
value- The peerExternalGateway to set.- Returns:
- This builder for chaining.
-
clearPeerExternalGateway
URL of the peer side external VPN gateway to which this VPN tunnel is connected. Provided by the client when the VPN tunnel is created. This field is exclusive with the field peerGcpGateway.
optional string peer_external_gateway = 384956173;- Returns:
- This builder for chaining.
-
setPeerExternalGatewayBytes
URL of the peer side external VPN gateway to which this VPN tunnel is connected. Provided by the client when the VPN tunnel is created. This field is exclusive with the field peerGcpGateway.
optional string peer_external_gateway = 384956173;- Parameters:
value- The bytes for peerExternalGateway to set.- Returns:
- This builder for chaining.
-
hasPeerExternalGatewayInterface
public boolean hasPeerExternalGatewayInterface()The interface ID of the external VPN gateway to which this VPN tunnel is connected. Provided by the client when the VPN tunnel is created. Possible values are: `0`, `1`, `2`, `3`. The number of IDs in use depends on the external VPN gateway redundancy type.
optional int32 peer_external_gateway_interface = 452768391;- Specified by:
hasPeerExternalGatewayInterfacein interfaceVpnTunnelOrBuilder- Returns:
- Whether the peerExternalGatewayInterface field is set.
-
getPeerExternalGatewayInterface
public int getPeerExternalGatewayInterface()The interface ID of the external VPN gateway to which this VPN tunnel is connected. Provided by the client when the VPN tunnel is created. Possible values are: `0`, `1`, `2`, `3`. The number of IDs in use depends on the external VPN gateway redundancy type.
optional int32 peer_external_gateway_interface = 452768391;- Specified by:
getPeerExternalGatewayInterfacein interfaceVpnTunnelOrBuilder- Returns:
- The peerExternalGatewayInterface.
-
setPeerExternalGatewayInterface
The interface ID of the external VPN gateway to which this VPN tunnel is connected. Provided by the client when the VPN tunnel is created. Possible values are: `0`, `1`, `2`, `3`. The number of IDs in use depends on the external VPN gateway redundancy type.
optional int32 peer_external_gateway_interface = 452768391;- Parameters:
value- The peerExternalGatewayInterface to set.- Returns:
- This builder for chaining.
-
clearPeerExternalGatewayInterface
The interface ID of the external VPN gateway to which this VPN tunnel is connected. Provided by the client when the VPN tunnel is created. Possible values are: `0`, `1`, `2`, `3`. The number of IDs in use depends on the external VPN gateway redundancy type.
optional int32 peer_external_gateway_interface = 452768391;- Returns:
- This builder for chaining.
-
hasPeerGcpGateway
public boolean hasPeerGcpGateway()URL of the peer side HA VPN gateway to which this VPN tunnel is connected. Provided by the client when the VPN tunnel is created. This field can be used when creating highly available VPN from VPC network to VPC network, the field is exclusive with the field peerExternalGateway. If provided, the VPN tunnel will automatically use the same vpnGatewayInterface ID in the peer Google Cloud VPN gateway.
optional string peer_gcp_gateway = 281867452;- Specified by:
hasPeerGcpGatewayin interfaceVpnTunnelOrBuilder- Returns:
- Whether the peerGcpGateway field is set.
-
getPeerGcpGateway
URL of the peer side HA VPN gateway to which this VPN tunnel is connected. Provided by the client when the VPN tunnel is created. This field can be used when creating highly available VPN from VPC network to VPC network, the field is exclusive with the field peerExternalGateway. If provided, the VPN tunnel will automatically use the same vpnGatewayInterface ID in the peer Google Cloud VPN gateway.
optional string peer_gcp_gateway = 281867452;- Specified by:
getPeerGcpGatewayin interfaceVpnTunnelOrBuilder- Returns:
- The peerGcpGateway.
-
getPeerGcpGatewayBytes
public com.google.protobuf.ByteString getPeerGcpGatewayBytes()URL of the peer side HA VPN gateway to which this VPN tunnel is connected. Provided by the client when the VPN tunnel is created. This field can be used when creating highly available VPN from VPC network to VPC network, the field is exclusive with the field peerExternalGateway. If provided, the VPN tunnel will automatically use the same vpnGatewayInterface ID in the peer Google Cloud VPN gateway.
optional string peer_gcp_gateway = 281867452;- Specified by:
getPeerGcpGatewayBytesin interfaceVpnTunnelOrBuilder- Returns:
- The bytes for peerGcpGateway.
-
setPeerGcpGateway
URL of the peer side HA VPN gateway to which this VPN tunnel is connected. Provided by the client when the VPN tunnel is created. This field can be used when creating highly available VPN from VPC network to VPC network, the field is exclusive with the field peerExternalGateway. If provided, the VPN tunnel will automatically use the same vpnGatewayInterface ID in the peer Google Cloud VPN gateway.
optional string peer_gcp_gateway = 281867452;- Parameters:
value- The peerGcpGateway to set.- Returns:
- This builder for chaining.
-
clearPeerGcpGateway
URL of the peer side HA VPN gateway to which this VPN tunnel is connected. Provided by the client when the VPN tunnel is created. This field can be used when creating highly available VPN from VPC network to VPC network, the field is exclusive with the field peerExternalGateway. If provided, the VPN tunnel will automatically use the same vpnGatewayInterface ID in the peer Google Cloud VPN gateway.
optional string peer_gcp_gateway = 281867452;- Returns:
- This builder for chaining.
-
setPeerGcpGatewayBytes
URL of the peer side HA VPN gateway to which this VPN tunnel is connected. Provided by the client when the VPN tunnel is created. This field can be used when creating highly available VPN from VPC network to VPC network, the field is exclusive with the field peerExternalGateway. If provided, the VPN tunnel will automatically use the same vpnGatewayInterface ID in the peer Google Cloud VPN gateway.
optional string peer_gcp_gateway = 281867452;- Parameters:
value- The bytes for peerGcpGateway to set.- Returns:
- This builder for chaining.
-
hasPeerIp
public boolean hasPeerIp()IP address of the peer VPN gateway. Only IPv4 is supported. This field can be set only for Classic VPN tunnels.
optional string peer_ip = 383249700;- Specified by:
hasPeerIpin interfaceVpnTunnelOrBuilder- Returns:
- Whether the peerIp field is set.
-
getPeerIp
IP address of the peer VPN gateway. Only IPv4 is supported. This field can be set only for Classic VPN tunnels.
optional string peer_ip = 383249700;- Specified by:
getPeerIpin interfaceVpnTunnelOrBuilder- Returns:
- The peerIp.
-
getPeerIpBytes
public com.google.protobuf.ByteString getPeerIpBytes()IP address of the peer VPN gateway. Only IPv4 is supported. This field can be set only for Classic VPN tunnels.
optional string peer_ip = 383249700;- Specified by:
getPeerIpBytesin interfaceVpnTunnelOrBuilder- Returns:
- The bytes for peerIp.
-
setPeerIp
IP address of the peer VPN gateway. Only IPv4 is supported. This field can be set only for Classic VPN tunnels.
optional string peer_ip = 383249700;- Parameters:
value- The peerIp to set.- Returns:
- This builder for chaining.
-
clearPeerIp
IP address of the peer VPN gateway. Only IPv4 is supported. This field can be set only for Classic VPN tunnels.
optional string peer_ip = 383249700;- Returns:
- This builder for chaining.
-
setPeerIpBytes
IP address of the peer VPN gateway. Only IPv4 is supported. This field can be set only for Classic VPN tunnels.
optional string peer_ip = 383249700;- Parameters:
value- The bytes for peerIp to set.- Returns:
- This builder for chaining.
-
hasRegion
public boolean hasRegion()[Output Only] URL of the region where the VPN tunnel resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
optional string region = 138946292;- Specified by:
hasRegionin interfaceVpnTunnelOrBuilder- Returns:
- Whether the region field is set.
-
getRegion
[Output Only] URL of the region where the VPN tunnel resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
optional string region = 138946292;- Specified by:
getRegionin interfaceVpnTunnelOrBuilder- Returns:
- The region.
-
getRegionBytes
public com.google.protobuf.ByteString getRegionBytes()[Output Only] URL of the region where the VPN tunnel resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
optional string region = 138946292;- Specified by:
getRegionBytesin interfaceVpnTunnelOrBuilder- Returns:
- The bytes for region.
-
setRegion
[Output Only] URL of the region where the VPN tunnel resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
optional string region = 138946292;- Parameters:
value- The region to set.- Returns:
- This builder for chaining.
-
clearRegion
[Output Only] URL of the region where the VPN tunnel resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
optional string region = 138946292;- Returns:
- This builder for chaining.
-
setRegionBytes
[Output Only] URL of the region where the VPN tunnel resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
optional string region = 138946292;- Parameters:
value- The bytes for region to set.- Returns:
- This builder for chaining.
-
getRemoteTrafficSelectorList
public com.google.protobuf.ProtocolStringList getRemoteTrafficSelectorList()Remote traffic selectors to use when establishing the VPN tunnel with the peer VPN gateway. The value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is supported for Classic VPN tunnels. This field is output only for HA VPN tunnels.
repeated string remote_traffic_selector = 358887098;- Specified by:
getRemoteTrafficSelectorListin interfaceVpnTunnelOrBuilder- Returns:
- A list containing the remoteTrafficSelector.
-
getRemoteTrafficSelectorCount
public int getRemoteTrafficSelectorCount()Remote traffic selectors to use when establishing the VPN tunnel with the peer VPN gateway. The value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is supported for Classic VPN tunnels. This field is output only for HA VPN tunnels.
repeated string remote_traffic_selector = 358887098;- Specified by:
getRemoteTrafficSelectorCountin interfaceVpnTunnelOrBuilder- Returns:
- The count of remoteTrafficSelector.
-
getRemoteTrafficSelector
Remote traffic selectors to use when establishing the VPN tunnel with the peer VPN gateway. The value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is supported for Classic VPN tunnels. This field is output only for HA VPN tunnels.
repeated string remote_traffic_selector = 358887098;- Specified by:
getRemoteTrafficSelectorin interfaceVpnTunnelOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The remoteTrafficSelector at the given index.
-
getRemoteTrafficSelectorBytes
public com.google.protobuf.ByteString getRemoteTrafficSelectorBytes(int index) Remote traffic selectors to use when establishing the VPN tunnel with the peer VPN gateway. The value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is supported for Classic VPN tunnels. This field is output only for HA VPN tunnels.
repeated string remote_traffic_selector = 358887098;- Specified by:
getRemoteTrafficSelectorBytesin interfaceVpnTunnelOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the remoteTrafficSelector at the given index.
-
setRemoteTrafficSelector
Remote traffic selectors to use when establishing the VPN tunnel with the peer VPN gateway. The value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is supported for Classic VPN tunnels. This field is output only for HA VPN tunnels.
repeated string remote_traffic_selector = 358887098;- Parameters:
index- The index to set the value at.value- The remoteTrafficSelector to set.- Returns:
- This builder for chaining.
-
addRemoteTrafficSelector
Remote traffic selectors to use when establishing the VPN tunnel with the peer VPN gateway. The value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is supported for Classic VPN tunnels. This field is output only for HA VPN tunnels.
repeated string remote_traffic_selector = 358887098;- Parameters:
value- The remoteTrafficSelector to add.- Returns:
- This builder for chaining.
-
addAllRemoteTrafficSelector
Remote traffic selectors to use when establishing the VPN tunnel with the peer VPN gateway. The value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is supported for Classic VPN tunnels. This field is output only for HA VPN tunnels.
repeated string remote_traffic_selector = 358887098;- Parameters:
values- The remoteTrafficSelector to add.- Returns:
- This builder for chaining.
-
clearRemoteTrafficSelector
Remote traffic selectors to use when establishing the VPN tunnel with the peer VPN gateway. The value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is supported for Classic VPN tunnels. This field is output only for HA VPN tunnels.
repeated string remote_traffic_selector = 358887098;- Returns:
- This builder for chaining.
-
addRemoteTrafficSelectorBytes
Remote traffic selectors to use when establishing the VPN tunnel with the peer VPN gateway. The value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is supported for Classic VPN tunnels. This field is output only for HA VPN tunnels.
repeated string remote_traffic_selector = 358887098;- Parameters:
value- The bytes of the remoteTrafficSelector to add.- Returns:
- This builder for chaining.
-
hasRouter
public boolean hasRouter()URL of the router resource to be used for dynamic routing.
optional string router = 148608841;- Specified by:
hasRouterin interfaceVpnTunnelOrBuilder- Returns:
- Whether the router field is set.
-
getRouter
URL of the router resource to be used for dynamic routing.
optional string router = 148608841;- Specified by:
getRouterin interfaceVpnTunnelOrBuilder- Returns:
- The router.
-
getRouterBytes
public com.google.protobuf.ByteString getRouterBytes()URL of the router resource to be used for dynamic routing.
optional string router = 148608841;- Specified by:
getRouterBytesin interfaceVpnTunnelOrBuilder- Returns:
- The bytes for router.
-
setRouter
URL of the router resource to be used for dynamic routing.
optional string router = 148608841;- Parameters:
value- The router to set.- Returns:
- This builder for chaining.
-
clearRouter
URL of the router resource to be used for dynamic routing.
optional string router = 148608841;- Returns:
- This builder for chaining.
-
setRouterBytes
URL of the router resource to be used for dynamic routing.
optional string router = 148608841;- Parameters:
value- The bytes for router to set.- Returns:
- This builder for chaining.
-
hasSelfLink
public boolean hasSelfLink()[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;- Specified by:
hasSelfLinkin interfaceVpnTunnelOrBuilder- Returns:
- Whether the selfLink field is set.
-
getSelfLink
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;- Specified by:
getSelfLinkin interfaceVpnTunnelOrBuilder- Returns:
- The selfLink.
-
getSelfLinkBytes
public com.google.protobuf.ByteString getSelfLinkBytes()[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;- Specified by:
getSelfLinkBytesin interfaceVpnTunnelOrBuilder- Returns:
- The bytes for selfLink.
-
setSelfLink
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;- Parameters:
value- The selfLink to set.- Returns:
- This builder for chaining.
-
clearSelfLink
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;- Returns:
- This builder for chaining.
-
setSelfLinkBytes
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;- Parameters:
value- The bytes for selfLink to set.- Returns:
- This builder for chaining.
-
hasStatus
public boolean hasStatus()[Output Only] The status of the VPN tunnel, which can be one of the following: - PROVISIONING: Resource is being allocated for the VPN tunnel. - WAITING_FOR_FULL_CONFIG: Waiting to receive all VPN-related configs from the user. Network, TargetVpnGateway, VpnTunnel, ForwardingRule, and Route resources are needed to setup the VPN tunnel. - FIRST_HANDSHAKE: Successful first handshake with the peer VPN. - ESTABLISHED: Secure session is successfully established with the peer VPN. - NETWORK_ERROR: Deprecated, replaced by NO_INCOMING_PACKETS - AUTHORIZATION_ERROR: Auth error (for example, bad shared secret). - NEGOTIATION_FAILURE: Handshake failed. - DEPROVISIONING: Resources are being deallocated for the VPN tunnel. - FAILED: Tunnel creation has failed and the tunnel is not ready to be used. - NO_INCOMING_PACKETS: No incoming packets from peer. - REJECTED: Tunnel configuration was rejected, can be result of being denied access. - ALLOCATING_RESOURCES: Cloud VPN is in the process of allocating all required resources. - STOPPED: Tunnel is stopped due to its Forwarding Rules being deleted for Classic VPN tunnels or the project is in frozen state. - PEER_IDENTITY_MISMATCH: Peer identity does not match peer IP, probably behind NAT. - TS_NARROWING_NOT_ALLOWED: Traffic selector narrowing not allowed for an HA-VPN tunnel. Check the Status enum for the list of possible values.
optional string status = 181260274;- Specified by:
hasStatusin interfaceVpnTunnelOrBuilder- Returns:
- Whether the status field is set.
-
getStatus
[Output Only] The status of the VPN tunnel, which can be one of the following: - PROVISIONING: Resource is being allocated for the VPN tunnel. - WAITING_FOR_FULL_CONFIG: Waiting to receive all VPN-related configs from the user. Network, TargetVpnGateway, VpnTunnel, ForwardingRule, and Route resources are needed to setup the VPN tunnel. - FIRST_HANDSHAKE: Successful first handshake with the peer VPN. - ESTABLISHED: Secure session is successfully established with the peer VPN. - NETWORK_ERROR: Deprecated, replaced by NO_INCOMING_PACKETS - AUTHORIZATION_ERROR: Auth error (for example, bad shared secret). - NEGOTIATION_FAILURE: Handshake failed. - DEPROVISIONING: Resources are being deallocated for the VPN tunnel. - FAILED: Tunnel creation has failed and the tunnel is not ready to be used. - NO_INCOMING_PACKETS: No incoming packets from peer. - REJECTED: Tunnel configuration was rejected, can be result of being denied access. - ALLOCATING_RESOURCES: Cloud VPN is in the process of allocating all required resources. - STOPPED: Tunnel is stopped due to its Forwarding Rules being deleted for Classic VPN tunnels or the project is in frozen state. - PEER_IDENTITY_MISMATCH: Peer identity does not match peer IP, probably behind NAT. - TS_NARROWING_NOT_ALLOWED: Traffic selector narrowing not allowed for an HA-VPN tunnel. Check the Status enum for the list of possible values.
optional string status = 181260274;- Specified by:
getStatusin interfaceVpnTunnelOrBuilder- Returns:
- The status.
-
getStatusBytes
public com.google.protobuf.ByteString getStatusBytes()[Output Only] The status of the VPN tunnel, which can be one of the following: - PROVISIONING: Resource is being allocated for the VPN tunnel. - WAITING_FOR_FULL_CONFIG: Waiting to receive all VPN-related configs from the user. Network, TargetVpnGateway, VpnTunnel, ForwardingRule, and Route resources are needed to setup the VPN tunnel. - FIRST_HANDSHAKE: Successful first handshake with the peer VPN. - ESTABLISHED: Secure session is successfully established with the peer VPN. - NETWORK_ERROR: Deprecated, replaced by NO_INCOMING_PACKETS - AUTHORIZATION_ERROR: Auth error (for example, bad shared secret). - NEGOTIATION_FAILURE: Handshake failed. - DEPROVISIONING: Resources are being deallocated for the VPN tunnel. - FAILED: Tunnel creation has failed and the tunnel is not ready to be used. - NO_INCOMING_PACKETS: No incoming packets from peer. - REJECTED: Tunnel configuration was rejected, can be result of being denied access. - ALLOCATING_RESOURCES: Cloud VPN is in the process of allocating all required resources. - STOPPED: Tunnel is stopped due to its Forwarding Rules being deleted for Classic VPN tunnels or the project is in frozen state. - PEER_IDENTITY_MISMATCH: Peer identity does not match peer IP, probably behind NAT. - TS_NARROWING_NOT_ALLOWED: Traffic selector narrowing not allowed for an HA-VPN tunnel. Check the Status enum for the list of possible values.
optional string status = 181260274;- Specified by:
getStatusBytesin interfaceVpnTunnelOrBuilder- Returns:
- The bytes for status.
-
setStatus
[Output Only] The status of the VPN tunnel, which can be one of the following: - PROVISIONING: Resource is being allocated for the VPN tunnel. - WAITING_FOR_FULL_CONFIG: Waiting to receive all VPN-related configs from the user. Network, TargetVpnGateway, VpnTunnel, ForwardingRule, and Route resources are needed to setup the VPN tunnel. - FIRST_HANDSHAKE: Successful first handshake with the peer VPN. - ESTABLISHED: Secure session is successfully established with the peer VPN. - NETWORK_ERROR: Deprecated, replaced by NO_INCOMING_PACKETS - AUTHORIZATION_ERROR: Auth error (for example, bad shared secret). - NEGOTIATION_FAILURE: Handshake failed. - DEPROVISIONING: Resources are being deallocated for the VPN tunnel. - FAILED: Tunnel creation has failed and the tunnel is not ready to be used. - NO_INCOMING_PACKETS: No incoming packets from peer. - REJECTED: Tunnel configuration was rejected, can be result of being denied access. - ALLOCATING_RESOURCES: Cloud VPN is in the process of allocating all required resources. - STOPPED: Tunnel is stopped due to its Forwarding Rules being deleted for Classic VPN tunnels or the project is in frozen state. - PEER_IDENTITY_MISMATCH: Peer identity does not match peer IP, probably behind NAT. - TS_NARROWING_NOT_ALLOWED: Traffic selector narrowing not allowed for an HA-VPN tunnel. Check the Status enum for the list of possible values.
optional string status = 181260274;- Parameters:
value- The status to set.- Returns:
- This builder for chaining.
-
clearStatus
[Output Only] The status of the VPN tunnel, which can be one of the following: - PROVISIONING: Resource is being allocated for the VPN tunnel. - WAITING_FOR_FULL_CONFIG: Waiting to receive all VPN-related configs from the user. Network, TargetVpnGateway, VpnTunnel, ForwardingRule, and Route resources are needed to setup the VPN tunnel. - FIRST_HANDSHAKE: Successful first handshake with the peer VPN. - ESTABLISHED: Secure session is successfully established with the peer VPN. - NETWORK_ERROR: Deprecated, replaced by NO_INCOMING_PACKETS - AUTHORIZATION_ERROR: Auth error (for example, bad shared secret). - NEGOTIATION_FAILURE: Handshake failed. - DEPROVISIONING: Resources are being deallocated for the VPN tunnel. - FAILED: Tunnel creation has failed and the tunnel is not ready to be used. - NO_INCOMING_PACKETS: No incoming packets from peer. - REJECTED: Tunnel configuration was rejected, can be result of being denied access. - ALLOCATING_RESOURCES: Cloud VPN is in the process of allocating all required resources. - STOPPED: Tunnel is stopped due to its Forwarding Rules being deleted for Classic VPN tunnels or the project is in frozen state. - PEER_IDENTITY_MISMATCH: Peer identity does not match peer IP, probably behind NAT. - TS_NARROWING_NOT_ALLOWED: Traffic selector narrowing not allowed for an HA-VPN tunnel. Check the Status enum for the list of possible values.
optional string status = 181260274;- Returns:
- This builder for chaining.
-
setStatusBytes
[Output Only] The status of the VPN tunnel, which can be one of the following: - PROVISIONING: Resource is being allocated for the VPN tunnel. - WAITING_FOR_FULL_CONFIG: Waiting to receive all VPN-related configs from the user. Network, TargetVpnGateway, VpnTunnel, ForwardingRule, and Route resources are needed to setup the VPN tunnel. - FIRST_HANDSHAKE: Successful first handshake with the peer VPN. - ESTABLISHED: Secure session is successfully established with the peer VPN. - NETWORK_ERROR: Deprecated, replaced by NO_INCOMING_PACKETS - AUTHORIZATION_ERROR: Auth error (for example, bad shared secret). - NEGOTIATION_FAILURE: Handshake failed. - DEPROVISIONING: Resources are being deallocated for the VPN tunnel. - FAILED: Tunnel creation has failed and the tunnel is not ready to be used. - NO_INCOMING_PACKETS: No incoming packets from peer. - REJECTED: Tunnel configuration was rejected, can be result of being denied access. - ALLOCATING_RESOURCES: Cloud VPN is in the process of allocating all required resources. - STOPPED: Tunnel is stopped due to its Forwarding Rules being deleted for Classic VPN tunnels or the project is in frozen state. - PEER_IDENTITY_MISMATCH: Peer identity does not match peer IP, probably behind NAT. - TS_NARROWING_NOT_ALLOWED: Traffic selector narrowing not allowed for an HA-VPN tunnel. Check the Status enum for the list of possible values.
optional string status = 181260274;- Parameters:
value- The bytes for status to set.- Returns:
- This builder for chaining.
-
hasTargetVpnGateway
public boolean hasTargetVpnGateway()URL of the Target VPN gateway with which this VPN tunnel is associated. Provided by the client when the VPN tunnel is created. This field can be set only for Classic VPN tunnels.
optional string target_vpn_gateway = 532512843;- Specified by:
hasTargetVpnGatewayin interfaceVpnTunnelOrBuilder- Returns:
- Whether the targetVpnGateway field is set.
-
getTargetVpnGateway
URL of the Target VPN gateway with which this VPN tunnel is associated. Provided by the client when the VPN tunnel is created. This field can be set only for Classic VPN tunnels.
optional string target_vpn_gateway = 532512843;- Specified by:
getTargetVpnGatewayin interfaceVpnTunnelOrBuilder- Returns:
- The targetVpnGateway.
-
getTargetVpnGatewayBytes
public com.google.protobuf.ByteString getTargetVpnGatewayBytes()URL of the Target VPN gateway with which this VPN tunnel is associated. Provided by the client when the VPN tunnel is created. This field can be set only for Classic VPN tunnels.
optional string target_vpn_gateway = 532512843;- Specified by:
getTargetVpnGatewayBytesin interfaceVpnTunnelOrBuilder- Returns:
- The bytes for targetVpnGateway.
-
setTargetVpnGateway
URL of the Target VPN gateway with which this VPN tunnel is associated. Provided by the client when the VPN tunnel is created. This field can be set only for Classic VPN tunnels.
optional string target_vpn_gateway = 532512843;- Parameters:
value- The targetVpnGateway to set.- Returns:
- This builder for chaining.
-
clearTargetVpnGateway
URL of the Target VPN gateway with which this VPN tunnel is associated. Provided by the client when the VPN tunnel is created. This field can be set only for Classic VPN tunnels.
optional string target_vpn_gateway = 532512843;- Returns:
- This builder for chaining.
-
setTargetVpnGatewayBytes
URL of the Target VPN gateway with which this VPN tunnel is associated. Provided by the client when the VPN tunnel is created. This field can be set only for Classic VPN tunnels.
optional string target_vpn_gateway = 532512843;- Parameters:
value- The bytes for targetVpnGateway to set.- Returns:
- This builder for chaining.
-
hasVpnGateway
public boolean hasVpnGateway()URL of the VPN gateway with which this VPN tunnel is associated. Provided by the client when the VPN tunnel is created. This must be used (instead of target_vpn_gateway) if a High Availability VPN gateway resource is created.
optional string vpn_gateway = 406684153;- Specified by:
hasVpnGatewayin interfaceVpnTunnelOrBuilder- Returns:
- Whether the vpnGateway field is set.
-
getVpnGateway
URL of the VPN gateway with which this VPN tunnel is associated. Provided by the client when the VPN tunnel is created. This must be used (instead of target_vpn_gateway) if a High Availability VPN gateway resource is created.
optional string vpn_gateway = 406684153;- Specified by:
getVpnGatewayin interfaceVpnTunnelOrBuilder- Returns:
- The vpnGateway.
-
getVpnGatewayBytes
public com.google.protobuf.ByteString getVpnGatewayBytes()URL of the VPN gateway with which this VPN tunnel is associated. Provided by the client when the VPN tunnel is created. This must be used (instead of target_vpn_gateway) if a High Availability VPN gateway resource is created.
optional string vpn_gateway = 406684153;- Specified by:
getVpnGatewayBytesin interfaceVpnTunnelOrBuilder- Returns:
- The bytes for vpnGateway.
-
setVpnGateway
URL of the VPN gateway with which this VPN tunnel is associated. Provided by the client when the VPN tunnel is created. This must be used (instead of target_vpn_gateway) if a High Availability VPN gateway resource is created.
optional string vpn_gateway = 406684153;- Parameters:
value- The vpnGateway to set.- Returns:
- This builder for chaining.
-
clearVpnGateway
URL of the VPN gateway with which this VPN tunnel is associated. Provided by the client when the VPN tunnel is created. This must be used (instead of target_vpn_gateway) if a High Availability VPN gateway resource is created.
optional string vpn_gateway = 406684153;- Returns:
- This builder for chaining.
-
setVpnGatewayBytes
URL of the VPN gateway with which this VPN tunnel is associated. Provided by the client when the VPN tunnel is created. This must be used (instead of target_vpn_gateway) if a High Availability VPN gateway resource is created.
optional string vpn_gateway = 406684153;- Parameters:
value- The bytes for vpnGateway to set.- Returns:
- This builder for chaining.
-
hasVpnGatewayInterface
public boolean hasVpnGatewayInterface()The interface ID of the VPN gateway with which this VPN tunnel is associated. Possible values are: `0`, `1`.
optional int32 vpn_gateway_interface = 95979123;- Specified by:
hasVpnGatewayInterfacein interfaceVpnTunnelOrBuilder- Returns:
- Whether the vpnGatewayInterface field is set.
-
getVpnGatewayInterface
public int getVpnGatewayInterface()The interface ID of the VPN gateway with which this VPN tunnel is associated. Possible values are: `0`, `1`.
optional int32 vpn_gateway_interface = 95979123;- Specified by:
getVpnGatewayInterfacein interfaceVpnTunnelOrBuilder- Returns:
- The vpnGatewayInterface.
-
setVpnGatewayInterface
The interface ID of the VPN gateway with which this VPN tunnel is associated. Possible values are: `0`, `1`.
optional int32 vpn_gateway_interface = 95979123;- Parameters:
value- The vpnGatewayInterface to set.- Returns:
- This builder for chaining.
-
clearVpnGatewayInterface
The interface ID of the VPN gateway with which this VPN tunnel is associated. Possible values are: `0`, `1`.
optional int32 vpn_gateway_interface = 95979123;- Returns:
- This builder for chaining.
-