Class LinkedRouterApplianceInstances.Builder (1.19.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.networkconnectivity.v1.RouterApplianceInstance>
Returns
TypeDescription
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
NameDescription
valueRouterApplianceInstance
Returns
TypeDescription
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
NameDescription
builderForValueRouterApplianceInstance.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueRouterApplianceInstance
Returns
TypeDescription
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
NameDescription
indexint
builderForValueRouterApplianceInstance.Builder
Returns
TypeDescription
LinkedRouterApplianceInstances.Builder

addInstancesBuilder()

public RouterApplianceInstance.Builder addInstancesBuilder()

The list of router appliance instances.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
RouterApplianceInstance.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public LinkedRouterApplianceInstances build()
Returns
TypeDescription
LinkedRouterApplianceInstances

buildPartial()

public LinkedRouterApplianceInstances buildPartial()
Returns
TypeDescription
LinkedRouterApplianceInstances

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearInstances()

public LinkedRouterApplianceInstances.Builder clearInstances()

The list of router appliance instances.

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

Returns
TypeDescription
LinkedRouterApplianceInstances.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public LinkedRouterApplianceInstances.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
LinkedRouterApplianceInstances.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public LinkedRouterApplianceInstances getDefaultInstanceForType()
Returns
TypeDescription
LinkedRouterApplianceInstances

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
RouterApplianceInstance.Builder

getInstancesBuilderList()

public List<RouterApplianceInstance.Builder> getInstancesBuilderList()

The list of router appliance instances.

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

Returns
TypeDescription
List<Builder>

getInstancesCount()

public int getInstancesCount()

The list of router appliance instances.

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

Returns
TypeDescription
int

getInstancesList()

public List<RouterApplianceInstance> getInstancesList()

The list of router appliance instances.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
RouterApplianceInstanceOrBuilder

getInstancesOrBuilderList()

public List<? extends RouterApplianceInstanceOrBuilder> getInstancesOrBuilderList()

The list of router appliance instances.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
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(LinkedRouterApplianceInstances other)

public LinkedRouterApplianceInstances.Builder mergeFrom(LinkedRouterApplianceInstances other)
Parameter
NameDescription
otherLinkedRouterApplianceInstances
Returns
TypeDescription
LinkedRouterApplianceInstances.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final LinkedRouterApplianceInstances.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
LinkedRouterApplianceInstances.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public LinkedRouterApplianceInstances.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueRouterApplianceInstance
Returns
TypeDescription
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
NameDescription
indexint
builderForValueRouterApplianceInstance.Builder
Returns
TypeDescription
LinkedRouterApplianceInstances.Builder

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

public LinkedRouterApplianceInstances.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueboolean

The siteToSiteDataTransfer to set.

Returns
TypeDescription
LinkedRouterApplianceInstances.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final LinkedRouterApplianceInstances.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The vpcNetwork to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for vpcNetwork to set.

Returns
TypeDescription
LinkedRouterApplianceInstances.Builder

This builder for chaining.