Class RouteAsPath.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<RouteAsPath.Builder>
com.google.cloud.compute.v1.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.GeneratedMessage.Builder<RouteAsPath.Builder> implements RouteAsPathOrBuilder
 
Protobuf type google.cloud.compute.v1.RouteAsPath
  • Method Summary

    Modifier and Type
    Method
    Description
    addAllAsLists(Iterable<? extends Integer> values)
    [Output Only] The AS numbers of the AS Path.
    addAsLists(int value)
    [Output Only] The AS numbers of the AS Path.
     
     
     
    [Output Only] The AS numbers of the AS Path.
    [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.
    int
    getAsLists(int index)
    [Output Only] The AS numbers of the AS Path.
    int
    [Output Only] The AS numbers of the AS Path.
    [Output Only] The AS numbers of the AS Path.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    [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
    [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
    [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.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    setAsLists(int index, int value)
    [Output Only] The AS numbers of the AS Path.
    [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.
    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.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, 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 class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    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 Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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
    • 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>
    • mergeFrom

      public RouteAsPath.Builder mergeFrom(RouteAsPath other)
    • isInitialized

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