Class RouteAsPath (1.16.0)

public final class RouteAsPath extends GeneratedMessageV3 implements RouteAsPathOrBuilder

Protobuf type google.cloud.compute.v1.RouteAsPath

Static Fields

AS_LISTS_FIELD_NUMBER

public static final int AS_LISTS_FIELD_NUMBER
Field Value
TypeDescription
int

PATH_SEGMENT_TYPE_FIELD_NUMBER

public static final int PATH_SEGMENT_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static RouteAsPath getDefaultInstance()
Returns
TypeDescription
RouteAsPath

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static RouteAsPath.Builder newBuilder()
Returns
TypeDescription
RouteAsPath.Builder

newBuilder(RouteAsPath prototype)

public static RouteAsPath.Builder newBuilder(RouteAsPath prototype)
Parameter
NameDescription
prototypeRouteAsPath
Returns
TypeDescription
RouteAsPath.Builder

parseDelimitedFrom(InputStream input)

public static RouteAsPath parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
RouteAsPath
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RouteAsPath parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RouteAsPath
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static RouteAsPath parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
RouteAsPath
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static RouteAsPath parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RouteAsPath
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static RouteAsPath parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
RouteAsPath
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static RouteAsPath parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RouteAsPath
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static RouteAsPath parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
RouteAsPath
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static RouteAsPath parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RouteAsPath
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static RouteAsPath parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
RouteAsPath
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RouteAsPath parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RouteAsPath
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static RouteAsPath parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
RouteAsPath
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static RouteAsPath parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RouteAsPath
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<RouteAsPath> parser()
Returns
TypeDescription
Parser<RouteAsPath>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAsLists(int index)

public int getAsLists(int index)

[Output Only] The AS numbers of the AS Path.

repeated uint32 as_lists = 134112584;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
int

The asLists at the given index.

getAsListsCount()

public int getAsListsCount()

[Output Only] The AS numbers of the AS Path.

repeated uint32 as_lists = 134112584;

Returns
TypeDescription
int

The count of asLists.

getAsListsList()

public List<Integer> getAsListsList()

[Output Only] The AS numbers of the AS Path.

repeated uint32 as_lists = 134112584;

Returns
TypeDescription
List<Integer>

A list containing the asLists.

getDefaultInstanceForType()

public RouteAsPath getDefaultInstanceForType()
Returns
TypeDescription
RouteAsPath

getParserForType()

public Parser<RouteAsPath> getParserForType()
Returns
TypeDescription
Parser<RouteAsPath>
Overrides

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;

Returns
TypeDescription
String

The pathSegmentType.

getPathSegmentTypeBytes()

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

Returns
TypeDescription
ByteString

The bytes for pathSegmentType.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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;

Returns
TypeDescription
boolean

Whether the pathSegmentType field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public RouteAsPath.Builder newBuilderForType()
Returns
TypeDescription
RouteAsPath.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected RouteAsPath.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
RouteAsPath.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public RouteAsPath.Builder toBuilder()
Returns
TypeDescription
RouteAsPath.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException