Interface BgpRouteAsPathOrBuilder (1.69.0)

public interface BgpRouteAsPathOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAsns(int index)

public abstract int getAsns(int index)

[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.

getAsnsCount()

public abstract int getAsnsCount()

[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] 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] 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] 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] 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.