Class VpnGatewayStatusVpnConnection.Builder (1.30.0)

public static final class VpnGatewayStatusVpnConnection.Builder extends GeneratedMessageV3.Builder<VpnGatewayStatusVpnConnection.Builder> implements VpnGatewayStatusVpnConnectionOrBuilder

A VPN connection contains all VPN tunnels connected from this VpnGateway to the same peer gateway. The peer gateway could either be a external VPN gateway or GCP VPN gateway.

Protobuf type google.cloud.compute.v1.VpnGatewayStatusVpnConnection

Static Methods

getDescriptor()

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

Methods

addAllTunnels(Iterable<? extends VpnGatewayStatusTunnel> values)

public VpnGatewayStatusVpnConnection.Builder addAllTunnels(Iterable<? extends VpnGatewayStatusTunnel> values)

List of VPN tunnels that are in this VPN connection.

repeated .google.cloud.compute.v1.VpnGatewayStatusTunnel tunnels = 104561931;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.compute.v1.VpnGatewayStatusTunnel>
Returns
TypeDescription
VpnGatewayStatusVpnConnection.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addTunnels(VpnGatewayStatusTunnel value)

public VpnGatewayStatusVpnConnection.Builder addTunnels(VpnGatewayStatusTunnel value)

List of VPN tunnels that are in this VPN connection.

repeated .google.cloud.compute.v1.VpnGatewayStatusTunnel tunnels = 104561931;

Parameter
NameDescription
valueVpnGatewayStatusTunnel
Returns
TypeDescription
VpnGatewayStatusVpnConnection.Builder

addTunnels(VpnGatewayStatusTunnel.Builder builderForValue)

public VpnGatewayStatusVpnConnection.Builder addTunnels(VpnGatewayStatusTunnel.Builder builderForValue)

List of VPN tunnels that are in this VPN connection.

repeated .google.cloud.compute.v1.VpnGatewayStatusTunnel tunnels = 104561931;

Parameter
NameDescription
builderForValueVpnGatewayStatusTunnel.Builder
Returns
TypeDescription
VpnGatewayStatusVpnConnection.Builder

addTunnels(int index, VpnGatewayStatusTunnel value)

public VpnGatewayStatusVpnConnection.Builder addTunnels(int index, VpnGatewayStatusTunnel value)

List of VPN tunnels that are in this VPN connection.

repeated .google.cloud.compute.v1.VpnGatewayStatusTunnel tunnels = 104561931;

Parameters
NameDescription
indexint
valueVpnGatewayStatusTunnel
Returns
TypeDescription
VpnGatewayStatusVpnConnection.Builder

addTunnels(int index, VpnGatewayStatusTunnel.Builder builderForValue)

public VpnGatewayStatusVpnConnection.Builder addTunnels(int index, VpnGatewayStatusTunnel.Builder builderForValue)

List of VPN tunnels that are in this VPN connection.

repeated .google.cloud.compute.v1.VpnGatewayStatusTunnel tunnels = 104561931;

Parameters
NameDescription
indexint
builderForValueVpnGatewayStatusTunnel.Builder
Returns
TypeDescription
VpnGatewayStatusVpnConnection.Builder

addTunnelsBuilder()

public VpnGatewayStatusTunnel.Builder addTunnelsBuilder()

List of VPN tunnels that are in this VPN connection.

repeated .google.cloud.compute.v1.VpnGatewayStatusTunnel tunnels = 104561931;

Returns
TypeDescription
VpnGatewayStatusTunnel.Builder

addTunnelsBuilder(int index)

public VpnGatewayStatusTunnel.Builder addTunnelsBuilder(int index)

List of VPN tunnels that are in this VPN connection.

repeated .google.cloud.compute.v1.VpnGatewayStatusTunnel tunnels = 104561931;

Parameter
NameDescription
indexint
Returns
TypeDescription
VpnGatewayStatusTunnel.Builder

build()

public VpnGatewayStatusVpnConnection build()
Returns
TypeDescription
VpnGatewayStatusVpnConnection

buildPartial()

public VpnGatewayStatusVpnConnection buildPartial()
Returns
TypeDescription
VpnGatewayStatusVpnConnection

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPeerExternalGateway()

public VpnGatewayStatusVpnConnection.Builder clearPeerExternalGateway()

