Class RouteAsPath.Builder (1.52.0)

public static final class RouteAsPath.Builder extends GeneratedMessageV3.Builder<RouteAsPath.Builder> implements RouteAsPathOrBuilder

Protobuf type google.cloud.compute.v1.RouteAsPath

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllAsLists(Iterable<? extends Integer> values)

public RouteAsPath.Builder addAllAsLists(Iterable<? extends Integer> values)

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

repeated uint32 as_lists = 134112584;

Parameter
Name Description
values Iterable<? extends java.lang.Integer>

The asLists to add.

Returns
Type Description
RouteAsPath.Builder

This builder for chaining.

addAsLists(int value)

public RouteAsPath.Builder addAsLists(int value)

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

repeated uint32 as_lists = 134112584;

Parameter
Name Description
value int

The asLists to add.

Returns
Type Description
RouteAsPath.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RouteAsPath.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RouteAsPath.Builder
Overrides

build()

public RouteAsPath build()
Returns
Type Description
RouteAsPath

buildPartial()

public RouteAsPath buildPartial()
Returns
Type Description
RouteAsPath

clear()

public RouteAsPath.Builder clear()
Returns
Type Description
RouteAsPath.Builder
Overrides

clearAsLists()

public RouteAsPath.Builder clearAsLists()

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

repeated uint32 as_lists = 134112584;

Returns
Type Description
RouteAsPath.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public RouteAsPath.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
RouteAsPath.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public RouteAsPath.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
RouteAsPath.Builder
Overrides

clearPathSegmentType()

public RouteAsPath.Builder clearPathSegmentType()

[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
Type Description
RouteAsPath.Builder

This builder for chaining.

clone()

public RouteAsPath.Builder clone()
Returns
Type Description
RouteAsPath.Builder
Overrides

getAsLists(int index)

public int getAsLists(int index)

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

repeated uint32 as_lists = 134112584;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Type Description
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
Type Description
List<Integer>

A list containing the asLists.

getDefaultInstanceForType()

public RouteAsPath getDefaultInstanceForType()
Returns
Type Description
RouteAsPath

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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
Type Description
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
Type Description
ByteString

The bytes for pathSegmentType.

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
Type Description
boolean

Whether the pathSegmentType field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RouteAsPath other)

public RouteAsPath.Builder mergeFrom(RouteAsPath other)
Parameter
Name Description
other RouteAsPath
Returns
Type Description
RouteAsPath.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RouteAsPath.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RouteAsPath.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public RouteAsPath.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
RouteAsPath.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RouteAsPath.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RouteAsPath.Builder
Overrides

setAsLists(int index, int value)

public RouteAsPath.Builder setAsLists(int index, int value)

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

repeated uint32 as_lists = 134112584;

Parameters
Name Description
index int

The index to set the value at.

value int

The asLists to set.

Returns
Type Description
RouteAsPath.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public RouteAsPath.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RouteAsPath.Builder
Overrides

setPathSegmentType(String value)

public RouteAsPath.Builder setPathSegmentType(String value)

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

Parameter
Name Description
value String

The pathSegmentType to set.

Returns
Type Description
RouteAsPath.Builder

This builder for chaining.

setPathSegmentTypeBytes(ByteString value)

public RouteAsPath.Builder setPathSegmentTypeBytes(ByteString value)

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

Parameter
Name Description
value ByteString

The bytes for pathSegmentType to set.

Returns
Type Description
RouteAsPath.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public RouteAsPath.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
RouteAsPath.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final RouteAsPath.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RouteAsPath.Builder
Overrides