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

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

PEER_IP_ADDRESS_FIELD_NUMBER

public static final int PEER_IP_ADDRESS_FIELD_NUMBER
Field Value
TypeDescription
int

PREFIX_COUNTER_FIELD_NUMBER

public static final int PREFIX_COUNTER_FIELD_NUMBER
Field Value
TypeDescription
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
TypeDescription
int

STATUS_FIELD_NUMBER

public static final int STATUS_FIELD_NUMBER
Field Value
TypeDescription
int

UPTIME_FIELD_NUMBER

public static final int UPTIME_FIELD_NUMBER
Field Value
TypeDescription
int

UPTIME_SECONDS_FIELD_NUMBER

public static final int UPTIME_SECONDS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static RouterStatus.BgpPeerStatus getDefaultInstance()
Returns
TypeDescription
RouterStatus.BgpPeerStatus

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static RouterStatus.BgpPeerStatus.Builder newBuilder()
Returns
TypeDescription
RouterStatus.BgpPeerStatus.Builder

newBuilder(RouterStatus.BgpPeerStatus prototype)

public static RouterStatus.BgpPeerStatus.Builder newBuilder(RouterStatus.BgpPeerStatus prototype)
Parameter
NameDescription
prototypeRouterStatus.BgpPeerStatus
Returns
TypeDescription
RouterStatus.BgpPeerStatus.Builder

parseDelimitedFrom(InputStream input)

public static RouterStatus.BgpPeerStatus parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
RouterStatus.BgpPeerStatus
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RouterStatus.BgpPeerStatus parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RouterStatus.BgpPeerStatus
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static RouterStatus.BgpPeerStatus parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
RouterStatus.BgpPeerStatus
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static RouterStatus.BgpPeerStatus parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RouterStatus.BgpPeerStatus
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static RouterStatus.BgpPeerStatus parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
RouterStatus.BgpPeerStatus
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static RouterStatus.BgpPeerStatus parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RouterStatus.BgpPeerStatus
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static RouterStatus.BgpPeerStatus parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
RouterStatus.BgpPeerStatus
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static RouterStatus.BgpPeerStatus parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RouterStatus.BgpPeerStatus
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static RouterStatus.BgpPeerStatus parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
RouterStatus.BgpPeerStatus
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RouterStatus.BgpPeerStatus parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RouterStatus.BgpPeerStatus
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static RouterStatus.BgpPeerStatus parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
RouterStatus.BgpPeerStatus
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static RouterStatus.BgpPeerStatus parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RouterStatus.BgpPeerStatus
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

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

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.

getParserForType()

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

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.

getPrefixCounterOrBuilder()

public RouterStatus.PrefixCounterOrBuilder getPrefixCounterOrBuilder()

A collection of counts for prefixes.

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

Returns
TypeDescription
RouterStatus.PrefixCounterOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public RouterStatus.BgpPeerStatus.Builder newBuilderForType()
Returns
TypeDescription
RouterStatus.BgpPeerStatus.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected RouterStatus.BgpPeerStatus.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
RouterStatus.BgpPeerStatus.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public RouterStatus.BgpPeerStatus.Builder toBuilder()
Returns
TypeDescription
RouterStatus.BgpPeerStatus.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException