Class RouteInfo.Builder

  • All Implemented Interfaces:
    RouteInfoOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    RouteInfo

    public static final class RouteInfo.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<RouteInfo.Builder>
    implements RouteInfoOrBuilder
     For display only. Metadata associated with a Compute Engine route.
     
    Protobuf type google.cloud.networkmanagement.v1.RouteInfo
    • Method Detail

      • 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.Builder<RouteInfo.Builder>
      • clear

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

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

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

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

        public RouteInfo.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<RouteInfo.Builder>
      • setField

        public RouteInfo.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                          Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<RouteInfo.Builder>
      • clearField

        public RouteInfo.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<RouteInfo.Builder>
      • clearOneof

        public RouteInfo.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<RouteInfo.Builder>
      • setRepeatedField

        public RouteInfo.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                  int index,
                                                  Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RouteInfo.Builder>
      • addRepeatedField

        public RouteInfo.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                  Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RouteInfo.Builder>
      • mergeFrom

        public RouteInfo.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<RouteInfo.Builder>
      • isInitialized

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

        public RouteInfo.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<RouteInfo.Builder>
        Throws:
        IOException
      • 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.
      • setRouteTypeValue

        public RouteInfo.Builder setRouteTypeValue​(int value)
         Type of route.
         
        .google.cloud.networkmanagement.v1.RouteInfo.RouteType route_type = 8;
        Parameters:
        value - The enum numeric value on the wire for routeType to set.
        Returns:
        This builder for chaining.
      • setRouteType

        public RouteInfo.Builder setRouteType​(RouteInfo.RouteType value)
         Type of route.
         
        .google.cloud.networkmanagement.v1.RouteInfo.RouteType route_type = 8;
        Parameters:
        value - The routeType to set.
        Returns:
        This builder for chaining.
      • clearRouteType

        public RouteInfo.Builder clearRouteType()
         Type of route.
         
        .google.cloud.networkmanagement.v1.RouteInfo.RouteType route_type = 8;
        Returns:
        This builder for chaining.
      • 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.
      • setNextHopTypeValue

        public RouteInfo.Builder setNextHopTypeValue​(int value)
         Type of next hop.
         
        .google.cloud.networkmanagement.v1.RouteInfo.NextHopType next_hop_type = 9;
        Parameters:
        value - The enum numeric value on the wire for nextHopType to set.
        Returns:
        This builder for chaining.
      • setNextHopType

        public RouteInfo.Builder setNextHopType​(RouteInfo.NextHopType value)
         Type of next hop.
         
        .google.cloud.networkmanagement.v1.RouteInfo.NextHopType next_hop_type = 9;
        Parameters:
        value - The nextHopType to set.
        Returns:
        This builder for chaining.
      • clearNextHopType

        public RouteInfo.Builder clearNextHopType()
         Type of next hop.
         
        .google.cloud.networkmanagement.v1.RouteInfo.NextHopType next_hop_type = 9;
        Returns:
        This builder for chaining.
      • 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.
      • setRouteScopeValue

        public RouteInfo.Builder setRouteScopeValue​(int value)
         Indicates where route is applicable.
         
        .google.cloud.networkmanagement.v1.RouteInfo.RouteScope route_scope = 14;
        Parameters:
        value - The enum numeric value on the wire for routeScope to set.
        Returns:
        This builder for chaining.
      • 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.
      • setRouteScope

        public RouteInfo.Builder setRouteScope​(RouteInfo.RouteScope value)
         Indicates where route is applicable.
         
        .google.cloud.networkmanagement.v1.RouteInfo.RouteScope route_scope = 14;
        Parameters:
        value - The routeScope to set.
        Returns:
        This builder for chaining.
      • clearRouteScope

        public RouteInfo.Builder clearRouteScope()
         Indicates where route is applicable.
         
        .google.cloud.networkmanagement.v1.RouteInfo.RouteScope route_scope = 14;
        Returns:
        This builder for chaining.
      • 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.
      • setDisplayName

        public RouteInfo.Builder setDisplayName​(String value)
         Name of a route.
         
        string display_name = 1;
        Parameters:
        value - The displayName to set.
        Returns:
        This builder for chaining.
      • clearDisplayName

        public RouteInfo.Builder clearDisplayName()
         Name of a route.
         
        string display_name = 1;
        Returns:
        This builder for chaining.
      • setDisplayNameBytes

        public RouteInfo.Builder setDisplayNameBytes​(com.google.protobuf.ByteString value)
         Name of a route.
         
        string display_name = 1;
        Parameters:
        value - The bytes for displayName to set.
        Returns:
        This builder for chaining.
      • 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.
      • setUri

        public RouteInfo.Builder setUri​(String value)
         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;
        Parameters:
        value - The uri to set.
        Returns:
        This builder for chaining.
      • clearUri

        public RouteInfo.Builder clearUri()
         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;
        Returns:
        This builder for chaining.
      • setUriBytes

        public RouteInfo.Builder setUriBytes​(com.google.protobuf.ByteString value)
         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;
        Parameters:
        value - The bytes for uri to set.
        Returns:
        This builder for chaining.
      • 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.
      • setDestIpRange

        public RouteInfo.Builder setDestIpRange​(String value)
         Destination IP range of the route.
         
        string dest_ip_range = 3;
        Parameters:
        value - The destIpRange to set.
        Returns:
        This builder for chaining.
      • clearDestIpRange

        public RouteInfo.Builder clearDestIpRange()
         Destination IP range of the route.
         
        string dest_ip_range = 3;
        Returns:
        This builder for chaining.
      • setDestIpRangeBytes

        public RouteInfo.Builder setDestIpRangeBytes​(com.google.protobuf.ByteString value)
         Destination IP range of the route.
         
        string dest_ip_range = 3;
        Parameters:
        value - The bytes for destIpRange to set.
        Returns:
        This builder for chaining.
      • 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.
      • setNextHop

        public RouteInfo.Builder setNextHop​(String value)
         Next hop of the route.
         
        string next_hop = 4;
        Parameters:
        value - The nextHop to set.
        Returns:
        This builder for chaining.
      • clearNextHop

        public RouteInfo.Builder clearNextHop()
         Next hop of the route.
         
        string next_hop = 4;
        Returns:
        This builder for chaining.
      • setNextHopBytes

        public RouteInfo.Builder setNextHopBytes​(com.google.protobuf.ByteString value)
         Next hop of the route.
         
        string next_hop = 4;
        Parameters:
        value - The bytes for nextHop to set.
        Returns:
        This builder for chaining.
      • 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.
      • setNetworkUri

        public RouteInfo.Builder setNetworkUri​(String value)
         URI of a Compute Engine network. NETWORK routes only.
         
        string network_uri = 5;
        Parameters:
        value - The networkUri to set.
        Returns:
        This builder for chaining.
      • clearNetworkUri

        public RouteInfo.Builder clearNetworkUri()
         URI of a Compute Engine network. NETWORK routes only.
         
        string network_uri = 5;
        Returns:
        This builder for chaining.
      • setNetworkUriBytes

        public RouteInfo.Builder setNetworkUriBytes​(com.google.protobuf.ByteString value)
         URI of a Compute Engine network. NETWORK routes only.
         
        string network_uri = 5;
        Parameters:
        value - The bytes for networkUri to set.
        Returns:
        This builder for chaining.
      • getPriority

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

        public RouteInfo.Builder setPriority​(int value)
         Priority of the route.
         
        int32 priority = 6;
        Parameters:
        value - The priority to set.
        Returns:
        This builder for chaining.
      • clearPriority

        public RouteInfo.Builder clearPriority()
         Priority of the route.
         
        int32 priority = 6;
        Returns:
        This builder for chaining.
      • 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.
      • setInstanceTags

        public RouteInfo.Builder setInstanceTags​(int index,
                                                 String value)
         Instance tags of the route.
         
        repeated string instance_tags = 7;
        Parameters:
        index - The index to set the value at.
        value - The instanceTags to set.
        Returns:
        This builder for chaining.
      • addInstanceTags

        public RouteInfo.Builder addInstanceTags​(String value)
         Instance tags of the route.
         
        repeated string instance_tags = 7;
        Parameters:
        value - The instanceTags to add.
        Returns:
        This builder for chaining.
      • addAllInstanceTags

        public RouteInfo.Builder addAllInstanceTags​(Iterable<String> values)
         Instance tags of the route.
         
        repeated string instance_tags = 7;
        Parameters:
        values - The instanceTags to add.
        Returns:
        This builder for chaining.
      • clearInstanceTags

        public RouteInfo.Builder clearInstanceTags()
         Instance tags of the route.
         
        repeated string instance_tags = 7;
        Returns:
        This builder for chaining.
      • addInstanceTagsBytes

        public RouteInfo.Builder addInstanceTagsBytes​(com.google.protobuf.ByteString value)
         Instance tags of the route.
         
        repeated string instance_tags = 7;
        Parameters:
        value - The bytes of the instanceTags to add.
        Returns:
        This builder for chaining.
      • 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.
      • setSrcIpRange

        public RouteInfo.Builder setSrcIpRange​(String value)
         Source IP address range of the route. Policy based routes only.
         
        string src_ip_range = 10;
        Parameters:
        value - The srcIpRange to set.
        Returns:
        This builder for chaining.
      • clearSrcIpRange

        public RouteInfo.Builder clearSrcIpRange()
         Source IP address range of the route. Policy based routes only.
         
        string src_ip_range = 10;
        Returns:
        This builder for chaining.
      • setSrcIpRangeBytes

        public RouteInfo.Builder setSrcIpRangeBytes​(com.google.protobuf.ByteString value)
         Source IP address range of the route. Policy based routes only.
         
        string src_ip_range = 10;
        Parameters:
        value - The bytes for srcIpRange to set.
        Returns:
        This builder for chaining.
      • 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.
      • setDestPortRanges

        public RouteInfo.Builder setDestPortRanges​(int index,
                                                   String value)
         Destination port ranges of the route. Policy based routes only.
         
        repeated string dest_port_ranges = 11;
        Parameters:
        index - The index to set the value at.
        value - The destPortRanges to set.
        Returns:
        This builder for chaining.
      • addDestPortRanges

        public RouteInfo.Builder addDestPortRanges​(String value)
         Destination port ranges of the route. Policy based routes only.
         
        repeated string dest_port_ranges = 11;
        Parameters:
        value - The destPortRanges to add.
        Returns:
        This builder for chaining.
      • addAllDestPortRanges

        public RouteInfo.Builder addAllDestPortRanges​(Iterable<String> values)
         Destination port ranges of the route. Policy based routes only.
         
        repeated string dest_port_ranges = 11;
        Parameters:
        values - The destPortRanges to add.
        Returns:
        This builder for chaining.
      • clearDestPortRanges

        public RouteInfo.Builder clearDestPortRanges()
         Destination port ranges of the route. Policy based routes only.
         
        repeated string dest_port_ranges = 11;
        Returns:
        This builder for chaining.
      • addDestPortRangesBytes

        public RouteInfo.Builder addDestPortRangesBytes​(com.google.protobuf.ByteString value)
         Destination port ranges of the route. Policy based routes only.
         
        repeated string dest_port_ranges = 11;
        Parameters:
        value - The bytes of the destPortRanges to add.
        Returns:
        This builder for chaining.
      • 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.
      • setSrcPortRanges

        public RouteInfo.Builder setSrcPortRanges​(int index,
                                                  String value)
         Source port ranges of the route. Policy based routes only.
         
        repeated string src_port_ranges = 12;
        Parameters:
        index - The index to set the value at.
        value - The srcPortRanges to set.
        Returns:
        This builder for chaining.
      • addSrcPortRanges

        public RouteInfo.Builder addSrcPortRanges​(String value)
         Source port ranges of the route. Policy based routes only.
         
        repeated string src_port_ranges = 12;
        Parameters:
        value - The srcPortRanges to add.
        Returns:
        This builder for chaining.
      • addAllSrcPortRanges

        public RouteInfo.Builder addAllSrcPortRanges​(Iterable<String> values)
         Source port ranges of the route. Policy based routes only.
         
        repeated string src_port_ranges = 12;
        Parameters:
        values - The srcPortRanges to add.
        Returns:
        This builder for chaining.
      • clearSrcPortRanges

        public RouteInfo.Builder clearSrcPortRanges()
         Source port ranges of the route. Policy based routes only.
         
        repeated string src_port_ranges = 12;
        Returns:
        This builder for chaining.
      • addSrcPortRangesBytes

        public RouteInfo.Builder addSrcPortRangesBytes​(com.google.protobuf.ByteString value)
         Source port ranges of the route. Policy based routes only.
         
        repeated string src_port_ranges = 12;
        Parameters:
        value - The bytes of the srcPortRanges to add.
        Returns:
        This builder for chaining.
      • 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.
      • setProtocols

        public RouteInfo.Builder setProtocols​(int index,
                                              String value)
         Protocols of the route. Policy based routes only.
         
        repeated string protocols = 13;
        Parameters:
        index - The index to set the value at.
        value - The protocols to set.
        Returns:
        This builder for chaining.
      • addProtocols

        public RouteInfo.Builder addProtocols​(String value)
         Protocols of the route. Policy based routes only.
         
        repeated string protocols = 13;
        Parameters:
        value - The protocols to add.
        Returns:
        This builder for chaining.
      • addAllProtocols

        public RouteInfo.Builder addAllProtocols​(Iterable<String> values)
         Protocols of the route. Policy based routes only.
         
        repeated string protocols = 13;
        Parameters:
        values - The protocols to add.
        Returns:
        This builder for chaining.
      • clearProtocols

        public RouteInfo.Builder clearProtocols()
         Protocols of the route. Policy based routes only.
         
        repeated string protocols = 13;
        Returns:
        This builder for chaining.
      • addProtocolsBytes

        public RouteInfo.Builder addProtocolsBytes​(com.google.protobuf.ByteString value)
         Protocols of the route. Policy based routes only.
         
        repeated string protocols = 13;
        Parameters:
        value - The bytes of the protocols to add.
        Returns:
        This builder for chaining.
      • 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.
      • setNccHubUri

        public RouteInfo.Builder setNccHubUri​(String value)
         URI of a NCC Hub. NCC_HUB routes only.
         
        optional string ncc_hub_uri = 15;
        Parameters:
        value - The nccHubUri to set.
        Returns:
        This builder for chaining.
      • clearNccHubUri

        public RouteInfo.Builder clearNccHubUri()
         URI of a NCC Hub. NCC_HUB routes only.
         
        optional string ncc_hub_uri = 15;
        Returns:
        This builder for chaining.
      • setNccHubUriBytes

        public RouteInfo.Builder setNccHubUriBytes​(com.google.protobuf.ByteString value)
         URI of a NCC Hub. NCC_HUB routes only.
         
        optional string ncc_hub_uri = 15;
        Parameters:
        value - The bytes for nccHubUri to set.
        Returns:
        This builder for chaining.
      • 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.
      • setNccSpokeUri

        public RouteInfo.Builder setNccSpokeUri​(String value)
         URI of a NCC Spoke. NCC_HUB routes only.
         
        optional string ncc_spoke_uri = 16;
        Parameters:
        value - The nccSpokeUri to set.
        Returns:
        This builder for chaining.
      • clearNccSpokeUri

        public RouteInfo.Builder clearNccSpokeUri()
         URI of a NCC Spoke. NCC_HUB routes only.
         
        optional string ncc_spoke_uri = 16;
        Returns:
        This builder for chaining.
      • setNccSpokeUriBytes

        public RouteInfo.Builder setNccSpokeUriBytes​(com.google.protobuf.ByteString value)
         URI of a NCC Spoke. NCC_HUB routes only.
         
        optional string ncc_spoke_uri = 16;
        Parameters:
        value - The bytes for nccSpokeUri to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final RouteInfo.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RouteInfo.Builder>
      • mergeUnknownFields

        public final RouteInfo.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RouteInfo.Builder>