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.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
VpnConnection
build()
VpnConnection
buildPartial()
VpnConnection.Builder
clear()
VpnConnection.Builder
clearBgpRoutingMode()
Deprecated.google.cloud.edgecontainer.v1.VpnConnection.bgp_routing_mode is deprecated.VpnConnection.Builder
clearCluster()
The canonical Cluster name to connect to.VpnConnection.Builder
clearCreateTime()
Output only.VpnConnection.Builder
clearDetails()
Output only.VpnConnection.Builder
clearEnableHighAvailability()
Whether this VPN connection has HA enabled on cluster side.VpnConnection.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
VpnConnection.Builder
clearLabels()
VpnConnection.Builder
clearName()
Required.VpnConnection.Builder
clearNatGatewayIp()
NAT gateway IP, or WAN IP address.VpnConnection.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
VpnConnection.Builder
clearUpdateTime()
Output only.VpnConnection.Builder
clearVpc()
The network ID of VPC to connect to.VpnConnection.Builder
clearVpcProject()
Optional.VpnConnection.Builder
clone()
boolean
containsLabels(String key)
Labels associated with this resource.VpnConnection.BgpRoutingMode
getBgpRoutingMode()
Deprecated.google.cloud.edgecontainer.v1.VpnConnection.bgp_routing_mode is deprecated.int
getBgpRoutingModeValue()
Deprecated.google.cloud.edgecontainer.v1.VpnConnection.bgp_routing_mode is deprecated.String
getCluster()
The canonical Cluster name to connect to.com.google.protobuf.ByteString
getClusterBytes()
The canonical Cluster name to connect to.com.google.protobuf.Timestamp
getCreateTime()
Output only.com.google.protobuf.Timestamp.Builder
getCreateTimeBuilder()
Output only.com.google.protobuf.TimestampOrBuilder
getCreateTimeOrBuilder()
Output only.VpnConnection
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
VpnConnection.Details
getDetails()
Output only.VpnConnection.Details.Builder
getDetailsBuilder()
Output only.VpnConnection.DetailsOrBuilder
getDetailsOrBuilder()
Output only.boolean
getEnableHighAvailability()
Whether this VPN connection has HA enabled on cluster side.Map<String,String>
getLabels()
Deprecated.int
getLabelsCount()
Labels associated with this resource.Map<String,String>
getLabelsMap()
Labels associated with this resource.String
getLabelsOrDefault(String key, String defaultValue)
Labels associated with this resource.String
getLabelsOrThrow(String key)
Labels associated with this resource.Map<String,String>
getMutableLabels()
Deprecated.String
getName()
Required.com.google.protobuf.ByteString
getNameBytes()
Required.String
getNatGatewayIp()
NAT gateway IP, or WAN IP address.com.google.protobuf.ByteString
getNatGatewayIpBytes()
NAT gateway IP, or WAN IP address.com.google.protobuf.Timestamp
getUpdateTime()
Output only.com.google.protobuf.Timestamp.Builder
getUpdateTimeBuilder()
Output only.com.google.protobuf.TimestampOrBuilder
getUpdateTimeOrBuilder()
Output only.String
getVpc()
The network ID of VPC to connect to.com.google.protobuf.ByteString
getVpcBytes()
The network ID of VPC to connect to.VpnConnection.VpcProject
getVpcProject()
Optional.VpnConnection.VpcProject.Builder
getVpcProjectBuilder()
Optional.VpnConnection.VpcProjectOrBuilder
getVpcProjectOrBuilder()
Optional.boolean
hasCreateTime()
Output only.boolean
hasDetails()
Output only.boolean
hasUpdateTime()
Output only.boolean
hasVpcProject()
Optional.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
protected com.google.protobuf.MapField
internalGetMutableMapField(int number)
boolean
isInitialized()
VpnConnection.Builder
mergeCreateTime(com.google.protobuf.Timestamp value)
Output only.VpnConnection.Builder
mergeDetails(VpnConnection.Details value)
Output only.VpnConnection.Builder
mergeFrom(VpnConnection other)
VpnConnection.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
VpnConnection.Builder
mergeFrom(com.google.protobuf.Message other)
VpnConnection.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
VpnConnection.Builder
mergeUpdateTime(com.google.protobuf.Timestamp value)
Output only.VpnConnection.Builder
mergeVpcProject(VpnConnection.VpcProject value)
Optional.VpnConnection.Builder
putAllLabels(Map<String,String> values)
Labels associated with this resource.VpnConnection.Builder
putLabels(String key, String value)
Labels associated with this resource.VpnConnection.Builder
removeLabels(String key)
Labels associated with this resource.VpnConnection.Builder
setBgpRoutingMode(VpnConnection.BgpRoutingMode value)
Deprecated.google.cloud.edgecontainer.v1.VpnConnection.bgp_routing_mode is deprecated.VpnConnection.Builder
setBgpRoutingModeValue(int value)
Deprecated.google.cloud.edgecontainer.v1.VpnConnection.bgp_routing_mode is deprecated.VpnConnection.Builder
setCluster(String value)
The canonical Cluster name to connect to.VpnConnection.Builder
setClusterBytes(com.google.protobuf.ByteString value)
The canonical Cluster name to connect to.VpnConnection.Builder
setCreateTime(com.google.protobuf.Timestamp value)
Output only.VpnConnection.Builder
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.VpnConnection.Builder
setDetails(VpnConnection.Details value)
Output only.VpnConnection.Builder
setDetails(VpnConnection.Details.Builder builderForValue)
Output only.VpnConnection.Builder
setEnableHighAvailability(boolean value)
Whether this VPN connection has HA enabled on cluster side.VpnConnection.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
VpnConnection.Builder
setName(String value)
Required.VpnConnection.Builder
setNameBytes(com.google.protobuf.ByteString value)
Required.VpnConnection.Builder
setNatGatewayIp(String value)
NAT gateway IP, or WAN IP address.VpnConnection.Builder
setNatGatewayIpBytes(com.google.protobuf.ByteString value)
NAT gateway IP, or WAN IP address.VpnConnection.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
VpnConnection.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
VpnConnection.Builder
setUpdateTime(com.google.protobuf.Timestamp value)
Output only.VpnConnection.Builder
setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.VpnConnection.Builder
setVpc(String value)
The network ID of VPC to connect to.VpnConnection.Builder
setVpcBytes(com.google.protobuf.ByteString value)
The network ID of VPC to connect to.VpnConnection.Builder
setVpcProject(VpnConnection.VpcProject value)
Optional.VpnConnection.Builder
setVpcProject(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:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<VpnConnection.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<VpnConnection.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<VpnConnection.Builder>
-
clear
public VpnConnection.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<VpnConnection.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<VpnConnection.Builder>
-
getDefaultInstanceForType
public VpnConnection getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public VpnConnection build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public VpnConnection buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public VpnConnection.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<VpnConnection.Builder>
-
setField
public VpnConnection.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<VpnConnection.Builder>
-
clearField
public VpnConnection.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<VpnConnection.Builder>
-
clearOneof
public VpnConnection.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<VpnConnection.Builder>
-
setRepeatedField
public VpnConnection.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<VpnConnection.Builder>
-
addRepeatedField
public VpnConnection.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<VpnConnection.Builder>
-
mergeFrom
public VpnConnection.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<VpnConnection.Builder>
-
mergeFrom
public VpnConnection.Builder mergeFrom(VpnConnection other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getName
in 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:
getNameBytes
in 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:
hasCreateTime
in 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:
getCreateTime
in 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:
getCreateTimeOrBuilder
in 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:
hasUpdateTime
in 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:
getUpdateTime
in 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:
getUpdateTimeOrBuilder
in interfaceVpnConnectionOrBuilder
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:VpnConnectionOrBuilder
Labels associated with this resource.
map<string, string> labels = 4;
- Specified by:
getLabelsCount
in interfaceVpnConnectionOrBuilder
-
containsLabels
public boolean containsLabels(String key)
Labels associated with this resource.
map<string, string> labels = 4;
- Specified by:
containsLabels
in interfaceVpnConnectionOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
instead.- Specified by:
getLabels
in interfaceVpnConnectionOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
Labels associated with this resource.
map<string, string> labels = 4;
- Specified by:
getLabelsMap
in interfaceVpnConnectionOrBuilder
-
getLabelsOrDefault
public String getLabelsOrDefault(String key, String defaultValue)
Labels associated with this resource.
map<string, string> labels = 4;
- Specified by:
getLabelsOrDefault
in interfaceVpnConnectionOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
Labels associated with this resource.
map<string, string> labels = 4;
- Specified by:
getLabelsOrThrow
in 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:
getNatGatewayIp
in 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:
getNatGatewayIpBytes
in 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:
getBgpRoutingModeValue
in 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:
getBgpRoutingMode
in 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:
getCluster
in 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:
getClusterBytes
in 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:
getVpc
in interfaceVpnConnectionOrBuilder
- Returns:
- The vpc.
-
getVpcBytes
public com.google.protobuf.ByteString getVpcBytes()
The network ID of VPC to connect to.
string vpc = 8;
- Specified by:
getVpcBytes
in 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:
hasVpcProject
in 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:
getVpcProject
in 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:
getVpcProjectOrBuilder
in 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:
getEnableHighAvailability
in 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:
hasDetails
in 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:
getDetails
in 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:
getDetailsOrBuilder
in interfaceVpnConnectionOrBuilder
-
setUnknownFields
public final VpnConnection.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<VpnConnection.Builder>
-
mergeUnknownFields
public final VpnConnection.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<VpnConnection.Builder>
-
-