Class LinkedRouterApplianceInstances.Builder (1.50.0)

public static final class LinkedRouterApplianceInstances.Builder extends GeneratedMessageV3.Builder<LinkedRouterApplianceInstances.Builder> implements LinkedRouterApplianceInstancesOrBuilder

A collection of router appliance instances. If you configure multiple router appliance instances to receive data from the same set of sites outside of Google Cloud, we recommend that you associate those instances with the same spoke.

Protobuf type google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances

Static Methods

getDescriptor()

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

Methods

addAllInstances(Iterable<? extends RouterApplianceInstance> values)

public LinkedRouterApplianceInstances.Builder addAllInstances(Iterable<? extends RouterApplianceInstance> values)

The list of router appliance instances.

repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.networkconnectivity.v1.RouterApplianceInstance>
Returns
Type Description
LinkedRouterApplianceInstances.Builder

addInstances(RouterApplianceInstance value)

public LinkedRouterApplianceInstances.Builder addInstances(RouterApplianceInstance value)

The list of router appliance instances.

repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1;

Parameter
Name Description
value RouterApplianceInstance
Returns
Type Description
LinkedRouterApplianceInstances.Builder

addInstances(RouterApplianceInstance.Builder builderForValue)

public LinkedRouterApplianceInstances.Builder addInstances(RouterApplianceInstance.Builder builderForValue)

The list of router appliance instances.

repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1;

Parameter
Name Description
builderForValue RouterApplianceInstance.Builder
Returns
Type Description
LinkedRouterApplianceInstances.Builder

addInstances(int index, RouterApplianceInstance value)

public LinkedRouterApplianceInstances.Builder addInstances(int index, RouterApplianceInstance value)

The list of router appliance instances.

repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1;

Parameters
Name Description
index int
value RouterApplianceInstance
Returns
Type Description
LinkedRouterApplianceInstances.Builder

addInstances(int index, RouterApplianceInstance.Builder builderForValue)

public LinkedRouterApplianceInstances.Builder addInstances(int index, RouterApplianceInstance.Builder builderForValue)

The list of router appliance instances.

repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1;

Parameters
Name Description
index int
builderForValue RouterApplianceInstance.Builder
Returns
Type Description
LinkedRouterApplianceInstances.Builder

addInstancesBuilder()

public RouterApplianceInstance.Builder addInstancesBuilder()

The list of router appliance instances.

repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1;

Returns
Type Description
RouterApplianceInstance.Builder

addInstancesBuilder(int index)

public RouterApplianceInstance.Builder addInstancesBuilder(int index)

The list of router appliance instances.

repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1;

Parameter
Name Description
index int
Returns
Type Description
RouterApplianceInstance.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public LinkedRouterApplianceInstances.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
LinkedRouterApplianceInstances.Builder
Overrides

build()

public LinkedRouterApplianceInstances build()
Returns
Type Description
LinkedRouterApplianceInstances

buildPartial()

public LinkedRouterApplianceInstances buildPartial()
Returns
Type Description
LinkedRouterApplianceInstances

clear()

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

clearField(Descriptors.FieldDescriptor field)

public LinkedRouterApplianceInstances.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
LinkedRouterApplianceInstances.Builder
Overrides

clearInstances()

public LinkedRouterApplianceInstances.Builder clearInstances()

The list of router appliance instances.

repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1;

Returns
Type Description
LinkedRouterApplianceInstances.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public LinkedRouterApplianceInstances.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
LinkedRouterApplianceInstances.Builder
Overrides

clearSiteToSiteDataTransfer()

public LinkedRouterApplianceInstances.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
Type Description
LinkedRouterApplianceInstances.Builder

This builder for chaining.

clearVpcNetwork()

public LinkedRouterApplianceInstances.Builder clearVpcNetwork()

Output only. The VPC network where these router appliance instances are located.

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

Returns
Type Description
LinkedRouterApplianceInstances.Builder

This builder for chaining.

clone()

public LinkedRouterApplianceInstances.Builder clone()
Returns
Type Description
LinkedRouterApplianceInstances.Builder
Overrides

getDefaultInstanceForType()

public LinkedRouterApplianceInstances getDefaultInstanceForType()
Returns
Type Description
LinkedRouterApplianceInstances

