Class RouteInfo

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

    public final class RouteInfo
    extends com.google.protobuf.GeneratedMessageV3
    implements RouteInfoOrBuilder
     For display only. Metadata associated with a Compute Engine route.
     
    Protobuf type google.cloud.networkmanagement.v1.RouteInfo
    See Also:
    Serialized Form
    • 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
      • getRouteTypeValue

        public int getRouteTypeValue()
         Type of route.
         
        .google.cloud.networkmanagement.v1.RouteInfo.RouteType route_type = 8;
        Specified by:
        getRouteTypeValue in interface RouteInfoOrBuilder
        Returns:
        The enum numeric value on the wire for routeType.
      • getNextHopTypeValue

        public int getNextHopTypeValue()
         Type of next hop.
         
        .google.cloud.networkmanagement.v1.RouteInfo.NextHopType next_hop_type = 9;
        Specified by:
        getNextHopTypeValue in interface RouteInfoOrBuilder
        Returns:
        The enum numeric value on the wire for nextHopType.
      • getRouteScopeValue

        public int getRouteScopeValue()
         Indicates where route is applicable.
         
        .google.cloud.networkmanagement.v1.RouteInfo.RouteScope route_scope = 14;
        Specified by:
        getRouteScopeValue in interface RouteInfoOrBuilder
        Returns:
        The enum numeric value on the wire for routeScope.
      • getRouteScope

        public RouteInfo.RouteScope getRouteScope()
         Indicates where route is applicable.
         
        .google.cloud.networkmanagement.v1.RouteInfo.RouteScope route_scope = 14;
        Specified by:
        getRouteScope in interface RouteInfoOrBuilder
        Returns:
        The routeScope.
      • getDisplayNameBytes

        public com.google.protobuf.ByteString getDisplayNameBytes()
         Name of a route.
         
        string display_name = 1;
        Specified by:
        getDisplayNameBytes in interface RouteInfoOrBuilder
        Returns:
        The bytes for displayName.
      • getUri

        public String getUri()
         URI of a route.
         Dynamic, peering static and peering dynamic routes do not have an URI.
         Advertised route from Google Cloud VPC to on-premises network also does
         not have an URI.
         
        string uri = 2;
        Specified by:
        getUri in interface RouteInfoOrBuilder
        Returns:
        The uri.
      • getUriBytes

        public com.google.protobuf.ByteString getUriBytes()
         URI of a route.
         Dynamic, peering static and peering dynamic routes do not have an URI.
         Advertised route from Google Cloud VPC to on-premises network also does
         not have an URI.
         
        string uri = 2;
        Specified by:
        getUriBytes in interface RouteInfoOrBuilder
        Returns:
        The bytes for uri.
      • getDestIpRange

        public String getDestIpRange()
         Destination IP range of the route.
         
        string dest_ip_range = 3;
        Specified by:
        getDestIpRange in interface RouteInfoOrBuilder
        Returns:
        The destIpRange.
      • getDestIpRangeBytes

        public com.google.protobuf.ByteString getDestIpRangeBytes()
         Destination IP range of the route.
         
        string dest_ip_range = 3;
        Specified by:
        getDestIpRangeBytes in interface RouteInfoOrBuilder
        Returns:
        The bytes for destIpRange.
      • getNextHopBytes

        public com.google.protobuf.ByteString getNextHopBytes()
         Next hop of the route.
         
        string next_hop = 4;
        Specified by:
        getNextHopBytes in interface RouteInfoOrBuilder
        Returns:
        The bytes for nextHop.
      • getNetworkUri

        public String getNetworkUri()
         URI of a Compute Engine network. NETWORK routes only.
         
        string network_uri = 5;
        Specified by:
        getNetworkUri in interface RouteInfoOrBuilder
        Returns:
        The networkUri.
      • getNetworkUriBytes

        public com.google.protobuf.ByteString getNetworkUriBytes()
         URI of a Compute Engine network. NETWORK routes only.
         
        string network_uri = 5;
        Specified by:
        getNetworkUriBytes in interface RouteInfoOrBuilder
        Returns:
        The bytes for networkUri.
      • getPriority

        public int getPriority()
         Priority of the route.
         
        int32 priority = 6;
        Specified by:
        getPriority in interface RouteInfoOrBuilder
        Returns:
        The priority.
      • getInstanceTagsList

        public com.google.protobuf.ProtocolStringList getInstanceTagsList()
         Instance tags of the route.
         
        repeated string instance_tags = 7;
        Specified by:
        getInstanceTagsList in interface RouteInfoOrBuilder
        Returns:
        A list containing the instanceTags.
      • getInstanceTagsCount

        public int getInstanceTagsCount()
         Instance tags of the route.
         
        repeated string instance_tags = 7;
        Specified by:
        getInstanceTagsCount in interface RouteInfoOrBuilder
        Returns:
        The count of instanceTags.
      • getInstanceTags

        public String getInstanceTags​(int index)
         Instance tags of the route.
         
        repeated string instance_tags = 7;
        Specified by:
        getInstanceTags in interface RouteInfoOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The instanceTags at the given index.
      • getInstanceTagsBytes

        public com.google.protobuf.ByteString getInstanceTagsBytes​(int index)
         Instance tags of the route.
         
        repeated string instance_tags = 7;
        Specified by:
        getInstanceTagsBytes in interface RouteInfoOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the instanceTags at the given index.
      • getSrcIpRange

        public String getSrcIpRange()
         Source IP address range of the route. Policy based routes only.
         
        string src_ip_range = 10;
        Specified by:
        getSrcIpRange in interface RouteInfoOrBuilder
        Returns:
        The srcIpRange.
      • getSrcIpRangeBytes

        public com.google.protobuf.ByteString getSrcIpRangeBytes()
         Source IP address range of the route. Policy based routes only.
         
        string src_ip_range = 10;
        Specified by:
        getSrcIpRangeBytes in interface RouteInfoOrBuilder
        Returns:
        The bytes for srcIpRange.
      • getDestPortRangesList

        public com.google.protobuf.ProtocolStringList getDestPortRangesList()
         Destination port ranges of the route. Policy based routes only.
         
        repeated string dest_port_ranges = 11;
        Specified by:
        getDestPortRangesList in interface RouteInfoOrBuilder
        Returns:
        A list containing the destPortRanges.
      • getDestPortRangesCount

        public int getDestPortRangesCount()
         Destination port ranges of the route. Policy based routes only.
         
        repeated string dest_port_ranges = 11;
        Specified by:
        getDestPortRangesCount in interface RouteInfoOrBuilder
        Returns:
        The count of destPortRanges.
      • getDestPortRanges

        public String getDestPortRanges​(int index)
         Destination port ranges of the route. Policy based routes only.
         
        repeated string dest_port_ranges = 11;
        Specified by:
        getDestPortRanges in interface RouteInfoOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The destPortRanges at the given index.
      • getDestPortRangesBytes

        public com.google.protobuf.ByteString getDestPortRangesBytes​(int index)
         Destination port ranges of the route. Policy based routes only.
         
        repeated string dest_port_ranges = 11;
        Specified by:
        getDestPortRangesBytes in interface RouteInfoOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the destPortRanges at the given index.
      • getSrcPortRangesList

        public com.google.protobuf.ProtocolStringList getSrcPortRangesList()
         Source port ranges of the route. Policy based routes only.
         
        repeated string src_port_ranges = 12;
        Specified by:
        getSrcPortRangesList in interface RouteInfoOrBuilder
        Returns:
        A list containing the srcPortRanges.
      • getSrcPortRangesCount

        public int getSrcPortRangesCount()
         Source port ranges of the route. Policy based routes only.
         
        repeated string src_port_ranges = 12;
        Specified by:
        getSrcPortRangesCount in interface RouteInfoOrBuilder
        Returns:
        The count of srcPortRanges.
      • getSrcPortRanges

        public String getSrcPortRanges​(int index)
         Source port ranges of the route. Policy based routes only.
         
        repeated string src_port_ranges = 12;
        Specified by:
        getSrcPortRanges in interface RouteInfoOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The srcPortRanges at the given index.
      • getSrcPortRangesBytes

        public com.google.protobuf.ByteString getSrcPortRangesBytes​(int index)
         Source port ranges of the route. Policy based routes only.
         
        repeated string src_port_ranges = 12;
        Specified by:
        getSrcPortRangesBytes in interface RouteInfoOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the srcPortRanges at the given index.
      • getProtocolsList

        public com.google.protobuf.ProtocolStringList getProtocolsList()
         Protocols of the route. Policy based routes only.
         
        repeated string protocols = 13;
        Specified by:
        getProtocolsList in interface RouteInfoOrBuilder
        Returns:
        A list containing the protocols.
      • getProtocolsCount

        public int getProtocolsCount()
         Protocols of the route. Policy based routes only.
         
        repeated string protocols = 13;
        Specified by:
        getProtocolsCount in interface RouteInfoOrBuilder
        Returns:
        The count of protocols.
      • getProtocols

        public String getProtocols​(int index)
         Protocols of the route. Policy based routes only.
         
        repeated string protocols = 13;
        Specified by:
        getProtocols in interface RouteInfoOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The protocols at the given index.
      • getProtocolsBytes

        public com.google.protobuf.ByteString getProtocolsBytes​(int index)
         Protocols of the route. Policy based routes only.
         
        repeated string protocols = 13;
        Specified by:
        getProtocolsBytes in interface RouteInfoOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the protocols at the given index.
      • hasNccHubUri

        public boolean hasNccHubUri()
         URI of a NCC Hub. NCC_HUB routes only.
         
        optional string ncc_hub_uri = 15;
        Specified by:
        hasNccHubUri in interface RouteInfoOrBuilder
        Returns:
        Whether the nccHubUri field is set.
      • getNccHubUri

        public String getNccHubUri()
         URI of a NCC Hub. NCC_HUB routes only.
         
        optional string ncc_hub_uri = 15;
        Specified by:
        getNccHubUri in interface RouteInfoOrBuilder
        Returns:
        The nccHubUri.
      • getNccHubUriBytes

        public com.google.protobuf.ByteString getNccHubUriBytes()
         URI of a NCC Hub. NCC_HUB routes only.
         
        optional string ncc_hub_uri = 15;
        Specified by:
        getNccHubUriBytes in interface RouteInfoOrBuilder
        Returns:
        The bytes for nccHubUri.
      • hasNccSpokeUri

        public boolean hasNccSpokeUri()
         URI of a NCC Spoke. NCC_HUB routes only.
         
        optional string ncc_spoke_uri = 16;
        Specified by:
        hasNccSpokeUri in interface RouteInfoOrBuilder
        Returns:
        Whether the nccSpokeUri field is set.
      • getNccSpokeUri

        public String getNccSpokeUri()
         URI of a NCC Spoke. NCC_HUB routes only.
         
        optional string ncc_spoke_uri = 16;
        Specified by:
        getNccSpokeUri in interface RouteInfoOrBuilder
        Returns:
        The nccSpokeUri.
      • getNccSpokeUriBytes

        public com.google.protobuf.ByteString getNccSpokeUriBytes()
         URI of a NCC Spoke. NCC_HUB routes only.
         
        optional string ncc_spoke_uri = 16;
        Specified by:
        getNccSpokeUriBytes in interface RouteInfoOrBuilder
        Returns:
        The bytes for nccSpokeUri.
      • 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 RouteInfo parseFrom​(ByteBuffer data)
                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

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

        public static RouteInfo getDefaultInstance()
      • parser

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

        public com.google.protobuf.Parser<RouteInfo> 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 RouteInfo getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder