Class VpnGatewayVpnGatewayInterface.Builder

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public VpnGatewayVpnGatewayInterface build()
Returns
TypeDescription
VpnGatewayVpnGatewayInterface

buildPartial()

public VpnGatewayVpnGatewayInterface buildPartial()
Returns
TypeDescription
VpnGatewayVpnGatewayInterface

clear()

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

clearField(Descriptors.FieldDescriptor field)

public VpnGatewayVpnGatewayInterface.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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 IPsec-encrypted Cloud Interconnect; all egress or ingress traffic for this VPN gateway interface goes through the specified VLAN attachment resource. Not currently available publicly.

optional string interconnect_attachment = 308135284;

Returns
TypeDescription
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 IPsec-encrypted Cloud Interconnect, the IP addresses for both interfaces could either be regional internal IP addresses or regional external IP addresses. For regular (non IPsec-encrypted Cloud Interconnect) HA VPN tunnels, the IP address must be a regional external IP address.

optional string ip_address = 406272220;

Returns
TypeDescription
VpnGatewayVpnGatewayInterface.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public VpnGatewayVpnGatewayInterface getDefaultInstanceForType()
Returns
TypeDescription
VpnGatewayVpnGatewayInterface

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getId()

public int getId()

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

optional uint32 id = 3355;

Returns
TypeDescription
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 IPsec-encrypted Cloud Interconnect; all egress or ingress traffic for this VPN gateway interface goes through the specified VLAN attachment resource. Not currently available publicly.

optional string interconnect_attachment = 308135284;

Returns
TypeDescription
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 IPsec-encrypted Cloud Interconnect; all egress or ingress traffic for this VPN gateway interface goes through the specified VLAN attachment resource. Not currently available publicly.

optional string interconnect_attachment = 308135284;

Returns
TypeDescription
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 IPsec-encrypted Cloud Interconnect, the IP addresses for both interfaces could either be regional internal IP addresses or regional external IP addresses. For regular (non IPsec-encrypted Cloud Interconnect) HA VPN tunnels, the IP address must be a regional external IP address.

optional string ip_address = 406272220;

Returns
TypeDescription
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 IPsec-encrypted Cloud Interconnect, the IP addresses for both interfaces could either be regional internal IP addresses or regional external IP addresses. For regular (non IPsec-encrypted Cloud Interconnect) HA VPN tunnels, the IP address must be a regional external IP address.

optional string ip_address = 406272220;

Returns
TypeDescription
ByteString

The bytes for ipAddress.

hasId()

public boolean hasId()

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

optional uint32 id = 3355;

Returns
TypeDescription
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 IPsec-encrypted Cloud Interconnect; all egress or ingress traffic for this VPN gateway interface goes through the specified VLAN attachment resource. Not currently available publicly.

optional string interconnect_attachment = 308135284;

Returns
TypeDescription
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 IPsec-encrypted Cloud Interconnect, the IP addresses for both interfaces could either be regional internal IP addresses or regional external IP addresses. For regular (non IPsec-encrypted Cloud Interconnect) HA VPN tunnels, the IP address must be a regional external IP address.

optional string ip_address = 406272220;

Returns
TypeDescription
boolean

Whether the ipAddress field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(VpnGatewayVpnGatewayInterface other)

public VpnGatewayVpnGatewayInterface.Builder mergeFrom(VpnGatewayVpnGatewayInterface other)
Parameter
NameDescription
otherVpnGatewayVpnGatewayInterface
Returns
TypeDescription
VpnGatewayVpnGatewayInterface.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public VpnGatewayVpnGatewayInterface.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueint

The id to set.

Returns
TypeDescription
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 IPsec-encrypted Cloud Interconnect; all egress or ingress traffic for this VPN gateway interface goes through the specified VLAN attachment resource. Not currently available publicly.

optional string interconnect_attachment = 308135284;

Parameter
NameDescription
valueString

The interconnectAttachment to set.

Returns
TypeDescription
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 IPsec-encrypted Cloud Interconnect; all egress or ingress traffic for this VPN gateway interface goes through the specified VLAN attachment resource. Not currently available publicly.

optional string interconnect_attachment = 308135284;

Parameter
NameDescription
valueByteString

The bytes for interconnectAttachment to set.

Returns
TypeDescription
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 IPsec-encrypted Cloud Interconnect, the IP addresses for both interfaces could either be regional internal IP addresses or regional external IP addresses. For regular (non IPsec-encrypted Cloud Interconnect) HA VPN tunnels, the IP address must be a regional external IP address.

optional string ip_address = 406272220;

Parameter
NameDescription
valueString

The ipAddress to set.

Returns
TypeDescription
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 IPsec-encrypted Cloud Interconnect, the IP addresses for both interfaces could either be regional internal IP addresses or regional external IP addresses. For regular (non IPsec-encrypted Cloud Interconnect) HA VPN tunnels, the IP address must be a regional external IP address.

optional string ip_address = 406272220;

Parameter
NameDescription
valueByteString

The bytes for ipAddress to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
VpnGatewayVpnGatewayInterface.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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