Class RouterBgp.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<RouterBgp.Builder>
com.google.cloud.compute.v1.RouterBgp.Builder
All Implemented Interfaces:
RouterBgpOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
RouterBgp

public static final class RouterBgp.Builder extends com.google.protobuf.GeneratedMessage.Builder<RouterBgp.Builder> implements RouterBgpOrBuilder
 
Protobuf type google.cloud.compute.v1.RouterBgp
  • 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<RouterBgp.Builder>
    • clear

      public RouterBgp.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<RouterBgp.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<RouterBgp.Builder>
    • getDefaultInstanceForType

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

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

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

      public RouterBgp.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<RouterBgp.Builder>
    • mergeFrom

      public RouterBgp.Builder mergeFrom(RouterBgp other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<RouterBgp.Builder>
    • mergeFrom

      public RouterBgp.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<RouterBgp.Builder>
      Throws:
      IOException
    • hasAdvertiseMode

      public boolean hasAdvertiseMode()
       User-specified flag to indicate which mode to use for advertisement.
       The options are DEFAULT or CUSTOM.
       Check the AdvertiseMode enum for the list of possible values.
       
      optional string advertise_mode = 312134331;
      Specified by:
      hasAdvertiseMode in interface RouterBgpOrBuilder
      Returns:
      Whether the advertiseMode field is set.
    • getAdvertiseMode

      public String getAdvertiseMode()
       User-specified flag to indicate which mode to use for advertisement.
       The options are DEFAULT or CUSTOM.
       Check the AdvertiseMode enum for the list of possible values.
       
      optional string advertise_mode = 312134331;
      Specified by:
      getAdvertiseMode in interface RouterBgpOrBuilder
      Returns:
      The advertiseMode.
    • getAdvertiseModeBytes

      public com.google.protobuf.ByteString getAdvertiseModeBytes()
       User-specified flag to indicate which mode to use for advertisement.
       The options are DEFAULT or CUSTOM.
       Check the AdvertiseMode enum for the list of possible values.
       
      optional string advertise_mode = 312134331;
      Specified by:
      getAdvertiseModeBytes in interface RouterBgpOrBuilder
      Returns:
      The bytes for advertiseMode.
    • setAdvertiseMode

      public RouterBgp.Builder setAdvertiseMode(String value)
       User-specified flag to indicate which mode to use for advertisement.
       The options are DEFAULT or CUSTOM.
       Check the AdvertiseMode enum for the list of possible values.
       
      optional string advertise_mode = 312134331;
      Parameters:
      value - The advertiseMode to set.
      Returns:
      This builder for chaining.
    • clearAdvertiseMode

      public RouterBgp.Builder clearAdvertiseMode()
       User-specified flag to indicate which mode to use for advertisement.
       The options are DEFAULT or CUSTOM.
       Check the AdvertiseMode enum for the list of possible values.
       
      optional string advertise_mode = 312134331;
      Returns:
      This builder for chaining.
    • setAdvertiseModeBytes

      public RouterBgp.Builder setAdvertiseModeBytes(com.google.protobuf.ByteString value)
       User-specified flag to indicate which mode to use for advertisement.
       The options are DEFAULT or CUSTOM.
       Check the AdvertiseMode enum for the list of possible values.
       
      optional string advertise_mode = 312134331;
      Parameters:
      value - The bytes for advertiseMode to set.
      Returns:
      This builder for chaining.
    • getAdvertisedGroupsList

      public com.google.protobuf.ProtocolStringList getAdvertisedGroupsList()
       User-specified list of prefix groups to advertise in custom mode.
       This field can only be populated if advertise_mode is CUSTOM and
       is advertised to all peers of the router.
       These groups will be advertised in addition to any specified prefixes.
       Leave this field blank to advertise no custom groups.
       Check the AdvertisedGroups enum for the list of possible values.
       
      repeated string advertised_groups = 21065526;
      Specified by:
      getAdvertisedGroupsList in interface RouterBgpOrBuilder
      Returns:
      A list containing the advertisedGroups.
    • getAdvertisedGroupsCount

      public int getAdvertisedGroupsCount()
       User-specified list of prefix groups to advertise in custom mode.
       This field can only be populated if advertise_mode is CUSTOM and
       is advertised to all peers of the router.
       These groups will be advertised in addition to any specified prefixes.
       Leave this field blank to advertise no custom groups.
       Check the AdvertisedGroups enum for the list of possible values.
       
      repeated string advertised_groups = 21065526;
      Specified by:
      getAdvertisedGroupsCount in interface RouterBgpOrBuilder
      Returns:
      The count of advertisedGroups.
    • getAdvertisedGroups

      public String getAdvertisedGroups(int index)
       User-specified list of prefix groups to advertise in custom mode.
       This field can only be populated if advertise_mode is CUSTOM and
       is advertised to all peers of the router.
       These groups will be advertised in addition to any specified prefixes.
       Leave this field blank to advertise no custom groups.
       Check the AdvertisedGroups enum for the list of possible values.
       
      repeated string advertised_groups = 21065526;
      Specified by:
      getAdvertisedGroups in interface RouterBgpOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The advertisedGroups at the given index.
    • getAdvertisedGroupsBytes

      public com.google.protobuf.ByteString getAdvertisedGroupsBytes(int index)
       User-specified list of prefix groups to advertise in custom mode.
       This field can only be populated if advertise_mode is CUSTOM and
       is advertised to all peers of the router.
       These groups will be advertised in addition to any specified prefixes.
       Leave this field blank to advertise no custom groups.
       Check the AdvertisedGroups enum for the list of possible values.
       
      repeated string advertised_groups = 21065526;
      Specified by:
      getAdvertisedGroupsBytes in interface RouterBgpOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the advertisedGroups at the given index.
    • setAdvertisedGroups

      public RouterBgp.Builder setAdvertisedGroups(int index, String value)
       User-specified list of prefix groups to advertise in custom mode.
       This field can only be populated if advertise_mode is CUSTOM and
       is advertised to all peers of the router.
       These groups will be advertised in addition to any specified prefixes.
       Leave this field blank to advertise no custom groups.
       Check the AdvertisedGroups enum for the list of possible values.
       
      repeated string advertised_groups = 21065526;
      Parameters:
      index - The index to set the value at.
      value - The advertisedGroups to set.
      Returns:
      This builder for chaining.
    • addAdvertisedGroups

      public RouterBgp.Builder addAdvertisedGroups(String value)
       User-specified list of prefix groups to advertise in custom mode.
       This field can only be populated if advertise_mode is CUSTOM and
       is advertised to all peers of the router.
       These groups will be advertised in addition to any specified prefixes.
       Leave this field blank to advertise no custom groups.
       Check the AdvertisedGroups enum for the list of possible values.
       
      repeated string advertised_groups = 21065526;
      Parameters:
      value - The advertisedGroups to add.
      Returns:
      This builder for chaining.
    • addAllAdvertisedGroups

      public RouterBgp.Builder addAllAdvertisedGroups(Iterable<String> values)
       User-specified list of prefix groups to advertise in custom mode.
       This field can only be populated if advertise_mode is CUSTOM and
       is advertised to all peers of the router.
       These groups will be advertised in addition to any specified prefixes.
       Leave this field blank to advertise no custom groups.
       Check the AdvertisedGroups enum for the list of possible values.
       
      repeated string advertised_groups = 21065526;
      Parameters:
      values - The advertisedGroups to add.
      Returns:
      This builder for chaining.
    • clearAdvertisedGroups

      public RouterBgp.Builder clearAdvertisedGroups()
       User-specified list of prefix groups to advertise in custom mode.
       This field can only be populated if advertise_mode is CUSTOM and
       is advertised to all peers of the router.
       These groups will be advertised in addition to any specified prefixes.
       Leave this field blank to advertise no custom groups.
       Check the AdvertisedGroups enum for the list of possible values.
       
      repeated string advertised_groups = 21065526;
      Returns:
      This builder for chaining.
    • addAdvertisedGroupsBytes

      public RouterBgp.Builder addAdvertisedGroupsBytes(com.google.protobuf.ByteString value)
       User-specified list of prefix groups to advertise in custom mode.
       This field can only be populated if advertise_mode is CUSTOM and
       is advertised to all peers of the router.
       These groups will be advertised in addition to any specified prefixes.
       Leave this field blank to advertise no custom groups.
       Check the AdvertisedGroups enum for the list of possible values.
       
      repeated string advertised_groups = 21065526;
      Parameters:
      value - The bytes of the advertisedGroups to add.
      Returns:
      This builder for chaining.
    • getAdvertisedIpRangesList

      public List<RouterAdvertisedIpRange> getAdvertisedIpRangesList()
       User-specified list of individual IP ranges to advertise in custom mode.
       This field can only be populated if advertise_mode is CUSTOM and
       is advertised to all peers of the router.
       These IP ranges will be advertised in addition to any specified groups.
       Leave this field blank to advertise no custom IP ranges.
       
      repeated .google.cloud.compute.v1.RouterAdvertisedIpRange advertised_ip_ranges = 35449932;
      Specified by:
      getAdvertisedIpRangesList in interface RouterBgpOrBuilder
    • getAdvertisedIpRangesCount

      public int getAdvertisedIpRangesCount()
       User-specified list of individual IP ranges to advertise in custom mode.
       This field can only be populated if advertise_mode is CUSTOM and
       is advertised to all peers of the router.
       These IP ranges will be advertised in addition to any specified groups.
       Leave this field blank to advertise no custom IP ranges.
       
      repeated .google.cloud.compute.v1.RouterAdvertisedIpRange advertised_ip_ranges = 35449932;
      Specified by:
      getAdvertisedIpRangesCount in interface RouterBgpOrBuilder
    • getAdvertisedIpRanges

      public RouterAdvertisedIpRange getAdvertisedIpRanges(int index)
       User-specified list of individual IP ranges to advertise in custom mode.
       This field can only be populated if advertise_mode is CUSTOM and
       is advertised to all peers of the router.
       These IP ranges will be advertised in addition to any specified groups.
       Leave this field blank to advertise no custom IP ranges.
       
      repeated .google.cloud.compute.v1.RouterAdvertisedIpRange advertised_ip_ranges = 35449932;
      Specified by:
      getAdvertisedIpRanges in interface RouterBgpOrBuilder
    • setAdvertisedIpRanges

      public RouterBgp.Builder setAdvertisedIpRanges(int index, RouterAdvertisedIpRange value)
       User-specified list of individual IP ranges to advertise in custom mode.
       This field can only be populated if advertise_mode is CUSTOM and
       is advertised to all peers of the router.
       These IP ranges will be advertised in addition to any specified groups.
       Leave this field blank to advertise no custom IP ranges.
       
      repeated .google.cloud.compute.v1.RouterAdvertisedIpRange advertised_ip_ranges = 35449932;
    • setAdvertisedIpRanges

      public RouterBgp.Builder setAdvertisedIpRanges(int index, RouterAdvertisedIpRange.Builder builderForValue)
       User-specified list of individual IP ranges to advertise in custom mode.
       This field can only be populated if advertise_mode is CUSTOM and
       is advertised to all peers of the router.
       These IP ranges will be advertised in addition to any specified groups.
       Leave this field blank to advertise no custom IP ranges.
       
      repeated .google.cloud.compute.v1.RouterAdvertisedIpRange advertised_ip_ranges = 35449932;
    • addAdvertisedIpRanges

      public RouterBgp.Builder addAdvertisedIpRanges(RouterAdvertisedIpRange value)
       User-specified list of individual IP ranges to advertise in custom mode.
       This field can only be populated if advertise_mode is CUSTOM and
       is advertised to all peers of the router.
       These IP ranges will be advertised in addition to any specified groups.
       Leave this field blank to advertise no custom IP ranges.
       
      repeated .google.cloud.compute.v1.RouterAdvertisedIpRange advertised_ip_ranges = 35449932;
    • addAdvertisedIpRanges

      public RouterBgp.Builder addAdvertisedIpRanges(int index, RouterAdvertisedIpRange value)
       User-specified list of individual IP ranges to advertise in custom mode.
       This field can only be populated if advertise_mode is CUSTOM and
       is advertised to all peers of the router.
       These IP ranges will be advertised in addition to any specified groups.
       Leave this field blank to advertise no custom IP ranges.
       
      repeated .google.cloud.compute.v1.RouterAdvertisedIpRange advertised_ip_ranges = 35449932;
    • addAdvertisedIpRanges

      public RouterBgp.Builder addAdvertisedIpRanges(RouterAdvertisedIpRange.Builder builderForValue)
       User-specified list of individual IP ranges to advertise in custom mode.
       This field can only be populated if advertise_mode is CUSTOM and
       is advertised to all peers of the router.
       These IP ranges will be advertised in addition to any specified groups.
       Leave this field blank to advertise no custom IP ranges.
       
      repeated .google.cloud.compute.v1.RouterAdvertisedIpRange advertised_ip_ranges = 35449932;
    • addAdvertisedIpRanges

      public RouterBgp.Builder addAdvertisedIpRanges(int index, RouterAdvertisedIpRange.Builder builderForValue)
       User-specified list of individual IP ranges to advertise in custom mode.
       This field can only be populated if advertise_mode is CUSTOM and
       is advertised to all peers of the router.
       These IP ranges will be advertised in addition to any specified groups.
       Leave this field blank to advertise no custom IP ranges.
       
      repeated .google.cloud.compute.v1.RouterAdvertisedIpRange advertised_ip_ranges = 35449932;
    • addAllAdvertisedIpRanges

      public RouterBgp.Builder addAllAdvertisedIpRanges(Iterable<? extends RouterAdvertisedIpRange> values)
       User-specified list of individual IP ranges to advertise in custom mode.
       This field can only be populated if advertise_mode is CUSTOM and
       is advertised to all peers of the router.
       These IP ranges will be advertised in addition to any specified groups.
       Leave this field blank to advertise no custom IP ranges.
       
      repeated .google.cloud.compute.v1.RouterAdvertisedIpRange advertised_ip_ranges = 35449932;
    • clearAdvertisedIpRanges

      public RouterBgp.Builder clearAdvertisedIpRanges()
       User-specified list of individual IP ranges to advertise in custom mode.
       This field can only be populated if advertise_mode is CUSTOM and
       is advertised to all peers of the router.
       These IP ranges will be advertised in addition to any specified groups.
       Leave this field blank to advertise no custom IP ranges.
       
      repeated .google.cloud.compute.v1.RouterAdvertisedIpRange advertised_ip_ranges = 35449932;
    • removeAdvertisedIpRanges

      public RouterBgp.Builder removeAdvertisedIpRanges(int index)
       User-specified list of individual IP ranges to advertise in custom mode.
       This field can only be populated if advertise_mode is CUSTOM and
       is advertised to all peers of the router.
       These IP ranges will be advertised in addition to any specified groups.
       Leave this field blank to advertise no custom IP ranges.
       
      repeated .google.cloud.compute.v1.RouterAdvertisedIpRange advertised_ip_ranges = 35449932;
    • getAdvertisedIpRangesBuilder

      public RouterAdvertisedIpRange.Builder getAdvertisedIpRangesBuilder(int index)
       User-specified list of individual IP ranges to advertise in custom mode.
       This field can only be populated if advertise_mode is CUSTOM and
       is advertised to all peers of the router.
       These IP ranges will be advertised in addition to any specified groups.
       Leave this field blank to advertise no custom IP ranges.
       
      repeated .google.cloud.compute.v1.RouterAdvertisedIpRange advertised_ip_ranges = 35449932;
    • getAdvertisedIpRangesOrBuilder

      public RouterAdvertisedIpRangeOrBuilder getAdvertisedIpRangesOrBuilder(int index)
       User-specified list of individual IP ranges to advertise in custom mode.
       This field can only be populated if advertise_mode is CUSTOM and
       is advertised to all peers of the router.
       These IP ranges will be advertised in addition to any specified groups.
       Leave this field blank to advertise no custom IP ranges.
       
      repeated .google.cloud.compute.v1.RouterAdvertisedIpRange advertised_ip_ranges = 35449932;
      Specified by:
      getAdvertisedIpRangesOrBuilder in interface RouterBgpOrBuilder
    • getAdvertisedIpRangesOrBuilderList

      public List<? extends RouterAdvertisedIpRangeOrBuilder> getAdvertisedIpRangesOrBuilderList()
       User-specified list of individual IP ranges to advertise in custom mode.
       This field can only be populated if advertise_mode is CUSTOM and
       is advertised to all peers of the router.
       These IP ranges will be advertised in addition to any specified groups.
       Leave this field blank to advertise no custom IP ranges.
       
      repeated .google.cloud.compute.v1.RouterAdvertisedIpRange advertised_ip_ranges = 35449932;
      Specified by:
      getAdvertisedIpRangesOrBuilderList in interface RouterBgpOrBuilder
    • addAdvertisedIpRangesBuilder

      public RouterAdvertisedIpRange.Builder addAdvertisedIpRangesBuilder()
       User-specified list of individual IP ranges to advertise in custom mode.
       This field can only be populated if advertise_mode is CUSTOM and
       is advertised to all peers of the router.
       These IP ranges will be advertised in addition to any specified groups.
       Leave this field blank to advertise no custom IP ranges.
       
      repeated .google.cloud.compute.v1.RouterAdvertisedIpRange advertised_ip_ranges = 35449932;
    • addAdvertisedIpRangesBuilder

      public RouterAdvertisedIpRange.Builder addAdvertisedIpRangesBuilder(int index)
       User-specified list of individual IP ranges to advertise in custom mode.
       This field can only be populated if advertise_mode is CUSTOM and
       is advertised to all peers of the router.
       These IP ranges will be advertised in addition to any specified groups.
       Leave this field blank to advertise no custom IP ranges.
       
      repeated .google.cloud.compute.v1.RouterAdvertisedIpRange advertised_ip_ranges = 35449932;
    • getAdvertisedIpRangesBuilderList

      public List<RouterAdvertisedIpRange.Builder> getAdvertisedIpRangesBuilderList()
       User-specified list of individual IP ranges to advertise in custom mode.
       This field can only be populated if advertise_mode is CUSTOM and
       is advertised to all peers of the router.
       These IP ranges will be advertised in addition to any specified groups.
       Leave this field blank to advertise no custom IP ranges.
       
      repeated .google.cloud.compute.v1.RouterAdvertisedIpRange advertised_ip_ranges = 35449932;
    • hasAsn

      public boolean hasAsn()
       Local BGP Autonomous System Number (ASN).
       Must be anRFC6996 private ASN, either 16-bit or 32-bit. The
       value will be fixed for this router resource. All VPN tunnels that link
       to this router will have the same local ASN.
       
      optional uint32 asn = 96892;
      Specified by:
      hasAsn in interface RouterBgpOrBuilder
      Returns:
      Whether the asn field is set.
    • getAsn

      public int getAsn()
       Local BGP Autonomous System Number (ASN).
       Must be anRFC6996 private ASN, either 16-bit or 32-bit. The
       value will be fixed for this router resource. All VPN tunnels that link
       to this router will have the same local ASN.
       
      optional uint32 asn = 96892;
      Specified by:
      getAsn in interface RouterBgpOrBuilder
      Returns:
      The asn.
    • setAsn

      public RouterBgp.Builder setAsn(int value)
       Local BGP Autonomous System Number (ASN).
       Must be anRFC6996 private ASN, either 16-bit or 32-bit. The
       value will be fixed for this router resource. All VPN tunnels that link
       to this router will have the same local ASN.
       
      optional uint32 asn = 96892;
      Parameters:
      value - The asn to set.
      Returns:
      This builder for chaining.
    • clearAsn

      public RouterBgp.Builder clearAsn()
       Local BGP Autonomous System Number (ASN).
       Must be anRFC6996 private ASN, either 16-bit or 32-bit. The
       value will be fixed for this router resource. All VPN tunnels that link
       to this router will have the same local ASN.
       
      optional uint32 asn = 96892;
      Returns:
      This builder for chaining.
    • hasIdentifierRange

      public boolean hasIdentifierRange()
       Explicitly specifies a range of valid BGP Identifiers for this Router. It
       is provided as a link-local IPv4 range (from 169.254.0.0/16), of size at
       least /30, even if the BGP sessions are over IPv6. It must not overlap
       with any IPv4 BGP session ranges.
      
      
       Other vendors commonly call this "router ID".
       
      optional string identifier_range = 501573159;
      Specified by:
      hasIdentifierRange in interface RouterBgpOrBuilder
      Returns:
      Whether the identifierRange field is set.
    • getIdentifierRange

      public String getIdentifierRange()
       Explicitly specifies a range of valid BGP Identifiers for this Router. It
       is provided as a link-local IPv4 range (from 169.254.0.0/16), of size at
       least /30, even if the BGP sessions are over IPv6. It must not overlap
       with any IPv4 BGP session ranges.
      
      
       Other vendors commonly call this "router ID".
       
      optional string identifier_range = 501573159;
      Specified by:
      getIdentifierRange in interface RouterBgpOrBuilder
      Returns:
      The identifierRange.
    • getIdentifierRangeBytes

      public com.google.protobuf.ByteString getIdentifierRangeBytes()
       Explicitly specifies a range of valid BGP Identifiers for this Router. It
       is provided as a link-local IPv4 range (from 169.254.0.0/16), of size at
       least /30, even if the BGP sessions are over IPv6. It must not overlap
       with any IPv4 BGP session ranges.
      
      
       Other vendors commonly call this "router ID".
       
      optional string identifier_range = 501573159;
      Specified by:
      getIdentifierRangeBytes in interface RouterBgpOrBuilder
      Returns:
      The bytes for identifierRange.
    • setIdentifierRange

      public RouterBgp.Builder setIdentifierRange(String value)
       Explicitly specifies a range of valid BGP Identifiers for this Router. It
       is provided as a link-local IPv4 range (from 169.254.0.0/16), of size at
       least /30, even if the BGP sessions are over IPv6. It must not overlap
       with any IPv4 BGP session ranges.
      
      
       Other vendors commonly call this "router ID".
       
      optional string identifier_range = 501573159;
      Parameters:
      value - The identifierRange to set.
      Returns:
      This builder for chaining.
    • clearIdentifierRange

      public RouterBgp.Builder clearIdentifierRange()
       Explicitly specifies a range of valid BGP Identifiers for this Router. It
       is provided as a link-local IPv4 range (from 169.254.0.0/16), of size at
       least /30, even if the BGP sessions are over IPv6. It must not overlap
       with any IPv4 BGP session ranges.
      
      
       Other vendors commonly call this "router ID".
       
      optional string identifier_range = 501573159;
      Returns:
      This builder for chaining.
    • setIdentifierRangeBytes

      public RouterBgp.Builder setIdentifierRangeBytes(com.google.protobuf.ByteString value)
       Explicitly specifies a range of valid BGP Identifiers for this Router. It
       is provided as a link-local IPv4 range (from 169.254.0.0/16), of size at
       least /30, even if the BGP sessions are over IPv6. It must not overlap
       with any IPv4 BGP session ranges.
      
      
       Other vendors commonly call this "router ID".
       
      optional string identifier_range = 501573159;
      Parameters:
      value - The bytes for identifierRange to set.
      Returns:
      This builder for chaining.
    • hasKeepaliveInterval

      public boolean hasKeepaliveInterval()
       The interval in seconds between BGP keepalive messages that are
       sent to the peer.
      
      
       Hold time is three times the interval at which keepalive messages are
       sent, and the hold time is the maximum number of seconds allowed to
       elapse between successive keepalive messages that BGP receives from a
       peer.
      
      
       BGP will use the smaller of either the local hold time value or the
       peer's hold time value as the hold time for the BGP connection between
       the two peers.
      
      
       If set, this value must be between 20 and 60. The default is 20.
       
      optional uint32 keepalive_interval = 276771516;
      Specified by:
      hasKeepaliveInterval in interface RouterBgpOrBuilder
      Returns:
      Whether the keepaliveInterval field is set.
    • getKeepaliveInterval

      public int getKeepaliveInterval()
       The interval in seconds between BGP keepalive messages that are
       sent to the peer.
      
      
       Hold time is three times the interval at which keepalive messages are
       sent, and the hold time is the maximum number of seconds allowed to
       elapse between successive keepalive messages that BGP receives from a
       peer.
      
      
       BGP will use the smaller of either the local hold time value or the
       peer's hold time value as the hold time for the BGP connection between
       the two peers.
      
      
       If set, this value must be between 20 and 60. The default is 20.
       
      optional uint32 keepalive_interval = 276771516;
      Specified by:
      getKeepaliveInterval in interface RouterBgpOrBuilder
      Returns:
      The keepaliveInterval.
    • setKeepaliveInterval

      public RouterBgp.Builder setKeepaliveInterval(int value)
       The interval in seconds between BGP keepalive messages that are
       sent to the peer.
      
      
       Hold time is three times the interval at which keepalive messages are
       sent, and the hold time is the maximum number of seconds allowed to
       elapse between successive keepalive messages that BGP receives from a
       peer.
      
      
       BGP will use the smaller of either the local hold time value or the
       peer's hold time value as the hold time for the BGP connection between
       the two peers.
      
      
       If set, this value must be between 20 and 60. The default is 20.
       
      optional uint32 keepalive_interval = 276771516;
      Parameters:
      value - The keepaliveInterval to set.
      Returns:
      This builder for chaining.
    • clearKeepaliveInterval

      public RouterBgp.Builder clearKeepaliveInterval()
       The interval in seconds between BGP keepalive messages that are
       sent to the peer.
      
      
       Hold time is three times the interval at which keepalive messages are
       sent, and the hold time is the maximum number of seconds allowed to
       elapse between successive keepalive messages that BGP receives from a
       peer.
      
      
       BGP will use the smaller of either the local hold time value or the
       peer's hold time value as the hold time for the BGP connection between
       the two peers.
      
      
       If set, this value must be between 20 and 60. The default is 20.
       
      optional uint32 keepalive_interval = 276771516;
      Returns:
      This builder for chaining.