Class RouteAsPath.Builder

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

    public static final class RouteAsPath.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<RouteAsPath.Builder>
    implements RouteAsPathOrBuilder
     
    Protobuf type google.cloud.compute.v1.RouteAsPath
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      RouteAsPath.Builder addAllAsLists​(Iterable<? extends Integer> values)
      [Output Only] The AS numbers of the AS Path.
      RouteAsPath.Builder addAsLists​(int value)
      [Output Only] The AS numbers of the AS Path.
      RouteAsPath.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)  
      RouteAsPath build()  
      RouteAsPath buildPartial()  
      RouteAsPath.Builder clear()  
      RouteAsPath.Builder clearAsLists()
      [Output Only] The AS numbers of the AS Path.
      RouteAsPath.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)  
      RouteAsPath.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)  
      RouteAsPath.Builder clearPathSegmentType()
      [Output Only] The type of the AS Path, which can be one of the following values: - 'AS_SET': unordered set of autonomous systems that the route in has traversed - 'AS_SEQUENCE': ordered set of autonomous systems that the route has traversed - 'AS_CONFED_SEQUENCE': ordered set of Member Autonomous Systems in the local confederation that the route has traversed - 'AS_CONFED_SET': unordered set of Member Autonomous Systems in the local confederation that the route has traversed Check the PathSegmentType enum for the list of possible values.
      RouteAsPath.Builder clone()  
      int getAsLists​(int index)
      [Output Only] The AS numbers of the AS Path.
      int getAsListsCount()
      [Output Only] The AS numbers of the AS Path.
      List<Integer> getAsListsList()
      [Output Only] The AS numbers of the AS Path.
      RouteAsPath getDefaultInstanceForType()  
      static com.google.protobuf.Descriptors.Descriptor getDescriptor()  
      com.google.protobuf.Descriptors.Descriptor getDescriptorForType()  
      String getPathSegmentType()
      [Output Only] The type of the AS Path, which can be one of the following values: - 'AS_SET': unordered set of autonomous systems that the route in has traversed - 'AS_SEQUENCE': ordered set of autonomous systems that the route has traversed - 'AS_CONFED_SEQUENCE': ordered set of Member Autonomous Systems in the local confederation that the route has traversed - 'AS_CONFED_SET': unordered set of Member Autonomous Systems in the local confederation that the route has traversed Check the PathSegmentType enum for the list of possible values.
      com.google.protobuf.ByteString getPathSegmentTypeBytes()
      [Output Only] The type of the AS Path, which can be one of the following values: - 'AS_SET': unordered set of autonomous systems that the route in has traversed - 'AS_SEQUENCE': ordered set of autonomous systems that the route has traversed - 'AS_CONFED_SEQUENCE': ordered set of Member Autonomous Systems in the local confederation that the route has traversed - 'AS_CONFED_SET': unordered set of Member Autonomous Systems in the local confederation that the route has traversed Check the PathSegmentType enum for the list of possible values.
      boolean hasPathSegmentType()
      [Output Only] The type of the AS Path, which can be one of the following values: - 'AS_SET': unordered set of autonomous systems that the route in has traversed - 'AS_SEQUENCE': ordered set of autonomous systems that the route has traversed - 'AS_CONFED_SEQUENCE': ordered set of Member Autonomous Systems in the local confederation that the route has traversed - 'AS_CONFED_SET': unordered set of Member Autonomous Systems in the local confederation that the route has traversed Check the PathSegmentType enum for the list of possible values.
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()  
      boolean isInitialized()  
      RouteAsPath.Builder mergeFrom​(RouteAsPath other)  
      RouteAsPath.Builder mergeFrom​(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      RouteAsPath.Builder mergeFrom​(com.google.protobuf.Message other)  
      RouteAsPath.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)  
      RouteAsPath.Builder setAsLists​(int index, int value)
      [Output Only] The AS numbers of the AS Path.
      RouteAsPath.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)  
      RouteAsPath.Builder setPathSegmentType​(String value)
      [Output Only] The type of the AS Path, which can be one of the following values: - 'AS_SET': unordered set of autonomous systems that the route in has traversed - 'AS_SEQUENCE': ordered set of autonomous systems that the route has traversed - 'AS_CONFED_SEQUENCE': ordered set of Member Autonomous Systems in the local confederation that the route has traversed - 'AS_CONFED_SET': unordered set of Member Autonomous Systems in the local confederation that the route has traversed Check the PathSegmentType enum for the list of possible values.
      RouteAsPath.Builder setPathSegmentTypeBytes​(com.google.protobuf.ByteString value)
      [Output Only] The type of the AS Path, which can be one of the following values: - 'AS_SET': unordered set of autonomous systems that the route in has traversed - 'AS_SEQUENCE': ordered set of autonomous systems that the route has traversed - 'AS_CONFED_SEQUENCE': ordered set of Member Autonomous Systems in the local confederation that the route has traversed - 'AS_CONFED_SET': unordered set of Member Autonomous Systems in the local confederation that the route has traversed Check the PathSegmentType enum for the list of possible values.
      RouteAsPath.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)  
      RouteAsPath.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)  
      • Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder

        getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
      • Methods inherited from class com.google.protobuf.AbstractMessage.Builder

        findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
      • Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

        addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
      • Methods inherited from interface com.google.protobuf.Message.Builder

        mergeDelimitedFrom, mergeDelimitedFrom
      • Methods inherited from interface com.google.protobuf.MessageLite.Builder

        mergeFrom
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • 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<RouteAsPath.Builder>
      • clear

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

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

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

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

        public RouteAsPath.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<RouteAsPath.Builder>
      • setField

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

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

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

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

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

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

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

        public RouteAsPath.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<RouteAsPath.Builder>
        Throws:
        IOException
      • getAsListsList

        public List<Integer> getAsListsList()
         [Output Only] The AS numbers of the AS Path.
         
        repeated uint32 as_lists = 134112584;
        Specified by:
        getAsListsList in interface RouteAsPathOrBuilder
        Returns:
        A list containing the asLists.
      • getAsListsCount

        public int getAsListsCount()
         [Output Only] The AS numbers of the AS Path.
         
        repeated uint32 as_lists = 134112584;
        Specified by:
        getAsListsCount in interface RouteAsPathOrBuilder
        Returns:
        The count of asLists.
      • getAsLists

        public int getAsLists​(int index)
         [Output Only] The AS numbers of the AS Path.
         
        repeated uint32 as_lists = 134112584;
        Specified by:
        getAsLists in interface RouteAsPathOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The asLists at the given index.
      • setAsLists

        public RouteAsPath.Builder setAsLists​(int index,
                                              int value)
         [Output Only] The AS numbers of the AS Path.
         
        repeated uint32 as_lists = 134112584;
        Parameters:
        index - The index to set the value at.
        value - The asLists to set.
        Returns:
        This builder for chaining.
      • addAsLists

        public RouteAsPath.Builder addAsLists​(int value)
         [Output Only] The AS numbers of the AS Path.
         
        repeated uint32 as_lists = 134112584;
        Parameters:
        value - The asLists to add.
        Returns:
        This builder for chaining.
      • addAllAsLists

        public RouteAsPath.Builder addAllAsLists​(Iterable<? extends Integer> values)
         [Output Only] The AS numbers of the AS Path.
         
        repeated uint32 as_lists = 134112584;
        Parameters:
        values - The asLists to add.
        Returns:
        This builder for chaining.
      • clearAsLists

        public RouteAsPath.Builder clearAsLists()
         [Output Only] The AS numbers of the AS Path.
         
        repeated uint32 as_lists = 134112584;
        Returns:
        This builder for chaining.
      • hasPathSegmentType

        public boolean hasPathSegmentType()
         [Output Only] The type of the AS Path, which can be one of the following values: - 'AS_SET': unordered set of autonomous systems that the route in has traversed - 'AS_SEQUENCE': ordered set of autonomous systems that the route has traversed - 'AS_CONFED_SEQUENCE': ordered set of Member Autonomous Systems in the local confederation that the route has traversed - 'AS_CONFED_SET': unordered set of Member Autonomous Systems in the local confederation that the route has traversed
         Check the PathSegmentType enum for the list of possible values.
         
        optional string path_segment_type = 513464992;
        Specified by:
        hasPathSegmentType in interface RouteAsPathOrBuilder
        Returns:
        Whether the pathSegmentType field is set.
      • getPathSegmentType

        public String getPathSegmentType()
         [Output Only] The type of the AS Path, which can be one of the following values: - 'AS_SET': unordered set of autonomous systems that the route in has traversed - 'AS_SEQUENCE': ordered set of autonomous systems that the route has traversed - 'AS_CONFED_SEQUENCE': ordered set of Member Autonomous Systems in the local confederation that the route has traversed - 'AS_CONFED_SET': unordered set of Member Autonomous Systems in the local confederation that the route has traversed
         Check the PathSegmentType enum for the list of possible values.
         
        optional string path_segment_type = 513464992;
        Specified by:
        getPathSegmentType in interface RouteAsPathOrBuilder
        Returns:
        The pathSegmentType.
      • getPathSegmentTypeBytes

        public com.google.protobuf.ByteString getPathSegmentTypeBytes()
         [Output Only] The type of the AS Path, which can be one of the following values: - 'AS_SET': unordered set of autonomous systems that the route in has traversed - 'AS_SEQUENCE': ordered set of autonomous systems that the route has traversed - 'AS_CONFED_SEQUENCE': ordered set of Member Autonomous Systems in the local confederation that the route has traversed - 'AS_CONFED_SET': unordered set of Member Autonomous Systems in the local confederation that the route has traversed
         Check the PathSegmentType enum for the list of possible values.
         
        optional string path_segment_type = 513464992;
        Specified by:
        getPathSegmentTypeBytes in interface RouteAsPathOrBuilder
        Returns:
        The bytes for pathSegmentType.
      • setPathSegmentType

        public RouteAsPath.Builder setPathSegmentType​(String value)
         [Output Only] The type of the AS Path, which can be one of the following values: - 'AS_SET': unordered set of autonomous systems that the route in has traversed - 'AS_SEQUENCE': ordered set of autonomous systems that the route has traversed - 'AS_CONFED_SEQUENCE': ordered set of Member Autonomous Systems in the local confederation that the route has traversed - 'AS_CONFED_SET': unordered set of Member Autonomous Systems in the local confederation that the route has traversed
         Check the PathSegmentType enum for the list of possible values.
         
        optional string path_segment_type = 513464992;
        Parameters:
        value - The pathSegmentType to set.
        Returns:
        This builder for chaining.
      • clearPathSegmentType

        public RouteAsPath.Builder clearPathSegmentType()
         [Output Only] The type of the AS Path, which can be one of the following values: - 'AS_SET': unordered set of autonomous systems that the route in has traversed - 'AS_SEQUENCE': ordered set of autonomous systems that the route has traversed - 'AS_CONFED_SEQUENCE': ordered set of Member Autonomous Systems in the local confederation that the route has traversed - 'AS_CONFED_SET': unordered set of Member Autonomous Systems in the local confederation that the route has traversed
         Check the PathSegmentType enum for the list of possible values.
         
        optional string path_segment_type = 513464992;
        Returns:
        This builder for chaining.
      • setPathSegmentTypeBytes

        public RouteAsPath.Builder setPathSegmentTypeBytes​(com.google.protobuf.ByteString value)
         [Output Only] The type of the AS Path, which can be one of the following values: - 'AS_SET': unordered set of autonomous systems that the route in has traversed - 'AS_SEQUENCE': ordered set of autonomous systems that the route has traversed - 'AS_CONFED_SEQUENCE': ordered set of Member Autonomous Systems in the local confederation that the route has traversed - 'AS_CONFED_SET': unordered set of Member Autonomous Systems in the local confederation that the route has traversed
         Check the PathSegmentType enum for the list of possible values.
         
        optional string path_segment_type = 513464992;
        Parameters:
        value - The bytes for pathSegmentType to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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