Class RouterStatus.BgpPeerStatus (0.23.0)

public static final class RouterStatus.BgpPeerStatus extends GeneratedMessageV3 implements RouterStatus.BgpPeerStatusOrBuilder

Status of a BGP peer.

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

Static Fields

IP_ADDRESS_FIELD_NUMBER

public static final int IP_ADDRESS_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

PEER_IP_ADDRESS_FIELD_NUMBER

public static final int PEER_IP_ADDRESS_FIELD_NUMBER
Field Value
Type Description
int

PREFIX_COUNTER_FIELD_NUMBER

public static final int PREFIX_COUNTER_FIELD_NUMBER
Field Value
Type Description
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
Type Description
int

STATUS_FIELD_NUMBER

public static final int STATUS_FIELD_NUMBER
Field Value
Type Description
int

UPTIME_FIELD_NUMBER

public static final int UPTIME_FIELD_NUMBER
Field Value
Type Description
int

UPTIME_SECONDS_FIELD_NUMBER

public static final int UPTIME_SECONDS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static RouterStatus.BgpPeerStatus getDefaultInstance()
Returns
Type Description
RouterStatus.BgpPeerStatus

getDescriptor()

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

newBuilder()

public static RouterStatus.BgpPeerStatus.Builder newBuilder()
Returns
Type Description
RouterStatus.BgpPeerStatus.Builder

newBuilder(RouterStatus.BgpPeerStatus prototype)

public static RouterStatus.BgpPeerStatus.Builder newBuilder(RouterStatus.BgpPeerStatus prototype)
Parameter
Name Description
prototype RouterStatus.BgpPeerStatus
Returns
Type Description
RouterStatus.BgpPeerStatus.Builder

parseDelimitedFrom(InputStream input)

public static RouterStatus.BgpPeerStatus parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
RouterStatus.BgpPeerStatus
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RouterStatus.BgpPeerStatus parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RouterStatus.BgpPeerStatus
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static RouterStatus.BgpPeerStatus parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
RouterStatus.BgpPeerStatus
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static RouterStatus.BgpPeerStatus parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RouterStatus.BgpPeerStatus
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static RouterStatus.BgpPeerStatus parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
RouterStatus.BgpPeerStatus
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static RouterStatus.BgpPeerStatus parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RouterStatus.BgpPeerStatus
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static RouterStatus.BgpPeerStatus parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
RouterStatus.BgpPeerStatus
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static RouterStatus.BgpPeerStatus parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RouterStatus.BgpPeerStatus
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static RouterStatus.BgpPeerStatus parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
RouterStatus.BgpPeerStatus
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RouterStatus.BgpPeerStatus parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RouterStatus.BgpPeerStatus
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static RouterStatus.BgpPeerStatus parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
RouterStatus.BgpPeerStatus
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static RouterStatus.BgpPeerStatus parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RouterStatus.BgpPeerStatus
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<RouterStatus.BgpPeerStatus> parser()
Returns
Type Description
Parser<BgpPeerStatus>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

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

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.

getParserForType()

public Parser<RouterStatus.BgpPeerStatus> getParserForType()
Returns
Type Description
Parser<BgpPeerStatus>
Overrides

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.

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public RouterStatus.BgpPeerStatus.Builder newBuilderForType()
Returns
Type Description
RouterStatus.BgpPeerStatus.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected RouterStatus.BgpPeerStatus.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
RouterStatus.BgpPeerStatus.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public RouterStatus.BgpPeerStatus.Builder toBuilder()
Returns
Type Description
RouterStatus.BgpPeerStatus.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException