Class ExchangedPeeringRoute.Builder

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

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

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

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

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

        public ExchangedPeeringRoute.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<ExchangedPeeringRoute.Builder>
      • clearField

        public ExchangedPeeringRoute.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<ExchangedPeeringRoute.Builder>
      • clearOneof

        public ExchangedPeeringRoute.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<ExchangedPeeringRoute.Builder>
      • setRepeatedField

        public ExchangedPeeringRoute.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<ExchangedPeeringRoute.Builder>
      • addRepeatedField

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

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

        public ExchangedPeeringRoute.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<ExchangedPeeringRoute.Builder>
        Throws:
        IOException
      • hasDestRange

        public boolean hasDestRange()
         The destination range of the route.
         
        optional string dest_range = 381327712;
        Specified by:
        hasDestRange in interface ExchangedPeeringRouteOrBuilder
        Returns:
        Whether the destRange field is set.
      • getDestRangeBytes

        public com.google.protobuf.ByteString getDestRangeBytes()
         The destination range of the route.
         
        optional string dest_range = 381327712;
        Specified by:
        getDestRangeBytes in interface ExchangedPeeringRouteOrBuilder
        Returns:
        The bytes for destRange.
      • setDestRange

        public ExchangedPeeringRoute.Builder setDestRange​(String value)
         The destination range of the route.
         
        optional string dest_range = 381327712;
        Parameters:
        value - The destRange to set.
        Returns:
        This builder for chaining.
      • clearDestRange

        public ExchangedPeeringRoute.Builder clearDestRange()
         The destination range of the route.
         
        optional string dest_range = 381327712;
        Returns:
        This builder for chaining.
      • setDestRangeBytes

        public ExchangedPeeringRoute.Builder setDestRangeBytes​(com.google.protobuf.ByteString value)
         The destination range of the route.
         
        optional string dest_range = 381327712;
        Parameters:
        value - The bytes for destRange to set.
        Returns:
        This builder for chaining.
      • hasImported

        public boolean hasImported()
         True if the peering route has been imported from a peer. The actual import happens if the field networkPeering.importCustomRoutes is true for this network, and networkPeering.exportCustomRoutes is true for the peer network, and the import does not result in a route conflict.
         
        optional bool imported = 114502404;
        Specified by:
        hasImported in interface ExchangedPeeringRouteOrBuilder
        Returns:
        Whether the imported field is set.
      • getImported

        public boolean getImported()
         True if the peering route has been imported from a peer. The actual import happens if the field networkPeering.importCustomRoutes is true for this network, and networkPeering.exportCustomRoutes is true for the peer network, and the import does not result in a route conflict.
         
        optional bool imported = 114502404;
        Specified by:
        getImported in interface ExchangedPeeringRouteOrBuilder
        Returns:
        The imported.
      • setImported

        public ExchangedPeeringRoute.Builder setImported​(boolean value)
         True if the peering route has been imported from a peer. The actual import happens if the field networkPeering.importCustomRoutes is true for this network, and networkPeering.exportCustomRoutes is true for the peer network, and the import does not result in a route conflict.
         
        optional bool imported = 114502404;
        Parameters:
        value - The imported to set.
        Returns:
        This builder for chaining.
      • clearImported

        public ExchangedPeeringRoute.Builder clearImported()
         True if the peering route has been imported from a peer. The actual import happens if the field networkPeering.importCustomRoutes is true for this network, and networkPeering.exportCustomRoutes is true for the peer network, and the import does not result in a route conflict.
         
        optional bool imported = 114502404;
        Returns:
        This builder for chaining.
      • hasNextHopRegion

        public boolean hasNextHopRegion()
         The region of peering route next hop, only applies to dynamic routes.
         
        optional string next_hop_region = 122577014;
        Specified by:
        hasNextHopRegion in interface ExchangedPeeringRouteOrBuilder
        Returns:
        Whether the nextHopRegion field is set.
      • getNextHopRegion

        public String getNextHopRegion()
         The region of peering route next hop, only applies to dynamic routes.
         
        optional string next_hop_region = 122577014;
        Specified by:
        getNextHopRegion in interface ExchangedPeeringRouteOrBuilder
        Returns:
        The nextHopRegion.
      • getNextHopRegionBytes

        public com.google.protobuf.ByteString getNextHopRegionBytes()
         The region of peering route next hop, only applies to dynamic routes.
         
        optional string next_hop_region = 122577014;
        Specified by:
        getNextHopRegionBytes in interface ExchangedPeeringRouteOrBuilder
        Returns:
        The bytes for nextHopRegion.
      • setNextHopRegion

        public ExchangedPeeringRoute.Builder setNextHopRegion​(String value)
         The region of peering route next hop, only applies to dynamic routes.
         
        optional string next_hop_region = 122577014;
        Parameters:
        value - The nextHopRegion to set.
        Returns:
        This builder for chaining.
      • clearNextHopRegion

        public ExchangedPeeringRoute.Builder clearNextHopRegion()
         The region of peering route next hop, only applies to dynamic routes.
         
        optional string next_hop_region = 122577014;
        Returns:
        This builder for chaining.
      • setNextHopRegionBytes

        public ExchangedPeeringRoute.Builder setNextHopRegionBytes​(com.google.protobuf.ByteString value)
         The region of peering route next hop, only applies to dynamic routes.
         
        optional string next_hop_region = 122577014;
        Parameters:
        value - The bytes for nextHopRegion to set.
        Returns:
        This builder for chaining.
      • hasPriority

        public boolean hasPriority()
         The priority of the peering route.
         
        optional uint32 priority = 445151652;
        Specified by:
        hasPriority in interface ExchangedPeeringRouteOrBuilder
        Returns:
        Whether the priority field is set.
      • getPriority

        public int getPriority()
         The priority of the peering route.
         
        optional uint32 priority = 445151652;
        Specified by:
        getPriority in interface ExchangedPeeringRouteOrBuilder
        Returns:
        The priority.
      • setPriority

        public ExchangedPeeringRoute.Builder setPriority​(int value)
         The priority of the peering route.
         
        optional uint32 priority = 445151652;
        Parameters:
        value - The priority to set.
        Returns:
        This builder for chaining.
      • clearPriority

        public ExchangedPeeringRoute.Builder clearPriority()
         The priority of the peering route.
         
        optional uint32 priority = 445151652;
        Returns:
        This builder for chaining.
      • hasType

        public boolean hasType()
         The type of the peering route.
         Check the Type enum for the list of possible values.
         
        optional string type = 3575610;
        Specified by:
        hasType in interface ExchangedPeeringRouteOrBuilder
        Returns:
        Whether the type field is set.
      • getType

        public String getType()
         The type of the peering route.
         Check the Type enum for the list of possible values.
         
        optional string type = 3575610;
        Specified by:
        getType in interface ExchangedPeeringRouteOrBuilder
        Returns:
        The type.
      • getTypeBytes

        public com.google.protobuf.ByteString getTypeBytes()
         The type of the peering route.
         Check the Type enum for the list of possible values.
         
        optional string type = 3575610;
        Specified by:
        getTypeBytes in interface ExchangedPeeringRouteOrBuilder
        Returns:
        The bytes for type.
      • setType

        public ExchangedPeeringRoute.Builder setType​(String value)
         The type of the peering route.
         Check the Type enum for the list of possible values.
         
        optional string type = 3575610;
        Parameters:
        value - The type to set.
        Returns:
        This builder for chaining.
      • clearType

        public ExchangedPeeringRoute.Builder clearType()
         The type of the peering route.
         Check the Type enum for the list of possible values.
         
        optional string type = 3575610;
        Returns:
        This builder for chaining.
      • setTypeBytes

        public ExchangedPeeringRoute.Builder setTypeBytes​(com.google.protobuf.ByteString value)
         The type of the peering route.
         Check the Type enum for the list of possible values.
         
        optional string type = 3575610;
        Parameters:
        value - The bytes for type to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final ExchangedPeeringRoute.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<ExchangedPeeringRoute.Builder>
      • mergeUnknownFields

        public final ExchangedPeeringRoute.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<ExchangedPeeringRoute.Builder>