Class Route (1.24.0)

public final class Route extends GeneratedMessageV3 implements RouteOrBuilder

Represents a Route resource. A route defines a path from VM instances in the VPC network to a specific destination. This destination can be inside or outside the VPC network. For more information, read the Routes overview.

Protobuf type google.cloud.compute.v1.Route

Implements

RouteOrBuilder

Static Fields

AS_PATHS_FIELD_NUMBER

public static final int AS_PATHS_FIELD_NUMBER
Field Value
TypeDescription
int

CREATION_TIMESTAMP_FIELD_NUMBER

public static final int CREATION_TIMESTAMP_FIELD_NUMBER
Field Value
TypeDescription
int

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
TypeDescription
int

DEST_RANGE_FIELD_NUMBER

public static final int DEST_RANGE_FIELD_NUMBER
Field Value
TypeDescription
int

ID_FIELD_NUMBER

public static final int ID_FIELD_NUMBER
Field Value
TypeDescription
int

KIND_FIELD_NUMBER

public static final int KIND_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

NETWORK_FIELD_NUMBER

public static final int NETWORK_FIELD_NUMBER
Field Value
TypeDescription
int

NEXT_HOP_GATEWAY_FIELD_NUMBER

public static final int NEXT_HOP_GATEWAY_FIELD_NUMBER
Field Value
TypeDescription
int

NEXT_HOP_ILB_FIELD_NUMBER

public static final int NEXT_HOP_ILB_FIELD_NUMBER
Field Value
TypeDescription
int

NEXT_HOP_INSTANCE_FIELD_NUMBER

public static final int NEXT_HOP_INSTANCE_FIELD_NUMBER
Field Value
TypeDescription
int

NEXT_HOP_IP_FIELD_NUMBER

public static final int NEXT_HOP_IP_FIELD_NUMBER
Field Value
TypeDescription
int

NEXT_HOP_NETWORK_FIELD_NUMBER

public static final int NEXT_HOP_NETWORK_FIELD_NUMBER
Field Value
TypeDescription
int

NEXT_HOP_PEERING_FIELD_NUMBER

public static final int NEXT_HOP_PEERING_FIELD_NUMBER
Field Value
TypeDescription
int

NEXT_HOP_VPN_TUNNEL_FIELD_NUMBER

public static final int NEXT_HOP_VPN_TUNNEL_FIELD_NUMBER
Field Value
TypeDescription
int

PRIORITY_FIELD_NUMBER

public static final int PRIORITY_FIELD_NUMBER
Field Value
TypeDescription
int

ROUTE_STATUS_FIELD_NUMBER

public static final int ROUTE_STATUS_FIELD_NUMBER
Field Value
TypeDescription
int

ROUTE_TYPE_FIELD_NUMBER

public static final int ROUTE_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int
public static final int SELF_LINK_FIELD_NUMBER
Field Value
TypeDescription
int

TAGS_FIELD_NUMBER

public static final int TAGS_FIELD_NUMBER
Field Value
TypeDescription
int

WARNINGS_FIELD_NUMBER

public static final int WARNINGS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Route getDefaultInstance()
Returns
TypeDescription
Route

getDescriptor()

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

newBuilder()

public static Route.Builder newBuilder()
Returns
TypeDescription
Route.Builder

newBuilder(Route prototype)

public static Route.Builder newBuilder(Route prototype)
Parameter
NameDescription
prototypeRoute
Returns
TypeDescription
Route.Builder

parseDelimitedFrom(InputStream input)

public static Route parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Route
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static Route parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Route
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static Route parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Route
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static Route parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Route
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static Route parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Route
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<Route> parser()
Returns
TypeDescription
Parser<Route>

Methods

equals(Object obj)

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

getAsPaths(int index)

public RouteAsPath getAsPaths(int index)

[Output Only] AS path.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
RouteAsPath

getAsPathsCount()

public int getAsPathsCount()

[Output Only] AS path.

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

Returns
TypeDescription
int

getAsPathsList()

public List<RouteAsPath> getAsPathsList()

[Output Only] AS path.

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

Returns
TypeDescription
List<RouteAsPath>

getAsPathsOrBuilder(int index)

public RouteAsPathOrBuilder getAsPathsOrBuilder(int index)

