Class NetworkRoutingConfig.Builder (1.65.0)

public static final class NetworkRoutingConfig.Builder extends GeneratedMessageV3.Builder<NetworkRoutingConfig.Builder> implements NetworkRoutingConfigOrBuilder

A routing configuration attached to a network resource. The message includes the list of routers associated with the network, and a flag indicating the type of routing behavior to enforce network-wide.

Protobuf type google.cloud.compute.v1.NetworkRoutingConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public NetworkRoutingConfig build()
Returns
Type Description
NetworkRoutingConfig

buildPartial()

public NetworkRoutingConfig buildPartial()
Returns
Type Description
NetworkRoutingConfig

clear()

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

clearBgpAlwaysCompareMed()

public NetworkRoutingConfig.Builder clearBgpAlwaysCompareMed()

Enable comparison of Multi-Exit Discriminators (MED) across routes with different neighbor ASNs when using the STANDARD BGP best path selection algorithm.

optional bool bgp_always_compare_med = 213102902;

Returns
Type Description
NetworkRoutingConfig.Builder

This builder for chaining.

clearBgpBestPathSelectionMode()

public NetworkRoutingConfig.Builder clearBgpBestPathSelectionMode()

The BGP best path selection algorithm to be employed within this network for dynamic routes learned by Cloud Routers. Can be LEGACY (default) or STANDARD. Check the BgpBestPathSelectionMode enum for the list of possible values.

optional string bgp_best_path_selection_mode = 317816297;

Returns
Type Description
NetworkRoutingConfig.Builder

This builder for chaining.

clearBgpInterRegionCost()

public NetworkRoutingConfig.Builder clearBgpInterRegionCost()

Allows to define a preferred approach for handling inter-region cost in the selection process when using the STANDARD BGP best path selection algorithm. Can be DEFAULT or ADD_COST_TO_MED. Check the BgpInterRegionCost enum for the list of possible values.

optional string bgp_inter_region_cost = 462142689;

Returns
Type Description
NetworkRoutingConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRoutingMode()

public NetworkRoutingConfig.Builder clearRoutingMode()

The network-wide routing mode to use. If set to REGIONAL, this network's Cloud Routers will only advertise routes with subnets of this network in the same region as the router. If set to GLOBAL, this network's Cloud Routers will advertise routes with all subnets of this network, across regions. Check the RoutingMode enum for the list of possible values.

optional string routing_mode = 475143548;

Returns
Type Description
NetworkRoutingConfig.Builder

This builder for chaining.

clone()

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

getBgpAlwaysCompareMed()

public boolean getBgpAlwaysCompareMed()

Enable comparison of Multi-Exit Discriminators (MED) across routes with different neighbor ASNs when using the STANDARD BGP best path selection algorithm.

optional bool bgp_always_compare_med = 213102902;

Returns
Type Description
boolean

The bgpAlwaysCompareMed.

getBgpBestPathSelectionMode()

public String getBgpBestPathSelectionMode()

The BGP best path selection algorithm to be employed within this network for dynamic routes learned by Cloud Routers. Can be LEGACY (default) or STANDARD. Check the BgpBestPathSelectionMode enum for the list of possible values.

optional string bgp_best_path_selection_mode = 317816297;

Returns
Type Description
String

The bgpBestPathSelectionMode.

getBgpBestPathSelectionModeBytes()

public ByteString getBgpBestPathSelectionModeBytes()

The BGP best path selection algorithm to be employed within this network for dynamic routes learned by Cloud Routers. Can be LEGACY (default) or STANDARD. Check the BgpBestPathSelectionMode enum for the list of possible values.

optional string bgp_best_path_selection_mode = 317816297;

Returns
Type Description
ByteString

The bytes for bgpBestPathSelectionMode.

getBgpInterRegionCost()

public String getBgpInterRegionCost()

Allows to define a preferred approach for handling inter-region cost in the selection process when using the STANDARD BGP best path selection algorithm. Can be DEFAULT or ADD_COST_TO_MED. Check the BgpInterRegionCost enum for the list of possible values.

optional string bgp_inter_region_cost = 462142689;

Returns
Type Description
String

The bgpInterRegionCost.

getBgpInterRegionCostBytes()

public ByteString getBgpInterRegionCostBytes()

Allows to define a preferred approach for handling inter-region cost in the selection process when using the STANDARD BGP best path selection algorithm. Can be DEFAULT or ADD_COST_TO_MED. Check the BgpInterRegionCost enum for the list of possible values.

optional string bgp_inter_region_cost = 462142689;

Returns
Type Description
ByteString

The bytes for bgpInterRegionCost.

getDefaultInstanceForType()

public NetworkRoutingConfig getDefaultInstanceForType()
Returns
Type Description
NetworkRoutingConfig

getDescriptorForType()

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

getRoutingMode()

public String getRoutingMode()

The network-wide routing mode to use. If set to REGIONAL, this network's Cloud Routers will only advertise routes with subnets of this network in the same region as the router. If set to GLOBAL, this network's Cloud Routers will advertise routes with all subnets of this network, across regions. Check the RoutingMode enum for the list of possible values.

optional string routing_mode = 475143548;

Returns
Type Description
String

The routingMode.

getRoutingModeBytes()

public ByteString getRoutingModeBytes()

The network-wide routing mode to use. If set to REGIONAL, this network's Cloud Routers will only advertise routes with subnets of this network in the same region as the router. If set to GLOBAL, this network's Cloud Routers will advertise routes with all subnets of this network, across regions. Check the RoutingMode enum for the list of possible values.

optional string routing_mode = 475143548;

Returns
Type Description
ByteString

The bytes for routingMode.

