Compute V1 Client - Class BgpRoute (2.4.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. [Output only] AS-PATH for the route

↳ communities array

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

↳ destination BgpRouteNetworkLayerReachabilityInformation

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

↳ med int

Output only. [Output only] BGP multi-exit discriminator

↳ origin string

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

getAsPaths

Output only. [Output only] AS-PATH for the route

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setAsPaths

Output only. [Output only] AS-PATH for the route

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

getCommunities

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

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setCommunities

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

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

getDestination

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

Returns
Type Description
BgpRouteNetworkLayerReachabilityInformation|null

hasDestination

clearDestination

setDestination

Output only. [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. [Output only] BGP multi-exit discriminator

Returns
Type Description
int

hasMed

clearMed

setMed

Output only. [Output only] BGP multi-exit discriminator

Parameter
Name Description
var int
Returns
Type Description
$this

getOrigin

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