Compute V1 Client - Class BgpRouteAsPath (2.3.0)

Reference documentation and code samples for the Compute V1 Client class BgpRouteAsPath.

Generated from protobuf message google.cloud.compute.v1.BgpRouteAsPath

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ asns array

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

↳ asns32 array

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

↳ type string

[Output only] Type of AS-PATH segment (SEQUENCE or SET) Check the Type enum for the list of possible values.

getAsns

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

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setAsns

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

Parameter
Name Description
var int[]
Returns
Type Description
$this

getAsns32

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

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setAsns32

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

Parameter
Name Description
var int[]
Returns
Type Description
$this

getType

[Output only] Type of AS-PATH segment (SEQUENCE or SET) Check the Type enum for the list of possible values.

Returns
Type Description
string

hasType

clearType

setType

[Output only] Type of AS-PATH segment (SEQUENCE or SET) Check the Type enum for the list of possible values.

Parameter
Name Description
var string
Returns
Type Description
$this