hasBgpAlwaysCompareMed()

public boolean hasBgpAlwaysCompareMed()

Enable comparison of Multi-Exit Discriminators (MED) across routes with different neighbor ASNs when using the STANDARD BGP best path selection algorithm.

optional bool bgp_always_compare_med = 213102902;

Returns
Type Description
boolean

Whether the bgpAlwaysCompareMed field is set.

hasBgpBestPathSelectionMode()

public boolean hasBgpBestPathSelectionMode()

The BGP best path selection algorithm to be employed within this network for dynamic routes learned by Cloud Routers. Can be LEGACY (default) or STANDARD. Check the BgpBestPathSelectionMode enum for the list of possible values.

optional string bgp_best_path_selection_mode = 317816297;

Returns
Type Description
boolean

Whether the bgpBestPathSelectionMode field is set.

hasBgpInterRegionCost()

public boolean hasBgpInterRegionCost()

Allows to define a preferred approach for handling inter-region cost in the selection process when using the STANDARD BGP best path selection algorithm. Can be DEFAULT or ADD_COST_TO_MED. Check the BgpInterRegionCost enum for the list of possible values.

optional string bgp_inter_region_cost = 462142689;

Returns
Type Description
boolean

Whether the bgpInterRegionCost field is set.

hasRoutingMode()

public boolean hasRoutingMode()

The network-wide routing mode to use. If set to REGIONAL, this network's Cloud Routers will only advertise routes with subnets of this network in the same region as the router. If set to GLOBAL, this network's Cloud Routers will advertise routes with all subnets of this network, across regions. Check the RoutingMode enum for the list of possible values.

optional string routing_mode = 475143548;

Returns
Type Description
boolean

Whether the routingMode field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(NetworkRoutingConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setBgpAlwaysCompareMed(boolean value)

public NetworkRoutingConfig.Builder setBgpAlwaysCompareMed(boolean value)

Enable comparison of Multi-Exit Discriminators (MED) across routes with different neighbor ASNs when using the STANDARD BGP best path selection algorithm.

optional bool bgp_always_compare_med = 213102902;

Parameter
Name Description
value boolean

The bgpAlwaysCompareMed to set.

Returns
Type Description
NetworkRoutingConfig.Builder

This builder for chaining.

setBgpBestPathSelectionMode(String value)

public NetworkRoutingConfig.Builder setBgpBestPathSelectionMode(String value)

The BGP best path selection algorithm to be employed within this network for dynamic routes learned by Cloud Routers. Can be LEGACY (default) or STANDARD. Check the BgpBestPathSelectionMode enum for the list of possible values.

optional string bgp_best_path_selection_mode = 317816297;

Parameter
Name Description
value String

The bgpBestPathSelectionMode to set.

Returns
Type Description
NetworkRoutingConfig.Builder

This builder for chaining.

setBgpBestPathSelectionModeBytes(ByteString value)

public NetworkRoutingConfig.Builder setBgpBestPathSelectionModeBytes(ByteString value)

The BGP best path selection algorithm to be employed within this network for dynamic routes learned by Cloud Routers. Can be LEGACY (default) or STANDARD. Check the BgpBestPathSelectionMode enum for the list of possible values.

optional string bgp_best_path_selection_mode = 317816297;

Parameter
Name Description
value ByteString

The bytes for bgpBestPathSelectionMode to set.

Returns
Type Description
NetworkRoutingConfig.Builder

This builder for chaining.

setBgpInterRegionCost(String value)

public NetworkRoutingConfig.Builder setBgpInterRegionCost(String value)

Allows to define a preferred approach for handling inter-region cost in the selection process when using the STANDARD BGP best path selection algorithm. Can be DEFAULT or ADD_COST_TO_MED. Check the BgpInterRegionCost enum for the list of possible values.

optional string bgp_inter_region_cost = 462142689;

Parameter
Name Description
value String

The bgpInterRegionCost to set.

Returns
Type Description
NetworkRoutingConfig.Builder

This builder for chaining.

setBgpInterRegionCostBytes(ByteString value)

public NetworkRoutingConfig.Builder setBgpInterRegionCostBytes(ByteString value)

Allows to define a preferred approach for handling inter-region cost in the selection process when using the STANDARD BGP best path selection algorithm. Can be DEFAULT or ADD_COST_TO_MED. Check the BgpInterRegionCost enum for the list of possible values.

optional string bgp_inter_region_cost = 462142689;

Parameter
Name Description
value ByteString

The bytes for bgpInterRegionCost to set.

Returns
Type Description
NetworkRoutingConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setRoutingMode(String value)

public NetworkRoutingConfig.Builder setRoutingMode(String value)

The network-wide routing mode to use. If set to REGIONAL, this network's Cloud Routers will only advertise routes with subnets of this network in the same region as the router. If set to GLOBAL, this network's Cloud Routers will advertise routes with all subnets of this network, across regions. Check the RoutingMode enum for the list of possible values.

optional string routing_mode = 475143548;

Parameter
Name Description
value String

The routingMode to set.

Returns
Type Description
NetworkRoutingConfig.Builder

This builder for chaining.

setRoutingModeBytes(ByteString value)

public NetworkRoutingConfig.Builder setRoutingModeBytes(ByteString value)

The network-wide routing mode to use. If set to REGIONAL, this network's Cloud Routers will only advertise routes with subnets of this network in the same region as the router. If set to GLOBAL, this network's Cloud Routers will advertise routes with all subnets of this network, across regions. Check the RoutingMode enum for the list of possible values.

optional string routing_mode = 475143548;

Parameter
Name Description
value ByteString

The bytes for routingMode to set.

Returns
Type Description
NetworkRoutingConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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