Class VpnConnection.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<VpnConnection.Builder>
-
- com.google.cloud.edgecontainer.v1.VpnConnection.Builder
-
- All Implemented Interfaces:
VpnConnectionOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- VpnConnection
public static final class VpnConnection.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<VpnConnection.Builder> implements VpnConnectionOrBuilder
A VPN connection .
Protobuf typegoogle.cloud.edgecontainer.v1.VpnConnection
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description VpnConnection.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)VpnConnectionbuild()VpnConnectionbuildPartial()VpnConnection.Builderclear()VpnConnection.BuilderclearBgpRoutingMode()Deprecated.google.cloud.edgecontainer.v1.VpnConnection.bgp_routing_mode is deprecated.VpnConnection.BuilderclearCluster()The canonical Cluster name to connect to.VpnConnection.BuilderclearCreateTime()Output only.VpnConnection.BuilderclearDetails()Output only.VpnConnection.BuilderclearEnableHighAvailability()Whether this VPN connection has HA enabled on cluster side.VpnConnection.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)VpnConnection.BuilderclearLabels()VpnConnection.BuilderclearName()Required.VpnConnection.BuilderclearNatGatewayIp()NAT gateway IP, or WAN IP address.VpnConnection.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)VpnConnection.BuilderclearUpdateTime()Output only.VpnConnection.BuilderclearVpc()The network ID of VPC to connect to.VpnConnection.BuilderclearVpcProject()Optional.VpnConnection.Builderclone()booleancontainsLabels(String key)Labels associated with this resource.VpnConnection.BgpRoutingModegetBgpRoutingMode()Deprecated.google.cloud.edgecontainer.v1.VpnConnection.bgp_routing_mode is deprecated.intgetBgpRoutingModeValue()Deprecated.google.cloud.edgecontainer.v1.VpnConnection.bgp_routing_mode is deprecated.StringgetCluster()The canonical Cluster name to connect to.com.google.protobuf.ByteStringgetClusterBytes()The canonical Cluster name to connect to.com.google.protobuf.TimestampgetCreateTime()Output only.com.google.protobuf.Timestamp.BuildergetCreateTimeBuilder()Output only.com.google.protobuf.TimestampOrBuildergetCreateTimeOrBuilder()Output only.VpnConnectiongetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()VpnConnection.DetailsgetDetails()Output only.VpnConnection.Details.BuildergetDetailsBuilder()Output only.VpnConnection.DetailsOrBuildergetDetailsOrBuilder()Output only.booleangetEnableHighAvailability()Whether this VPN connection has HA enabled on cluster side.Map<String,String>getLabels()Deprecated.intgetLabelsCount()Labels associated with this resource.Map<String,String>getLabelsMap()Labels associated with this resource.StringgetLabelsOrDefault(String key, String defaultValue)Labels associated with this resource.StringgetLabelsOrThrow(String key)Labels associated with this resource.Map<String,String>getMutableLabels()Deprecated.StringgetName()Required.com.google.protobuf.ByteStringgetNameBytes()Required.StringgetNatGatewayIp()NAT gateway IP, or WAN IP address.com.google.protobuf.ByteStringgetNatGatewayIpBytes()NAT gateway IP, or WAN IP address.com.google.protobuf.TimestampgetUpdateTime()Output only.com.google.protobuf.Timestamp.BuildergetUpdateTimeBuilder()Output only.com.google.protobuf.TimestampOrBuildergetUpdateTimeOrBuilder()Output only.StringgetVpc()The network ID of VPC to connect to.com.google.protobuf.ByteStringgetVpcBytes()The network ID of VPC to connect to.VpnConnection.VpcProjectgetVpcProject()Optional.VpnConnection.VpcProject.BuildergetVpcProjectBuilder()Optional.VpnConnection.VpcProjectOrBuildergetVpcProjectOrBuilder()Optional.booleanhasCreateTime()Output only.booleanhasDetails()Output only.booleanhasUpdateTime()Output only.booleanhasVpcProject()Optional.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()VpnConnection.BuildermergeCreateTime(com.google.protobuf.Timestamp value)Output only.VpnConnection.BuildermergeDetails(VpnConnection.Details value)Output only.VpnConnection.BuildermergeFrom(VpnConnection other)VpnConnection.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)VpnConnection.BuildermergeFrom(com.google.protobuf.Message other)VpnConnection.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)VpnConnection.BuildermergeUpdateTime(com.google.protobuf.Timestamp value)Output only.VpnConnection.BuildermergeVpcProject(VpnConnection.VpcProject value)Optional.VpnConnection.BuilderputAllLabels(Map<String,String> values)Labels associated with this resource.VpnConnection.BuilderputLabels(String key, String value)Labels associated with this resource.VpnConnection.BuilderremoveLabels(String key)Labels associated with this resource.VpnConnection.BuildersetBgpRoutingMode(VpnConnection.BgpRoutingMode value)Deprecated.google.cloud.edgecontainer.v1.VpnConnection.bgp_routing_mode is deprecated.VpnConnection.BuildersetBgpRoutingModeValue(int value)Deprecated.google.cloud.edgecontainer.v1.VpnConnection.bgp_routing_mode is deprecated.VpnConnection.BuildersetCluster(String value)The canonical Cluster name to connect to.VpnConnection.BuildersetClusterBytes(com.google.protobuf.ByteString value)The canonical Cluster name to connect to.VpnConnection.BuildersetCreateTime(com.google.protobuf.Timestamp value)Output only.VpnConnection.BuildersetCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)Output only.VpnConnection.BuildersetDetails(VpnConnection.Details value)Output only.VpnConnection.BuildersetDetails(VpnConnection.Details.Builder builderForValue)Output only.VpnConnection.BuildersetEnableHighAvailability(boolean value)Whether this VPN connection has HA enabled on cluster side.VpnConnection.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)VpnConnection.BuildersetName(String value)Required.VpnConnection.BuildersetNameBytes(com.google.protobuf.ByteString value)Required.VpnConnection.BuildersetNatGatewayIp(String value)NAT gateway IP, or WAN IP address.VpnConnection.BuildersetNatGatewayIpBytes(com.google.protobuf.ByteString value)NAT gateway IP, or WAN IP address.VpnConnection.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)VpnConnection.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)VpnConnection.BuildersetUpdateTime(com.google.protobuf.Timestamp value)Output only.VpnConnection.BuildersetUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)Output only.VpnConnection.BuildersetVpc(String value)The network ID of VPC to connect to.VpnConnection.BuildersetVpcBytes(com.google.protobuf.ByteString value)The network ID of VPC to connect to.VpnConnection.BuildersetVpcProject(VpnConnection.VpcProject value)Optional.VpnConnection.BuildersetVpcProject(VpnConnection.VpcProject.Builder builderForValue)Optional.-
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<VpnConnection.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<VpnConnection.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<VpnConnection.Builder>
-
clear
public VpnConnection.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<VpnConnection.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<VpnConnection.Builder>
-
getDefaultInstanceForType
public VpnConnection getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public VpnConnection build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public VpnConnection buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public VpnConnection.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<VpnConnection.Builder>
-
setField
public VpnConnection.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<VpnConnection.Builder>
-
clearField
public VpnConnection.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<VpnConnection.Builder>
-
clearOneof
public VpnConnection.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<VpnConnection.Builder>
-
setRepeatedField
public VpnConnection.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<VpnConnection.Builder>
-
addRepeatedField
public VpnConnection.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<VpnConnection.Builder>
-
mergeFrom
public VpnConnection.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<VpnConnection.Builder>
-
mergeFrom
public VpnConnection.Builder mergeFrom(VpnConnection other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<VpnConnection.Builder>
-
mergeFrom
public VpnConnection.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<VpnConnection.Builder>- Throws:
IOException
-
getName
public String getName()
Required. The resource name of VPN connection
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getNamein interfaceVpnConnectionOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Required. The resource name of VPN connection
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getNameBytesin interfaceVpnConnectionOrBuilder- Returns:
- The bytes for name.
-
setName
public VpnConnection.Builder setName(String value)
Required. The resource name of VPN connection
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public VpnConnection.Builder clearName()
Required. The resource name of VPN connection
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setNameBytes
public VpnConnection.Builder setNameBytes(com.google.protobuf.ByteString value)
Required. The resource name of VPN connection
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasCreateTime
public boolean hasCreateTime()
Output only. The time when the VPN connection was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCreateTimein interfaceVpnConnectionOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()
Output only. The time when the VPN connection was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfaceVpnConnectionOrBuilder- Returns:
- The createTime.
-
setCreateTime
public VpnConnection.Builder setCreateTime(com.google.protobuf.Timestamp value)
Output only. The time when the VPN connection was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setCreateTime
public VpnConnection.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. The time when the VPN connection was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeCreateTime
public VpnConnection.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
Output only. The time when the VPN connection was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
clearCreateTime
public VpnConnection.Builder clearCreateTime()
Output only. The time when the VPN connection was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
Output only. The time when the VPN connection was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The time when the VPN connection was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfaceVpnConnectionOrBuilder
-
hasUpdateTime
public boolean hasUpdateTime()
Output only. The time when the VPN connection was last updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasUpdateTimein interfaceVpnConnectionOrBuilder- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()
Output only. The time when the VPN connection was last updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimein interfaceVpnConnectionOrBuilder- Returns:
- The updateTime.
-
setUpdateTime
public VpnConnection.Builder setUpdateTime(com.google.protobuf.Timestamp value)
Output only. The time when the VPN connection was last updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setUpdateTime
public VpnConnection.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. The time when the VPN connection was last updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeUpdateTime
public VpnConnection.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
Output only. The time when the VPN connection was last updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
clearUpdateTime
public VpnConnection.Builder clearUpdateTime()
Output only. The time when the VPN connection was last updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getUpdateTimeBuilder
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
Output only. The time when the VPN connection was last updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. The time when the VPN connection was last updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimeOrBuilderin interfaceVpnConnectionOrBuilder
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:VpnConnectionOrBuilderLabels associated with this resource.
map<string, string> labels = 4;- Specified by:
getLabelsCountin interfaceVpnConnectionOrBuilder
-
containsLabels
public boolean containsLabels(String key)
Labels associated with this resource.
map<string, string> labels = 4;- Specified by:
containsLabelsin interfaceVpnConnectionOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceVpnConnectionOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
Labels associated with this resource.
map<string, string> labels = 4;- Specified by:
getLabelsMapin interfaceVpnConnectionOrBuilder
-
getLabelsOrDefault
public String getLabelsOrDefault(String key, String defaultValue)
Labels associated with this resource.
map<string, string> labels = 4;- Specified by:
getLabelsOrDefaultin interfaceVpnConnectionOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
Labels associated with this resource.
map<string, string> labels = 4;- Specified by:
getLabelsOrThrowin interfaceVpnConnectionOrBuilder
-
clearLabels
public VpnConnection.Builder clearLabels()
-
removeLabels
public VpnConnection.Builder removeLabels(String key)
Labels associated with this resource.
map<string, string> labels = 4;
-
getMutableLabels
@Deprecated public Map<String,String> getMutableLabels()
Deprecated.Use alternate mutation accessors instead.
-
putLabels
public VpnConnection.Builder putLabels(String key, String value)
Labels associated with this resource.
map<string, string> labels = 4;
-
putAllLabels
public VpnConnection.Builder putAllLabels(Map<String,String> values)
Labels associated with this resource.
map<string, string> labels = 4;
-
getNatGatewayIp
public String getNatGatewayIp()
NAT gateway IP, or WAN IP address. If a customer has multiple NAT IPs, the customer needs to configure NAT such that only one external IP maps to the GMEC Anthos cluster. This is empty if NAT is not used.
string nat_gateway_ip = 5;- Specified by:
getNatGatewayIpin interfaceVpnConnectionOrBuilder- Returns:
- The natGatewayIp.
-
getNatGatewayIpBytes
public com.google.protobuf.ByteString getNatGatewayIpBytes()
NAT gateway IP, or WAN IP address. If a customer has multiple NAT IPs, the customer needs to configure NAT such that only one external IP maps to the GMEC Anthos cluster. This is empty if NAT is not used.
string nat_gateway_ip = 5;- Specified by:
getNatGatewayIpBytesin interfaceVpnConnectionOrBuilder- Returns:
- The bytes for natGatewayIp.
-
setNatGatewayIp
public VpnConnection.Builder setNatGatewayIp(String value)
NAT gateway IP, or WAN IP address. If a customer has multiple NAT IPs, the customer needs to configure NAT such that only one external IP maps to the GMEC Anthos cluster. This is empty if NAT is not used.
string nat_gateway_ip = 5;- Parameters:
value- The natGatewayIp to set.- Returns:
- This builder for chaining.
-
clearNatGatewayIp
public VpnConnection.Builder clearNatGatewayIp()
NAT gateway IP, or WAN IP address. If a customer has multiple NAT IPs, the customer needs to configure NAT such that only one external IP maps to the GMEC Anthos cluster. This is empty if NAT is not used.
string nat_gateway_ip = 5;- Returns:
- This builder for chaining.
-
setNatGatewayIpBytes
public VpnConnection.Builder setNatGatewayIpBytes(com.google.protobuf.ByteString value)
NAT gateway IP, or WAN IP address. If a customer has multiple NAT IPs, the customer needs to configure NAT such that only one external IP maps to the GMEC Anthos cluster. This is empty if NAT is not used.
string nat_gateway_ip = 5;- Parameters:
value- The bytes for natGatewayIp to set.- Returns:
- This builder for chaining.
-
getBgpRoutingModeValue
@Deprecated public int getBgpRoutingModeValue()
Deprecated.google.cloud.edgecontainer.v1.VpnConnection.bgp_routing_mode is deprecated. See google/cloud/edgecontainer/v1/resources.proto;l=361Dynamic routing mode of the VPC network, `regional` or `global`.
.google.cloud.edgecontainer.v1.VpnConnection.BgpRoutingMode bgp_routing_mode = 6 [deprecated = true];- Specified by:
getBgpRoutingModeValuein interfaceVpnConnectionOrBuilder- Returns:
- The enum numeric value on the wire for bgpRoutingMode.
-
setBgpRoutingModeValue
@Deprecated public VpnConnection.Builder setBgpRoutingModeValue(int value)
Deprecated.google.cloud.edgecontainer.v1.VpnConnection.bgp_routing_mode is deprecated. See google/cloud/edgecontainer/v1/resources.proto;l=361Dynamic routing mode of the VPC network, `regional` or `global`.
.google.cloud.edgecontainer.v1.VpnConnection.BgpRoutingMode bgp_routing_mode = 6 [deprecated = true];- Parameters:
value- The enum numeric value on the wire for bgpRoutingMode to set.- Returns:
- This builder for chaining.
-
getBgpRoutingMode
@Deprecated public VpnConnection.BgpRoutingMode getBgpRoutingMode()
Deprecated.google.cloud.edgecontainer.v1.VpnConnection.bgp_routing_mode is deprecated. See google/cloud/edgecontainer/v1/resources.proto;l=361Dynamic routing mode of the VPC network, `regional` or `global`.
.google.cloud.edgecontainer.v1.VpnConnection.BgpRoutingMode bgp_routing_mode = 6 [deprecated = true];- Specified by:
getBgpRoutingModein interfaceVpnConnectionOrBuilder- Returns:
- The bgpRoutingMode.
-
setBgpRoutingMode
@Deprecated public VpnConnection.Builder setBgpRoutingMode(VpnConnection.BgpRoutingMode value)
Deprecated.google.cloud.edgecontainer.v1.VpnConnection.bgp_routing_mode is deprecated. See google/cloud/edgecontainer/v1/resources.proto;l=361Dynamic routing mode of the VPC network, `regional` or `global`.
.google.cloud.edgecontainer.v1.VpnConnection.BgpRoutingMode bgp_routing_mode = 6 [deprecated = true];- Parameters:
value- The bgpRoutingMode to set.- Returns:
- This builder for chaining.
-
clearBgpRoutingMode
@Deprecated public VpnConnection.Builder clearBgpRoutingMode()
Deprecated.google.cloud.edgecontainer.v1.VpnConnection.bgp_routing_mode is deprecated. See google/cloud/edgecontainer/v1/resources.proto;l=361Dynamic routing mode of the VPC network, `regional` or `global`.
.google.cloud.edgecontainer.v1.VpnConnection.BgpRoutingMode bgp_routing_mode = 6 [deprecated = true];- Returns:
- This builder for chaining.
-
getCluster
public String getCluster()
The canonical Cluster name to connect to. It is in the form of projects/{project}/locations/{location}/clusters/{cluster}.string cluster = 7 [(.google.api.resource_reference) = { ... }- Specified by:
getClusterin interfaceVpnConnectionOrBuilder- Returns:
- The cluster.
-
getClusterBytes
public com.google.protobuf.ByteString getClusterBytes()
The canonical Cluster name to connect to. It is in the form of projects/{project}/locations/{location}/clusters/{cluster}.string cluster = 7 [(.google.api.resource_reference) = { ... }- Specified by:
getClusterBytesin interfaceVpnConnectionOrBuilder- Returns:
- The bytes for cluster.
-
setCluster
public VpnConnection.Builder setCluster(String value)
The canonical Cluster name to connect to. It is in the form of projects/{project}/locations/{location}/clusters/{cluster}.string cluster = 7 [(.google.api.resource_reference) = { ... }- Parameters:
value- The cluster to set.- Returns:
- This builder for chaining.
-
clearCluster
public VpnConnection.Builder clearCluster()
The canonical Cluster name to connect to. It is in the form of projects/{project}/locations/{location}/clusters/{cluster}.string cluster = 7 [(.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setClusterBytes
public VpnConnection.Builder setClusterBytes(com.google.protobuf.ByteString value)
The canonical Cluster name to connect to. It is in the form of projects/{project}/locations/{location}/clusters/{cluster}.string cluster = 7 [(.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for cluster to set.- Returns:
- This builder for chaining.
-
getVpc
public String getVpc()
The network ID of VPC to connect to.
string vpc = 8;- Specified by:
getVpcin interfaceVpnConnectionOrBuilder- Returns:
- The vpc.
-
getVpcBytes
public com.google.protobuf.ByteString getVpcBytes()
The network ID of VPC to connect to.
string vpc = 8;- Specified by:
getVpcBytesin interfaceVpnConnectionOrBuilder- Returns:
- The bytes for vpc.
-
setVpc
public VpnConnection.Builder setVpc(String value)
The network ID of VPC to connect to.
string vpc = 8;- Parameters:
value- The vpc to set.- Returns:
- This builder for chaining.
-
clearVpc
public VpnConnection.Builder clearVpc()
The network ID of VPC to connect to.
string vpc = 8;- Returns:
- This builder for chaining.
-
setVpcBytes
public VpnConnection.Builder setVpcBytes(com.google.protobuf.ByteString value)
The network ID of VPC to connect to.
string vpc = 8;- Parameters:
value- The bytes for vpc to set.- Returns:
- This builder for chaining.
-
hasVpcProject
public boolean hasVpcProject()
Optional. Project detail of the VPC network. Required if VPC is in a different project than the cluster project.
.google.cloud.edgecontainer.v1.VpnConnection.VpcProject vpc_project = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasVpcProjectin interfaceVpnConnectionOrBuilder- Returns:
- Whether the vpcProject field is set.
-
getVpcProject
public VpnConnection.VpcProject getVpcProject()
Optional. Project detail of the VPC network. Required if VPC is in a different project than the cluster project.
.google.cloud.edgecontainer.v1.VpnConnection.VpcProject vpc_project = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getVpcProjectin interfaceVpnConnectionOrBuilder- Returns:
- The vpcProject.
-
setVpcProject
public VpnConnection.Builder setVpcProject(VpnConnection.VpcProject value)
Optional. Project detail of the VPC network. Required if VPC is in a different project than the cluster project.
.google.cloud.edgecontainer.v1.VpnConnection.VpcProject vpc_project = 11 [(.google.api.field_behavior) = OPTIONAL];
-
setVpcProject
public VpnConnection.Builder setVpcProject(VpnConnection.VpcProject.Builder builderForValue)
Optional. Project detail of the VPC network. Required if VPC is in a different project than the cluster project.
.google.cloud.edgecontainer.v1.VpnConnection.VpcProject vpc_project = 11 [(.google.api.field_behavior) = OPTIONAL];
-
mergeVpcProject
public VpnConnection.Builder mergeVpcProject(VpnConnection.VpcProject value)
Optional. Project detail of the VPC network. Required if VPC is in a different project than the cluster project.
.google.cloud.edgecontainer.v1.VpnConnection.VpcProject vpc_project = 11 [(.google.api.field_behavior) = OPTIONAL];
-
clearVpcProject
public VpnConnection.Builder clearVpcProject()
Optional. Project detail of the VPC network. Required if VPC is in a different project than the cluster project.
.google.cloud.edgecontainer.v1.VpnConnection.VpcProject vpc_project = 11 [(.google.api.field_behavior) = OPTIONAL];
-
getVpcProjectBuilder
public VpnConnection.VpcProject.Builder getVpcProjectBuilder()
Optional. Project detail of the VPC network. Required if VPC is in a different project than the cluster project.
.google.cloud.edgecontainer.v1.VpnConnection.VpcProject vpc_project = 11 [(.google.api.field_behavior) = OPTIONAL];
-
getVpcProjectOrBuilder
public VpnConnection.VpcProjectOrBuilder getVpcProjectOrBuilder()
Optional. Project detail of the VPC network. Required if VPC is in a different project than the cluster project.
.google.cloud.edgecontainer.v1.VpnConnection.VpcProject vpc_project = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getVpcProjectOrBuilderin interfaceVpnConnectionOrBuilder
-
getEnableHighAvailability
public boolean getEnableHighAvailability()
Whether this VPN connection has HA enabled on cluster side. If enabled, when creating VPN connection we will attempt to use 2 ANG floating IPs.
bool enable_high_availability = 9;- Specified by:
getEnableHighAvailabilityin interfaceVpnConnectionOrBuilder- Returns:
- The enableHighAvailability.
-
setEnableHighAvailability
public VpnConnection.Builder setEnableHighAvailability(boolean value)
Whether this VPN connection has HA enabled on cluster side. If enabled, when creating VPN connection we will attempt to use 2 ANG floating IPs.
bool enable_high_availability = 9;- Parameters:
value- The enableHighAvailability to set.- Returns:
- This builder for chaining.
-
clearEnableHighAvailability
public VpnConnection.Builder clearEnableHighAvailability()
Whether this VPN connection has HA enabled on cluster side. If enabled, when creating VPN connection we will attempt to use 2 ANG floating IPs.
bool enable_high_availability = 9;- Returns:
- This builder for chaining.
-
hasDetails
public boolean hasDetails()
Output only. The created connection details.
.google.cloud.edgecontainer.v1.VpnConnection.Details details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasDetailsin interfaceVpnConnectionOrBuilder- Returns:
- Whether the details field is set.
-
getDetails
public VpnConnection.Details getDetails()
Output only. The created connection details.
.google.cloud.edgecontainer.v1.VpnConnection.Details details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDetailsin interfaceVpnConnectionOrBuilder- Returns:
- The details.
-
setDetails
public VpnConnection.Builder setDetails(VpnConnection.Details value)
Output only. The created connection details.
.google.cloud.edgecontainer.v1.VpnConnection.Details details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setDetails
public VpnConnection.Builder setDetails(VpnConnection.Details.Builder builderForValue)
Output only. The created connection details.
.google.cloud.edgecontainer.v1.VpnConnection.Details details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeDetails
public VpnConnection.Builder mergeDetails(VpnConnection.Details value)
Output only. The created connection details.
.google.cloud.edgecontainer.v1.VpnConnection.Details details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
clearDetails
public VpnConnection.Builder clearDetails()
Output only. The created connection details.
.google.cloud.edgecontainer.v1.VpnConnection.Details details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getDetailsBuilder
public VpnConnection.Details.Builder getDetailsBuilder()
Output only. The created connection details.
.google.cloud.edgecontainer.v1.VpnConnection.Details details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getDetailsOrBuilder
public VpnConnection.DetailsOrBuilder getDetailsOrBuilder()
Output only. The created connection details.
.google.cloud.edgecontainer.v1.VpnConnection.Details details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDetailsOrBuilderin interfaceVpnConnectionOrBuilder
-
setUnknownFields
public final VpnConnection.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<VpnConnection.Builder>
-
mergeUnknownFields
public final VpnConnection.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<VpnConnection.Builder>
-
-