Interface BgpRouteAsPathOrBuilder (1.92.0)

public interface BgpRouteAsPathOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAsns(int index)

public abstract int getAsns(int index)

Output only. [Output only] ASNs in the path segment. When type is SEQUENCE, these are ordered.

repeated int32 asns = 3003767;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
int

The asns at the given index.

getAsns32(int index)

public abstract 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;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
int

The asns32 at the given index.

getAsns32Count()

public abstract 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;

Returns
Type Description
int

The count of asns32.

getAsns32List()

public abstract 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;

Returns
Type Description
List<Integer>

A list containing the asns32.

getAsnsCount()

public abstract int getAsnsCount()

Output only. [Output only] ASNs in the path segment. When type is SEQUENCE, these are ordered.

repeated int32 asns = 3003767;

Returns
Type Description
int

The count of asns.

getAsnsList()

public abstract List<Integer> getAsnsList()

Output only. [Output only] ASNs in the path segment. When type is SEQUENCE, these are ordered.

repeated int32 asns = 3003767;

Returns
Type Description
List<Integer>

A list containing the asns.

getType()

public abstract 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;

Returns
Type Description
String

The type.

getTypeBytes()

public abstract 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;

Returns
Type Description
ByteString

The bytes for type.

hasType()

public abstract 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;

Returns
Type Description
boolean

Whether the type field is set.