Class BgpRouteAsPath.Builder (1.69.0)

public static final class BgpRouteAsPath.Builder extends GeneratedMessageV3.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] 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.

addAsns(int value)

public BgpRouteAsPath.Builder addAsns(int value)

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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] 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.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearType()

public BgpRouteAsPath.Builder clearType()

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

clone()

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

getAsns(int index)

public int getAsns(int index)

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

getAsnsCount()

public int getAsnsCount()

[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] 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] 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] 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] 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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAsns(int index, int value)

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

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setType(String value)

public BgpRouteAsPath.Builder setType(String value)

[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] 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.

setUnknownFields(UnknownFieldSet unknownFields)

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