Class VpnGatewayVpnGatewayInterface.Builder (1.61.0)

public static final class VpnGatewayVpnGatewayInterface.Builder extends GeneratedMessageV3.Builder<VpnGatewayVpnGatewayInterface.Builder> implements VpnGatewayVpnGatewayInterfaceOrBuilder

A VPN gateway interface.

Protobuf type google.cloud.compute.v1.VpnGatewayVpnGatewayInterface

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public VpnGatewayVpnGatewayInterface.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
VpnGatewayVpnGatewayInterface.Builder
Overrides

build()

public VpnGatewayVpnGatewayInterface build()
Returns
Type Description
VpnGatewayVpnGatewayInterface

buildPartial()

public VpnGatewayVpnGatewayInterface buildPartial()
Returns
Type Description
VpnGatewayVpnGatewayInterface

clear()

public VpnGatewayVpnGatewayInterface.Builder clear()
Returns
Type Description
VpnGatewayVpnGatewayInterface.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public VpnGatewayVpnGatewayInterface.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
VpnGatewayVpnGatewayInterface.Builder
Overrides

clearId()

public VpnGatewayVpnGatewayInterface.Builder clearId()

[Output Only] Numeric identifier for this VPN interface associated with the VPN gateway.

optional uint32 id = 3355;

Returns
Type Description
VpnGatewayVpnGatewayInterface.Builder

This builder for chaining.

clearInterconnectAttachment()

public VpnGatewayVpnGatewayInterface.Builder clearInterconnectAttachment()

URL of the VLAN attachment (interconnectAttachment) resource for this VPN gateway interface. When the value of this field is present, the VPN gateway is used for HA VPN over Cloud Interconnect; all egress or ingress traffic for this VPN gateway interface goes through the specified VLAN attachment resource.

optional string interconnect_attachment = 308135284;

Returns
Type Description
VpnGatewayVpnGatewayInterface.Builder

This builder for chaining.

clearIpAddress()

public VpnGatewayVpnGatewayInterface.Builder clearIpAddress()

[Output Only] IP address for this VPN interface associated with the VPN gateway. The IP address could be either a regional external IP address or a regional internal IP address. The two IP addresses for a VPN gateway must be all regional external or regional internal IP addresses. There cannot be a mix of regional external IP addresses and regional internal IP addresses. For HA VPN over Cloud Interconnect, the IP addresses for both interfaces could either be regional internal IP addresses or regional external IP addresses. For regular (non HA VPN over Cloud Interconnect) HA VPN tunnels, the IP address must be a regional external IP address.

optional string ip_address = 406272220;

Returns
Type Description
VpnGatewayVpnGatewayInterface.Builder

This builder for chaining.

clearIpv6Address()

public VpnGatewayVpnGatewayInterface.Builder clearIpv6Address()

[Output Only] IPv6 address for this VPN interface associated with the VPN gateway. The IPv6 address must be a regional external IPv6 address. The format is RFC 5952 format (e.g. 2001:db8::2d9:51:0:0).

optional string ipv6_address = 341563804;

Returns
Type Description
VpnGatewayVpnGatewayInterface.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public VpnGatewayVpnGatewayInterface.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
VpnGatewayVpnGatewayInterface.Builder
Overrides

clone()

public VpnGatewayVpnGatewayInterface.Builder clone()
Returns
Type Description
VpnGatewayVpnGatewayInterface.Builder
Overrides

getDefaultInstanceForType()

public VpnGatewayVpnGatewayInterface getDefaultInstanceForType()
Returns
Type Description
VpnGatewayVpnGatewayInterface

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getId()

public int getId()

[Output Only] Numeric identifier for this VPN interface associated with the VPN gateway.

optional uint32 id = 3355;

Returns
Type Description
int

The id.

getInterconnectAttachment()

public String getInterconnectAttachment()

URL of the VLAN attachment (interconnectAttachment) resource for this VPN gateway interface. When the value of this field is present, the VPN gateway is used for HA VPN over Cloud Interconnect; all egress or ingress traffic for this VPN gateway interface goes through the specified VLAN attachment resource.

optional string interconnect_attachment = 308135284;

Returns
Type Description
String

The interconnectAttachment.

getInterconnectAttachmentBytes()

public ByteString getInterconnectAttachmentBytes()

URL of the VLAN attachment (interconnectAttachment) resource for this VPN gateway interface. When the value of this field is present, the VPN gateway is used for HA VPN over Cloud Interconnect; all egress or ingress traffic for this VPN gateway interface goes through the specified VLAN attachment resource.

optional string interconnect_attachment = 308135284;

Returns
Type Description
ByteString

The bytes for interconnectAttachment.

getIpAddress()

public String getIpAddress()

[Output Only] IP address for this VPN interface associated with the VPN gateway. The IP address could be either a regional external IP address or a regional internal IP address. The two IP addresses for a VPN gateway must be all regional external or regional internal IP addresses. There cannot be a mix of regional external IP addresses and regional internal IP addresses. For HA VPN over Cloud Interconnect, the IP addresses for both interfaces could either be regional internal IP addresses or regional external IP addresses. For regular (non HA VPN over Cloud Interconnect) HA VPN tunnels, the IP address must be a regional external IP address.

optional string ip_address = 406272220;

Returns
Type Description
String

The ipAddress.

getIpAddressBytes()

public ByteString getIpAddressBytes()

[Output Only] IP address for this VPN interface associated with the VPN gateway. The IP address could be either a regional external IP address or a regional internal IP address. The two IP addresses for a VPN gateway must be all regional external or regional internal IP addresses. There cannot be a mix of regional external IP addresses and regional internal IP addresses. For HA VPN over Cloud Interconnect, the IP addresses for both interfaces could either be regional internal IP addresses or regional external IP addresses. For regular (non HA VPN over Cloud Interconnect) HA VPN tunnels, the IP address must be a regional external IP address.

optional string ip_address = 406272220;

Returns
Type Description
ByteString

The bytes for ipAddress.

getIpv6Address()

public String getIpv6Address()

[Output Only] IPv6 address for this VPN interface associated with the VPN gateway. The IPv6 address must be a regional external IPv6 address. The format is RFC 5952 format (e.g. 2001:db8::2d9:51:0:0).

optional string ipv6_address = 341563804;

Returns
Type Description
String

The ipv6Address.

getIpv6AddressBytes()

public ByteString getIpv6AddressBytes()

[Output Only] IPv6 address for this VPN interface associated with the VPN gateway. The IPv6 address must be a regional external IPv6 address. The format is RFC 5952 format (e.g. 2001:db8::2d9:51:0:0).

optional string ipv6_address = 341563804;

Returns
Type Description
ByteString

The bytes for ipv6Address.

hasId()

public boolean hasId()

[Output Only] Numeric identifier for this VPN interface associated with the VPN gateway.

optional uint32 id = 3355;

Returns
Type Description
boolean

Whether the id field is set.

hasInterconnectAttachment()

public boolean hasInterconnectAttachment()

URL of the VLAN attachment (interconnectAttachment) resource for this VPN gateway interface. When the value of this field is present, the VPN gateway is used for HA VPN over Cloud Interconnect; all egress or ingress traffic for this VPN gateway interface goes through the specified VLAN attachment resource.

optional string interconnect_attachment = 308135284;

Returns
Type Description
boolean

Whether the interconnectAttachment field is set.

hasIpAddress()

public boolean hasIpAddress()

[Output Only] IP address for this VPN interface associated with the VPN gateway. The IP address could be either a regional external IP address or a regional internal IP address. The two IP addresses for a VPN gateway must be all regional external or regional internal IP addresses. There cannot be a mix of regional external IP addresses and regional internal IP addresses. For HA VPN over Cloud Interconnect, the IP addresses for both interfaces could either be regional internal IP addresses or regional external IP addresses. For regular (non HA VPN over Cloud Interconnect) HA VPN tunnels, the IP address must be a regional external IP address.

optional string ip_address = 406272220;

Returns
Type Description
boolean

Whether the ipAddress field is set.

hasIpv6Address()

public boolean hasIpv6Address()

[Output Only] IPv6 address for this VPN interface associated with the VPN gateway. The IPv6 address must be a regional external IPv6 address. The format is RFC 5952 format (e.g. 2001:db8::2d9:51:0:0).

optional string ipv6_address = 341563804;

Returns
Type Description
boolean

Whether the ipv6Address field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(VpnGatewayVpnGatewayInterface other)

public VpnGatewayVpnGatewayInterface.Builder mergeFrom(VpnGatewayVpnGatewayInterface other)
Parameter
Name Description
other VpnGatewayVpnGatewayInterface
Returns
Type Description
VpnGatewayVpnGatewayInterface.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public VpnGatewayVpnGatewayInterface.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VpnGatewayVpnGatewayInterface.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public VpnGatewayVpnGatewayInterface.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
VpnGatewayVpnGatewayInterface.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final VpnGatewayVpnGatewayInterface.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
VpnGatewayVpnGatewayInterface.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public VpnGatewayVpnGatewayInterface.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
VpnGatewayVpnGatewayInterface.Builder
Overrides

setId(int value)