[Output Only] AS path.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
RouteAsPathOrBuilder

getAsPathsOrBuilderList()

public List<? extends RouteAsPathOrBuilder> getAsPathsOrBuilderList()

[Output Only] AS path.

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

Returns
TypeDescription
List<? extends com.google.cloud.compute.v1.RouteAsPathOrBuilder>

getCreationTimestamp()

public String getCreationTimestamp()

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
TypeDescription
String

The creationTimestamp.

getCreationTimestampBytes()

public ByteString getCreationTimestampBytes()

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
TypeDescription
ByteString

The bytes for creationTimestamp.

getDefaultInstanceForType()

public Route getDefaultInstanceForType()
Returns
TypeDescription
Route

getDescription()

public String getDescription()

An optional description of this resource. Provide this field when you create the resource.

optional string description = 422937596;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

An optional description of this resource. Provide this field when you create the resource.

optional string description = 422937596;

Returns
TypeDescription
ByteString

The bytes for description.

getDestRange()

public String getDestRange()

The destination range of outgoing packets that this route applies to. Both IPv4 and IPv6 are supported.

optional string dest_range = 381327712;

Returns
TypeDescription
String

The destRange.

getDestRangeBytes()

public ByteString getDestRangeBytes()

The destination range of outgoing packets that this route applies to. Both IPv4 and IPv6 are supported.

optional string dest_range = 381327712;

Returns
TypeDescription
ByteString

The bytes for destRange.

getId()

public long getId()

[Output Only] The unique identifier for the resource. This identifier is defined by the server.

optional uint64 id = 3355;

Returns
TypeDescription
long

The id.

getKind()

public String getKind()

[Output Only] Type of this resource. Always compute#routes for Route resources.

optional string kind = 3292052;

Returns
TypeDescription
String

The kind.

getKindBytes()

public ByteString getKindBytes()

[Output Only] Type of this resource. Always compute#routes for Route resources.

optional string kind = 3292052;

Returns
TypeDescription
ByteString

The bytes for kind.

getName()

public String getName()

Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z?. The first character must be a lowercase letter, and all following characters (except for the last character) must be a dash, lowercase letter, or digit. The last character must be a lowercase letter or digit.

optional string name = 3373707;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z?. The first character must be a lowercase letter, and all following characters (except for the last character) must be a dash, lowercase letter, or digit. The last character must be a lowercase letter or digit.

optional string name = 3373707;

Returns
TypeDescription
ByteString

The bytes for name.

getNetwork()

public String getNetwork()

Fully-qualified URL of the network that this route applies to.

optional string network = 232872494;

Returns
TypeDescription
String

The network.

getNetworkBytes()

public ByteString getNetworkBytes()

Fully-qualified URL of the network that this route applies to.

optional string network = 232872494;

Returns
TypeDescription
ByteString

The bytes for network.

getNextHopGateway()

public String getNextHopGateway()

The URL to a gateway that should handle matching packets. You can only specify the internet gateway using a full or partial valid URL: projects/ project/global/gateways/default-internet-gateway

optional string next_hop_gateway = 377175298;

Returns
TypeDescription
String

The nextHopGateway.

getNextHopGatewayBytes()

public ByteString getNextHopGatewayBytes()

The URL to a gateway that should handle matching packets. You can only specify the internet gateway using a full or partial valid URL: projects/ project/global/gateways/default-internet-gateway

optional string next_hop_gateway = 377175298;

Returns
TypeDescription
ByteString

The bytes for nextHopGateway.

getNextHopIlb()

public String getNextHopIlb()

The URL to a forwarding rule of type loadBalancingScheme=INTERNAL that should handle matching packets or the IP address of the forwarding Rule. For example, the following are all valid URLs: - 10.128.0.56 - https://www.googleapis.com/compute/v1/projects/project/regions/region /forwardingRules/forwardingRule - regions/region/forwardingRules/forwardingRule

optional string next_hop_ilb = 198679901;

Returns
TypeDescription
String

The nextHopIlb.

getNextHopIlbBytes()

public ByteString getNextHopIlbBytes()

