Class BgpRouteAsPath.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BgpRouteAsPath.Builder>
com.google.cloud.compute.v1.BgpRouteAsPath.Builder
All Implemented Interfaces:
BgpRouteAsPathOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
BgpRouteAsPath

public static final class BgpRouteAsPath.Builder extends com.google.protobuf.GeneratedMessage.Builder<BgpRouteAsPath.Builder> implements BgpRouteAsPathOrBuilder
 
Protobuf type google.cloud.compute.v1.BgpRouteAsPath
  • 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<BgpRouteAsPath.Builder>
    • clear

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

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

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

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

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

      public BgpRouteAsPath.Builder mergeFrom(BgpRouteAsPath other)
    • isInitialized

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

      public BgpRouteAsPath.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<BgpRouteAsPath.Builder>
      Throws:
      IOException
    • getAsnsList

      public List<Integer> getAsnsList()
       Output only. [Output only] ASNs in the path segment. When type is SEQUENCE, these are
       ordered.
       
      repeated int32 asns = 3003767;
      Specified by:
      getAsnsList in interface BgpRouteAsPathOrBuilder
      Returns:
      A list containing the asns.
    • getAsnsCount

      public int getAsnsCount()
       Output only. [Output only] ASNs in the path segment. When type is SEQUENCE, these are
       ordered.
       
      repeated int32 asns = 3003767;
      Specified by:
      getAsnsCount in interface BgpRouteAsPathOrBuilder
      Returns:
      The count of asns.
    • getAsns

      public int getAsns(int index)
       Output only. [Output only] ASNs in the path segment. When type is SEQUENCE, these are
       ordered.
       
      repeated int32 asns = 3003767;
      Specified by:
      getAsns in interface BgpRouteAsPathOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The asns at the given index.
    • setAsns

      public BgpRouteAsPath.Builder setAsns(int index, int value)
       Output only. [Output only] ASNs in the path segment. When type is SEQUENCE, these are
       ordered.
       
      repeated int32 asns = 3003767;
      Parameters:
      index - The index to set the value at.
      value - The asns to set.
      Returns:
      This builder for chaining.
    • addAsns

      public BgpRouteAsPath.Builder addAsns(int value)
       Output only. [Output only] ASNs in the path segment. When type is SEQUENCE, these are
       ordered.
       
      repeated int32 asns = 3003767;
      Parameters:
      value - The asns to add.
      Returns:
      This builder for chaining.
    • addAllAsns

      public BgpRouteAsPath.Builder addAllAsns(Iterable<? extends Integer> values)
       Output only. [Output only] ASNs in the path segment. When type is SEQUENCE, these are
       ordered.
       
      repeated int32 asns = 3003767;
      Parameters:
      values - The asns to add.
      Returns:
      This builder for chaining.
    • clearAsns

      public BgpRouteAsPath.Builder clearAsns()
       Output only. [Output only] ASNs in the path segment. When type is SEQUENCE, these are
       ordered.
       
      repeated int32 asns = 3003767;
      Returns:
      This builder for chaining.
    • getAsns32List

      public List<Integer> getAsns32List()
       Output only. [Output only] ASNs in the path segment. This field is for better
       support of 32 bit ASNs as the other asns field suffers from overflow when
       the ASN is larger. When type is SEQUENCE, these are ordered.
       
      repeated uint32 asns32 = 202267158;
      Specified by:
      getAsns32List in interface BgpRouteAsPathOrBuilder
      Returns:
      A list containing the asns32.
    • getAsns32Count

      public int getAsns32Count()
       Output only. [Output only] ASNs in the path segment. This field is for better
       support of 32 bit ASNs as the other asns field suffers from overflow when
       the ASN is larger. When type is SEQUENCE, these are ordered.
       
      repeated uint32 asns32 = 202267158;
      Specified by:
      getAsns32Count in interface BgpRouteAsPathOrBuilder
      Returns:
      The count of asns32.
    • getAsns32

      public int getAsns32(int index)
       Output only. [Output only] ASNs in the path segment. This field is for better
       support of 32 bit ASNs as the other asns field suffers from overflow when
       the ASN is larger. When type is SEQUENCE, these are ordered.
       
      repeated uint32 asns32 = 202267158;
      Specified by:
      getAsns32 in interface BgpRouteAsPathOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The asns32 at the given index.
    • setAsns32

      public BgpRouteAsPath.Builder setAsns32(int index, int value)
       Output only. [Output only] ASNs in the path segment. This field is for better
       support of 32 bit ASNs as the other asns field suffers from overflow when
       the ASN is larger. When type is SEQUENCE, these are ordered.
       
      repeated uint32 asns32 = 202267158;
      Parameters:
      index - The index to set the value at.
      value - The asns32 to set.
      Returns:
      This builder for chaining.
    • addAsns32

      public BgpRouteAsPath.Builder addAsns32(int value)
       Output only. [Output only] ASNs in the path segment. This field is for better
       support of 32 bit ASNs as the other asns field suffers from overflow when
       the ASN is larger. When type is SEQUENCE, these are ordered.
       
      repeated uint32 asns32 = 202267158;
      Parameters:
      value - The asns32 to add.
      Returns:
      This builder for chaining.
    • addAllAsns32

      public BgpRouteAsPath.Builder addAllAsns32(Iterable<? extends Integer> values)
       Output only. [Output only] ASNs in the path segment. This field is for better
       support of 32 bit ASNs as the other asns field suffers from overflow when
       the ASN is larger. When type is SEQUENCE, these are ordered.
       
      repeated uint32 asns32 = 202267158;
      Parameters:
      values - The asns32 to add.
      Returns:
      This builder for chaining.
    • clearAsns32

      public BgpRouteAsPath.Builder clearAsns32()
       Output only. [Output only] ASNs in the path segment. This field is for better
       support of 32 bit ASNs as the other asns field suffers from overflow when
       the ASN is larger. When type is SEQUENCE, these are ordered.
       
      repeated uint32 asns32 = 202267158;
      Returns:
      This builder for chaining.
    • hasType

      public boolean hasType()
       Output only. [Output only] Type of AS-PATH segment (SEQUENCE or SET)
       Check the Type enum for the list of possible values.
       
      optional string type = 3575610;
      Specified by:
      hasType in interface BgpRouteAsPathOrBuilder
      Returns:
      Whether the type field is set.
    • getType

      public String getType()
       Output only. [Output only] Type of AS-PATH segment (SEQUENCE or SET)
       Check the Type enum for the list of possible values.
       
      optional string type = 3575610;
      Specified by:
      getType in interface BgpRouteAsPathOrBuilder
      Returns:
      The type.
    • getTypeBytes

      public com.google.protobuf.ByteString getTypeBytes()
       Output only. [Output only] Type of AS-PATH segment (SEQUENCE or SET)
       Check the Type enum for the list of possible values.
       
      optional string type = 3575610;
      Specified by:
      getTypeBytes in interface BgpRouteAsPathOrBuilder
      Returns:
      The bytes for type.
    • setType

      public BgpRouteAsPath.Builder setType(String value)
       Output only. [Output only] Type of AS-PATH segment (SEQUENCE or SET)
       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 BgpRouteAsPath.Builder clearType()
       Output only. [Output only] Type of AS-PATH segment (SEQUENCE or SET)
       Check the Type enum for the list of possible values.
       
      optional string type = 3575610;
      Returns:
      This builder for chaining.
    • setTypeBytes

      public BgpRouteAsPath.Builder setTypeBytes(com.google.protobuf.ByteString value)
       Output only. [Output only] Type of AS-PATH segment (SEQUENCE or SET)
       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.