Class RouteAsPath.Builder (1.28.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
TypeDescription
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
NameDescription
valuesIterable<? extends java.lang.Integer>

The asLists to add.

Returns
TypeDescription
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
NameDescription
valueint

The asLists to add.

Returns
TypeDescription
RouteAsPath.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RouteAsPath.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
RouteAsPath.Builder
Overrides

build()

public RouteAsPath build()
Returns
TypeDescription
RouteAsPath

buildPartial()

public RouteAsPath buildPartial()
Returns
TypeDescription
RouteAsPath

clear()

public RouteAsPath.Builder clear()
Returns
TypeDescription
RouteAsPath.Builder
Overrides

clearAsLists()

public RouteAsPath.Builder clearAsLists()

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

repeated uint32 as_lists = 134112584;

Returns
TypeDescription
RouteAsPath.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public RouteAsPath.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
RouteAsPath.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public RouteAsPath.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
RouteAsPath.Builder

This builder for chaining.

clone()

public RouteAsPath.Builder clone()
Returns
TypeDescription
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
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

getDescriptorForType()

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

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(RouteAsPath other)

public RouteAsPath.Builder mergeFrom(RouteAsPath other)
Parameter
NameDescription
otherRouteAsPath
Returns
TypeDescription
RouteAsPath.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RouteAsPath.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RouteAsPath.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public RouteAsPath.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
RouteAsPath.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RouteAsPath.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueint

The asLists to set.

Returns
TypeDescription
RouteAsPath.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public RouteAsPath.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The pathSegmentType to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for pathSegmentType to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
RouteAsPath.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final RouteAsPath.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RouteAsPath.Builder
Overrides