Class Router.BgpPeer.Builder (0.17.0)

public static final class Router.BgpPeer.Builder extends GeneratedMessageV3.Builder<Router.BgpPeer.Builder> implements Router.BgpPeerOrBuilder

BGPPeer defines the peer side layer-3 information for building the BGP session.

Protobuf type google.cloud.edgenetwork.v1.Router.BgpPeer

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Router.BgpPeer.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Router.BgpPeer.Builder
Overrides

build()

public Router.BgpPeer build()
Returns
Type Description
Router.BgpPeer

buildPartial()

public Router.BgpPeer buildPartial()
Returns
Type Description
Router.BgpPeer

clear()

public Router.BgpPeer.Builder clear()
Returns
Type Description
Router.BgpPeer.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Router.BgpPeer.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Router.BgpPeer.Builder
Overrides

clearInterface()

public Router.BgpPeer.Builder clearInterface()

Name of the RouterInterface the BGP peer is associated with.

string interface = 2;

Returns
Type Description
Router.BgpPeer.Builder

This builder for chaining.

clearInterfaceIpv4Cidr()

public Router.BgpPeer.Builder clearInterfaceIpv4Cidr()

IP range of the interface within Google.

string interface_ipv4_cidr = 3;

Returns
Type Description
Router.BgpPeer.Builder

This builder for chaining.

clearInterfaceIpv6Cidr()

public Router.BgpPeer.Builder clearInterfaceIpv6Cidr()

IPv6 range of the interface within Google.

string interface_ipv6_cidr = 7;

Returns
Type Description
Router.BgpPeer.Builder

This builder for chaining.

clearLocalAsn()

public Router.BgpPeer.Builder clearLocalAsn()

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.

uint32 local_asn = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Router.BgpPeer.Builder

This builder for chaining.

clearName()

public Router.BgpPeer.Builder clearName()

Name of this BGP peer. Unique within the Zones resource.

string name = 1;

Returns
Type Description
Router.BgpPeer.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Router.BgpPeer.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Router.BgpPeer.Builder
Overrides

clearPeerAsn()

public Router.BgpPeer.Builder clearPeerAsn()

Peer BGP Autonomous System Number (ASN). Each BGP interface may use a different value.

uint32 peer_asn = 5;

Returns
Type Description
Router.BgpPeer.Builder

This builder for chaining.

clearPeerIpv4Cidr()

public Router.BgpPeer.Builder clearPeerIpv4Cidr()

IP range of the BGP interface outside Google.

string peer_ipv4_cidr = 4;

Returns
Type Description
Router.BgpPeer.Builder

This builder for chaining.

clearPeerIpv6Cidr()

public Router.BgpPeer.Builder clearPeerIpv6Cidr()

IPv6 range of the BGP interface outside Google.

string peer_ipv6_cidr = 6;

Returns
Type Description
Router.BgpPeer.Builder

This builder for chaining.

clone()

public Router.BgpPeer.Builder clone()
Returns
Type Description
Router.BgpPeer.Builder
Overrides

getDefaultInstanceForType()

public Router.BgpPeer getDefaultInstanceForType()
Returns
Type Description
Router.BgpPeer

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getInterface()

public String getInterface()

Name of the RouterInterface the BGP peer is associated with.

string interface = 2;

Returns
Type Description
String

The interface.

getInterfaceBytes()

public ByteString getInterfaceBytes()

Name of the RouterInterface the BGP peer is associated with.

string interface = 2;

Returns
Type Description
ByteString

The bytes for interface.

getInterfaceIpv4Cidr()

public String getInterfaceIpv4Cidr()

IP range of the interface within Google.

string interface_ipv4_cidr = 3;

Returns
Type Description
String

The interfaceIpv4Cidr.

getInterfaceIpv4CidrBytes()

public ByteString getInterfaceIpv4CidrBytes()

IP range of the interface within Google.

string interface_ipv4_cidr = 3;

Returns
Type Description
ByteString

The bytes for interfaceIpv4Cidr.

getInterfaceIpv6Cidr()

public String getInterfaceIpv6Cidr()

IPv6 range of the interface within Google.

string interface_ipv6_cidr = 7;

Returns
Type Description
String

The interfaceIpv6Cidr.

getInterfaceIpv6CidrBytes()

public ByteString getInterfaceIpv6CidrBytes()

IPv6 range of the interface within Google.

string interface_ipv6_cidr = 7;

Returns
Type Description
ByteString

The bytes for interfaceIpv6Cidr.

getLocalAsn()

public int 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.

uint32 local_asn = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The localAsn.

getName()

public String getName()

Name of this BGP peer. Unique within the Zones resource.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Name of this BGP peer. Unique within the Zones resource.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getPeerAsn()

public int getPeerAsn()

Peer BGP Autonomous System Number (ASN). Each BGP interface may use a different value.

uint32 peer_asn = 5;

Returns
Type Description
int

The peerAsn.

getPeerIpv4Cidr()

public String getPeerIpv4Cidr()

IP range of the BGP interface outside Google.

string peer_ipv4_cidr = 4;

Returns
Type Description
String

The peerIpv4Cidr.

getPeerIpv4CidrBytes()

public ByteString getPeerIpv4CidrBytes()

IP range of the BGP interface outside Google.

string peer_ipv4_cidr = 4;

Returns
Type Description
ByteString

The bytes for peerIpv4Cidr.

getPeerIpv6Cidr()

public String getPeerIpv6Cidr()

IPv6 range of the BGP interface outside Google.

string peer_ipv6_cidr = 6;

Returns
Type Description
String

The peerIpv6Cidr.

getPeerIpv6CidrBytes()

public ByteString getPeerIpv6CidrBytes()

IPv6 range of the BGP interface outside Google.

string peer_ipv6_cidr = 6;

Returns
Type Description
ByteString

The bytes for peerIpv6Cidr.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Router.BgpPeer other)

public Router.BgpPeer.Builder mergeFrom(Router.BgpPeer other)
Parameter
Name Description
other Router.BgpPeer
Returns
Type Description
Router.BgpPeer.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Router.BgpPeer.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Router.BgpPeer.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Router.BgpPeer.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Router.BgpPeer.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Router.BgpPeer.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Router.BgpPeer.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Router.BgpPeer.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Router.BgpPeer.Builder
Overrides

setInterface(String value)

public Router.BgpPeer.Builder setInterface(String value)

Name of the RouterInterface the BGP peer is associated with.

string interface = 2;

Parameter
Name Description
value String

The interface to set.

Returns
Type Description
Router.BgpPeer.Builder

This builder for chaining.

setInterfaceBytes(ByteString value)

public Router.BgpPeer.Builder setInterfaceBytes(ByteString value)

Name of the RouterInterface the BGP peer is associated with.

string interface = 2;

Parameter
Name Description
value ByteString

The bytes for interface to set.

Returns
Type Description
Router.BgpPeer.Builder

This builder for chaining.

setInterfaceIpv4Cidr(String value)

public Router.BgpPeer.Builder setInterfaceIpv4Cidr(String value)

IP range of the interface within Google.

string interface_ipv4_cidr = 3;

Parameter
Name Description
value String

The interfaceIpv4Cidr to set.

Returns
Type Description
Router.BgpPeer.Builder

This builder for chaining.

setInterfaceIpv4CidrBytes(ByteString value)

public Router.BgpPeer.Builder setInterfaceIpv4CidrBytes(ByteString value)

IP range of the interface within Google.

string interface_ipv4_cidr = 3;

Parameter
Name Description
value ByteString

The bytes for interfaceIpv4Cidr to set.

Returns
Type Description
Router.BgpPeer.Builder

This builder for chaining.

setInterfaceIpv6Cidr(String value)

public Router.BgpPeer.Builder setInterfaceIpv6Cidr(String value)

IPv6 range of the interface within Google.

string interface_ipv6_cidr = 7;

Parameter
Name Description
value String

The interfaceIpv6Cidr to set.

Returns
Type Description
Router.BgpPeer.Builder

This builder for chaining.

setInterfaceIpv6CidrBytes(ByteString value)

public Router.BgpPeer.Builder setInterfaceIpv6CidrBytes(ByteString value)

IPv6 range of the interface within Google.

string interface_ipv6_cidr = 7;

Parameter
Name Description
value ByteString

The bytes for interfaceIpv6Cidr to set.

Returns
Type Description
Router.BgpPeer.Builder

This builder for chaining.

setLocalAsn(int value)

public Router.BgpPeer.Builder setLocalAsn(int value)

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.

uint32 local_asn = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The localAsn to set.

Returns
Type Description
Router.BgpPeer.Builder

This builder for chaining.

setName(String value)

public Router.BgpPeer.Builder setName(String value)

Name of this BGP peer. Unique within the Zones resource.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Router.BgpPeer.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Router.BgpPeer.Builder setNameBytes(ByteString value)

Name of this BGP peer. Unique within the Zones resource.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Router.BgpPeer.Builder

This builder for chaining.

setPeerAsn(int value)

public Router.BgpPeer.Builder setPeerAsn(int value)

Peer BGP Autonomous System Number (ASN). Each BGP interface may use a different value.

uint32 peer_asn = 5;

Parameter
Name Description
value int

The peerAsn to set.

Returns
Type Description
Router.BgpPeer.Builder

This builder for chaining.

setPeerIpv4Cidr(String value)

public Router.BgpPeer.Builder setPeerIpv4Cidr(String value)

IP range of the BGP interface outside Google.

string peer_ipv4_cidr = 4;

Parameter
Name Description
value String

The peerIpv4Cidr to set.

Returns
Type Description
Router.BgpPeer.Builder

This builder for chaining.

setPeerIpv4CidrBytes(ByteString value)

public Router.BgpPeer.Builder setPeerIpv4CidrBytes(ByteString value)

IP range of the BGP interface outside Google.

string peer_ipv4_cidr = 4;

Parameter
Name Description
value ByteString

The bytes for peerIpv4Cidr to set.

Returns
Type Description
Router.BgpPeer.Builder

This builder for chaining.

setPeerIpv6Cidr(String value)

public Router.BgpPeer.Builder setPeerIpv6Cidr(String value)

IPv6 range of the BGP interface outside Google.

string peer_ipv6_cidr = 6;

Parameter
Name Description
value String

The peerIpv6Cidr to set.

Returns
Type Description
Router.BgpPeer.Builder

This builder for chaining.

setPeerIpv6CidrBytes(ByteString value)

public Router.BgpPeer.Builder setPeerIpv6CidrBytes(ByteString value)

IPv6 range of the BGP interface outside Google.

string peer_ipv6_cidr = 6;

Parameter
Name Description
value ByteString

The bytes for peerIpv6Cidr to set.

Returns
Type Description
Router.BgpPeer.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Router.BgpPeer.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Router.BgpPeer.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Router.BgpPeer.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Router.BgpPeer.Builder
Overrides