Class RouterStatus.BgpPeerStatus.Builder (0.14.0)

public static final class RouterStatus.BgpPeerStatus.Builder extends GeneratedMessageV3.Builder<RouterStatus.BgpPeerStatus.Builder> implements RouterStatus.BgpPeerStatusOrBuilder

Status of a BGP peer.

Protobuf type google.cloud.edgenetwork.v1.RouterStatus.BgpPeerStatus

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RouterStatus.BgpPeerStatus build()
Returns
Type Description
RouterStatus.BgpPeerStatus

buildPartial()

public RouterStatus.BgpPeerStatus buildPartial()
Returns
Type Description
RouterStatus.BgpPeerStatus

clear()

public RouterStatus.BgpPeerStatus.Builder clear()
Returns
Type Description
RouterStatus.BgpPeerStatus.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public RouterStatus.BgpPeerStatus.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
RouterStatus.BgpPeerStatus.Builder
Overrides

clearIpAddress()

public RouterStatus.BgpPeerStatus.Builder clearIpAddress()

IP address of the local BGP interface.

string ip_address = 2;

Returns
Type Description
RouterStatus.BgpPeerStatus.Builder

This builder for chaining.

clearName()

public RouterStatus.BgpPeerStatus.Builder clearName()

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

string name = 1;

Returns
Type Description
RouterStatus.BgpPeerStatus.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public RouterStatus.BgpPeerStatus.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
RouterStatus.BgpPeerStatus.Builder
Overrides

clearPeerIpAddress()

public RouterStatus.BgpPeerStatus.Builder clearPeerIpAddress()

IP address of the remote BGP interface.

string peer_ip_address = 3;

Returns
Type Description
RouterStatus.BgpPeerStatus.Builder

This builder for chaining.

clearPrefixCounter()

public RouterStatus.BgpPeerStatus.Builder clearPrefixCounter()

A collection of counts for prefixes.

.google.cloud.edgenetwork.v1.RouterStatus.PrefixCounter prefix_counter = 8;

Returns
Type Description
RouterStatus.BgpPeerStatus.Builder

clearState()

public RouterStatus.BgpPeerStatus.Builder clearState()

BGP state as specified in RFC1771.

string state = 5;

Returns
Type Description
RouterStatus.BgpPeerStatus.Builder

This builder for chaining.

clearStatus()

public RouterStatus.BgpPeerStatus.Builder clearStatus()

The current status of BGP.

.google.cloud.edgenetwork.v1.RouterStatus.BgpPeerStatus.BgpStatus status = 4;

Returns
Type Description
RouterStatus.BgpPeerStatus.Builder

This builder for chaining.

clearUptime()

public RouterStatus.BgpPeerStatus.Builder clearUptime()

Time this session has been up. Format: 14 years, 51 weeks, 6 days, 23 hours, 59 minutes, 59 seconds

string uptime = 6;

Returns
Type Description
RouterStatus.BgpPeerStatus.Builder

This builder for chaining.

clearUptimeSeconds()

public RouterStatus.BgpPeerStatus.Builder clearUptimeSeconds()

Time this session has been up, in seconds.

int64 uptime_seconds = 7;

Returns
Type Description
RouterStatus.BgpPeerStatus.Builder

This builder for chaining.

clone()

public RouterStatus.BgpPeerStatus.Builder clone()
Returns
Type Description
RouterStatus.BgpPeerStatus.Builder
Overrides

getDefaultInstanceForType()

public RouterStatus.BgpPeerStatus getDefaultInstanceForType()
Returns
Type Description
RouterStatus.BgpPeerStatus

getDescriptorForType()

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

getIpAddress()

public String getIpAddress()

IP address of the local BGP interface.

string ip_address = 2;

Returns
Type Description
String

The ipAddress.

getIpAddressBytes()

public ByteString getIpAddressBytes()

IP address of the local BGP interface.

string ip_address = 2;

Returns
Type Description
ByteString

The bytes for ipAddress.

getName()

public String getName()

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

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

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

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getPeerIpAddress()

public String getPeerIpAddress()

IP address of the remote BGP interface.

string peer_ip_address = 3;

Returns
Type Description
String

The peerIpAddress.

getPeerIpAddressBytes()

public ByteString getPeerIpAddressBytes()

IP address of the remote BGP interface.

string peer_ip_address = 3;

Returns
Type Description
ByteString

The bytes for peerIpAddress.

getPrefixCounter()

public RouterStatus.PrefixCounter getPrefixCounter()

A collection of counts for prefixes.

.google.cloud.edgenetwork.v1.RouterStatus.PrefixCounter prefix_counter = 8;

