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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<NetworkRoutingConfig.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<NetworkRoutingConfig.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<NetworkRoutingConfig.Builder>
    • getDefaultInstanceForType

      public NetworkRoutingConfig getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public NetworkRoutingConfig build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public NetworkRoutingConfig buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public NetworkRoutingConfig.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<NetworkRoutingConfig.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      hasBgpAlwaysCompareMed in interface NetworkRoutingConfigOrBuilder
      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:
      getBgpAlwaysCompareMed in interface NetworkRoutingConfigOrBuilder
      Returns:
      The bgpAlwaysCompareMed.
    • setBgpAlwaysCompareMed

      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;
      Parameters:
      value - The bgpAlwaysCompareMed to set.
      Returns:
      This builder for chaining.
    • 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:
      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:
      hasBgpBestPathSelectionMode in interface NetworkRoutingConfigOrBuilder
      Returns:
      Whether the bgpBestPathSelectionMode field is set.
    • 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;
      Specified by:
      getBgpBestPathSelectionMode in interface NetworkRoutingConfigOrBuilder
      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:
      getBgpBestPathSelectionModeBytes in interface NetworkRoutingConfigOrBuilder
      Returns:
      The bytes for bgpBestPathSelectionMode.
    • setBgpBestPathSelectionMode

      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;
      Parameters:
      value - The bgpBestPathSelectionMode to set.
      Returns:
      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:
      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:
      hasBgpInterRegionCost in interface NetworkRoutingConfigOrBuilder
      Returns:
      Whether the bgpInterRegionCost field is set.
    • 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 orADD_COST_TO_MED.
       Check the BgpInterRegionCost enum for the list of possible values.
       
      optional string bgp_inter_region_cost = 462142689;
      Specified by:
      getBgpInterRegionCost in interface NetworkRoutingConfigOrBuilder
      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:
      getBgpInterRegionCostBytes in interface NetworkRoutingConfigOrBuilder
      Returns:
      The bytes for bgpInterRegionCost.
    • setBgpInterRegionCost

      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 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

      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 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:
      hasEffectiveBgpAlwaysCompareMed in interface NetworkRoutingConfigOrBuilder
      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:
      getEffectiveBgpAlwaysCompareMed in interface NetworkRoutingConfigOrBuilder
      Returns:
      The effectiveBgpAlwaysCompareMed.
    • setEffectiveBgpAlwaysCompareMed

      public NetworkRoutingConfig.Builder setEffectiveBgpAlwaysCompareMed(boolean value)
       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

      public NetworkRoutingConfig.Builder 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:
      hasEffectiveBgpInterRegionCost in interface NetworkRoutingConfigOrBuilder
      Returns:
      Whether the effectiveBgpInterRegionCost field is set.
    • getEffectiveBgpInterRegionCost

      public String 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:
      getEffectiveBgpInterRegionCost in interface NetworkRoutingConfigOrBuilder
      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:
      getEffectiveBgpInterRegionCostBytes in interface NetworkRoutingConfigOrBuilder
      Returns:
      The bytes for effectiveBgpInterRegionCost.
    • setEffectiveBgpInterRegionCost

      public NetworkRoutingConfig.Builder setEffectiveBgpInterRegionCost(String 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 effectiveBgpInterRegionCost to set.
      Returns:
      This builder for chaining.
    • clearEffectiveBgpInterRegionCost

      public NetworkRoutingConfig.Builder 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:
      hasRoutingMode in interface NetworkRoutingConfigOrBuilder
      Returns:
      Whether the routingMode field is set.
    • 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 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:
      getRoutingMode in interface NetworkRoutingConfigOrBuilder
      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:
      getRoutingModeBytes in interface NetworkRoutingConfigOrBuilder
      Returns:
      The bytes for routingMode.
    • setRoutingMode

      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 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

      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 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

      public NetworkRoutingConfig.Builder setRoutingModeBytes(com.google.protobuf.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 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.