Package com.google.cloud.compute.v1
Class NetworkRoutingConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<NetworkRoutingConfig.Builder>
com.google.cloud.compute.v1.NetworkRoutingConfig.Builder
- All Implemented Interfaces:
NetworkRoutingConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- NetworkRoutingConfig
public static final class NetworkRoutingConfig.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Enable comparison of Multi-Exit Discriminators (MED) across routes with different neighbor ASNs when using the STANDARD BGP best path selection algorithm.The BGP best path selection algorithm to be employed within this network for dynamic routes learned by Cloud Routers.Allows to define a preferred approach for handling inter-region cost in the selection process when using the STANDARD BGP best path selection algorithm.Output only.Output only.The network-wide routing mode to use.booleanEnable comparison of Multi-Exit Discriminators (MED) across routes with different neighbor ASNs when using the STANDARD BGP best path selection algorithm.The BGP best path selection algorithm to be employed within this network for dynamic routes learned by Cloud Routers.com.google.protobuf.ByteStringThe BGP best path selection algorithm to be employed within this network for dynamic routes learned by Cloud Routers.Allows to define a preferred approach for handling inter-region cost in the selection process when using the STANDARD BGP best path selection algorithm.com.google.protobuf.ByteStringAllows to define a preferred approach for handling inter-region cost in the selection process when using the STANDARD BGP best path selection algorithm.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanOutput only.Output only.com.google.protobuf.ByteStringOutput only.The network-wide routing mode to use.com.google.protobuf.ByteStringThe network-wide routing mode to use.booleanEnable comparison of Multi-Exit Discriminators (MED) across routes with different neighbor ASNs when using the STANDARD BGP best path selection algorithm.booleanThe BGP best path selection algorithm to be employed within this network for dynamic routes learned by Cloud Routers.booleanAllows to define a preferred approach for handling inter-region cost in the selection process when using the STANDARD BGP best path selection algorithm.booleanOutput only.booleanOutput only.booleanThe network-wide routing mode to use.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(NetworkRoutingConfig other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) 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.The BGP best path selection algorithm to be employed within this network for dynamic routes learned by Cloud Routers.setBgpBestPathSelectionModeBytes(com.google.protobuf.ByteString value) The BGP best path selection algorithm to be employed within this network for dynamic routes learned by Cloud Routers.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.setBgpInterRegionCostBytes(com.google.protobuf.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.setEffectiveBgpAlwaysCompareMed(boolean value) Output only.Output only.setEffectiveBgpInterRegionCostBytes(com.google.protobuf.ByteString value) Output only.setRoutingMode(String value) The network-wide routing mode to use.setRoutingModeBytes(com.google.protobuf.ByteString value) The network-wide routing mode to use.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<NetworkRoutingConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<NetworkRoutingConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<NetworkRoutingConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<NetworkRoutingConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<NetworkRoutingConfig.Builder>
-
mergeFrom
public NetworkRoutingConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<NetworkRoutingConfig.Builder>- Throws:
IOException
-
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;- Specified by:
hasBgpAlwaysCompareMedin interfaceNetworkRoutingConfigOrBuilder- Returns:
- Whether the bgpAlwaysCompareMed field is set.
-
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;- Specified by:
getBgpAlwaysCompareMedin interfaceNetworkRoutingConfigOrBuilder- Returns:
- The bgpAlwaysCompareMed.
-
setBgpAlwaysCompareMed
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;- Parameters:
value- The bgpAlwaysCompareMed to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
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;- Specified by:
hasBgpBestPathSelectionModein interfaceNetworkRoutingConfigOrBuilder- Returns:
- Whether the bgpBestPathSelectionMode field is set.
-
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;- Specified by:
getBgpBestPathSelectionModein interfaceNetworkRoutingConfigOrBuilder- Returns:
- The bgpBestPathSelectionMode.
-
getBgpBestPathSelectionModeBytes
public com.google.protobuf.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;- Specified by:
getBgpBestPathSelectionModeBytesin interfaceNetworkRoutingConfigOrBuilder- Returns:
- The bytes for bgpBestPathSelectionMode.
-
setBgpBestPathSelectionMode
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;- Parameters:
value- The bgpBestPathSelectionMode to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setBgpBestPathSelectionModeBytes
public NetworkRoutingConfig.Builder setBgpBestPathSelectionModeBytes(com.google.protobuf.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;- Parameters:
value- The bytes for bgpBestPathSelectionMode to set.- Returns:
- This builder for chaining.
-
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 orADD_COST_TO_MED. Check the BgpInterRegionCost enum for the list of possible values.
optional string bgp_inter_region_cost = 462142689;- Specified by:
hasBgpInterRegionCostin interfaceNetworkRoutingConfigOrBuilder- Returns:
- Whether the bgpInterRegionCost field is set.
-
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 orADD_COST_TO_MED. Check the BgpInterRegionCost enum for the list of possible values.
optional string bgp_inter_region_cost = 462142689;- Specified by:
getBgpInterRegionCostin interfaceNetworkRoutingConfigOrBuilder- Returns:
- The bgpInterRegionCost.
-
getBgpInterRegionCostBytes
public com.google.protobuf.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 orADD_COST_TO_MED. Check the BgpInterRegionCost enum for the list of possible values.
optional string bgp_inter_region_cost = 462142689;- Specified by:
getBgpInterRegionCostBytesin interfaceNetworkRoutingConfigOrBuilder- Returns:
- The bytes for bgpInterRegionCost.
-
setBgpInterRegionCost
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 orADD_COST_TO_MED. Check the BgpInterRegionCost enum for the list of possible values.
optional string bgp_inter_region_cost = 462142689;- Parameters:
value- The bgpInterRegionCost to set.- Returns:
- This builder for chaining.
-
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 orADD_COST_TO_MED. Check the BgpInterRegionCost enum for the list of possible values.
optional string bgp_inter_region_cost = 462142689;- Returns:
- This builder for chaining.
-
setBgpInterRegionCostBytes
public NetworkRoutingConfig.Builder setBgpInterRegionCostBytes(com.google.protobuf.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 orADD_COST_TO_MED. Check the BgpInterRegionCost enum for the list of possible values.
optional string bgp_inter_region_cost = 462142689;- Parameters:
value- The bytes for bgpInterRegionCost to set.- Returns:
- This builder for chaining.
-
hasEffectiveBgpAlwaysCompareMed
public boolean hasEffectiveBgpAlwaysCompareMed()Output only. [Output Only] Effective value of the bgp_always_compare_med field.
optional bool effective_bgp_always_compare_med = 214661838;- Specified by:
hasEffectiveBgpAlwaysCompareMedin interfaceNetworkRoutingConfigOrBuilder- Returns:
- Whether the effectiveBgpAlwaysCompareMed field is set.
-
getEffectiveBgpAlwaysCompareMed
public boolean getEffectiveBgpAlwaysCompareMed()Output only. [Output Only] Effective value of the bgp_always_compare_med field.
optional bool effective_bgp_always_compare_med = 214661838;- Specified by:
getEffectiveBgpAlwaysCompareMedin interfaceNetworkRoutingConfigOrBuilder- Returns:
- The effectiveBgpAlwaysCompareMed.
-
setEffectiveBgpAlwaysCompareMed
Output only. [Output Only] Effective value of the bgp_always_compare_med field.
optional bool effective_bgp_always_compare_med = 214661838;- Parameters:
value- The effectiveBgpAlwaysCompareMed to set.- Returns:
- This builder for chaining.
-
clearEffectiveBgpAlwaysCompareMed
Output only. [Output Only] Effective value of the bgp_always_compare_med field.
optional bool effective_bgp_always_compare_med = 214661838;- Returns:
- This builder for chaining.
-
hasEffectiveBgpInterRegionCost
public boolean hasEffectiveBgpInterRegionCost()Output only. [Output Only] Effective value of the bgp_inter_region_cost field. Check the EffectiveBgpInterRegionCost enum for the list of possible values.
optional string effective_bgp_inter_region_cost = 185098313;- Specified by:
hasEffectiveBgpInterRegionCostin interfaceNetworkRoutingConfigOrBuilder- Returns:
- Whether the effectiveBgpInterRegionCost field is set.
-
getEffectiveBgpInterRegionCost
Output only. [Output Only] Effective value of the bgp_inter_region_cost field. Check the EffectiveBgpInterRegionCost enum for the list of possible values.
optional string effective_bgp_inter_region_cost = 185098313;- Specified by:
getEffectiveBgpInterRegionCostin interfaceNetworkRoutingConfigOrBuilder- Returns:
- The effectiveBgpInterRegionCost.
-
getEffectiveBgpInterRegionCostBytes
public com.google.protobuf.ByteString getEffectiveBgpInterRegionCostBytes()Output only. [Output Only] Effective value of the bgp_inter_region_cost field. Check the EffectiveBgpInterRegionCost enum for the list of possible values.
optional string effective_bgp_inter_region_cost = 185098313;- Specified by:
getEffectiveBgpInterRegionCostBytesin interfaceNetworkRoutingConfigOrBuilder- Returns:
- The bytes for effectiveBgpInterRegionCost.
-
setEffectiveBgpInterRegionCost
Output only. [Output Only] Effective value of the bgp_inter_region_cost field. Check the EffectiveBgpInterRegionCost enum for the list of possible values.
optional string effective_bgp_inter_region_cost = 185098313;- Parameters:
value- The effectiveBgpInterRegionCost to set.- Returns:
- This builder for chaining.
-
clearEffectiveBgpInterRegionCost
Output only. [Output Only] Effective value of the bgp_inter_region_cost field. Check the EffectiveBgpInterRegionCost enum for the list of possible values.
optional string effective_bgp_inter_region_cost = 185098313;- Returns:
- This builder for chaining.
-
setEffectiveBgpInterRegionCostBytes
public NetworkRoutingConfig.Builder setEffectiveBgpInterRegionCostBytes(com.google.protobuf.ByteString value) Output only. [Output Only] Effective value of the bgp_inter_region_cost field. Check the EffectiveBgpInterRegionCost enum for the list of possible values.
optional string effective_bgp_inter_region_cost = 185098313;- Parameters:
value- The bytes for effectiveBgpInterRegionCost to set.- Returns:
- This builder for chaining.
-
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 toGLOBAL, 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;- Specified by:
hasRoutingModein interfaceNetworkRoutingConfigOrBuilder- Returns:
- Whether the routingMode field is set.
-
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 toGLOBAL, 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;- Specified by:
getRoutingModein interfaceNetworkRoutingConfigOrBuilder- Returns:
- The routingMode.
-
getRoutingModeBytes
public com.google.protobuf.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 toGLOBAL, 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;- Specified by:
getRoutingModeBytesin interfaceNetworkRoutingConfigOrBuilder- Returns:
- The bytes for routingMode.
-
setRoutingMode
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 toGLOBAL, 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;- Parameters:
value- The routingMode to set.- Returns:
- This builder for chaining.
-
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 toGLOBAL, 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:
- This builder for chaining.
-
setRoutingModeBytes
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 toGLOBAL, 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;- Parameters:
value- The bytes for routingMode to set.- Returns:
- This builder for chaining.
-