Class VpnConnection.Builder (0.29.0)

public static final class VpnConnection.Builder extends GeneratedMessageV3.Builder<VpnConnection.Builder> implements VpnConnectionOrBuilder

A VPN connection .

Protobuf type google.cloud.edgecontainer.v1.VpnConnection

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public VpnConnection.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
VpnConnection.Builder
Overrides

build()

public VpnConnection build()
Returns
TypeDescription
VpnConnection

buildPartial()

public VpnConnection buildPartial()
Returns
TypeDescription
VpnConnection

clear()

public VpnConnection.Builder clear()
Returns
TypeDescription
VpnConnection.Builder
Overrides

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=361

Dynamic routing mode of the VPC network, regional or global.

.google.cloud.edgecontainer.v1.VpnConnection.BgpRoutingMode bgp_routing_mode = 6 [deprecated = true];

Returns
TypeDescription
VpnConnection.Builder

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
TypeDescription
VpnConnection.Builder

This builder for chaining.

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];

Returns
TypeDescription
VpnConnection.Builder

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];

Returns
TypeDescription
VpnConnection.Builder

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
TypeDescription
VpnConnection.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public VpnConnection.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
VpnConnection.Builder
Overrides

clearLabels()

public VpnConnection.Builder clearLabels()
Returns
TypeDescription
VpnConnection.Builder

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
TypeDescription
VpnConnection.Builder

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
TypeDescription
VpnConnection.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public VpnConnection.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
VpnConnection.Builder
Overrides

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];

Returns
TypeDescription
VpnConnection.Builder

clearVpc()

public VpnConnection.Builder clearVpc()

The network ID of VPC to connect to.

string vpc = 8;

Returns
TypeDescription
VpnConnection.Builder

This builder for chaining.

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];

Returns
TypeDescription
VpnConnection.Builder

clone()

public VpnConnection.Builder clone()
Returns
TypeDescription
VpnConnection.Builder
Overrides

containsLabels(String key)

public boolean containsLabels(String key)

Labels associated with this resource.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

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=361

Dynamic routing mode of the VPC network, regional or global.

.google.cloud.edgecontainer.v1.VpnConnection.BgpRoutingMode bgp_routing_mode = 6 [deprecated = true];

Returns
TypeDescription
VpnConnection.BgpRoutingMode

The bgpRoutingMode.

getBgpRoutingModeValue() (deprecated)

public int getBgpRoutingModeValue()

Deprecated. google.cloud.edgecontainer.v1.VpnConnection.bgp_routing_mode is deprecated. See google/cloud/edgecontainer/v1/resources.proto;l=361

Dynamic routing mode of the VPC network, regional or global.

.google.cloud.edgecontainer.v1.VpnConnection.BgpRoutingMode bgp_routing_mode = 6 [deprecated = true];

Returns
TypeDescription
int

The enum numeric value on the wire for bgpRoutingMode.

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) = { ... }

Returns
TypeDescription
String

The cluster.

getClusterBytes()

public 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) = { ... }

Returns
TypeDescription
ByteString

The bytes for cluster.

getCreateTime()

public Timestamp getCreateTime()

Output only. The time when the VPN connection was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public 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];

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time when the VPN connection was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public VpnConnection getDefaultInstanceForType()
Returns
TypeDescription
VpnConnection

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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];

Returns
TypeDescription
VpnConnection.Details

The details.

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];

Returns
TypeDescription
VpnConnection.Details.Builder

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];

Returns
TypeDescription
VpnConnection.DetailsOrBuilder

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;

Returns
TypeDescription
boolean

The enableHighAvailability.

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Labels associated with this resource.

map<string, string> labels = 4;

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Labels associated with this resource.

map<string, string> labels = 4;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Labels associated with this resource.

map<string, string> labels = 4;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Labels associated with this resource.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getName()

public String getName()

Required. The resource name of VPN connection

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The resource name of VPN connection

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for name.

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;

Returns
TypeDescription
String

The natGatewayIp.

getNatGatewayIpBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for natGatewayIp.

getUpdateTime()

public 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];

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public 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];

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public 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];

Returns
TypeDescription
TimestampOrBuilder

getVpc()

public String getVpc()

The network ID of VPC to connect to.

string vpc = 8;

Returns
TypeDescription
String

The vpc.

getVpcBytes()

public ByteString getVpcBytes()

The network ID of VPC to connect to.

string vpc = 8;

Returns
TypeDescription
ByteString

The bytes for vpc.

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];

Returns
TypeDescription
VpnConnection.VpcProject

The vpcProject.

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];

Returns
TypeDescription
VpnConnection.VpcProject.Builder

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];

Returns
TypeDescription
VpnConnection.VpcProjectOrBuilder

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];

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasDetails()

public boolean hasDetails()

Output only. The created connection details.

.google.cloud.edgecontainer.v1.VpnConnection.Details details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the details field is set.

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];

Returns
TypeDescription
boolean

Whether the updateTime field is set.

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];

Returns
TypeDescription
boolean

Whether the vpcProject field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCreateTime(Timestamp value)

public VpnConnection.Builder mergeCreateTime(Timestamp value)

Output only. The time when the VPN connection was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
VpnConnection.Builder

mergeDetails(VpnConnection.Details value)

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];

Parameter
NameDescription
valueVpnConnection.Details
Returns
TypeDescription
VpnConnection.Builder

mergeFrom(VpnConnection other)