URL reference to the peer external VPN gateways to which the VPN tunnels in this VPN connection are connected. This field is mutually exclusive with peer_gcp_gateway.

optional string peer_external_gateway = 384956173;

Returns
TypeDescription
VpnGatewayStatusVpnConnection.Builder

This builder for chaining.

clearPeerGcpGateway()

public VpnGatewayStatusVpnConnection.Builder clearPeerGcpGateway()

URL reference to the peer side VPN gateways to which the VPN tunnels in this VPN connection are connected. This field is mutually exclusive with peer_gcp_gateway.

optional string peer_gcp_gateway = 281867452;

Returns
TypeDescription
VpnGatewayStatusVpnConnection.Builder

This builder for chaining.

clearState()

public VpnGatewayStatusVpnConnection.Builder clearState()

HighAvailabilityRequirementState for the VPN connection.

optional .google.cloud.compute.v1.VpnGatewayStatusHighAvailabilityRequirementState state = 109757585;

Returns
TypeDescription
VpnGatewayStatusVpnConnection.Builder

clearTunnels()

public VpnGatewayStatusVpnConnection.Builder clearTunnels()

List of VPN tunnels that are in this VPN connection.

repeated .google.cloud.compute.v1.VpnGatewayStatusTunnel tunnels = 104561931;

Returns
TypeDescription
VpnGatewayStatusVpnConnection.Builder

clone()

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

getDefaultInstanceForType()

public VpnGatewayStatusVpnConnection getDefaultInstanceForType()
Returns
TypeDescription
VpnGatewayStatusVpnConnection

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPeerExternalGateway()

public String getPeerExternalGateway()

URL reference to the peer external VPN gateways to which the VPN tunnels in this VPN connection are connected. This field is mutually exclusive with peer_gcp_gateway.

optional string peer_external_gateway = 384956173;

Returns
TypeDescription
String

The peerExternalGateway.

getPeerExternalGatewayBytes()

public ByteString getPeerExternalGatewayBytes()

URL reference to the peer external VPN gateways to which the VPN tunnels in this VPN connection are connected. This field is mutually exclusive with peer_gcp_gateway.

optional string peer_external_gateway = 384956173;

Returns
TypeDescription
ByteString

The bytes for peerExternalGateway.

getPeerGcpGateway()

public String getPeerGcpGateway()

URL reference to the peer side VPN gateways to which the VPN tunnels in this VPN connection are connected. This field is mutually exclusive with peer_gcp_gateway.

optional string peer_gcp_gateway = 281867452;

Returns
TypeDescription
String

The peerGcpGateway.

getPeerGcpGatewayBytes()

public ByteString getPeerGcpGatewayBytes()

URL reference to the peer side VPN gateways to which the VPN tunnels in this VPN connection are connected. This field is mutually exclusive with peer_gcp_gateway.

optional string peer_gcp_gateway = 281867452;

Returns
TypeDescription
ByteString

The bytes for peerGcpGateway.

getState()

public VpnGatewayStatusHighAvailabilityRequirementState getState()

HighAvailabilityRequirementState for the VPN connection.

optional .google.cloud.compute.v1.VpnGatewayStatusHighAvailabilityRequirementState state = 109757585;

Returns
TypeDescription
VpnGatewayStatusHighAvailabilityRequirementState

The state.

getStateBuilder()

public VpnGatewayStatusHighAvailabilityRequirementState.Builder getStateBuilder()

HighAvailabilityRequirementState for the VPN connection.

optional .google.cloud.compute.v1.VpnGatewayStatusHighAvailabilityRequirementState state = 109757585;

Returns
TypeDescription
VpnGatewayStatusHighAvailabilityRequirementState.Builder

getStateOrBuilder()

public VpnGatewayStatusHighAvailabilityRequirementStateOrBuilder getStateOrBuilder()

HighAvailabilityRequirementState for the VPN connection.

optional .google.cloud.compute.v1.VpnGatewayStatusHighAvailabilityRequirementState state = 109757585;

Returns
TypeDescription
VpnGatewayStatusHighAvailabilityRequirementStateOrBuilder

getTunnels(int index)

public VpnGatewayStatusTunnel getTunnels(int index)

List of VPN tunnels that are in this VPN connection.

repeated .google.cloud.compute.v1.VpnGatewayStatusTunnel tunnels = 104561931;

