Class RouterStatus.BgpPeerStatus.Builder (0.1.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RouterStatus.BgpPeerStatus build()
Returns
TypeDescription
RouterStatus.BgpPeerStatus

buildPartial()

public RouterStatus.BgpPeerStatus buildPartial()
Returns
TypeDescription
RouterStatus.BgpPeerStatus

clear()

public RouterStatus.BgpPeerStatus.Builder clear()
Returns
TypeDescription
RouterStatus.BgpPeerStatus.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public RouterStatus.BgpPeerStatus.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
RouterStatus.BgpPeerStatus.Builder
Overrides

clearIpAddress()

public RouterStatus.BgpPeerStatus.Builder clearIpAddress()

IP address of the local BGP interface.

string ip_address = 2;

Returns
TypeDescription
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
TypeDescription
RouterStatus.BgpPeerStatus.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public RouterStatus.BgpPeerStatus.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
RouterStatus.BgpPeerStatus.Builder
Overrides

clearPeerIpAddress()

public RouterStatus.BgpPeerStatus.Builder clearPeerIpAddress()

IP address of the remote BGP interface.

string peer_ip_address = 3;

Returns
TypeDescription
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
TypeDescription
RouterStatus.BgpPeerStatus.Builder

clearState()

public RouterStatus.BgpPeerStatus.Builder clearState()

BGP state as specified in RFC1771.

string state = 5;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
RouterStatus.BgpPeerStatus.Builder

This builder for chaining.

clone()

public RouterStatus.BgpPeerStatus.Builder clone()
Returns
TypeDescription
RouterStatus.BgpPeerStatus.Builder
Overrides

getDefaultInstanceForType()

public RouterStatus.BgpPeerStatus getDefaultInstanceForType()
Returns
TypeDescription
RouterStatus.BgpPeerStatus

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getIpAddress()

public String getIpAddress()

IP address of the local BGP interface.

string ip_address = 2;

Returns
TypeDescription
String

The ipAddress.

getIpAddressBytes()

public ByteString getIpAddressBytes()

IP address of the local BGP interface.

string ip_address = 2;

Returns
TypeDescription
ByteString

The bytes for ipAddress.

getName()

public String getName()

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

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

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

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getPeerIpAddress()

public String getPeerIpAddress()

IP address of the remote BGP interface.

string peer_ip_address = 3;

Returns
TypeDescription
String

The peerIpAddress.

getPeerIpAddressBytes()

public ByteString getPeerIpAddressBytes()

IP address of the remote BGP interface.

string peer_ip_address = 3;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
RouterStatus.PrefixCounter.Builder

getPrefixCounterOrBuilder()

public RouterStatus.PrefixCounterOrBuilder getPrefixCounterOrBuilder()

A collection of counts for prefixes.

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

Returns
TypeDescription
RouterStatus.PrefixCounterOrBuilder

getState()

public String getState()

BGP state as specified in RFC1771.

string state = 5;

Returns
TypeDescription
String

The state.

getStateBytes()

public ByteString getStateBytes()

BGP state as specified in RFC1771.

string state = 5;

Returns
TypeDescription
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
TypeDescription
RouterStatus.BgpPeerStatus.BgpStatus

The status.

getStatusValue()

public int getStatusValue()

The current status of BGP.

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

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

The bytes for uptime.

getUptimeSeconds()

public long getUptimeSeconds()

Time this session has been up, in seconds.

int64 uptime_seconds = 7;

Returns
TypeDescription
long

The uptimeSeconds.

hasPrefixCounter()

public boolean hasPrefixCounter()

A collection of counts for prefixes.

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

Returns
TypeDescription
boolean

Whether the prefixCounter field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(RouterStatus.BgpPeerStatus other)

public RouterStatus.BgpPeerStatus.Builder mergeFrom(RouterStatus.BgpPeerStatus other)
Parameter
NameDescription
otherRouterStatus.BgpPeerStatus
Returns
TypeDescription
RouterStatus.BgpPeerStatus.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public RouterStatus.BgpPeerStatus.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueRouterStatus.PrefixCounter
Returns
TypeDescription
RouterStatus.BgpPeerStatus.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RouterStatus.BgpPeerStatus.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RouterStatus.BgpPeerStatus.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

The ipAddress to set.

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

The bytes for ipAddress to set.

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

The name to set.

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

The bytes for name to set.

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

The peerIpAddress to set.

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

The bytes for peerIpAddress to set.

Returns
TypeDescription
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
NameDescription
valueRouterStatus.PrefixCounter
Returns
TypeDescription
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
NameDescription
builderForValueRouterStatus.PrefixCounter.Builder
Returns
TypeDescription
RouterStatus.BgpPeerStatus.Builder

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

public RouterStatus.BgpPeerStatus.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
RouterStatus.BgpPeerStatus.Builder
Overrides

setState(String value)

public RouterStatus.BgpPeerStatus.Builder setState(String value)

BGP state as specified in RFC1771.

string state = 5;

Parameter
NameDescription
valueString

The state to set.

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

The bytes for state to set.

Returns
TypeDescription
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
NameDescription
valueRouterStatus.BgpPeerStatus.BgpStatus

The status to set.

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

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

Returns
TypeDescription
RouterStatus.BgpPeerStatus.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final RouterStatus.BgpPeerStatus.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The uptime to set.

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

The bytes for uptime to set.

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

The uptimeSeconds to set.

Returns
TypeDescription
RouterStatus.BgpPeerStatus.Builder

This builder for chaining.