Class Router.BgpPeer.Builder (0.5.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Router.BgpPeer.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Router.BgpPeer.Builder
Overrides

build()

public Router.BgpPeer build()
Returns
TypeDescription
Router.BgpPeer

buildPartial()

public Router.BgpPeer buildPartial()
Returns
TypeDescription
Router.BgpPeer

clear()

public Router.BgpPeer.Builder clear()
Returns
TypeDescription
Router.BgpPeer.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Router.BgpPeer.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Router.BgpPeer.Builder
Overrides

clearInterface()

public Router.BgpPeer.Builder clearInterface()

Name of the RouterInterface the BGP peer is associated with.

string interface = 2;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Router.BgpPeer.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Router.BgpPeer.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Router.BgpPeer.Builder

This builder for chaining.

clone()

public Router.BgpPeer.Builder clone()
Returns
TypeDescription
Router.BgpPeer.Builder
Overrides

getDefaultInstanceForType()

public Router.BgpPeer getDefaultInstanceForType()
Returns
TypeDescription
Router.BgpPeer

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getInterface()

public String getInterface()

Name of the RouterInterface the BGP peer is associated with.

string interface = 2;

Returns
TypeDescription
String

The interface.

getInterfaceBytes()

public ByteString getInterfaceBytes()

Name of the RouterInterface the BGP peer is associated with.

string interface = 2;

Returns
TypeDescription
ByteString

The bytes for interface.

getInterfaceIpv4Cidr()

public String getInterfaceIpv4Cidr()

IP range of the interface within Google.

string interface_ipv4_cidr = 3;

Returns
TypeDescription
String

The interfaceIpv4Cidr.

getInterfaceIpv4CidrBytes()

public ByteString getInterfaceIpv4CidrBytes()

IP range of the interface within Google.

string interface_ipv4_cidr = 3;

Returns
TypeDescription
ByteString

The bytes for interfaceIpv4Cidr.

getInterfaceIpv6Cidr()

public String getInterfaceIpv6Cidr()

IPv6 range of the interface within Google.

string interface_ipv6_cidr = 7;

Returns
TypeDescription
String

The interfaceIpv6Cidr.

getInterfaceIpv6CidrBytes()

public ByteString getInterfaceIpv6CidrBytes()

IPv6 range of the interface within Google.

string interface_ipv6_cidr = 7;

Returns
TypeDescription
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
TypeDescription
int

The localAsn.

getName()

public String getName()

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

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

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

string name = 1;

Returns
TypeDescription
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
TypeDescription
int

The peerAsn.

getPeerIpv4Cidr()

public String getPeerIpv4Cidr()

IP range of the BGP interface outside Google.

string peer_ipv4_cidr = 4;

Returns
TypeDescription
String

The peerIpv4Cidr.

getPeerIpv4CidrBytes()

public ByteString getPeerIpv4CidrBytes()

IP range of the BGP interface outside Google.

string peer_ipv4_cidr = 4;

Returns
TypeDescription
ByteString

The bytes for peerIpv4Cidr.

getPeerIpv6Cidr()

public String getPeerIpv6Cidr()

IPv6 range of the BGP interface outside Google.

string peer_ipv6_cidr = 6;

Returns
TypeDescription
String

The peerIpv6Cidr.

getPeerIpv6CidrBytes()

public ByteString getPeerIpv6CidrBytes()

IPv6 range of the BGP interface outside Google.

string peer_ipv6_cidr = 6;

Returns
TypeDescription
ByteString

The bytes for peerIpv6Cidr.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Router.BgpPeer other)

public Router.BgpPeer.Builder mergeFrom(Router.BgpPeer other)
Parameter
NameDescription
otherRouter.BgpPeer
Returns
TypeDescription
Router.BgpPeer.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Router.BgpPeer.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Router.BgpPeer.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Router.BgpPeer.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Router.BgpPeer.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Router.BgpPeer.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Router.BgpPeer.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Router.BgpPeer.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The interface to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for interface to set.

Returns
TypeDescription
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
NameDescription
valueString

The interfaceIpv4Cidr to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for interfaceIpv4Cidr to set.

Returns
TypeDescription
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
NameDescription
valueString

The interfaceIpv6Cidr to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for interfaceIpv6Cidr to set.

Returns
TypeDescription
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
NameDescription
valueint

The localAsn to set.

Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
valueint

The peerAsn to set.

Returns
TypeDescription
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
NameDescription
valueString

The peerIpv4Cidr to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for peerIpv4Cidr to set.

Returns
TypeDescription
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
NameDescription
valueString

The peerIpv6Cidr to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for peerIpv6Cidr to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Router.BgpPeer.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Router.BgpPeer.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Router.BgpPeer.Builder
Overrides