Class RouterStatus

  • All Implemented Interfaces:
    RouterStatusOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class RouterStatus
    extends com.google.protobuf.GeneratedMessageV3
    implements RouterStatusOrBuilder
     
    Protobuf type google.cloud.compute.v1.RouterStatus
    See Also:
    Serialized Form
    • Field Detail

      • BEST_ROUTES_FIELD_NUMBER

        public static final int BEST_ROUTES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • BEST_ROUTES_FOR_ROUTER_FIELD_NUMBER

        public static final int BEST_ROUTES_FOR_ROUTER_FIELD_NUMBER
        See Also:
        Constant Field Values
      • BGP_PEER_STATUS_FIELD_NUMBER

        public static final int BGP_PEER_STATUS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • NAT_STATUS_FIELD_NUMBER

        public static final int NAT_STATUS_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • getBestRoutesCount

        public int getBestRoutesCount()
         Best routes for this router's network.
         
        repeated .google.cloud.compute.v1.Route best_routes = 395826693;
        Specified by:
        getBestRoutesCount in interface RouterStatusOrBuilder
      • getBestRoutes

        public Route getBestRoutes​(int index)
         Best routes for this router's network.
         
        repeated .google.cloud.compute.v1.Route best_routes = 395826693;
        Specified by:
        getBestRoutes in interface RouterStatusOrBuilder
      • getBestRoutesForRouterCount

        public int getBestRoutesForRouterCount()
         Best routes learned by this router.
         
        repeated .google.cloud.compute.v1.Route best_routes_for_router = 119389689;
        Specified by:
        getBestRoutesForRouterCount in interface RouterStatusOrBuilder
      • getBestRoutesForRouter

        public Route getBestRoutesForRouter​(int index)
         Best routes learned by this router.
         
        repeated .google.cloud.compute.v1.Route best_routes_for_router = 119389689;
        Specified by:
        getBestRoutesForRouter in interface RouterStatusOrBuilder
      • getBgpPeerStatusCount

        public int getBgpPeerStatusCount()
        repeated .google.cloud.compute.v1.RouterStatusBgpPeerStatus bgp_peer_status = 218459131;
        Specified by:
        getBgpPeerStatusCount in interface RouterStatusOrBuilder
      • getNatStatusCount

        public int getNatStatusCount()
        repeated .google.cloud.compute.v1.RouterStatusNatStatus nat_status = 63098064;
        Specified by:
        getNatStatusCount in interface RouterStatusOrBuilder
      • hasNetwork

        public boolean hasNetwork()
         URI of the network to which this router belongs.
         
        optional string network = 232872494;
        Specified by:
        hasNetwork in interface RouterStatusOrBuilder
        Returns:
        Whether the network field is set.
      • getNetwork

        public String getNetwork()
         URI of the network to which this router belongs.
         
        optional string network = 232872494;
        Specified by:
        getNetwork in interface RouterStatusOrBuilder
        Returns:
        The network.
      • getNetworkBytes

        public com.google.protobuf.ByteString getNetworkBytes()
         URI of the network to which this router belongs.
         
        optional string network = 232872494;
        Specified by:
        getNetworkBytes in interface RouterStatusOrBuilder
        Returns:
        The bytes for network.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • 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.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • 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 RouterStatus parseFrom​(ByteBuffer data)
                                      throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

        protected RouterStatus.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static RouterStatus getDefaultInstance()
      • parser

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

        public com.google.protobuf.Parser<RouterStatus> 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.GeneratedMessageV3
      • getDefaultInstanceForType

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