public VpnConnection.Builder mergeFrom(VpnConnection other)
Parameter
NameDescription
otherVpnConnection
Returns
TypeDescription
VpnConnection.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public VpnConnection.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VpnConnection.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public VpnConnection.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
VpnConnection.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final VpnConnection.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
VpnConnection.Builder
Overrides

mergeUpdateTime(Timestamp value)

public VpnConnection.Builder mergeUpdateTime(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];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
VpnConnection.Builder

mergeVpcProject(VpnConnection.VpcProject value)

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];

Parameter
NameDescription
valueVpnConnection.VpcProject
Returns
TypeDescription
VpnConnection.Builder

putAllLabels(Map<String,String> values)

public VpnConnection.Builder putAllLabels(Map<String,String> values)

Labels associated with this resource.

map<string, string> labels = 4;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
VpnConnection.Builder

putLabels(String key, String value)

public VpnConnection.Builder putLabels(String key, String value)

Labels associated with this resource.

map<string, string> labels = 4;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
VpnConnection.Builder

removeLabels(String key)

public VpnConnection.Builder removeLabels(String key)

Labels associated with this resource.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
VpnConnection.Builder

setBgpRoutingMode(VpnConnection.BgpRoutingMode value) (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=361

Dynamic routing mode of the VPC network, regional or global.

.google.cloud.edgecontainer.v1.VpnConnection.BgpRoutingMode bgp_routing_mode = 6 [deprecated = true];

Parameter
NameDescription
valueVpnConnection.BgpRoutingMode

The bgpRoutingMode to set.

Returns
TypeDescription
VpnConnection.Builder

This builder for chaining.

setBgpRoutingModeValue(int value) (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=361

Dynamic routing mode of the VPC network, regional or global.

.google.cloud.edgecontainer.v1.VpnConnection.BgpRoutingMode bgp_routing_mode = 6 [deprecated = true];

Parameter
NameDescription
valueint

The enum numeric value on the wire for bgpRoutingMode to set.

Returns
TypeDescription
VpnConnection.Builder

This builder for chaining.

setCluster(String value)

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) = { ... }

Parameter
NameDescription
valueString

The cluster to set.

Returns
TypeDescription
VpnConnection.Builder

This builder for chaining.

setClusterBytes(ByteString value)

public VpnConnection.Builder setClusterBytes(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) = { ... }

Parameter
NameDescription
valueByteString

The bytes for cluster to set.

Returns
TypeDescription
VpnConnection.Builder

This builder for chaining.

setCreateTime(Timestamp value)

public VpnConnection.Builder setCreateTime(Timestamp value)

Output only. The time when the VPN connection was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
VpnConnection.Builder

setCreateTime(Timestamp.Builder builderForValue)

public VpnConnection.Builder setCreateTime(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];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
VpnConnection.Builder

setDetails(VpnConnection.Details value)

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];

Parameter
NameDescription
valueVpnConnection.Details
Returns
TypeDescription
VpnConnection.Builder

setDetails(VpnConnection.Details.Builder builderForValue)

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];

Parameter
NameDescription
builderForValueVpnConnection.Details.Builder
Returns
TypeDescription
VpnConnection.Builder

setEnableHighAvailability(boolean value)

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;

Parameter
NameDescription
valueboolean

The enableHighAvailability to set.

Returns
TypeDescription
VpnConnection.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public VpnConnection.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
VpnConnection.Builder
Overrides

setName(String value)

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) = { ... }

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
VpnConnection.Builder

This builder for chaining.

setNameBytes(ByteString value)

public VpnConnection.Builder setNameBytes(ByteString value)

Required. The resource name of VPN connection

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
VpnConnection.Builder

This builder for chaining.

setNatGatewayIp(String value)

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;

Parameter
NameDescription
valueString

The natGatewayIp to set.

Returns
TypeDescription
VpnConnection.Builder

This builder for chaining.

setNatGatewayIpBytes(ByteString value)

public VpnConnection.Builder setNatGatewayIpBytes(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;

Parameter
NameDescription
valueByteString

The bytes for natGatewayIp to set.

Returns
TypeDescription
VpnConnection.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public VpnConnection.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
VpnConnection.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final VpnConnection.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
VpnConnection.Builder
Overrides

setUpdateTime(Timestamp value)

public VpnConnection.Builder setUpdateTime(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];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
VpnConnection.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public VpnConnection.Builder setUpdateTime(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];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
VpnConnection.Builder

setVpc(String value)

public VpnConnection.Builder setVpc(String value)

The network ID of VPC to connect to.

string vpc = 8;

Parameter
NameDescription
valueString

The vpc to set.

Returns
TypeDescription
VpnConnection.Builder

This builder for chaining.

setVpcBytes(ByteString value)

public VpnConnection.Builder setVpcBytes(ByteString value)

The network ID of VPC to connect to.

string vpc = 8;

Parameter
NameDescription
valueByteString

The bytes for vpc to set.

Returns
TypeDescription
VpnConnection.Builder

This builder for chaining.

setVpcProject(VpnConnection.VpcProject value)

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];

Parameter
NameDescription
valueVpnConnection.VpcProject
Returns
TypeDescription
VpnConnection.Builder

setVpcProject(VpnConnection.VpcProject.Builder builderForValue)

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];

Parameter
NameDescription
builderForValueVpnConnection.VpcProject.Builder
Returns
TypeDescription
VpnConnection.Builder