The URL to a forwarding rule of type loadBalancingScheme=INTERNAL that should handle matching packets or the IP address of the forwarding Rule. For example, the following are all valid URLs: - 10.128.0.56 - https://www.googleapis.com/compute/v1/projects/project/regions/region /forwardingRules/forwardingRule - regions/region/forwardingRules/forwardingRule

optional string next_hop_ilb = 198679901;

Returns
TypeDescription
ByteString

The bytes for nextHopIlb.

getNextHopInstance()

public String getNextHopInstance()

The URL to an instance that should handle matching packets. You can specify this as a full or partial URL. For example: https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/

optional string next_hop_instance = 393508247;

Returns
TypeDescription
String

The nextHopInstance.

getNextHopInstanceBytes()

public ByteString getNextHopInstanceBytes()

The URL to an instance that should handle matching packets. You can specify this as a full or partial URL. For example: https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/

optional string next_hop_instance = 393508247;

Returns
TypeDescription
ByteString

The bytes for nextHopInstance.

getNextHopIp()

public String getNextHopIp()

The network IP address of an instance that should handle matching packets. Only IPv4 is supported.

optional string next_hop_ip = 110319529;

Returns
TypeDescription
String

The nextHopIp.

getNextHopIpBytes()

public ByteString getNextHopIpBytes()

The network IP address of an instance that should handle matching packets. Only IPv4 is supported.

optional string next_hop_ip = 110319529;

Returns
TypeDescription
ByteString

The bytes for nextHopIp.

getNextHopNetwork()

public String getNextHopNetwork()

The URL of the local network if it should handle matching packets.

optional string next_hop_network = 262295788;

Returns
TypeDescription
String

The nextHopNetwork.

getNextHopNetworkBytes()

public ByteString getNextHopNetworkBytes()

The URL of the local network if it should handle matching packets.

optional string next_hop_network = 262295788;

Returns
TypeDescription
ByteString

The bytes for nextHopNetwork.

getNextHopPeering()

public String getNextHopPeering()

[Output Only] The network peering name that should handle matching packets, which should conform to RFC1035.

optional string next_hop_peering = 412682750;

Returns
TypeDescription
String

The nextHopPeering.

getNextHopPeeringBytes()

public ByteString getNextHopPeeringBytes()

[Output Only] The network peering name that should handle matching packets, which should conform to RFC1035.

optional string next_hop_peering = 412682750;

Returns
TypeDescription
ByteString

The bytes for nextHopPeering.

getNextHopVpnTunnel()

public String getNextHopVpnTunnel()

The URL to a VpnTunnel that should handle matching packets.

optional string next_hop_vpn_tunnel = 519844501;

Returns
TypeDescription
String

The nextHopVpnTunnel.

getNextHopVpnTunnelBytes()

public ByteString getNextHopVpnTunnelBytes()

The URL to a VpnTunnel that should handle matching packets.

optional string next_hop_vpn_tunnel = 519844501;

Returns
TypeDescription
ByteString

The bytes for nextHopVpnTunnel.

getParserForType()

public Parser<Route> getParserForType()
Returns
TypeDescription
Parser<Route>
Overrides

getPriority()

public int getPriority()

The priority of this route. Priority is used to break ties in cases where there is more than one matching route of equal prefix length. In cases where multiple routes have equal prefix length, the one with the lowest-numbered priority value wins. The default value is 1000. The priority value must be from 0 to 65535, inclusive.

optional uint32 priority = 445151652;

Returns
TypeDescription
int

The priority.

getRouteStatus()

public String getRouteStatus()

[Output only] The status of the route. Check the RouteStatus enum for the list of possible values.

optional string route_status = 418162344;

Returns
TypeDescription
String

The routeStatus.

getRouteStatusBytes()

public ByteString getRouteStatusBytes()

[Output only] The status of the route. Check the RouteStatus enum for the list of possible values.

optional string route_status = 418162344;

Returns
TypeDescription
ByteString

The bytes for routeStatus.

getRouteType()

public String getRouteType()

[Output Only] The type of this route, which can be one of the following values: - 'TRANSIT' for a transit route that this router learned from another Cloud Router and will readvertise to one of its BGP peers - 'SUBNET' for a route from a subnet of the VPC - 'BGP' for a route learned from a BGP peer of this router - 'STATIC' for a static route Check the RouteType enum for the list of possible values.

optional string route_type = 375888752;

Returns
TypeDescription
String

The routeType.

getRouteTypeBytes()

public ByteString getRouteTypeBytes()

[Output Only] The type of this route, which can be one of the following values: - 'TRANSIT' for a transit route that this router learned from another Cloud Router and will readvertise to one of its BGP peers - 'SUBNET' for a route from a subnet of the VPC - 'BGP' for a route learned from a BGP peer of this router - 'STATIC' for a static route Check the RouteType enum for the list of possible values.

optional string route_type = 375888752;

Returns
TypeDescription
ByteString

The bytes for routeType.

public String getSelfLink()

[Output Only] Server-defined fully-qualified URL for this resource.

optional string self_link = 456214797;

Returns
TypeDescription
String

The selfLink.

getSelfLinkBytes()

public ByteString getSelfLinkBytes()

[Output Only] Server-defined fully-qualified URL for this resource.

optional string self_link = 456214797;

Returns
TypeDescription
ByteString

The bytes for selfLink.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getTags(int index)

public String getTags(int index)

A list of instance tags to which this route applies.

repeated string tags = 3552281;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The tags at the given index.

getTagsBytes(int index)

public ByteString getTagsBytes(int index)

A list of instance tags to which this route applies.

repeated string tags = 3552281;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the tags at the given index.

getTagsCount()

public int getTagsCount()

A list of instance tags to which this route applies.

repeated string tags = 3552281;

Returns
TypeDescription
int

The count of tags.

getTagsList()

public ProtocolStringList getTagsList()

A list of instance tags to which this route applies.

repeated string tags = 3552281;

Returns
TypeDescription
ProtocolStringList

A list containing the tags.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

getWarnings(int index)

public Warnings getWarnings(int index)

[Output Only] If potential misconfigurations are detected for this route, this field will be populated with warning messages.

repeated .google.cloud.compute.v1.Warnings warnings = 498091095;

Parameter
NameDescription
indexint
Returns
TypeDescription
Warnings

getWarningsCount()

public int getWarningsCount()

[Output Only] If potential misconfigurations are detected for this route, this field will be populated with warning messages.

repeated .google.cloud.compute.v1.Warnings warnings = 498091095;

Returns
TypeDescription
int

getWarningsList()

public List<Warnings> getWarningsList()

[Output Only] If potential misconfigurations are detected for this route, this field will be populated with warning messages.

repeated .google.cloud.compute.v1.Warnings warnings = 498091095;

Returns
TypeDescription
List<Warnings>

getWarningsOrBuilder(int index)

public WarningsOrBuilder getWarningsOrBuilder(int index)

[Output Only] If potential misconfigurations are detected for this route, this field will be populated with warning messages.

repeated .google.cloud.compute.v1.Warnings warnings = 498091095;

Parameter
NameDescription
indexint
Returns
TypeDescription
WarningsOrBuilder

getWarningsOrBuilderList()

public List<? extends WarningsOrBuilder> getWarningsOrBuilderList()

[Output Only] If potential misconfigurations are detected for this route, this field will be populated with warning messages.

repeated .google.cloud.compute.v1.Warnings warnings = 498091095;

Returns
TypeDescription
List<? extends com.google.cloud.compute.v1.WarningsOrBuilder>

hasCreationTimestamp()

public boolean hasCreationTimestamp()

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
TypeDescription
boolean

Whether the creationTimestamp field is set.

hasDescription()

public boolean hasDescription()

An optional description of this resource. Provide this field when you create the resource.

optional string description = 422937596;

Returns
TypeDescription
boolean

Whether the description field is set.

hasDestRange()

public boolean hasDestRange()

The destination range of outgoing packets that this route applies to. Both IPv4 and IPv6 are supported.

optional string dest_range = 381327712;

Returns
TypeDescription
boolean

Whether the destRange field is set.

hasId()

public boolean hasId()

[Output Only] The unique identifier for the resource. This identifier is defined by the server.

optional uint64 id = 3355;

Returns
TypeDescription
boolean

Whether the id field is set.

hasKind()

public boolean hasKind()

[Output Only] Type of this resource. Always compute#routes for Route resources.

optional string kind = 3292052;

Returns
TypeDescription
boolean

Whether the kind field is set.

hasName()

public boolean hasName()

Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z?. The first character must be a lowercase letter, and all following characters (except for the last character) must be a dash, lowercase letter, or digit. The last character must be a lowercase letter or digit.

optional string name = 3373707;

Returns
TypeDescription
boolean

Whether the name field is set.

hasNetwork()

public boolean hasNetwork()

Fully-qualified URL of the network that this route applies to.

optional string network = 232872494;

Returns
TypeDescription
boolean

Whether the network field is set.

hasNextHopGateway()

public boolean hasNextHopGateway()

The URL to a gateway that should handle matching packets. You can only specify the internet gateway using a full or partial valid URL: projects/ project/global/gateways/default-internet-gateway

optional string next_hop_gateway = 377175298;

Returns
TypeDescription
boolean

Whether the nextHopGateway field is set.

hasNextHopIlb()

public boolean hasNextHopIlb()

The URL to a forwarding rule of type loadBalancingScheme=INTERNAL that should handle matching packets or the IP address of the forwarding Rule. For example, the following are all valid URLs: - 10.128.0.56 - https://www.googleapis.com/compute/v1/projects/project/regions/region /forwardingRules/forwardingRule - regions/region/forwardingRules/forwardingRule

optional string next_hop_ilb = 198679901;

Returns
TypeDescription
boolean

Whether the nextHopIlb field is set.

hasNextHopInstance()

public boolean hasNextHopInstance()

The URL to an instance that should handle matching packets. You can specify this as a full or partial URL. For example: https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/

optional string next_hop_instance = 393508247;

Returns
TypeDescription
boolean

Whether the nextHopInstance field is set.

hasNextHopIp()

public boolean hasNextHopIp()

The network IP address of an instance that should handle matching packets. Only IPv4 is supported.

optional string next_hop_ip = 110319529;

Returns
TypeDescription
boolean

Whether the nextHopIp field is set.

hasNextHopNetwork()

public boolean hasNextHopNetwork()

The URL of the local network if it should handle matching packets.

optional string next_hop_network = 262295788;

Returns
TypeDescription
boolean

Whether the nextHopNetwork field is set.

hasNextHopPeering()

public boolean hasNextHopPeering()

[Output Only] The network peering name that should handle matching packets, which should conform to RFC1035.

optional string next_hop_peering = 412682750;

Returns
TypeDescription
boolean

Whether the nextHopPeering field is set.

hasNextHopVpnTunnel()

public boolean hasNextHopVpnTunnel()

The URL to a VpnTunnel that should handle matching packets.

optional string next_hop_vpn_tunnel = 519844501;

Returns
TypeDescription
boolean

Whether the nextHopVpnTunnel field is set.

hasPriority()

public boolean hasPriority()

The priority of this route. Priority is used to break ties in cases where there is more than one matching route of equal prefix length. In cases where multiple routes have equal prefix length, the one with the lowest-numbered priority value wins. The default value is 1000. The priority value must be from 0 to 65535, inclusive.

optional uint32 priority = 445151652;

Returns
TypeDescription
boolean

Whether the priority field is set.

hasRouteStatus()

public boolean hasRouteStatus()

[Output only] The status of the route. Check the RouteStatus enum for the list of possible values.

optional string route_status = 418162344;

Returns
TypeDescription
boolean

Whether the routeStatus field is set.

hasRouteType()

public boolean hasRouteType()

[Output Only] The type of this route, which can be one of the following values: - 'TRANSIT' for a transit route that this router learned from another Cloud Router and will readvertise to one of its BGP peers - 'SUBNET' for a route from a subnet of the VPC - 'BGP' for a route learned from a BGP peer of this router - 'STATIC' for a static route Check the RouteType enum for the list of possible values.

optional string route_type = 375888752;

Returns
TypeDescription
boolean

Whether the routeType field is set.

public boolean hasSelfLink()

[Output Only] Server-defined fully-qualified URL for this resource.

optional string self_link = 456214797;

Returns
TypeDescription
boolean

Whether the selfLink 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 Route.Builder newBuilderForType()
Returns
TypeDescription
Route.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public Route.Builder toBuilder()
Returns
TypeDescription
Route.Builder

writeTo(CodedOutputStream output)

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