Returns
Type Description
RouterStatus.PrefixCounter

The prefixCounter.

getPrefixCounterBuilder()

public RouterStatus.PrefixCounter.Builder getPrefixCounterBuilder()

A collection of counts for prefixes.

.google.cloud.edgenetwork.v1.RouterStatus.PrefixCounter prefix_counter = 8;

Returns
Type Description
RouterStatus.PrefixCounter.Builder

getPrefixCounterOrBuilder()

public RouterStatus.PrefixCounterOrBuilder getPrefixCounterOrBuilder()

A collection of counts for prefixes.

.google.cloud.edgenetwork.v1.RouterStatus.PrefixCounter prefix_counter = 8;

Returns
Type Description
RouterStatus.PrefixCounterOrBuilder

getState()

public String getState()

BGP state as specified in RFC1771.

string state = 5;

Returns
Type Description
String

The state.

getStateBytes()

public ByteString getStateBytes()

BGP state as specified in RFC1771.

string state = 5;

Returns
Type Description
ByteString

The bytes for state.

getStatus()

public RouterStatus.BgpPeerStatus.BgpStatus getStatus()

The current status of BGP.

.google.cloud.edgenetwork.v1.RouterStatus.BgpPeerStatus.BgpStatus status = 4;

Returns
Type Description
RouterStatus.BgpPeerStatus.BgpStatus

The status.

getStatusValue()

public int getStatusValue()

The current status of BGP.

.google.cloud.edgenetwork.v1.RouterStatus.BgpPeerStatus.BgpStatus status = 4;

Returns
Type Description
int

The enum numeric value on the wire for status.

getUptime()

public String getUptime()

Time this session has been up. Format: 14 years, 51 weeks, 6 days, 23 hours, 59 minutes, 59 seconds

string uptime = 6;

Returns
Type Description
String

The uptime.

getUptimeBytes()

public ByteString getUptimeBytes()

Time this session has been up. Format: 14 years, 51 weeks, 6 days, 23 hours, 59 minutes, 59 seconds

string uptime = 6;

Returns
Type Description
ByteString

The bytes for uptime.

getUptimeSeconds()

public long getUptimeSeconds()

Time this session has been up, in seconds.

int64 uptime_seconds = 7;

Returns
Type Description
long

The uptimeSeconds.

hasPrefixCounter()

public boolean hasPrefixCounter()

A collection of counts for prefixes.

.google.cloud.edgenetwork.v1.RouterStatus.PrefixCounter prefix_counter = 8;

Returns
Type Description
boolean

Whether the prefixCounter field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RouterStatus.BgpPeerStatus other)

public RouterStatus.BgpPeerStatus.Builder mergeFrom(RouterStatus.BgpPeerStatus other)
Parameter
Name Description
other RouterStatus.BgpPeerStatus
Returns
Type Description
RouterStatus.BgpPeerStatus.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public RouterStatus.BgpPeerStatus.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
RouterStatus.BgpPeerStatus.Builder
Overrides

mergePrefixCounter(RouterStatus.PrefixCounter value)

public RouterStatus.BgpPeerStatus.Builder mergePrefixCounter(RouterStatus.PrefixCounter value)

A collection of counts for prefixes.

.google.cloud.edgenetwork.v1.RouterStatus.PrefixCounter prefix_counter = 8;

Parameter
Name Description
value RouterStatus.PrefixCounter
Returns
Type Description
RouterStatus.BgpPeerStatus.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RouterStatus.BgpPeerStatus.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RouterStatus.BgpPeerStatus.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setIpAddress(String value)

public RouterStatus.BgpPeerStatus.Builder setIpAddress(String value)

IP address of the local BGP interface.

string ip_address = 2;

Parameter
Name Description
value String

The ipAddress to set.

Returns
Type Description
RouterStatus.BgpPeerStatus.Builder

This builder for chaining.

setIpAddressBytes(ByteString value)

public RouterStatus.BgpPeerStatus.Builder setIpAddressBytes(ByteString value)

IP address of the local BGP interface.

string ip_address = 2;

Parameter
Name Description
value ByteString

The bytes for ipAddress to set.

Returns
Type Description
RouterStatus.BgpPeerStatus.Builder

This builder for chaining.

setName(String value)

public RouterStatus.BgpPeerStatus.Builder setName(String value)

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

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
RouterStatus.BgpPeerStatus.Builder

This builder for chaining.

setNameBytes(ByteString value)

public RouterStatus.BgpPeerStatus.Builder setNameBytes(ByteString value)

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

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
RouterStatus.BgpPeerStatus.Builder

This builder for chaining.

setPeerIpAddress(String value)

public RouterStatus.BgpPeerStatus.Builder setPeerIpAddress(String value)

IP address of the remote BGP interface.

string peer_ip_address = 3;

Parameter
Name Description
value String

The peerIpAddress to set.

Returns
Type Description
RouterStatus.BgpPeerStatus.Builder

This builder for chaining.

setPeerIpAddressBytes(ByteString value)

public RouterStatus.BgpPeerStatus.Builder setPeerIpAddressBytes(ByteString value)

IP address of the remote BGP interface.

string peer_ip_address = 3;

Parameter
Name Description
value ByteString

The bytes for peerIpAddress to set.

Returns
Type Description
RouterStatus.BgpPeerStatus.Builder

This builder for chaining.

setPrefixCounter(RouterStatus.PrefixCounter value)

public RouterStatus.BgpPeerStatus.Builder setPrefixCounter(RouterStatus.PrefixCounter value)

A collection of counts for prefixes.

.google.cloud.edgenetwork.v1.RouterStatus.PrefixCounter prefix_counter = 8;

Parameter
Name Description
value RouterStatus.PrefixCounter
Returns
Type Description
RouterStatus.BgpPeerStatus.Builder

setPrefixCounter(RouterStatus.PrefixCounter.Builder builderForValue)

public RouterStatus.BgpPeerStatus.Builder setPrefixCounter(RouterStatus.PrefixCounter.Builder builderForValue)

A collection of counts for prefixes.

.google.cloud.edgenetwork.v1.RouterStatus.PrefixCounter prefix_counter = 8;

Parameter
Name Description
builderForValue RouterStatus.PrefixCounter.Builder
Returns
Type Description
RouterStatus.BgpPeerStatus.Builder

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

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

setState(String value)

public RouterStatus.BgpPeerStatus.Builder setState(String value)

BGP state as specified in RFC1771.

string state = 5;

Parameter
Name Description
value String

The state to set.

Returns
Type Description
RouterStatus.BgpPeerStatus.Builder

This builder for chaining.

setStateBytes(ByteString value)

public RouterStatus.BgpPeerStatus.Builder setStateBytes(ByteString value)

BGP state as specified in RFC1771.

string state = 5;

Parameter
Name Description
value ByteString

The bytes for state to set.

Returns
Type Description
RouterStatus.BgpPeerStatus.Builder

This builder for chaining.

setStatus(RouterStatus.BgpPeerStatus.BgpStatus value)

public RouterStatus.BgpPeerStatus.Builder setStatus(RouterStatus.BgpPeerStatus.BgpStatus value)

The current status of BGP.

.google.cloud.edgenetwork.v1.RouterStatus.BgpPeerStatus.BgpStatus status = 4;

Parameter
Name Description
value RouterStatus.BgpPeerStatus.BgpStatus

The status to set.

Returns
Type Description
RouterStatus.BgpPeerStatus.Builder

This builder for chaining.

setStatusValue(int value)

public RouterStatus.BgpPeerStatus.Builder setStatusValue(int value)

The current status of BGP.

.google.cloud.edgenetwork.v1.RouterStatus.BgpPeerStatus.BgpStatus status = 4;

Parameter
Name Description
value int

The enum numeric value on the wire for status to set.

Returns
Type Description
RouterStatus.BgpPeerStatus.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final RouterStatus.BgpPeerStatus.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RouterStatus.BgpPeerStatus.Builder
Overrides

setUptime(String value)

public RouterStatus.BgpPeerStatus.Builder setUptime(String value)

Time this session has been up. Format: 14 years, 51 weeks, 6 days, 23 hours, 59 minutes, 59 seconds

string uptime = 6;

Parameter
Name Description
value String

The uptime to set.

Returns
Type Description
RouterStatus.BgpPeerStatus.Builder

This builder for chaining.

setUptimeBytes(ByteString value)

public RouterStatus.BgpPeerStatus.Builder setUptimeBytes(ByteString value)

Time this session has been up. Format: 14 years, 51 weeks, 6 days, 23 hours, 59 minutes, 59 seconds

string uptime = 6;

Parameter
Name Description
value ByteString

The bytes for uptime to set.

Returns
Type Description
RouterStatus.BgpPeerStatus.Builder

This builder for chaining.

setUptimeSeconds(long value)

public RouterStatus.BgpPeerStatus.Builder setUptimeSeconds(long value)

Time this session has been up, in seconds.

int64 uptime_seconds = 7;

Parameter
Name Description
value long

The uptimeSeconds to set.

Returns
Type Description
RouterStatus.BgpPeerStatus.Builder

This builder for chaining.