Class BgpRouteAsPath.Builder (1.93.0)

public static final class BgpRouteAsPath.Builder extends GeneratedMessage.Builder<BgpRouteAsPath.Builder> implements BgpRouteAsPathOrBuilder

Protobuf type google.cloud.compute.v1.BgpRouteAsPath

Static Methods

getDescriptor()

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

Methods

addAllAsns(Iterable<? extends Integer> values)

public BgpRouteAsPath.Builder addAllAsns(Iterable<? extends Integer> values)

Output only. [Output only] ASNs in the path segment. When type is SEQUENCE, these are ordered.

repeated int32 asns = 3003767;

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

The asns to add.

Returns
Type Description
BgpRouteAsPath.Builder

This builder for chaining.

addAllAsns32(Iterable<? extends Integer> values)

public BgpRouteAsPath.Builder addAllAsns32(Iterable<? extends Integer> values)

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;

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

The asns32 to add.

Returns
Type Description
BgpRouteAsPath.Builder

This builder for chaining.

addAsns(int value)

public BgpRouteAsPath.Builder addAsns(int value)

Output only. [Output only] ASNs in the path segment. When type is SEQUENCE, these are ordered.

repeated int32 asns = 3003767;

Parameter
Name Description
value int

The asns to add.

Returns
Type Description
BgpRouteAsPath.Builder

This builder for chaining.

addAsns32(int value)

public BgpRouteAsPath.Builder addAsns32(int value)

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;

Parameter
Name Description
value int

The asns32 to add.

Returns
Type Description
BgpRouteAsPath.Builder

This builder for chaining.

build()

public BgpRouteAsPath build()
Returns
Type Description
BgpRouteAsPath

buildPartial()

public BgpRouteAsPath buildPartial()
Returns
Type Description
BgpRouteAsPath

clear()

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

clearAsns()

public BgpRouteAsPath.Builder clearAsns()

Output only. [Output only] ASNs in the path segment. When type is SEQUENCE, these are ordered.

repeated int32 asns = 3003767;

Returns
Type Description
BgpRouteAsPath.Builder

This builder for chaining.

clearAsns32()

public BgpRouteAsPath.Builder clearAsns32()

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

This builder for chaining.

clearType()

public BgpRouteAsPath.Builder clearType()

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

This builder for chaining.

getAsns(int index)

public int getAsns(int index)

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

getAsns32(int index)

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

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
int

The asns32 at the given index.

getAsns32Count()

public 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
Type Description
int

The count of asns32.

getAsns32List()

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

A list containing the asns32.

getAsnsCount()

public int getAsnsCount()

Output only. [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 List<Integer> getAsnsList()

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

getDefaultInstanceForType()

public BgpRouteAsPath getDefaultInstanceForType()
Returns
Type Description
BgpRouteAsPath

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getType()

public 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
Type Description
String

The type.

getTypeBytes()

public 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
Type Description
ByteString

The bytes for type.

hasType()

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

Whether the type field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BgpRouteAsPath other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setAsns(int index, int value)

public BgpRouteAsPath.Builder setAsns(int index, int value)

Output only. [Output only] ASNs in the path segment. When type is SEQUENCE, these are ordered.

repeated int32 asns = 3003767;

Parameters
Name Description
index int

The index to set the value at.

value int

The asns to set.

Returns
Type Description
BgpRouteAsPath.Builder

This builder for chaining.

setAsns32(int index, int value)

public BgpRouteAsPath.Builder setAsns32(int index, int value)

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
Name Description
index int

The index to set the value at.

value int

The asns32 to set.

Returns
Type Description
BgpRouteAsPath.Builder

This builder for chaining.

setType(String value)

public BgpRouteAsPath.Builder setType(String value)

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;

Parameter
Name Description
value String

The type to set.

Returns
Type Description
BgpRouteAsPath.Builder

This builder for chaining.

setTypeBytes(ByteString value)

public BgpRouteAsPath.Builder setTypeBytes(ByteString value)

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;

Parameter
Name Description
value ByteString

The bytes for type to set.

Returns
Type Description
BgpRouteAsPath.Builder

This builder for chaining.