getDescriptorForType()

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

getInstances(int index)

public RouterApplianceInstance getInstances(int index)

The list of router appliance instances.

repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1;

Parameter
Name Description
index int
Returns
Type Description
RouterApplianceInstance

getInstancesBuilder(int index)

public RouterApplianceInstance.Builder getInstancesBuilder(int index)

The list of router appliance instances.

repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1;

Parameter
Name Description
index int
Returns
Type Description
RouterApplianceInstance.Builder

getInstancesBuilderList()

public List<RouterApplianceInstance.Builder> getInstancesBuilderList()

The list of router appliance instances.

repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1;

Returns
Type Description
List<Builder>

getInstancesCount()

public int getInstancesCount()

The list of router appliance instances.

repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1;

Returns
Type Description
int

getInstancesList()

public List<RouterApplianceInstance> getInstancesList()

The list of router appliance instances.

repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1;

Returns
Type Description
List<RouterApplianceInstance>

getInstancesOrBuilder(int index)

public RouterApplianceInstanceOrBuilder getInstancesOrBuilder(int index)

The list of router appliance instances.

repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1;

Parameter
Name Description
index int
Returns
Type Description
RouterApplianceInstanceOrBuilder

getInstancesOrBuilderList()

public List<? extends RouterApplianceInstanceOrBuilder> getInstancesOrBuilderList()

The list of router appliance instances.

repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1;

Returns
Type Description
List<? extends com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder>

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
Type Description
boolean

The siteToSiteDataTransfer.

getVpcNetwork()

public String getVpcNetwork()

Output only. The VPC network where these router appliance instances are located.

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

Returns
Type Description
String

The vpcNetwork.

getVpcNetworkBytes()

public ByteString getVpcNetworkBytes()

Output only. The VPC network where these router appliance instances are located.

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

Returns
Type Description
ByteString

The bytes for vpcNetwork.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(LinkedRouterApplianceInstances other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final LinkedRouterApplianceInstances.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
LinkedRouterApplianceInstances.Builder
Overrides

removeInstances(int index)

public LinkedRouterApplianceInstances.Builder removeInstances(int index)

The list of router appliance instances.

repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1;

Parameter
Name Description
index int
Returns
Type Description
LinkedRouterApplianceInstances.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public LinkedRouterApplianceInstances.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
LinkedRouterApplianceInstances.Builder
Overrides

setInstances(int index, RouterApplianceInstance value)

public LinkedRouterApplianceInstances.Builder setInstances(int index, RouterApplianceInstance value)

The list of router appliance instances.

repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1;

Parameters
Name Description
index int
value RouterApplianceInstance
Returns
Type Description
LinkedRouterApplianceInstances.Builder

setInstances(int index, RouterApplianceInstance.Builder builderForValue)

public LinkedRouterApplianceInstances.Builder setInstances(int index, RouterApplianceInstance.Builder builderForValue)

The list of router appliance instances.

repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1;

Parameters
Name Description
index int
builderForValue RouterApplianceInstance.Builder
Returns
Type Description
LinkedRouterApplianceInstances.Builder

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

public LinkedRouterApplianceInstances.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
LinkedRouterApplianceInstances.Builder
Overrides

setSiteToSiteDataTransfer(boolean value)

public LinkedRouterApplianceInstances.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
Name Description
value boolean

The siteToSiteDataTransfer to set.

Returns
Type Description
LinkedRouterApplianceInstances.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final LinkedRouterApplianceInstances.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
LinkedRouterApplianceInstances.Builder
Overrides

setVpcNetwork(String value)

public LinkedRouterApplianceInstances.Builder setVpcNetwork(String value)

Output only. The VPC network where these router appliance instances are located.

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

Parameter
Name Description
value String

The vpcNetwork to set.

Returns
Type Description
LinkedRouterApplianceInstances.Builder

This builder for chaining.

setVpcNetworkBytes(ByteString value)

public LinkedRouterApplianceInstances.Builder setVpcNetworkBytes(ByteString value)

Output only. The VPC network where these router appliance instances are located.

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

Parameter
Name Description
value ByteString

The bytes for vpcNetwork to set.

Returns
Type Description
LinkedRouterApplianceInstances.Builder

This builder for chaining.