Package com.google.cloud.compute.v1
Interface BgpRouteAsPathOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
BgpRouteAsPath,BgpRouteAsPath.Builder
@Generated
public interface BgpRouteAsPathOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getAsnsList
Output only. [Output only] ASNs in the path segment. When type is SEQUENCE, these are ordered.
repeated int32 asns = 3003767;- Returns:
- A list containing the asns.
-
getAsnsCount
int getAsnsCount()Output only. [Output only] ASNs in the path segment. When type is SEQUENCE, these are ordered.
repeated int32 asns = 3003767;- Returns:
- The count of asns.
-
getAsns
int getAsns(int index) Output only. [Output only] ASNs in the path segment. When type is SEQUENCE, these are ordered.
repeated int32 asns = 3003767;- Parameters:
index- The index of the element to return.- Returns:
- The asns at the given index.
-
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:
- A list containing the asns32.
-
getAsns32Count
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:
- The count of asns32.
-
getAsns32
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;- Parameters:
index- The index of the element to return.- Returns:
- The asns32 at the given index.
-
hasType
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:
- Whether the type field is set.
-
getType
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:
- The type.
-
getTypeBytes
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;- Returns:
- The bytes for type.
-