public VpnGatewayVpnGatewayInterface.Builder setId(int value)

[Output Only] Numeric identifier for this VPN interface associated with the VPN gateway.

optional uint32 id = 3355;

Parameter
Name Description
value int

The id to set.

Returns
Type Description
VpnGatewayVpnGatewayInterface.Builder

This builder for chaining.

setInterconnectAttachment(String value)

public VpnGatewayVpnGatewayInterface.Builder setInterconnectAttachment(String value)

URL of the VLAN attachment (interconnectAttachment) resource for this VPN gateway interface. When the value of this field is present, the VPN gateway is used for HA VPN over Cloud Interconnect; all egress or ingress traffic for this VPN gateway interface goes through the specified VLAN attachment resource.

optional string interconnect_attachment = 308135284;

Parameter
Name Description
value String

The interconnectAttachment to set.

Returns
Type Description
VpnGatewayVpnGatewayInterface.Builder

This builder for chaining.

setInterconnectAttachmentBytes(ByteString value)

public VpnGatewayVpnGatewayInterface.Builder setInterconnectAttachmentBytes(ByteString value)

URL of the VLAN attachment (interconnectAttachment) resource for this VPN gateway interface. When the value of this field is present, the VPN gateway is used for HA VPN over Cloud Interconnect; all egress or ingress traffic for this VPN gateway interface goes through the specified VLAN attachment resource.

optional string interconnect_attachment = 308135284;

Parameter
Name Description
value ByteString

The bytes for interconnectAttachment to set.

Returns
Type Description
VpnGatewayVpnGatewayInterface.Builder

This builder for chaining.

setIpAddress(String value)

public VpnGatewayVpnGatewayInterface.Builder setIpAddress(String value)

[Output Only] IP address for this VPN interface associated with the VPN gateway. The IP address could be either a regional external IP address or a regional internal IP address. The two IP addresses for a VPN gateway must be all regional external or regional internal IP addresses. There cannot be a mix of regional external IP addresses and regional internal IP addresses. For HA VPN over Cloud Interconnect, the IP addresses for both interfaces could either be regional internal IP addresses or regional external IP addresses. For regular (non HA VPN over Cloud Interconnect) HA VPN tunnels, the IP address must be a regional external IP address.

optional string ip_address = 406272220;

Parameter
Name Description
value String

The ipAddress to set.

Returns
Type Description
VpnGatewayVpnGatewayInterface.Builder

This builder for chaining.

setIpAddressBytes(ByteString value)

public VpnGatewayVpnGatewayInterface.Builder setIpAddressBytes(ByteString value)

[Output Only] IP address for this VPN interface associated with the VPN gateway. The IP address could be either a regional external IP address or a regional internal IP address. The two IP addresses for a VPN gateway must be all regional external or regional internal IP addresses. There cannot be a mix of regional external IP addresses and regional internal IP addresses. For HA VPN over Cloud Interconnect, the IP addresses for both interfaces could either be regional internal IP addresses or regional external IP addresses. For regular (non HA VPN over Cloud Interconnect) HA VPN tunnels, the IP address must be a regional external IP address.

optional string ip_address = 406272220;

Parameter
Name Description
value ByteString

The bytes for ipAddress to set.

Returns
Type Description
VpnGatewayVpnGatewayInterface.Builder

This builder for chaining.

setIpv6Address(String value)

public VpnGatewayVpnGatewayInterface.Builder setIpv6Address(String value)

[Output Only] IPv6 address for this VPN interface associated with the VPN gateway. The IPv6 address must be a regional external IPv6 address. The format is RFC 5952 format (e.g. 2001:db8::2d9:51:0:0).

optional string ipv6_address = 341563804;

Parameter
Name Description
value String

The ipv6Address to set.

Returns
Type Description
VpnGatewayVpnGatewayInterface.Builder

This builder for chaining.

setIpv6AddressBytes(ByteString value)

public VpnGatewayVpnGatewayInterface.Builder setIpv6AddressBytes(ByteString value)

[Output Only] IPv6 address for this VPN interface associated with the VPN gateway. The IPv6 address must be a regional external IPv6 address. The format is RFC 5952 format (e.g. 2001:db8::2d9:51:0:0).

optional string ipv6_address = 341563804;

Parameter
Name Description
value ByteString

The bytes for ipv6Address to set.

Returns
Type Description
VpnGatewayVpnGatewayInterface.Builder

This builder for chaining.

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

public VpnGatewayVpnGatewayInterface.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
VpnGatewayVpnGatewayInterface.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final VpnGatewayVpnGatewayInterface.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
VpnGatewayVpnGatewayInterface.Builder
Overrides