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
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ as_pathsarray<BgpRouteAsPath>

[Output only] AS-PATH for the route

↳ communitiesarray

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

↳ destinationBgpRouteNetworkLayerReachabilityInformation

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

↳ medint

[Output only] BGP multi-exit discriminator

↳ originstring

[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
TypeDescription
Google\Protobuf\Internal\RepeatedField

setAsPaths

[Output only] AS-PATH for the route

Parameter
NameDescription
vararray<BgpRouteAsPath>
Returns
TypeDescription
$this

getCommunities

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

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setCommunities

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

Parameter
NameDescription
varstring[]
Returns
TypeDescription
$this

getDestination

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

Returns
TypeDescription
BgpRouteNetworkLayerReachabilityInformation|null

hasDestination

clearDestination

setDestination

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

Parameter
NameDescription
varBgpRouteNetworkLayerReachabilityInformation
Returns
TypeDescription
$this

getMed

[Output only] BGP multi-exit discriminator

Returns
TypeDescription
int

hasMed

clearMed

setMed

[Output only] BGP multi-exit discriminator

Parameter
NameDescription
varint
Returns
TypeDescription
$this

getOrigin

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

Returns
TypeDescription
string

hasOrigin

clearOrigin

setOrigin

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

Parameter
NameDescription
varstring
Returns
TypeDescription
$this