Class ExternalVpnGatewayInterface.Builder (1.18.0)

public static final class ExternalVpnGatewayInterface.Builder extends GeneratedMessageV3.Builder<ExternalVpnGatewayInterface.Builder> implements ExternalVpnGatewayInterfaceOrBuilder

The interface for the external VPN gateway.

Protobuf type google.cloud.compute.v1.ExternalVpnGatewayInterface

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ExternalVpnGatewayInterface build()
Returns
TypeDescription
ExternalVpnGatewayInterface

buildPartial()

public ExternalVpnGatewayInterface buildPartial()
Returns
TypeDescription
ExternalVpnGatewayInterface

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearId()

public ExternalVpnGatewayInterface.Builder clearId()

The numeric ID of this interface. The allowed input values for this id for different redundancy types of external VPN gateway: - SINGLE_IP_INTERNALLY_REDUNDANT - 0 - TWO_IPS_REDUNDANCY - 0, 1 - FOUR_IPS_REDUNDANCY - 0, 1, 2, 3

optional uint32 id = 3355;

Returns
TypeDescription
ExternalVpnGatewayInterface.Builder

This builder for chaining.

clearIpAddress()

public ExternalVpnGatewayInterface.Builder clearIpAddress()

IP address of the interface in the external VPN gateway. Only IPv4 is supported. This IP address can be either from your on-premise gateway or another Cloud provider's VPN gateway, it cannot be an IP address from Google Compute Engine.

optional string ip_address = 406272220;

Returns
TypeDescription
ExternalVpnGatewayInterface.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ExternalVpnGatewayInterface getDefaultInstanceForType()
Returns
TypeDescription
ExternalVpnGatewayInterface

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getId()

public int getId()

The numeric ID of this interface. The allowed input values for this id for different redundancy types of external VPN gateway: - SINGLE_IP_INTERNALLY_REDUNDANT - 0 - TWO_IPS_REDUNDANCY - 0, 1 - FOUR_IPS_REDUNDANCY - 0, 1, 2, 3

optional uint32 id = 3355;

Returns
TypeDescription
int

The id.

getIpAddress()

public String getIpAddress()

IP address of the interface in the external VPN gateway. Only IPv4 is supported. This IP address can be either from your on-premise gateway or another Cloud provider's VPN gateway, it cannot be an IP address from Google Compute Engine.

optional string ip_address = 406272220;

Returns
TypeDescription
String

The ipAddress.

getIpAddressBytes()

public ByteString getIpAddressBytes()

IP address of the interface in the external VPN gateway. Only IPv4 is supported. This IP address can be either from your on-premise gateway or another Cloud provider's VPN gateway, it cannot be an IP address from Google Compute Engine.

optional string ip_address = 406272220;

Returns
TypeDescription
ByteString

The bytes for ipAddress.

hasId()

public boolean hasId()

The numeric ID of this interface. The allowed input values for this id for different redundancy types of external VPN gateway: - SINGLE_IP_INTERNALLY_REDUNDANT - 0 - TWO_IPS_REDUNDANCY - 0, 1 - FOUR_IPS_REDUNDANCY - 0, 1, 2, 3

optional uint32 id = 3355;

Returns
TypeDescription
boolean

Whether the id field is set.

hasIpAddress()

public boolean hasIpAddress()

IP address of the interface in the external VPN gateway. Only IPv4 is supported. This IP address can be either from your on-premise gateway or another Cloud provider's VPN gateway, it cannot be an IP address from Google Compute Engine.

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(ExternalVpnGatewayInterface other)

public ExternalVpnGatewayInterface.Builder mergeFrom(ExternalVpnGatewayInterface other)
Parameter
NameDescription
otherExternalVpnGatewayInterface
Returns
TypeDescription
ExternalVpnGatewayInterface.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setId(int value)

public ExternalVpnGatewayInterface.Builder setId(int value)

The numeric ID of this interface. The allowed input values for this id for different redundancy types of external VPN gateway: - SINGLE_IP_INTERNALLY_REDUNDANT - 0 - TWO_IPS_REDUNDANCY - 0, 1 - FOUR_IPS_REDUNDANCY - 0, 1, 2, 3

optional uint32 id = 3355;

Parameter
NameDescription
valueint

The id to set.

Returns
TypeDescription
ExternalVpnGatewayInterface.Builder

This builder for chaining.

setIpAddress(String value)

public ExternalVpnGatewayInterface.Builder setIpAddress(String value)

IP address of the interface in the external VPN gateway. Only IPv4 is supported. This IP address can be either from your on-premise gateway or another Cloud provider's VPN gateway, it cannot be an IP address from Google Compute Engine.

optional string ip_address = 406272220;

Parameter
NameDescription
valueString

The ipAddress to set.

Returns
TypeDescription
ExternalVpnGatewayInterface.Builder

This builder for chaining.

setIpAddressBytes(ByteString value)

public ExternalVpnGatewayInterface.Builder setIpAddressBytes(ByteString value)

IP address of the interface in the external VPN gateway. Only IPv4 is supported. This IP address can be either from your on-premise gateway or another Cloud provider's VPN gateway, it cannot be an IP address from Google Compute Engine.

optional string ip_address = 406272220;

Parameter
NameDescription
valueByteString

The bytes for ipAddress to set.

Returns
TypeDescription
ExternalVpnGatewayInterface.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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