Class BgpRoute (1.69.0)

public final class BgpRoute extends GeneratedMessageV3 implements BgpRouteOrBuilder

Protobuf type google.cloud.compute.v1.BgpRoute

Implements

BgpRouteOrBuilder

Static Fields

AS_PATHS_FIELD_NUMBER

public static final int AS_PATHS_FIELD_NUMBER
Field Value
Type Description
int

COMMUNITIES_FIELD_NUMBER

public static final int COMMUNITIES_FIELD_NUMBER
Field Value
Type Description
int

DESTINATION_FIELD_NUMBER

public static final int DESTINATION_FIELD_NUMBER
Field Value
Type Description
int

MED_FIELD_NUMBER

public static final int MED_FIELD_NUMBER
Field Value
Type Description
int

ORIGIN_FIELD_NUMBER

public static final int ORIGIN_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static BgpRoute getDefaultInstance()
Returns
Type Description
BgpRoute

getDescriptor()

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

newBuilder()

public static BgpRoute.Builder newBuilder()
Returns
Type Description
BgpRoute.Builder

newBuilder(BgpRoute prototype)

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

parseDelimitedFrom(InputStream input)

public static BgpRoute parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
BgpRoute
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static BgpRoute parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
BgpRoute
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static BgpRoute parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
BgpRoute
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static BgpRoute parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
BgpRoute
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static BgpRoute parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
BgpRoute
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<BgpRoute> parser()
Returns
Type Description
Parser<BgpRoute>

Methods

equals(Object obj)

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

getAsPaths(int index)

public BgpRouteAsPath getAsPaths(int index)

[Output only] AS-PATH for the route

repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929;

Parameter
Name Description
index int
Returns
Type Description
BgpRouteAsPath

getAsPathsCount()

public int getAsPathsCount()

[Output only] AS-PATH for the route

repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929;

Returns
Type Description
int

getAsPathsList()

public List<BgpRouteAsPath> getAsPathsList()

[Output only] AS-PATH for the route

repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929;

Returns
Type Description
List<BgpRouteAsPath>

getAsPathsOrBuilder(int index)

public BgpRouteAsPathOrBuilder getAsPathsOrBuilder(int index)

[Output only] AS-PATH for the route

repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929;

Parameter
Name Description
index int
Returns
Type Description
BgpRouteAsPathOrBuilder

getAsPathsOrBuilderList()

public List<? extends BgpRouteAsPathOrBuilder> getAsPathsOrBuilderList()

[Output only] AS-PATH for the route

repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929;

Returns
Type Description
List<? extends com.google.cloud.compute.v1.BgpRouteAsPathOrBuilder>

getCommunities(int index)

public String getCommunities(int index)

[Output only] BGP communities in human-readable A:B format.

repeated string communities = 188262983;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The communities at the given index.

getCommunitiesBytes(int index)

public ByteString getCommunitiesBytes(int index)

[Output only] BGP communities in human-readable A:B format.

repeated string communities = 188262983;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the communities at the given index.

getCommunitiesCount()

public int getCommunitiesCount()

[Output only] BGP communities in human-readable A:B format.

repeated string communities = 188262983;

Returns
Type Description
int

The count of communities.

getCommunitiesList()

public ProtocolStringList getCommunitiesList()

[Output only] BGP communities in human-readable A:B format.

repeated string communities = 188262983;

Returns
Type Description
ProtocolStringList

A list containing the communities.

getDefaultInstanceForType()

public BgpRoute getDefaultInstanceForType()
Returns
Type Description
BgpRoute

getDestination()

public BgpRouteNetworkLayerReachabilityInformation getDestination()

[Output only] Destination IP range for the route, in human-readable CIDR format

optional .google.cloud.compute.v1.BgpRouteNetworkLayerReachabilityInformation destination = 180765710;

Returns
Type Description
BgpRouteNetworkLayerReachabilityInformation

The destination.

getDestinationOrBuilder()

public BgpRouteNetworkLayerReachabilityInformationOrBuilder getDestinationOrBuilder()

[Output only] Destination IP range for the route, in human-readable CIDR format

optional .google.cloud.compute.v1.BgpRouteNetworkLayerReachabilityInformation destination = 180765710;

Returns
Type Description
BgpRouteNetworkLayerReachabilityInformationOrBuilder

getMed()

public int getMed()

[Output only] BGP multi-exit discriminator

optional uint32 med = 107980;

Returns
Type Description
int

The med.

getOrigin()

public String getOrigin()

[Output only] BGP origin (EGP, IGP or INCOMPLETE) Check the Origin enum for the list of possible values.

optional string origin = 65122086;

Returns
Type Description
String

The origin.

getOriginBytes()

public ByteString getOriginBytes()

[Output only] BGP origin (EGP, IGP or INCOMPLETE) Check the Origin enum for the list of possible values.

optional string origin = 65122086;

Returns
Type Description
ByteString

The bytes for origin.

getParserForType()

public Parser<BgpRoute> getParserForType()
Returns
Type Description
Parser<BgpRoute>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasDestination()

public boolean hasDestination()

[Output only] Destination IP range for the route, in human-readable CIDR format

optional .google.cloud.compute.v1.BgpRouteNetworkLayerReachabilityInformation destination = 180765710;

Returns
Type Description
boolean

Whether the destination field is set.

hasMed()

public boolean hasMed()

[Output only] BGP multi-exit discriminator

optional uint32 med = 107980;

Returns
Type Description
boolean

Whether the med field is set.

hasOrigin()

public boolean hasOrigin()

[Output only] BGP origin (EGP, IGP or INCOMPLETE) Check the Origin enum for the list of possible values.

optional string origin = 65122086;

Returns
Type Description
boolean

Whether the origin 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 BgpRoute.Builder newBuilderForType()
Returns
Type Description
BgpRoute.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public BgpRoute.Builder toBuilder()
Returns
Type Description
BgpRoute.Builder

writeTo(CodedOutputStream output)

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