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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<VpnTunnel.Builder> implements VpnTunnelOrBuilder
Represents a Cloud VPN Tunnel resource. For more information about VPN, read the the Cloud VPN Overview.
Protobuf typegoogle.cloud.compute.v1.VpnTunnel
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description VpnTunnel.BuilderaddAllLocalTrafficSelector(Iterable<String> values)Local traffic selector to use when establishing the VPN tunnel with the peer VPN gateway.VpnTunnel.BuilderaddAllRemoteTrafficSelector(Iterable<String> values)Remote traffic selectors to use when establishing the VPN tunnel with the peer VPN gateway.VpnTunnel.BuilderaddLocalTrafficSelector(String value)Local traffic selector to use when establishing the VPN tunnel with the peer VPN gateway.VpnTunnel.BuilderaddLocalTrafficSelectorBytes(com.google.protobuf.ByteString value)Local traffic selector to use when establishing the VPN tunnel with the peer VPN gateway.VpnTunnel.BuilderaddRemoteTrafficSelector(String value)Remote traffic selectors to use when establishing the VPN tunnel with the peer VPN gateway.VpnTunnel.BuilderaddRemoteTrafficSelectorBytes(com.google.protobuf.ByteString value)Remote traffic selectors to use when establishing the VPN tunnel with the peer VPN gateway.VpnTunnel.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)VpnTunnelbuild()VpnTunnelbuildPartial()VpnTunnel.Builderclear()VpnTunnel.BuilderclearCreationTimestamp()[Output Only] Creation timestamp in RFC3339 text format.VpnTunnel.BuilderclearDescription()An optional description of this resource.VpnTunnel.BuilderclearDetailedStatus()[Output Only] Detailed status message for the VPN tunnel.VpnTunnel.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)VpnTunnel.BuilderclearId()[Output Only] The unique identifier for the resource.VpnTunnel.BuilderclearIkeVersion()IKE protocol version to use when establishing the VPN tunnel with the peer VPN gateway.VpnTunnel.BuilderclearKind()[Output Only] Type of resource.VpnTunnel.BuilderclearLabelFingerprint()A fingerprint for the labels being applied to this VpnTunnel, which is essentially a hash of the labels set used for optimistic locking.VpnTunnel.BuilderclearLabels()VpnTunnel.BuilderclearLocalTrafficSelector()Local traffic selector to use when establishing the VPN tunnel with the peer VPN gateway.VpnTunnel.BuilderclearName()Name of the resource.VpnTunnel.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)VpnTunnel.BuilderclearPeerExternalGateway()URL of the peer side external VPN gateway to which this VPN tunnel is connected.VpnTunnel.BuilderclearPeerExternalGatewayInterface()The interface ID of the external VPN gateway to which this VPN tunnel is connected.VpnTunnel.BuilderclearPeerGcpGateway()URL of the peer side HA GCP VPN gateway to which this VPN tunnel is connected.VpnTunnel.BuilderclearPeerIp()IP address of the peer VPN gateway.VpnTunnel.BuilderclearRegion()[Output Only] URL of the region where the VPN tunnel resides.VpnTunnel.BuilderclearRemoteTrafficSelector()Remote traffic selectors to use when establishing the VPN tunnel with the peer VPN gateway.VpnTunnel.BuilderclearRouter()URL of the router resource to be used for dynamic routing.VpnTunnel.BuilderclearSelfLink()[Output Only] Server-defined URL for the resource.VpnTunnel.BuilderclearSharedSecret()Shared secret used to set the secure session between the Cloud VPN gateway and the peer VPN gateway.VpnTunnel.BuilderclearSharedSecretHash()Hash of the shared secret.VpnTunnel.BuilderclearStatus()[Output Only] The status of the VPN tunnel, which can be one of the following: - PROVISIONING: Resource is being allocated for the VPN tunnel.VpnTunnel.BuilderclearTargetVpnGateway()URL of the Target VPN gateway with which this VPN tunnel is associated.VpnTunnel.BuilderclearVpnGateway()URL of the VPN gateway with which this VPN tunnel is associated.VpnTunnel.BuilderclearVpnGatewayInterface()The interface ID of the VPN gateway with which this VPN tunnel is associated.VpnTunnel.Builderclone()booleancontainsLabels(String key)Labels for this resource.StringgetCreationTimestamp()[Output Only] Creation timestamp in RFC3339 text format.com.google.protobuf.ByteStringgetCreationTimestampBytes()[Output Only] Creation timestamp in RFC3339 text format.VpnTunnelgetDefaultInstanceForType()StringgetDescription()An optional description of this resource.com.google.protobuf.ByteStringgetDescriptionBytes()An optional description of this resource.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetDetailedStatus()[Output Only] Detailed status message for the VPN tunnel.com.google.protobuf.ByteStringgetDetailedStatusBytes()[Output Only] Detailed status message for the VPN tunnel.longgetId()[Output Only] The unique identifier for the resource.intgetIkeVersion()IKE protocol version to use when establishing the VPN tunnel with the peer VPN gateway.StringgetKind()[Output Only] Type of resource.com.google.protobuf.ByteStringgetKindBytes()[Output Only] Type of resource.StringgetLabelFingerprint()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.ByteStringgetLabelFingerprintBytes()A fingerprint for the labels being applied to this VpnTunnel, which is essentially a hash of the labels set used for optimistic locking.Map<String,String>getLabels()Deprecated.intgetLabelsCount()Labels for this resource.Map<String,String>getLabelsMap()Labels for this resource.StringgetLabelsOrDefault(String key, String defaultValue)Labels for this resource.StringgetLabelsOrThrow(String key)Labels for this resource.StringgetLocalTrafficSelector(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.intgetLocalTrafficSelectorCount()Local traffic selector to use when establishing the VPN tunnel with the peer VPN gateway.com.google.protobuf.ProtocolStringListgetLocalTrafficSelectorList()Local traffic selector to use when establishing the VPN tunnel with the peer VPN gateway.Map<String,String>getMutableLabels()Deprecated.StringgetName()Name of the resource.com.google.protobuf.ByteStringgetNameBytes()Name of the resource.StringgetPeerExternalGateway()URL of the peer side external VPN gateway to which this VPN tunnel is connected.com.google.protobuf.ByteStringgetPeerExternalGatewayBytes()URL of the peer side external VPN gateway to which this VPN tunnel is connected.intgetPeerExternalGatewayInterface()The interface ID of the external VPN gateway to which this VPN tunnel is connected.StringgetPeerGcpGateway()URL of the peer side HA GCP VPN gateway to which this VPN tunnel is connected.com.google.protobuf.ByteStringgetPeerGcpGatewayBytes()URL of the peer side HA GCP VPN gateway to which this VPN tunnel is connected.StringgetPeerIp()IP address of the peer VPN gateway.com.google.protobuf.ByteStringgetPeerIpBytes()IP address of the peer VPN gateway.StringgetRegion()[Output Only] URL of the region where the VPN tunnel resides.com.google.protobuf.ByteStringgetRegionBytes()[Output Only] URL of the region where the VPN tunnel resides.StringgetRemoteTrafficSelector(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.intgetRemoteTrafficSelectorCount()Remote traffic selectors to use when establishing the VPN tunnel with the peer VPN gateway.com.google.protobuf.ProtocolStringListgetRemoteTrafficSelectorList()Remote traffic selectors to use when establishing the VPN tunnel with the peer VPN gateway.StringgetRouter()URL of the router resource to be used for dynamic routing.com.google.protobuf.ByteStringgetRouterBytes()URL of the router resource to be used for dynamic routing.StringgetSelfLink()[Output Only] Server-defined URL for the resource.com.google.protobuf.ByteStringgetSelfLinkBytes()[Output Only] Server-defined URL for the resource.StringgetSharedSecret()Shared secret used to set the secure session between the Cloud VPN gateway and the peer VPN gateway.com.google.protobuf.ByteStringgetSharedSecretBytes()Shared secret used to set the secure session between the Cloud VPN gateway and the peer VPN gateway.StringgetSharedSecretHash()Hash of the shared secret.com.google.protobuf.ByteStringgetSharedSecretHashBytes()Hash of the shared secret.StringgetStatus()[Output Only] The status of the VPN tunnel, which can be one of the following: - PROVISIONING: Resource is being allocated for the VPN tunnel.com.google.protobuf.ByteStringgetStatusBytes()[Output Only] The status of the VPN tunnel, which can be one of the following: - PROVISIONING: Resource is being allocated for the VPN tunnel.StringgetTargetVpnGateway()URL of the Target VPN gateway with which this VPN tunnel is associated.com.google.protobuf.ByteStringgetTargetVpnGatewayBytes()URL of the Target VPN gateway with which this VPN tunnel is associated.StringgetVpnGateway()URL of the VPN gateway with which this VPN tunnel is associated.com.google.protobuf.ByteStringgetVpnGatewayBytes()URL of the VPN gateway with which this VPN tunnel is associated.intgetVpnGatewayInterface()The interface ID of the VPN gateway with which this VPN tunnel is associated.booleanhasCreationTimestamp()[Output Only] Creation timestamp in RFC3339 text format.booleanhasDescription()An optional description of this resource.booleanhasDetailedStatus()[Output Only] Detailed status message for the VPN tunnel.booleanhasId()[Output Only] The unique identifier for the resource.booleanhasIkeVersion()IKE protocol version to use when establishing the VPN tunnel with the peer VPN gateway.booleanhasKind()[Output Only] Type of resource.booleanhasLabelFingerprint()A 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.booleanhasPeerExternalGateway()URL of the peer side external VPN gateway to which this VPN tunnel is connected.booleanhasPeerExternalGatewayInterface()The interface ID of the external VPN gateway to which this VPN tunnel is connected.booleanhasPeerGcpGateway()URL of the peer side HA GCP VPN gateway to which this VPN tunnel is connected.booleanhasPeerIp()IP address of the peer VPN gateway.booleanhasRegion()[Output Only] URL of the region where the VPN tunnel resides.booleanhasRouter()URL of the router resource to be used for dynamic routing.booleanhasSelfLink()[Output Only] Server-defined URL for the resource.booleanhasSharedSecret()Shared secret used to set the secure session between the Cloud VPN gateway and the peer VPN gateway.booleanhasSharedSecretHash()Hash of the shared secret.booleanhasStatus()[Output Only] The status of the VPN tunnel, which can be one of the following: - PROVISIONING: Resource is being allocated for the VPN tunnel.booleanhasTargetVpnGateway()URL of the Target VPN gateway with which this VPN tunnel is associated.booleanhasVpnGateway()URL of the VPN gateway with which this VPN tunnel is associated.booleanhasVpnGatewayInterface()The interface ID of the VPN gateway with which this VPN tunnel is associated.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()VpnTunnel.BuildermergeFrom(VpnTunnel other)VpnTunnel.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)VpnTunnel.BuildermergeFrom(com.google.protobuf.Message other)VpnTunnel.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)VpnTunnel.BuilderputAllLabels(Map<String,String> values)Labels for this resource.VpnTunnel.BuilderputLabels(String key, String value)Labels for this resource.VpnTunnel.BuilderremoveLabels(String key)Labels for this resource.VpnTunnel.BuildersetCreationTimestamp(String value)[Output Only] Creation timestamp in RFC3339 text format.VpnTunnel.BuildersetCreationTimestampBytes(com.google.protobuf.ByteString value)[Output Only] Creation timestamp in RFC3339 text format.VpnTunnel.BuildersetDescription(String value)An optional description of this resource.VpnTunnel.BuildersetDescriptionBytes(com.google.protobuf.ByteString value)An optional description of this resource.VpnTunnel.BuildersetDetailedStatus(String value)[Output Only] Detailed status message for the VPN tunnel.VpnTunnel.BuildersetDetailedStatusBytes(com.google.protobuf.ByteString value)[Output Only] Detailed status message for the VPN tunnel.VpnTunnel.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)VpnTunnel.BuildersetId(long value)[Output Only] The unique identifier for the resource.VpnTunnel.BuildersetIkeVersion(int value)IKE protocol version to use when establishing the VPN tunnel with the peer VPN gateway.VpnTunnel.BuildersetKind(String value)[Output Only] Type of resource.VpnTunnel.BuildersetKindBytes(com.google.protobuf.ByteString value)[Output Only] Type of resource.VpnTunnel.BuildersetLabelFingerprint(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.VpnTunnel.BuildersetLabelFingerprintBytes(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.VpnTunnel.BuildersetLocalTrafficSelector(int index, String value)Local traffic selector to use when establishing the VPN tunnel with the peer VPN gateway.VpnTunnel.BuildersetName(String value)Name of the resource.VpnTunnel.BuildersetNameBytes(com.google.protobuf.ByteString value)Name of the resource.VpnTunnel.BuildersetPeerExternalGateway(String value)URL of the peer side external VPN gateway to which this VPN tunnel is connected.VpnTunnel.BuildersetPeerExternalGatewayBytes(com.google.protobuf.ByteString value)URL of the peer side external VPN gateway to which this VPN tunnel is connected.VpnTunnel.BuildersetPeerExternalGatewayInterface(int value)The interface ID of the external VPN gateway to which this VPN tunnel is connected.VpnTunnel.BuildersetPeerGcpGateway(String value)URL of the peer side HA GCP VPN gateway to which this VPN tunnel is connected.VpnTunnel.BuildersetPeerGcpGatewayBytes(com.google.protobuf.ByteString value)URL of the peer side HA GCP VPN gateway to which this VPN tunnel is connected.VpnTunnel.BuildersetPeerIp(String value)IP address of the peer VPN gateway.VpnTunnel.BuildersetPeerIpBytes(com.google.protobuf.ByteString value)IP address of the peer VPN gateway.VpnTunnel.BuildersetRegion(String value)[Output Only] URL of the region where the VPN tunnel resides.VpnTunnel.BuildersetRegionBytes(com.google.protobuf.ByteString value)[Output Only] URL of the region where the VPN tunnel resides.VpnTunnel.BuildersetRemoteTrafficSelector(int index, String value)Remote traffic selectors to use when establishing the VPN tunnel with the peer VPN gateway.VpnTunnel.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)VpnTunnel.BuildersetRouter(String value)URL of the router resource to be used for dynamic routing.VpnTunnel.BuildersetRouterBytes(com.google.protobuf.ByteString value)URL of the router resource to be used for dynamic routing.VpnTunnel.BuildersetSelfLink(String value)[Output Only] Server-defined URL for the resource.VpnTunnel.BuildersetSelfLinkBytes(com.google.protobuf.ByteString value)[Output Only] Server-defined URL for the resource.VpnTunnel.BuildersetSharedSecret(String value)Shared secret used to set the secure session between the Cloud VPN gateway and the peer VPN gateway.VpnTunnel.BuildersetSharedSecretBytes(com.google.protobuf.ByteString value)Shared secret used to set the secure session between the Cloud VPN gateway and the peer VPN gateway.VpnTunnel.BuildersetSharedSecretHash(String value)Hash of the shared secret.VpnTunnel.BuildersetSharedSecretHashBytes(com.google.protobuf.ByteString value)Hash of the shared secret.VpnTunnel.BuildersetStatus(String value)[Output Only] The status of the VPN tunnel, which can be one of the following: - PROVISIONING: Resource is being allocated for the VPN tunnel.VpnTunnel.BuildersetStatusBytes(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 tunnel.VpnTunnel.BuildersetTargetVpnGateway(String value)URL of the Target VPN gateway with which this VPN tunnel is associated.VpnTunnel.BuildersetTargetVpnGatewayBytes(com.google.protobuf.ByteString value)URL of the Target VPN gateway with which this VPN tunnel is associated.VpnTunnel.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)VpnTunnel.BuildersetVpnGateway(String value)URL of the VPN gateway with which this VPN tunnel is associated.VpnTunnel.BuildersetVpnGatewayBytes(com.google.protobuf.ByteString value)URL of the VPN gateway with which this VPN tunnel is associated.VpnTunnel.BuildersetVpnGatewayInterface(int value)The interface ID of the VPN gateway with which this VPN tunnel is associated.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<VpnTunnel.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<VpnTunnel.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<VpnTunnel.Builder>
-
clear
public VpnTunnel.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<VpnTunnel.Builder>
-
getDefaultInstanceForType
public VpnTunnel getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public VpnTunnel build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public VpnTunnel buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public VpnTunnel.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<VpnTunnel.Builder>
-
setField
public VpnTunnel.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<VpnTunnel.Builder>
-
clearField
public VpnTunnel.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<VpnTunnel.Builder>
-
clearOneof
public VpnTunnel.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<VpnTunnel.Builder>
-
setRepeatedField
public VpnTunnel.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<VpnTunnel.Builder>
-
addRepeatedField
public VpnTunnel.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<VpnTunnel.Builder>
-
mergeFrom
public VpnTunnel.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<VpnTunnel.Builder>
-
mergeFrom
public VpnTunnel.Builder mergeFrom(VpnTunnel other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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
-
hasCreationTimestamp
public boolean hasCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;- Specified by:
hasCreationTimestampin interfaceVpnTunnelOrBuilder- Returns:
- Whether the creationTimestamp field is set.
-
getCreationTimestamp
public String getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;- Specified by:
getCreationTimestampin interfaceVpnTunnelOrBuilder- Returns:
- The creationTimestamp.
-
getCreationTimestampBytes
public com.google.protobuf.ByteString getCreationTimestampBytes()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;- Specified by:
getCreationTimestampBytesin interfaceVpnTunnelOrBuilder- Returns:
- The bytes for creationTimestamp.
-
setCreationTimestamp
public VpnTunnel.Builder setCreationTimestamp(String value)
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;- Parameters:
value- The creationTimestamp to set.- Returns:
- This builder for chaining.
-
clearCreationTimestamp
public VpnTunnel.Builder clearCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;- Returns:
- This builder for chaining.
-
setCreationTimestampBytes
public VpnTunnel.Builder setCreationTimestampBytes(com.google.protobuf.ByteString value)
[Output Only] Creation timestamp in RFC3339 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
public String 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
public VpnTunnel.Builder setDescription(String value)
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
public VpnTunnel.Builder 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
public VpnTunnel.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
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
public String 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
public VpnTunnel.Builder setDetailedStatus(String value)
[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
public VpnTunnel.Builder clearDetailedStatus()
[Output Only] Detailed status message for the VPN tunnel.
optional string detailed_status = 333501025;- Returns:
- This builder for chaining.
-
setDetailedStatusBytes
public VpnTunnel.Builder setDetailedStatusBytes(com.google.protobuf.ByteString value)
[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
public VpnTunnel.Builder setId(long value)
[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
public VpnTunnel.Builder 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
public VpnTunnel.Builder setIkeVersion(int value)
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
public VpnTunnel.Builder 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] 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
public String getKind()
[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] Type of resource. Always compute#vpnTunnel for VPN tunnels.
optional string kind = 3292052;- Specified by:
getKindBytesin interfaceVpnTunnelOrBuilder- Returns:
- The bytes for kind.
-
setKind
public VpnTunnel.Builder setKind(String value)
[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
public VpnTunnel.Builder clearKind()
[Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels.
optional string kind = 3292052;- Returns:
- This builder for chaining.
-
setKindBytes
public VpnTunnel.Builder setKindBytes(com.google.protobuf.ByteString value)
[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 error 412 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
public String 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 error 412 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 error 412 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
public VpnTunnel.Builder 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. 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 error 412 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
public VpnTunnel.Builder 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 error 412 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
public VpnTunnel.Builder 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. 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 error 412 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 the setLabels method. Each label key/value pair must comply with RFC1035. Label values may be empty.
map<string, string> labels = 500195327;- Specified by:
getLabelsCountin interfaceVpnTunnelOrBuilder
-
containsLabels
public boolean containsLabels(String key)
Labels for this resource. These can only be added or modified by the setLabels method. Each label key/value pair must comply with RFC1035. Label values may be empty.
map<string, string> labels = 500195327;- Specified by:
containsLabelsin interfaceVpnTunnelOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceVpnTunnelOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
Labels for this resource. These can only be added or modified by the setLabels method. Each label key/value pair must comply with RFC1035. Label values may be empty.
map<string, string> labels = 500195327;- Specified by:
getLabelsMapin interfaceVpnTunnelOrBuilder
-
getLabelsOrDefault
public String getLabelsOrDefault(String key, String defaultValue)
Labels for this resource. These can only be added or modified by the setLabels method. Each label key/value pair must comply with RFC1035. Label values may be empty.
map<string, string> labels = 500195327;- Specified by:
getLabelsOrDefaultin interfaceVpnTunnelOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
Labels for this resource. These can only be added or modified by the setLabels method. Each label key/value pair must comply with RFC1035. Label values may be empty.
map<string, string> labels = 500195327;- Specified by:
getLabelsOrThrowin interfaceVpnTunnelOrBuilder
-
clearLabels
public VpnTunnel.Builder clearLabels()
-
removeLabels
public VpnTunnel.Builder removeLabels(String key)
Labels for this resource. These can only be added or modified by the setLabels method. Each label key/value pair must comply with RFC1035. Label values may be empty.
map<string, string> labels = 500195327;
-
getMutableLabels
@Deprecated public Map<String,String> getMutableLabels()
Deprecated.Use alternate mutation accessors instead.
-
putLabels
public VpnTunnel.Builder putLabels(String key, String value)
Labels for this resource. These can only be added or modified by the setLabels method. Each label key/value pair must comply with RFC1035. Label values may be empty.
map<string, string> labels = 500195327;
-
putAllLabels
public VpnTunnel.Builder putAllLabels(Map<String,String> values)
Labels for this resource. These can only be added or modified by the setLabels method. Each label key/value pair must comply with RFC1035. 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.
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.
repeated string local_traffic_selector = 317314613;- Specified by:
getLocalTrafficSelectorCountin interfaceVpnTunnelOrBuilder- Returns:
- The count of localTrafficSelector.
-
getLocalTrafficSelector
public String getLocalTrafficSelector(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.
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.
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
public VpnTunnel.Builder setLocalTrafficSelector(int index, String value)
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.
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
public VpnTunnel.Builder addLocalTrafficSelector(String value)
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.
repeated string local_traffic_selector = 317314613;- Parameters:
value- The localTrafficSelector to add.- Returns:
- This builder for chaining.
-
addAllLocalTrafficSelector
public VpnTunnel.Builder addAllLocalTrafficSelector(Iterable<String> values)
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.
repeated string local_traffic_selector = 317314613;- Parameters:
values- The localTrafficSelector to add.- Returns:
- This builder for chaining.
-
clearLocalTrafficSelector
public VpnTunnel.Builder 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.
repeated string local_traffic_selector = 317314613;- Returns:
- This builder for chaining.
-
addLocalTrafficSelectorBytes
public VpnTunnel.Builder addLocalTrafficSelectorBytes(com.google.protobuf.ByteString value)
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.
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 with RFC1035. 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
public String getName()
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. 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 with RFC1035. 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
public VpnTunnel.Builder setName(String value)
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. 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
public VpnTunnel.Builder clearName()
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. 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
public VpnTunnel.Builder setNameBytes(com.google.protobuf.ByteString value)
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. 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.
-
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
public String 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
public VpnTunnel.Builder setPeerExternalGateway(String value)
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
public VpnTunnel.Builder 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
public VpnTunnel.Builder setPeerExternalGatewayBytes(com.google.protobuf.ByteString value)
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
public VpnTunnel.Builder setPeerExternalGatewayInterface(int value)
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
public VpnTunnel.Builder 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 GCP 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 GCP VPN gateway.
optional string peer_gcp_gateway = 281867452;- Specified by:
hasPeerGcpGatewayin interfaceVpnTunnelOrBuilder- Returns:
- Whether the peerGcpGateway field is set.
-
getPeerGcpGateway
public String getPeerGcpGateway()
URL of the peer side HA GCP 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 GCP 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 GCP 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 GCP VPN gateway.
optional string peer_gcp_gateway = 281867452;- Specified by:
getPeerGcpGatewayBytesin interfaceVpnTunnelOrBuilder- Returns:
- The bytes for peerGcpGateway.
-
setPeerGcpGateway
public VpnTunnel.Builder setPeerGcpGateway(String value)
URL of the peer side HA GCP 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 GCP VPN gateway.
optional string peer_gcp_gateway = 281867452;- Parameters:
value- The peerGcpGateway to set.- Returns:
- This builder for chaining.
-
clearPeerGcpGateway
public VpnTunnel.Builder clearPeerGcpGateway()
URL of the peer side HA GCP 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 GCP VPN gateway.
optional string peer_gcp_gateway = 281867452;- Returns:
- This builder for chaining.
-
setPeerGcpGatewayBytes
public VpnTunnel.Builder setPeerGcpGatewayBytes(com.google.protobuf.ByteString value)
URL of the peer side HA GCP 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 GCP 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.
optional string peer_ip = 383249700;- Specified by:
hasPeerIpin interfaceVpnTunnelOrBuilder- Returns:
- Whether the peerIp field is set.
-
getPeerIp
public String getPeerIp()
IP address of the peer VPN gateway. Only IPv4 is supported.
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.
optional string peer_ip = 383249700;- Specified by:
getPeerIpBytesin interfaceVpnTunnelOrBuilder- Returns:
- The bytes for peerIp.
-
setPeerIp
public VpnTunnel.Builder setPeerIp(String value)
IP address of the peer VPN gateway. Only IPv4 is supported.
optional string peer_ip = 383249700;- Parameters:
value- The peerIp to set.- Returns:
- This builder for chaining.
-
clearPeerIp
public VpnTunnel.Builder clearPeerIp()
IP address of the peer VPN gateway. Only IPv4 is supported.
optional string peer_ip = 383249700;- Returns:
- This builder for chaining.
-
setPeerIpBytes
public VpnTunnel.Builder setPeerIpBytes(com.google.protobuf.ByteString value)
IP address of the peer VPN gateway. Only IPv4 is supported.
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
public String 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
public VpnTunnel.Builder setRegion(String value)
[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
public VpnTunnel.Builder 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
public VpnTunnel.Builder setRegionBytes(com.google.protobuf.ByteString value)
[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.
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.
repeated string remote_traffic_selector = 358887098;- Specified by:
getRemoteTrafficSelectorCountin interfaceVpnTunnelOrBuilder- Returns:
- The count of remoteTrafficSelector.
-
getRemoteTrafficSelector
public String getRemoteTrafficSelector(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.
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.
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
public VpnTunnel.Builder setRemoteTrafficSelector(int index, String value)
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.
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
public VpnTunnel.Builder addRemoteTrafficSelector(String value)
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.
repeated string remote_traffic_selector = 358887098;- Parameters:
value- The remoteTrafficSelector to add.- Returns:
- This builder for chaining.
-
addAllRemoteTrafficSelector
public VpnTunnel.Builder addAllRemoteTrafficSelector(Iterable<String> values)
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.
repeated string remote_traffic_selector = 358887098;- Parameters:
values- The remoteTrafficSelector to add.- Returns:
- This builder for chaining.
-
clearRemoteTrafficSelector
public VpnTunnel.Builder 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.
repeated string remote_traffic_selector = 358887098;- Returns:
- This builder for chaining.
-
addRemoteTrafficSelectorBytes
public VpnTunnel.Builder addRemoteTrafficSelectorBytes(com.google.protobuf.ByteString value)
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.
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
public String 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
public VpnTunnel.Builder setRouter(String value)
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
public VpnTunnel.Builder clearRouter()
URL of the router resource to be used for dynamic routing.
optional string router = 148608841;- Returns:
- This builder for chaining.
-
setRouterBytes
public VpnTunnel.Builder setRouterBytes(com.google.protobuf.ByteString value)
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
public String 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
public VpnTunnel.Builder setSelfLink(String value)
[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
public VpnTunnel.Builder clearSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;- Returns:
- This builder for chaining.
-
setSelfLinkBytes
public VpnTunnel.Builder setSelfLinkBytes(com.google.protobuf.ByteString value)
[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.
-
hasSharedSecret
public boolean hasSharedSecret()
Shared secret used to set the secure session between the Cloud VPN gateway and the peer VPN gateway.
optional string shared_secret = 381932490;- Specified by:
hasSharedSecretin interfaceVpnTunnelOrBuilder- Returns:
- Whether the sharedSecret field is set.
-
getSharedSecret
public String getSharedSecret()
Shared secret used to set the secure session between the Cloud VPN gateway and the peer VPN gateway.
optional string shared_secret = 381932490;- Specified by:
getSharedSecretin interfaceVpnTunnelOrBuilder- Returns:
- The sharedSecret.
-
getSharedSecretBytes
public com.google.protobuf.ByteString getSharedSecretBytes()
Shared secret used to set the secure session between the Cloud VPN gateway and the peer VPN gateway.
optional string shared_secret = 381932490;- Specified by:
getSharedSecretBytesin interfaceVpnTunnelOrBuilder- Returns:
- The bytes for sharedSecret.
-
setSharedSecret
public VpnTunnel.Builder setSharedSecret(String value)
Shared secret used to set the secure session between the Cloud VPN gateway and the peer VPN gateway.
optional string shared_secret = 381932490;- Parameters:
value- The sharedSecret to set.- Returns:
- This builder for chaining.
-
clearSharedSecret
public VpnTunnel.Builder clearSharedSecret()
Shared secret used to set the secure session between the Cloud VPN gateway and the peer VPN gateway.
optional string shared_secret = 381932490;- Returns:
- This builder for chaining.
-
setSharedSecretBytes
public VpnTunnel.Builder setSharedSecretBytes(com.google.protobuf.ByteString value)
Shared secret used to set the secure session between the Cloud VPN gateway and the peer VPN gateway.
optional string shared_secret = 381932490;- Parameters:
value- The bytes for sharedSecret to set.- Returns:
- This builder for chaining.
-
hasSharedSecretHash
public boolean hasSharedSecretHash()
Hash of the shared secret.
optional string shared_secret_hash = 398881891;- Specified by:
hasSharedSecretHashin interfaceVpnTunnelOrBuilder- Returns:
- Whether the sharedSecretHash field is set.
-
getSharedSecretHash
public String getSharedSecretHash()
Hash of the shared secret.
optional string shared_secret_hash = 398881891;- Specified by:
getSharedSecretHashin interfaceVpnTunnelOrBuilder- Returns:
- The sharedSecretHash.
-
getSharedSecretHashBytes
public com.google.protobuf.ByteString getSharedSecretHashBytes()
Hash of the shared secret.
optional string shared_secret_hash = 398881891;- Specified by:
getSharedSecretHashBytesin interfaceVpnTunnelOrBuilder- Returns:
- The bytes for sharedSecretHash.
-
setSharedSecretHash
public VpnTunnel.Builder setSharedSecretHash(String value)
Hash of the shared secret.
optional string shared_secret_hash = 398881891;- Parameters:
value- The sharedSecretHash to set.- Returns:
- This builder for chaining.
-
clearSharedSecretHash
public VpnTunnel.Builder clearSharedSecretHash()
Hash of the shared secret.
optional string shared_secret_hash = 398881891;- Returns:
- This builder for chaining.
-
setSharedSecretHashBytes
public VpnTunnel.Builder setSharedSecretHashBytes(com.google.protobuf.ByteString value)
Hash of the shared secret.
optional string shared_secret_hash = 398881891;- Parameters:
value- The bytes for sharedSecretHash 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
public String 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
public VpnTunnel.Builder setStatus(String value)
[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
public VpnTunnel.Builder 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
public VpnTunnel.Builder setStatusBytes(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 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.
optional string target_vpn_gateway = 532512843;- Specified by:
hasTargetVpnGatewayin interfaceVpnTunnelOrBuilder- Returns:
- Whether the targetVpnGateway field is set.
-
getTargetVpnGateway
public String getTargetVpnGateway()
URL of the Target VPN gateway with which this VPN tunnel is associated. Provided by the client when the VPN tunnel is created.
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.
optional string target_vpn_gateway = 532512843;- Specified by:
getTargetVpnGatewayBytesin interfaceVpnTunnelOrBuilder- Returns:
- The bytes for targetVpnGateway.
-
setTargetVpnGateway
public VpnTunnel.Builder setTargetVpnGateway(String value)
URL of the Target VPN gateway with which this VPN tunnel is associated. Provided by the client when the VPN tunnel is created.
optional string target_vpn_gateway = 532512843;- Parameters:
value- The targetVpnGateway to set.- Returns:
- This builder for chaining.
-
clearTargetVpnGateway
public VpnTunnel.Builder clearTargetVpnGateway()
URL of the Target VPN gateway with which this VPN tunnel is associated. Provided by the client when the VPN tunnel is created.
optional string target_vpn_gateway = 532512843;- Returns:
- This builder for chaining.
-
setTargetVpnGatewayBytes
public VpnTunnel.Builder setTargetVpnGatewayBytes(com.google.protobuf.ByteString value)
URL of the Target VPN gateway with which this VPN tunnel is associated. Provided by the client when the VPN tunnel is created.
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
public String 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
public VpnTunnel.Builder setVpnGateway(String value)
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
public VpnTunnel.Builder 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
public VpnTunnel.Builder setVpnGatewayBytes(com.google.protobuf.ByteString value)
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
public VpnTunnel.Builder setVpnGatewayInterface(int value)
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
public VpnTunnel.Builder 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.
-
setUnknownFields
public final VpnTunnel.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<VpnTunnel.Builder>
-
mergeUnknownFields
public final VpnTunnel.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<VpnTunnel.Builder>
-
-