Class NetworkRoutingConfig

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.compute.v1.NetworkRoutingConfig
All Implemented Interfaces:
NetworkRoutingConfigOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class NetworkRoutingConfig extends com.google.protobuf.GeneratedMessage 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
See Also:
  • Field Details

    • BGP_ALWAYS_COMPARE_MED_FIELD_NUMBER

      public static final int BGP_ALWAYS_COMPARE_MED_FIELD_NUMBER
      See Also:
    • BGP_BEST_PATH_SELECTION_MODE_FIELD_NUMBER

      public static final int BGP_BEST_PATH_SELECTION_MODE_FIELD_NUMBER
      See Also:
    • BGP_INTER_REGION_COST_FIELD_NUMBER

      public static final int BGP_INTER_REGION_COST_FIELD_NUMBER
      See Also:
    • EFFECTIVE_BGP_ALWAYS_COMPARE_MED_FIELD_NUMBER

      public static final int EFFECTIVE_BGP_ALWAYS_COMPARE_MED_FIELD_NUMBER
      See Also:
    • EFFECTIVE_BGP_INTER_REGION_COST_FIELD_NUMBER

      public static final int EFFECTIVE_BGP_INTER_REGION_COST_FIELD_NUMBER
      See Also:
    • ROUTING_MODE_FIELD_NUMBER

      public static final int ROUTING_MODE_FIELD_NUMBER
      See Also:
  • 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
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static NetworkRoutingConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static NetworkRoutingConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static NetworkRoutingConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static NetworkRoutingConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static NetworkRoutingConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static NetworkRoutingConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static NetworkRoutingConfig parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static NetworkRoutingConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static NetworkRoutingConfig parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static NetworkRoutingConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static NetworkRoutingConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static NetworkRoutingConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static NetworkRoutingConfig.Builder newBuilder()
    • newBuilder

      public static NetworkRoutingConfig.Builder newBuilder(NetworkRoutingConfig prototype)
    • toBuilder

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

      protected NetworkRoutingConfig.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static NetworkRoutingConfig getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<NetworkRoutingConfig> parser()
    • getParserForType

      public com.google.protobuf.Parser<NetworkRoutingConfig> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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