Class RouterBgpPeerBfd.Builder

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

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

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

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

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

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

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

      public RouterBgpPeerBfd.Builder mergeFrom(RouterBgpPeerBfd other)
    • isInitialized

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

      public RouterBgpPeerBfd.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<RouterBgpPeerBfd.Builder>
      Throws:
      IOException
    • hasMinReceiveInterval

      public boolean hasMinReceiveInterval()
       The minimum interval, in milliseconds, between BFD control packets
       received from the peer router. The actual value is negotiated between
       the two routers and is equal to the greater of this value and the
       transmit interval of the other router.
      
      
       If set, this value must be between 1000 and 30000.
      
      
       The default is 1000.
       
      optional uint32 min_receive_interval = 186981614;
      Specified by:
      hasMinReceiveInterval in interface RouterBgpPeerBfdOrBuilder
      Returns:
      Whether the minReceiveInterval field is set.
    • getMinReceiveInterval

      public int getMinReceiveInterval()
       The minimum interval, in milliseconds, between BFD control packets
       received from the peer router. The actual value is negotiated between
       the two routers and is equal to the greater of this value and the
       transmit interval of the other router.
      
      
       If set, this value must be between 1000 and 30000.
      
      
       The default is 1000.
       
      optional uint32 min_receive_interval = 186981614;
      Specified by:
      getMinReceiveInterval in interface RouterBgpPeerBfdOrBuilder
      Returns:
      The minReceiveInterval.
    • setMinReceiveInterval

      public RouterBgpPeerBfd.Builder setMinReceiveInterval(int value)
       The minimum interval, in milliseconds, between BFD control packets
       received from the peer router. The actual value is negotiated between
       the two routers and is equal to the greater of this value and the
       transmit interval of the other router.
      
      
       If set, this value must be between 1000 and 30000.
      
      
       The default is 1000.
       
      optional uint32 min_receive_interval = 186981614;
      Parameters:
      value - The minReceiveInterval to set.
      Returns:
      This builder for chaining.
    • clearMinReceiveInterval

      public RouterBgpPeerBfd.Builder clearMinReceiveInterval()
       The minimum interval, in milliseconds, between BFD control packets
       received from the peer router. The actual value is negotiated between
       the two routers and is equal to the greater of this value and the
       transmit interval of the other router.
      
      
       If set, this value must be between 1000 and 30000.
      
      
       The default is 1000.
       
      optional uint32 min_receive_interval = 186981614;
      Returns:
      This builder for chaining.
    • hasMinTransmitInterval

      public boolean hasMinTransmitInterval()
       The minimum interval, in milliseconds, between BFD control packets
       transmitted to the peer router. The actual value is negotiated between
       the two routers and is equal to the greater of this value and the
       corresponding receive interval of the other router.
      
      
       If set, this value must be between 1000 and 30000.
      
      
       The default is 1000.
       
      optional uint32 min_transmit_interval = 523282631;
      Specified by:
      hasMinTransmitInterval in interface RouterBgpPeerBfdOrBuilder
      Returns:
      Whether the minTransmitInterval field is set.
    • getMinTransmitInterval

      public int getMinTransmitInterval()
       The minimum interval, in milliseconds, between BFD control packets
       transmitted to the peer router. The actual value is negotiated between
       the two routers and is equal to the greater of this value and the
       corresponding receive interval of the other router.
      
      
       If set, this value must be between 1000 and 30000.
      
      
       The default is 1000.
       
      optional uint32 min_transmit_interval = 523282631;
      Specified by:
      getMinTransmitInterval in interface RouterBgpPeerBfdOrBuilder
      Returns:
      The minTransmitInterval.
    • setMinTransmitInterval

      public RouterBgpPeerBfd.Builder setMinTransmitInterval(int value)
       The minimum interval, in milliseconds, between BFD control packets
       transmitted to the peer router. The actual value is negotiated between
       the two routers and is equal to the greater of this value and the
       corresponding receive interval of the other router.
      
      
       If set, this value must be between 1000 and 30000.
      
      
       The default is 1000.
       
      optional uint32 min_transmit_interval = 523282631;
      Parameters:
      value - The minTransmitInterval to set.
      Returns:
      This builder for chaining.
    • clearMinTransmitInterval

      public RouterBgpPeerBfd.Builder clearMinTransmitInterval()
       The minimum interval, in milliseconds, between BFD control packets
       transmitted to the peer router. The actual value is negotiated between
       the two routers and is equal to the greater of this value and the
       corresponding receive interval of the other router.
      
      
       If set, this value must be between 1000 and 30000.
      
      
       The default is 1000.
       
      optional uint32 min_transmit_interval = 523282631;
      Returns:
      This builder for chaining.
    • hasMultiplier

      public boolean hasMultiplier()
       The number of consecutive BFD packets that must be missed
       before BFD declares that a peer is unavailable.
      
      
       If set, the value must be a value between 5 and 16.
      
      
       The default is 5.
       
      optional uint32 multiplier = 191331777;
      Specified by:
      hasMultiplier in interface RouterBgpPeerBfdOrBuilder
      Returns:
      Whether the multiplier field is set.
    • getMultiplier

      public int getMultiplier()
       The number of consecutive BFD packets that must be missed
       before BFD declares that a peer is unavailable.
      
      
       If set, the value must be a value between 5 and 16.
      
      
       The default is 5.
       
      optional uint32 multiplier = 191331777;
      Specified by:
      getMultiplier in interface RouterBgpPeerBfdOrBuilder
      Returns:
      The multiplier.
    • setMultiplier

      public RouterBgpPeerBfd.Builder setMultiplier(int value)
       The number of consecutive BFD packets that must be missed
       before BFD declares that a peer is unavailable.
      
      
       If set, the value must be a value between 5 and 16.
      
      
       The default is 5.
       
      optional uint32 multiplier = 191331777;
      Parameters:
      value - The multiplier to set.
      Returns:
      This builder for chaining.
    • clearMultiplier

      public RouterBgpPeerBfd.Builder clearMultiplier()
       The number of consecutive BFD packets that must be missed
       before BFD declares that a peer is unavailable.
      
      
       If set, the value must be a value between 5 and 16.
      
      
       The default is 5.
       
      optional uint32 multiplier = 191331777;
      Returns:
      This builder for chaining.
    • hasSessionInitializationMode

      public boolean hasSessionInitializationMode()
       The BFD session initialization mode for this BGP peer.
      
      
       If set to ACTIVE, the Cloud Router will initiate the BFD session for
       this BGP peer. If set to PASSIVE, the Cloud Router will wait for the
       peer router to initiate the BFD session for this BGP peer. If set to
       DISABLED, BFD is disabled for this BGP peer. The default is DISABLED.
       Check the SessionInitializationMode enum for the list of possible values.
       
      optional string session_initialization_mode = 105957049;
      Specified by:
      hasSessionInitializationMode in interface RouterBgpPeerBfdOrBuilder
      Returns:
      Whether the sessionInitializationMode field is set.
    • getSessionInitializationMode

      public String getSessionInitializationMode()
       The BFD session initialization mode for this BGP peer.
      
      
       If set to ACTIVE, the Cloud Router will initiate the BFD session for
       this BGP peer. If set to PASSIVE, the Cloud Router will wait for the
       peer router to initiate the BFD session for this BGP peer. If set to
       DISABLED, BFD is disabled for this BGP peer. The default is DISABLED.
       Check the SessionInitializationMode enum for the list of possible values.
       
      optional string session_initialization_mode = 105957049;
      Specified by:
      getSessionInitializationMode in interface RouterBgpPeerBfdOrBuilder
      Returns:
      The sessionInitializationMode.
    • getSessionInitializationModeBytes

      public com.google.protobuf.ByteString getSessionInitializationModeBytes()
       The BFD session initialization mode for this BGP peer.
      
      
       If set to ACTIVE, the Cloud Router will initiate the BFD session for
       this BGP peer. If set to PASSIVE, the Cloud Router will wait for the
       peer router to initiate the BFD session for this BGP peer. If set to
       DISABLED, BFD is disabled for this BGP peer. The default is DISABLED.
       Check the SessionInitializationMode enum for the list of possible values.
       
      optional string session_initialization_mode = 105957049;
      Specified by:
      getSessionInitializationModeBytes in interface RouterBgpPeerBfdOrBuilder
      Returns:
      The bytes for sessionInitializationMode.
    • setSessionInitializationMode

      public RouterBgpPeerBfd.Builder setSessionInitializationMode(String value)
       The BFD session initialization mode for this BGP peer.
      
      
       If set to ACTIVE, the Cloud Router will initiate the BFD session for
       this BGP peer. If set to PASSIVE, the Cloud Router will wait for the
       peer router to initiate the BFD session for this BGP peer. If set to
       DISABLED, BFD is disabled for this BGP peer. The default is DISABLED.
       Check the SessionInitializationMode enum for the list of possible values.
       
      optional string session_initialization_mode = 105957049;
      Parameters:
      value - The sessionInitializationMode to set.
      Returns:
      This builder for chaining.
    • clearSessionInitializationMode

      public RouterBgpPeerBfd.Builder clearSessionInitializationMode()
       The BFD session initialization mode for this BGP peer.
      
      
       If set to ACTIVE, the Cloud Router will initiate the BFD session for
       this BGP peer. If set to PASSIVE, the Cloud Router will wait for the
       peer router to initiate the BFD session for this BGP peer. If set to
       DISABLED, BFD is disabled for this BGP peer. The default is DISABLED.
       Check the SessionInitializationMode enum for the list of possible values.
       
      optional string session_initialization_mode = 105957049;
      Returns:
      This builder for chaining.
    • setSessionInitializationModeBytes

      public RouterBgpPeerBfd.Builder setSessionInitializationModeBytes(com.google.protobuf.ByteString value)
       The BFD session initialization mode for this BGP peer.
      
      
       If set to ACTIVE, the Cloud Router will initiate the BFD session for
       this BGP peer. If set to PASSIVE, the Cloud Router will wait for the
       peer router to initiate the BFD session for this BGP peer. If set to
       DISABLED, BFD is disabled for this BGP peer. The default is DISABLED.
       Check the SessionInitializationMode enum for the list of possible values.
       
      optional string session_initialization_mode = 105957049;
      Parameters:
      value - The bytes for sessionInitializationMode to set.
      Returns:
      This builder for chaining.