Compute V1 Client - Class BgpRouteAsPath (1.26.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.

↳ 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

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