Class LinkedVpnTunnels.Builder (1.38.0)

public static final class LinkedVpnTunnels.Builder extends GeneratedMessageV3.Builder<LinkedVpnTunnels.Builder> implements LinkedVpnTunnelsOrBuilder

A collection of Cloud VPN tunnel resources. These resources should be redundant HA VPN tunnels that all advertise the same prefixes to Google Cloud. Alternatively, in a passive/active configuration, all tunnels should be capable of advertising the same prefixes.

Protobuf type google.cloud.networkconnectivity.v1.LinkedVpnTunnels

Static Methods

getDescriptor()

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

Methods

addAllUris(Iterable<String> values)

public LinkedVpnTunnels.Builder addAllUris(Iterable<String> values)

The URIs of linked VPN tunnel resources.

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

Parameter
NameDescription
valuesIterable<String>

The uris to add.

Returns
TypeDescription
LinkedVpnTunnels.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUris(String value)

public LinkedVpnTunnels.Builder addUris(String value)

The URIs of linked VPN tunnel resources.

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

Parameter
NameDescription
valueString

The uris to add.

Returns
TypeDescription
LinkedVpnTunnels.Builder

This builder for chaining.

addUrisBytes(ByteString value)

public LinkedVpnTunnels.Builder addUrisBytes(ByteString value)

The URIs of linked VPN tunnel resources.

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

Parameter
NameDescription
valueByteString

The bytes of the uris to add.

Returns
TypeDescription
LinkedVpnTunnels.Builder

This builder for chaining.

build()

public LinkedVpnTunnels build()
Returns
TypeDescription
LinkedVpnTunnels

buildPartial()

public LinkedVpnTunnels buildPartial()
Returns
TypeDescription
LinkedVpnTunnels

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSiteToSiteDataTransfer()

public LinkedVpnTunnels.Builder clearSiteToSiteDataTransfer()

A value that controls whether site-to-site data transfer is enabled for these resources. Data transfer is available only in supported locations.

bool site_to_site_data_transfer = 2;

Returns
TypeDescription
LinkedVpnTunnels.Builder

This builder for chaining.

clearUris()

public LinkedVpnTunnels.Builder clearUris()

The URIs of linked VPN tunnel resources.

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

Returns
TypeDescription
LinkedVpnTunnels.Builder

This builder for chaining.

clearVpcNetwork()

public LinkedVpnTunnels.Builder clearVpcNetwork()

Output only. The VPC network where these VPN tunnels are located.

string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
LinkedVpnTunnels.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public LinkedVpnTunnels getDefaultInstanceForType()
Returns
TypeDescription
LinkedVpnTunnels

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getSiteToSiteDataTransfer()

public boolean getSiteToSiteDataTransfer()

A value that controls whether site-to-site data transfer is enabled for these resources. Data transfer is available only in supported locations.

bool site_to_site_data_transfer = 2;

Returns
TypeDescription
boolean

The siteToSiteDataTransfer.

getUris(int index)

public String getUris(int index)

The URIs of linked VPN tunnel resources.

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

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The uris at the given index.

getUrisBytes(int index)

public ByteString getUrisBytes(int index)

The URIs of linked VPN tunnel resources.

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

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the uris at the given index.

getUrisCount()

public int getUrisCount()

The URIs of linked VPN tunnel resources.

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

Returns
TypeDescription
int

The count of uris.

getUrisList()

public ProtocolStringList getUrisList()

The URIs of linked VPN tunnel resources.

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

Returns
TypeDescription
ProtocolStringList

A list containing the uris.

getVpcNetwork()

public String getVpcNetwork()

Output only. The VPC network where these VPN tunnels are located.

string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The vpcNetwork.

getVpcNetworkBytes()

public ByteString getVpcNetworkBytes()

Output only. The VPC network where these VPN tunnels are located.

string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for vpcNetwork.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(LinkedVpnTunnels other)

public LinkedVpnTunnels.Builder mergeFrom(LinkedVpnTunnels other)
Parameter
NameDescription
otherLinkedVpnTunnels
Returns
TypeDescription
LinkedVpnTunnels.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setSiteToSiteDataTransfer(boolean value)

public LinkedVpnTunnels.Builder setSiteToSiteDataTransfer(boolean value)

A value that controls whether site-to-site data transfer is enabled for these resources. Data transfer is available only in supported locations.

bool site_to_site_data_transfer = 2;

Parameter
NameDescription
valueboolean

The siteToSiteDataTransfer to set.

Returns
TypeDescription
LinkedVpnTunnels.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUris(int index, String value)

public LinkedVpnTunnels.Builder setUris(int index, String value)

The URIs of linked VPN tunnel resources.

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

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The uris to set.

Returns
TypeDescription
LinkedVpnTunnels.Builder

This builder for chaining.

setVpcNetwork(String value)

public LinkedVpnTunnels.Builder setVpcNetwork(String value)

Output only. The VPC network where these VPN tunnels are located.

string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The vpcNetwork to set.

Returns
TypeDescription
LinkedVpnTunnels.Builder

This builder for chaining.

setVpcNetworkBytes(ByteString value)

public LinkedVpnTunnels.Builder setVpcNetworkBytes(ByteString value)

Output only. The VPC network where these VPN tunnels are located.

string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for vpcNetwork to set.

Returns
TypeDescription
LinkedVpnTunnels.Builder

This builder for chaining.