Reference documentation and code samples for the Google Cloud Edge Network V1 Client class BgpPeer.
BGPPeer defines the peer side layer-3 information for building the BGP
session.
Generated from protobuf messagegoogle.cloud.edgenetwork.v1.Router.BgpPeer
Namespace
Google \ Cloud \ EdgeNetwork \ V1 \ Router
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ name
string
Name of this BGP peer. Unique within the Zones resource.
↳ interface
string
Name of the RouterInterface the BGP peer is associated with.
↳ interface_ipv4_cidr
string
IP range of the interface within Google.
↳ interface_ipv6_cidr
string
IPv6 range of the interface within Google.
↳ peer_ipv4_cidr
string
IP range of the BGP interface outside Google.
↳ peer_ipv6_cidr
string
IPv6 range of the BGP interface outside Google.
↳ peer_asn
int
Peer BGP Autonomous System Number (ASN). Each BGP interface may use a different value.
↳ local_asn
int
Output only. Local BGP Autonomous System Number (ASN). This field is ST_NOT_REQUIRED because it stores private ASNs, which are meaningless outside the zone in which they are being used.
getName
Name of this BGP peer. Unique within the Zones resource.
Returns
Type
Description
string
setName
Name of this BGP peer. Unique within the Zones resource.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getInterface
Name of the RouterInterface the BGP peer is associated with.
Returns
Type
Description
string
setInterface
Name of the RouterInterface the BGP peer is associated with.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getInterfaceIpv4Cidr
IP range of the interface within Google.
Returns
Type
Description
string
setInterfaceIpv4Cidr
IP range of the interface within Google.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getInterfaceIpv6Cidr
IPv6 range of the interface within Google.
Returns
Type
Description
string
setInterfaceIpv6Cidr
IPv6 range of the interface within Google.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getPeerIpv4Cidr
IP range of the BGP interface outside Google.
Returns
Type
Description
string
setPeerIpv4Cidr
IP range of the BGP interface outside Google.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getPeerIpv6Cidr
IPv6 range of the BGP interface outside Google.
Returns
Type
Description
string
setPeerIpv6Cidr
IPv6 range of the BGP interface outside Google.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getPeerAsn
Peer BGP Autonomous System Number (ASN). Each BGP interface may use
a different value.
Returns
Type
Description
int
setPeerAsn
Peer BGP Autonomous System Number (ASN). Each BGP interface may use
a different value.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getLocalAsn
Output only. Local BGP Autonomous System Number (ASN).
This field is ST_NOT_REQUIRED because it stores private ASNs, which are
meaningless outside the zone in which they are being used.
Returns
Type
Description
int
setLocalAsn
Output only. Local BGP Autonomous System Number (ASN).
This field is ST_NOT_REQUIRED because it stores private ASNs, which are
meaningless outside the zone in which they are being used.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Edge Network V1 Client - Class BgpPeer (1.2.3)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.3 (latest)](/php/docs/reference/cloud-edgenetwork/latest/V1.Router.BgpPeer)\n- [1.2.2](/php/docs/reference/cloud-edgenetwork/1.2.2/V1.Router.BgpPeer)\n- [1.1.4](/php/docs/reference/cloud-edgenetwork/1.1.4/V1.Router.BgpPeer)\n- [1.0.0](/php/docs/reference/cloud-edgenetwork/1.0.0/V1.Router.BgpPeer)\n- [0.3.6](/php/docs/reference/cloud-edgenetwork/0.3.6/V1.Router.BgpPeer)\n- [0.2.0](/php/docs/reference/cloud-edgenetwork/0.2.0/V1.Router.BgpPeer)\n- [0.1.1](/php/docs/reference/cloud-edgenetwork/0.1.1/V1.Router.BgpPeer) \nReference documentation and code samples for the Google Cloud Edge Network V1 Client class BgpPeer.\n\nBGPPeer defines the peer side layer-3 information for building the BGP\nsession.\n\nGenerated from protobuf message `google.cloud.edgenetwork.v1.Router.BgpPeer`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ EdgeNetwork \\\\ V1 \\\\ Router\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nName of this BGP peer. Unique within the Zones resource.\n\n### setName\n\nName of this BGP peer. Unique within the Zones resource.\n\n### getInterface\n\nName of the RouterInterface the BGP peer is associated with.\n\n### setInterface\n\nName of the RouterInterface the BGP peer is associated with.\n\n### getInterfaceIpv4Cidr\n\nIP range of the interface within Google.\n\n### setInterfaceIpv4Cidr\n\nIP range of the interface within Google.\n\n### getInterfaceIpv6Cidr\n\nIPv6 range of the interface within Google.\n\n### setInterfaceIpv6Cidr\n\nIPv6 range of the interface within Google.\n\n### getPeerIpv4Cidr\n\nIP range of the BGP interface outside Google.\n\n### setPeerIpv4Cidr\n\nIP range of the BGP interface outside Google.\n\n### getPeerIpv6Cidr\n\nIPv6 range of the BGP interface outside Google.\n\n### setPeerIpv6Cidr\n\nIPv6 range of the BGP interface outside Google.\n\n### getPeerAsn\n\nPeer BGP Autonomous System Number (ASN). Each BGP interface may use\na different value.\n\n### setPeerAsn\n\nPeer BGP Autonomous System Number (ASN). Each BGP interface may use\na different value.\n\n### getLocalAsn\n\nOutput only. Local BGP Autonomous System Number (ASN).\n\nThis field is ST_NOT_REQUIRED because it stores private ASNs, which are\nmeaningless outside the zone in which they are being used.\n\n### setLocalAsn\n\nOutput only. Local BGP Autonomous System Number (ASN).\n\nThis field is ST_NOT_REQUIRED because it stores private ASNs, which are\nmeaningless outside the zone in which they are being used."]]