Parameter
NameDescription
indexint
Returns
TypeDescription
VpnGatewayStatusTunnel

getTunnelsBuilder(int index)

public VpnGatewayStatusTunnel.Builder getTunnelsBuilder(int index)

List of VPN tunnels that are in this VPN connection.

repeated .google.cloud.compute.v1.VpnGatewayStatusTunnel tunnels = 104561931;

Parameter
NameDescription
indexint
Returns
TypeDescription
VpnGatewayStatusTunnel.Builder

getTunnelsBuilderList()

public List<VpnGatewayStatusTunnel.Builder> getTunnelsBuilderList()

List of VPN tunnels that are in this VPN connection.

repeated .google.cloud.compute.v1.VpnGatewayStatusTunnel tunnels = 104561931;

Returns
TypeDescription
List<Builder>

getTunnelsCount()

public int getTunnelsCount()

List of VPN tunnels that are in this VPN connection.

repeated .google.cloud.compute.v1.VpnGatewayStatusTunnel tunnels = 104561931;

Returns
TypeDescription
int

getTunnelsList()

public List<VpnGatewayStatusTunnel> getTunnelsList()

List of VPN tunnels that are in this VPN connection.

repeated .google.cloud.compute.v1.VpnGatewayStatusTunnel tunnels = 104561931;

Returns
TypeDescription
List<VpnGatewayStatusTunnel>

getTunnelsOrBuilder(int index)

public VpnGatewayStatusTunnelOrBuilder getTunnelsOrBuilder(int index)

List of VPN tunnels that are in this VPN connection.

repeated .google.cloud.compute.v1.VpnGatewayStatusTunnel tunnels = 104561931;

Parameter
NameDescription
indexint
Returns
TypeDescription
VpnGatewayStatusTunnelOrBuilder

getTunnelsOrBuilderList()

public List<? extends VpnGatewayStatusTunnelOrBuilder> getTunnelsOrBuilderList()

List of VPN tunnels that are in this VPN connection.

repeated .google.cloud.compute.v1.VpnGatewayStatusTunnel tunnels = 104561931;

Returns
TypeDescription
List<? extends com.google.cloud.compute.v1.VpnGatewayStatusTunnelOrBuilder>

hasPeerExternalGateway()

public boolean hasPeerExternalGateway()

URL reference to the peer external VPN gateways to which the VPN tunnels in this VPN connection are connected. This field is mutually exclusive with peer_gcp_gateway.

optional string peer_external_gateway = 384956173;

Returns
TypeDescription
boolean

Whether the peerExternalGateway field is set.

hasPeerGcpGateway()

public boolean hasPeerGcpGateway()

URL reference to the peer side VPN gateways to which the VPN tunnels in this VPN connection are connected. This field is mutually exclusive with peer_gcp_gateway.

optional string peer_gcp_gateway = 281867452;

Returns
TypeDescription
boolean

Whether the peerGcpGateway field is set.

hasState()

public boolean hasState()

HighAvailabilityRequirementState for the VPN connection.

optional .google.cloud.compute.v1.VpnGatewayStatusHighAvailabilityRequirementState state = 109757585;

Returns
TypeDescription
boolean

Whether the state field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(VpnGatewayStatusVpnConnection other)

public VpnGatewayStatusVpnConnection.Builder mergeFrom(VpnGatewayStatusVpnConnection other)
Parameter
NameDescription
otherVpnGatewayStatusVpnConnection
Returns
TypeDescription
VpnGatewayStatusVpnConnection.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeState(VpnGatewayStatusHighAvailabilityRequirementState value)

public VpnGatewayStatusVpnConnection.Builder mergeState(VpnGatewayStatusHighAvailabilityRequirementState value)

HighAvailabilityRequirementState for the VPN connection.

optional .google.cloud.compute.v1.VpnGatewayStatusHighAvailabilityRequirementState state = 109757585;

Parameter
NameDescription
valueVpnGatewayStatusHighAvailabilityRequirementState
Returns
TypeDescription
VpnGatewayStatusVpnConnection.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeTunnels(int index)

public VpnGatewayStatusVpnConnection.Builder removeTunnels(int index)

List of VPN tunnels that are in this VPN connection.

repeated .google.cloud.compute.v1.VpnGatewayStatusTunnel tunnels = 104561931;

Parameter
NameDescription
indexint
Returns
TypeDescription
VpnGatewayStatusVpnConnection.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setPeerExternalGateway(String value)

public VpnGatewayStatusVpnConnection.Builder setPeerExternalGateway(String value)

URL reference to the peer external VPN gateways to which the VPN tunnels in this VPN connection are connected. This field is mutually exclusive with peer_gcp_gateway.

optional string peer_external_gateway = 384956173;

Parameter
NameDescription
valueString

The peerExternalGateway to set.

Returns
TypeDescription
VpnGatewayStatusVpnConnection.Builder

This builder for chaining.

setPeerExternalGatewayBytes(ByteString value)

public VpnGatewayStatusVpnConnection.Builder setPeerExternalGatewayBytes(ByteString value)

URL reference to the peer external VPN gateways to which the VPN tunnels in this VPN connection are connected. This field is mutually exclusive with peer_gcp_gateway.

optional string peer_external_gateway = 384956173;

Parameter
NameDescription
valueByteString

The bytes for peerExternalGateway to set.

Returns
TypeDescription
VpnGatewayStatusVpnConnection.Builder

This builder for chaining.

setPeerGcpGateway(String value)

public VpnGatewayStatusVpnConnection.Builder setPeerGcpGateway(String value)

URL reference to the peer side VPN gateways to which the VPN tunnels in this VPN connection are connected. This field is mutually exclusive with peer_gcp_gateway.

optional string peer_gcp_gateway = 281867452;

Parameter
NameDescription
valueString

The peerGcpGateway to set.

Returns
TypeDescription
VpnGatewayStatusVpnConnection.Builder

This builder for chaining.

setPeerGcpGatewayBytes(ByteString value)

public VpnGatewayStatusVpnConnection.Builder setPeerGcpGatewayBytes(ByteString value)

URL reference to the peer side VPN gateways to which the VPN tunnels in this VPN connection are connected. This field is mutually exclusive with peer_gcp_gateway.

optional string peer_gcp_gateway = 281867452;

Parameter
NameDescription
valueByteString

The bytes for peerGcpGateway to set.

Returns
TypeDescription
VpnGatewayStatusVpnConnection.Builder

This builder for chaining.

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

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

setState(VpnGatewayStatusHighAvailabilityRequirementState value)

public VpnGatewayStatusVpnConnection.Builder setState(VpnGatewayStatusHighAvailabilityRequirementState value)

HighAvailabilityRequirementState for the VPN connection.

optional .google.cloud.compute.v1.VpnGatewayStatusHighAvailabilityRequirementState state = 109757585;

Parameter
NameDescription
valueVpnGatewayStatusHighAvailabilityRequirementState
Returns
TypeDescription
VpnGatewayStatusVpnConnection.Builder

setState(VpnGatewayStatusHighAvailabilityRequirementState.Builder builderForValue)

public VpnGatewayStatusVpnConnection.Builder setState(VpnGatewayStatusHighAvailabilityRequirementState.Builder builderForValue)

HighAvailabilityRequirementState for the VPN connection.

optional .google.cloud.compute.v1.VpnGatewayStatusHighAvailabilityRequirementState state = 109757585;

Parameter
NameDescription
builderForValueVpnGatewayStatusHighAvailabilityRequirementState.Builder
Returns
TypeDescription
VpnGatewayStatusVpnConnection.Builder

setTunnels(int index, VpnGatewayStatusTunnel value)

public VpnGatewayStatusVpnConnection.Builder setTunnels(int index, VpnGatewayStatusTunnel value)

List of VPN tunnels that are in this VPN connection.

repeated .google.cloud.compute.v1.VpnGatewayStatusTunnel tunnels = 104561931;

Parameters
NameDescription
indexint
valueVpnGatewayStatusTunnel
Returns
TypeDescription
VpnGatewayStatusVpnConnection.Builder

setTunnels(int index, VpnGatewayStatusTunnel.Builder builderForValue)

public VpnGatewayStatusVpnConnection.Builder setTunnels(int index, VpnGatewayStatusTunnel.Builder builderForValue)

List of VPN tunnels that are in this VPN connection.

repeated .google.cloud.compute.v1.VpnGatewayStatusTunnel tunnels = 104561931;

Parameters
NameDescription
indexint
builderForValueVpnGatewayStatusTunnel.Builder
Returns
TypeDescription
VpnGatewayStatusVpnConnection.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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