Compute V1 Client - Class BgpRoute (1.26.0)

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

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

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ as_paths array<BgpRouteAsPath>

[Output only] AS-PATH for the route

↳ communities array

[Output only] BGP communities in human-readable A:B format.

↳ destination BgpRouteNetworkLayerReachabilityInformation

[Output only] Destination IP range for the route, in human-readable CIDR format

↳ med int

[Output only] BGP multi-exit discriminator

↳ origin string

[Output only] BGP origin (EGP, IGP or INCOMPLETE) Check the Origin enum for the list of possible values.

getAsPaths

[Output only] AS-PATH for the route

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setAsPaths

[Output only] AS-PATH for the route

Parameter
Name Description
var array<BgpRouteAsPath>
Returns
Type Description
$this

getCommunities

[Output only] BGP communities in human-readable A:B format.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setCommunities

[Output only] BGP communities in human-readable A:B format.

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

getDestination

[Output only] Destination IP range for the route, in human-readable CIDR format

Returns
Type Description
BgpRouteNetworkLayerReachabilityInformation|null

hasDestination

clearDestination

setDestination

[Output only] Destination IP range for the route, in human-readable CIDR format

Parameter
Name Description
var BgpRouteNetworkLayerReachabilityInformation
Returns
Type Description
$this

getMed

[Output only] BGP multi-exit discriminator

Returns
Type Description
int

hasMed

clearMed

setMed

[Output only] BGP multi-exit discriminator

Parameter
Name Description
var int
Returns
Type Description
$this

getOrigin

[Output only] BGP origin (EGP, IGP or INCOMPLETE) Check the Origin enum for the list of possible values.

Returns
Type Description
string

hasOrigin

clearOrigin

setOrigin

[Output only] BGP origin (EGP, IGP or INCOMPLETE) Check the Origin enum for the list of possible values.

Parameter
Name Description
var string
Returns
Type Description
$this