Send feedback
Class BgpRoute (1.86.0)
Stay organized with collections
Save and categorize content based on your preferences.
public final class BgpRoute extends GeneratedMessageV3 implements BgpRouteOrBuilder
Protobuf type google.cloud.compute.v1.BgpRoute
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
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 ()
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static BgpRoute . Builder newBuilder ()
newBuilder(BgpRoute prototype)
public static BgpRoute . Builder newBuilder ( BgpRoute prototype )
Parameter
Name
Description
prototype
BgpRoute
public static BgpRoute parseDelimitedFrom ( InputStream input )
public static BgpRoute parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(byte[] data)
public static BgpRoute parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static BgpRoute parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteString data)
public static BgpRoute parseFrom ( ByteString data )
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static BgpRoute parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static BgpRoute parseFrom ( CodedInputStream input )
public static BgpRoute parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static BgpRoute parseFrom ( InputStream input )
public static BgpRoute parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteBuffer data)
public static BgpRoute parseFrom ( ByteBuffer data )
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static BgpRoute parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
parser()
public static Parser<BgpRoute> parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
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
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;
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
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;
getDefaultInstanceForType()
public BgpRoute getDefaultInstanceForType ()
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;
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;
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 ()
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()
[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()
Returns
Type
Description
int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public BgpRoute . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected BgpRoute . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
toBuilder()
public BgpRoute . Builder toBuilder ()
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-11 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-11 UTC."],[],[]]