Class NextHopVPNTunnel.Builder (1.82.0)

public static final class NextHopVPNTunnel.Builder extends GeneratedMessage.Builder<NextHopVPNTunnel.Builder> implements NextHopVPNTunnelOrBuilder

A route next hop that leads to a VPN tunnel resource.

Protobuf type google.cloud.networkconnectivity.v1.NextHopVPNTunnel

Static Methods

getDescriptor()

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

Methods

build()

public NextHopVPNTunnel build()
Returns
Type Description
NextHopVPNTunnel

buildPartial()

public NextHopVPNTunnel buildPartial()
Returns
Type Description
NextHopVPNTunnel

clear()

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

clearSiteToSiteDataTransfer()

public NextHopVPNTunnel.Builder clearSiteToSiteDataTransfer()

Indicates whether site-to-site data transfer is allowed for this VPN tunnel resource. Data transfer is available only in supported locations.

bool site_to_site_data_transfer = 3;

Returns
Type Description
NextHopVPNTunnel.Builder

This builder for chaining.

clearUri()

public NextHopVPNTunnel.Builder clearUri()

The URI of the VPN tunnel resource.

string uri = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
NextHopVPNTunnel.Builder

This builder for chaining.

clearVpcNetwork()

public NextHopVPNTunnel.Builder clearVpcNetwork()

The VPC network where this VPN tunnel is located.

string vpc_network = 2 [(.google.api.resource_reference) = { ... }

Returns
Type Description
NextHopVPNTunnel.Builder

This builder for chaining.

getDefaultInstanceForType()

public NextHopVPNTunnel getDefaultInstanceForType()
Returns
Type Description
NextHopVPNTunnel

getDescriptorForType()

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

getSiteToSiteDataTransfer()

public boolean getSiteToSiteDataTransfer()

Indicates whether site-to-site data transfer is allowed for this VPN tunnel resource. Data transfer is available only in supported locations.

bool site_to_site_data_transfer = 3;

Returns
Type Description
boolean

The siteToSiteDataTransfer.

getUri()

public String getUri()

The URI of the VPN tunnel resource.

string uri = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
String

The uri.

getUriBytes()

public ByteString getUriBytes()

The URI of the VPN tunnel resource.

string uri = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for uri.

getVpcNetwork()

public String getVpcNetwork()

The VPC network where this VPN tunnel is located.

string vpc_network = 2 [(.google.api.resource_reference) = { ... }

Returns
Type Description
String

The vpcNetwork.

getVpcNetworkBytes()

public ByteString getVpcNetworkBytes()

The VPC network where this VPN tunnel is located.

string vpc_network = 2 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for vpcNetwork.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(NextHopVPNTunnel other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setSiteToSiteDataTransfer(boolean value)

public NextHopVPNTunnel.Builder setSiteToSiteDataTransfer(boolean value)

Indicates whether site-to-site data transfer is allowed for this VPN tunnel resource. Data transfer is available only in supported locations.

bool site_to_site_data_transfer = 3;

Parameter
Name Description
value boolean

The siteToSiteDataTransfer to set.

Returns
Type Description
NextHopVPNTunnel.Builder

This builder for chaining.

setUri(String value)

public NextHopVPNTunnel.Builder setUri(String value)

The URI of the VPN tunnel resource.

string uri = 1 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The uri to set.

Returns
Type Description
NextHopVPNTunnel.Builder

This builder for chaining.

setUriBytes(ByteString value)

public NextHopVPNTunnel.Builder setUriBytes(ByteString value)

The URI of the VPN tunnel resource.

string uri = 1 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for uri to set.

Returns
Type Description
NextHopVPNTunnel.Builder

This builder for chaining.

setVpcNetwork(String value)

public NextHopVPNTunnel.Builder setVpcNetwork(String value)

The VPC network where this VPN tunnel is located.

string vpc_network = 2 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The vpcNetwork to set.

Returns
Type Description
NextHopVPNTunnel.Builder

This builder for chaining.

setVpcNetworkBytes(ByteString value)

public NextHopVPNTunnel.Builder setVpcNetworkBytes(ByteString value)

The VPC network where this VPN tunnel is located.

string vpc_network = 2 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for vpcNetwork to set.

Returns
Type Description
NextHopVPNTunnel.Builder

This builder for chaining.