Package com.google.cloud.compute.v1
Class Route
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.compute.v1.Route
-
- All Implemented Interfaces:
RouteOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
public final class Route extends com.google.protobuf.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 typegoogle.cloud.compute.v1.Route
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Route.Builder
Represents a Route resource.static class
Route.RouteStatus
[Output only] The status of the route.static class
Route.RouteType
[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-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
AS_PATHS_FIELD_NUMBER
static int
CREATION_TIMESTAMP_FIELD_NUMBER
static int
DESCRIPTION_FIELD_NUMBER
static int
DEST_RANGE_FIELD_NUMBER
static int
ID_FIELD_NUMBER
static int
KIND_FIELD_NUMBER
static int
NAME_FIELD_NUMBER
static int
NETWORK_FIELD_NUMBER
static int
NEXT_HOP_GATEWAY_FIELD_NUMBER
static int
NEXT_HOP_HUB_FIELD_NUMBER
static int
NEXT_HOP_ILB_FIELD_NUMBER
static int
NEXT_HOP_INSTANCE_FIELD_NUMBER
static int
NEXT_HOP_IP_FIELD_NUMBER
static int
NEXT_HOP_NETWORK_FIELD_NUMBER
static int
NEXT_HOP_PEERING_FIELD_NUMBER
static int
NEXT_HOP_VPN_TUNNEL_FIELD_NUMBER
static int
PRIORITY_FIELD_NUMBER
static int
ROUTE_STATUS_FIELD_NUMBER
static int
ROUTE_TYPE_FIELD_NUMBER
static int
SELF_LINK_FIELD_NUMBER
static int
TAGS_FIELD_NUMBER
static int
WARNINGS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
RouteAsPath
getAsPaths(int index)
[Output Only] AS path.int
getAsPathsCount()
[Output Only] AS path.List<RouteAsPath>
getAsPathsList()
[Output Only] AS path.RouteAsPathOrBuilder
getAsPathsOrBuilder(int index)
[Output Only] AS path.List<? extends RouteAsPathOrBuilder>
getAsPathsOrBuilderList()
[Output Only] AS path.String
getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.com.google.protobuf.ByteString
getCreationTimestampBytes()
[Output Only] Creation timestamp in RFC3339 text format.static Route
getDefaultInstance()
Route
getDefaultInstanceForType()
String
getDescription()
An optional description of this resource.com.google.protobuf.ByteString
getDescriptionBytes()
An optional description of this resource.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
String
getDestRange()
The destination range of outgoing packets that this route applies to.com.google.protobuf.ByteString
getDestRangeBytes()
The destination range of outgoing packets that this route applies to.long
getId()
[Output Only] The unique identifier for the resource.String
getKind()
[Output Only] Type of this resource.com.google.protobuf.ByteString
getKindBytes()
[Output Only] Type of this resource.String
getName()
Name of the resource.com.google.protobuf.ByteString
getNameBytes()
Name of the resource.String
getNetwork()
Fully-qualified URL of the network that this route applies to.com.google.protobuf.ByteString
getNetworkBytes()
Fully-qualified URL of the network that this route applies to.String
getNextHopGateway()
The URL to a gateway that should handle matching packets.com.google.protobuf.ByteString
getNextHopGatewayBytes()
The URL to a gateway that should handle matching packets.String
getNextHopHub()
[Output Only] The full resource name of the Network Connectivity Center hub that will handle matching packets.com.google.protobuf.ByteString
getNextHopHubBytes()
[Output Only] The full resource name of the Network Connectivity Center hub that will handle matching packets.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.com.google.protobuf.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.String
getNextHopInstance()
The URL to an instance that should handle matching packets.com.google.protobuf.ByteString
getNextHopInstanceBytes()
The URL to an instance that should handle matching packets.String
getNextHopIp()
The network IP address of an instance that should handle matching packets.com.google.protobuf.ByteString
getNextHopIpBytes()
The network IP address of an instance that should handle matching packets.String
getNextHopNetwork()
The URL of the local network if it should handle matching packets.com.google.protobuf.ByteString
getNextHopNetworkBytes()
The URL of the local network if it should handle matching packets.String
getNextHopPeering()
[Output Only] The network peering name that should handle matching packets, which should conform to RFC1035.com.google.protobuf.ByteString
getNextHopPeeringBytes()
[Output Only] The network peering name that should handle matching packets, which should conform to RFC1035.String
getNextHopVpnTunnel()
The URL to a VpnTunnel that should handle matching packets.com.google.protobuf.ByteString
getNextHopVpnTunnelBytes()
The URL to a VpnTunnel that should handle matching packets.com.google.protobuf.Parser<Route>
getParserForType()
int
getPriority()
The priority of this route.String
getRouteStatus()
[Output only] The status of the route.com.google.protobuf.ByteString
getRouteStatusBytes()
[Output only] The status of the route.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.com.google.protobuf.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.String
getSelfLink()
[Output Only] Server-defined fully-qualified URL for this resource.com.google.protobuf.ByteString
getSelfLinkBytes()
[Output Only] Server-defined fully-qualified URL for this resource.int
getSerializedSize()
String
getTags(int index)
A list of instance tags to which this route applies.com.google.protobuf.ByteString
getTagsBytes(int index)
A list of instance tags to which this route applies.int
getTagsCount()
A list of instance tags to which this route applies.com.google.protobuf.ProtocolStringList
getTagsList()
A list of instance tags to which this route applies.Warnings
getWarnings(int index)
[Output Only] If potential misconfigurations are detected for this route, this field will be populated with warning messages.int
getWarningsCount()
[Output Only] If potential misconfigurations are detected for this route, this field will be populated with warning messages.List<Warnings>
getWarningsList()
[Output Only] If potential misconfigurations are detected for this route, this field will be populated with warning messages.WarningsOrBuilder
getWarningsOrBuilder(int index)
[Output Only] If potential misconfigurations are detected for this route, this field will be populated with warning messages.List<? extends WarningsOrBuilder>
getWarningsOrBuilderList()
[Output Only] If potential misconfigurations are detected for this route, this field will be populated with warning messages.boolean
hasCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.boolean
hasDescription()
An optional description of this resource.boolean
hasDestRange()
The destination range of outgoing packets that this route applies to.int
hashCode()
boolean
hasId()
[Output Only] The unique identifier for the resource.boolean
hasKind()
[Output Only] Type of this resource.boolean
hasName()
Name of the resource.boolean
hasNetwork()
Fully-qualified URL of the network that this route applies to.boolean
hasNextHopGateway()
The URL to a gateway that should handle matching packets.boolean
hasNextHopHub()
[Output Only] The full resource name of the Network Connectivity Center hub that will handle matching packets.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.boolean
hasNextHopInstance()
The URL to an instance that should handle matching packets.boolean
hasNextHopIp()
The network IP address of an instance that should handle matching packets.boolean
hasNextHopNetwork()
The URL of the local network if it should handle matching packets.boolean
hasNextHopPeering()
[Output Only] The network peering name that should handle matching packets, which should conform to RFC1035.boolean
hasNextHopVpnTunnel()
The URL to a VpnTunnel that should handle matching packets.boolean
hasPriority()
The priority of this route.boolean
hasRouteStatus()
[Output only] The status of the route.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.boolean
hasSelfLink()
[Output Only] Server-defined fully-qualified URL for this resource.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static Route.Builder
newBuilder()
static Route.Builder
newBuilder(Route prototype)
Route.Builder
newBuilderForType()
protected Route.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static Route
parseDelimitedFrom(InputStream input)
static Route
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Route
parseFrom(byte[] data)
static Route
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Route
parseFrom(com.google.protobuf.ByteString data)
static Route
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Route
parseFrom(com.google.protobuf.CodedInputStream input)
static Route
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Route
parseFrom(InputStream input)
static Route
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Route
parseFrom(ByteBuffer data)
static Route
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<Route>
parser()
Route.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
AS_PATHS_FIELD_NUMBER
public static final int AS_PATHS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CREATION_TIMESTAMP_FIELD_NUMBER
public static final int CREATION_TIMESTAMP_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DEST_RANGE_FIELD_NUMBER
public static final int DEST_RANGE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
KIND_FIELD_NUMBER
public static final int KIND_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NETWORK_FIELD_NUMBER
public static final int NETWORK_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NEXT_HOP_GATEWAY_FIELD_NUMBER
public static final int NEXT_HOP_GATEWAY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NEXT_HOP_HUB_FIELD_NUMBER
public static final int NEXT_HOP_HUB_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NEXT_HOP_ILB_FIELD_NUMBER
public static final int NEXT_HOP_ILB_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NEXT_HOP_INSTANCE_FIELD_NUMBER
public static final int NEXT_HOP_INSTANCE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NEXT_HOP_IP_FIELD_NUMBER
public static final int NEXT_HOP_IP_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NEXT_HOP_NETWORK_FIELD_NUMBER
public static final int NEXT_HOP_NETWORK_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NEXT_HOP_PEERING_FIELD_NUMBER
public static final int NEXT_HOP_PEERING_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NEXT_HOP_VPN_TUNNEL_FIELD_NUMBER
public static final int NEXT_HOP_VPN_TUNNEL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PRIORITY_FIELD_NUMBER
public static final int PRIORITY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ROUTE_STATUS_FIELD_NUMBER
public static final int ROUTE_STATUS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ROUTE_TYPE_FIELD_NUMBER
public static final int ROUTE_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SELF_LINK_FIELD_NUMBER
public static final int SELF_LINK_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TAGS_FIELD_NUMBER
public static final int TAGS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
WARNINGS_FIELD_NUMBER
public static final int WARNINGS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getAsPathsList
public List<RouteAsPath> getAsPathsList()
[Output Only] AS path.
repeated .google.cloud.compute.v1.RouteAsPath as_paths = 137568929;
- Specified by:
getAsPathsList
in interfaceRouteOrBuilder
-
getAsPathsOrBuilderList
public List<? extends RouteAsPathOrBuilder> getAsPathsOrBuilderList()
[Output Only] AS path.
repeated .google.cloud.compute.v1.RouteAsPath as_paths = 137568929;
- Specified by:
getAsPathsOrBuilderList
in interfaceRouteOrBuilder
-
getAsPathsCount
public int getAsPathsCount()
[Output Only] AS path.
repeated .google.cloud.compute.v1.RouteAsPath as_paths = 137568929;
- Specified by:
getAsPathsCount
in interfaceRouteOrBuilder
-
getAsPaths
public RouteAsPath getAsPaths(int index)
[Output Only] AS path.
repeated .google.cloud.compute.v1.RouteAsPath as_paths = 137568929;
- Specified by:
getAsPaths
in interfaceRouteOrBuilder
-
getAsPathsOrBuilder
public RouteAsPathOrBuilder getAsPathsOrBuilder(int index)
[Output Only] AS path.
repeated .google.cloud.compute.v1.RouteAsPath as_paths = 137568929;
- Specified by:
getAsPathsOrBuilder
in interfaceRouteOrBuilder
-
hasCreationTimestamp
public boolean hasCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Specified by:
hasCreationTimestamp
in interfaceRouteOrBuilder
- Returns:
- Whether the creationTimestamp field is set.
-
getCreationTimestamp
public String getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Specified by:
getCreationTimestamp
in interfaceRouteOrBuilder
- Returns:
- The creationTimestamp.
-
getCreationTimestampBytes
public com.google.protobuf.ByteString getCreationTimestampBytes()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Specified by:
getCreationTimestampBytes
in interfaceRouteOrBuilder
- Returns:
- The bytes for creationTimestamp.
-
hasDescription
public boolean hasDescription()
An optional description of this resource. Provide this field when you create the resource.
optional string description = 422937596;
- Specified by:
hasDescription
in interfaceRouteOrBuilder
- Returns:
- Whether the description field is set.
-
getDescription
public String getDescription()
An optional description of this resource. Provide this field when you create the resource.
optional string description = 422937596;
- Specified by:
getDescription
in interfaceRouteOrBuilder
- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
An optional description of this resource. Provide this field when you create the resource.
optional string description = 422937596;
- Specified by:
getDescriptionBytes
in interfaceRouteOrBuilder
- Returns:
- The bytes for description.
-
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;
- Specified by:
hasDestRange
in interfaceRouteOrBuilder
- Returns:
- Whether the destRange field is set.
-
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;
- Specified by:
getDestRange
in interfaceRouteOrBuilder
- Returns:
- The destRange.
-
getDestRangeBytes
public com.google.protobuf.ByteString getDestRangeBytes()
The destination range of outgoing packets that this route applies to. Both IPv4 and IPv6 are supported.
optional string dest_range = 381327712;
- Specified by:
getDestRangeBytes
in interfaceRouteOrBuilder
- Returns:
- The bytes for destRange.
-
hasId
public boolean hasId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;
- Specified by:
hasId
in interfaceRouteOrBuilder
- Returns:
- Whether the id field is set.
-
getId
public long getId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;
- Specified by:
getId
in interfaceRouteOrBuilder
- Returns:
- The id.
-
hasKind
public boolean hasKind()
[Output Only] Type of this resource. Always compute#routes for Route resources.
optional string kind = 3292052;
- Specified by:
hasKind
in interfaceRouteOrBuilder
- Returns:
- Whether the kind field is set.
-
getKind
public String getKind()
[Output Only] Type of this resource. Always compute#routes for Route resources.
optional string kind = 3292052;
- Specified by:
getKind
in interfaceRouteOrBuilder
- Returns:
- The kind.
-
getKindBytes
public com.google.protobuf.ByteString getKindBytes()
[Output Only] Type of this resource. Always compute#routes for Route resources.
optional string kind = 3292052;
- Specified by:
getKindBytes
in interfaceRouteOrBuilder
- Returns:
- The bytes for kind.
-
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]([-a-z0-9]*[a-z0-9])?`. 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;
- Specified by:
hasName
in interfaceRouteOrBuilder
- Returns:
- Whether the name field is set.
-
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]([-a-z0-9]*[a-z0-9])?`. 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;
- Specified by:
getName
in interfaceRouteOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.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]([-a-z0-9]*[a-z0-9])?`. 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;
- Specified by:
getNameBytes
in interfaceRouteOrBuilder
- Returns:
- The bytes for name.
-
hasNetwork
public boolean hasNetwork()
Fully-qualified URL of the network that this route applies to.
optional string network = 232872494;
- Specified by:
hasNetwork
in interfaceRouteOrBuilder
- Returns:
- Whether the network field is set.
-
getNetwork
public String getNetwork()
Fully-qualified URL of the network that this route applies to.
optional string network = 232872494;
- Specified by:
getNetwork
in interfaceRouteOrBuilder
- Returns:
- The network.
-
getNetworkBytes
public com.google.protobuf.ByteString getNetworkBytes()
Fully-qualified URL of the network that this route applies to.
optional string network = 232872494;
- Specified by:
getNetworkBytes
in interfaceRouteOrBuilder
- Returns:
- The bytes for network.
-
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;
- Specified by:
hasNextHopGateway
in interfaceRouteOrBuilder
- Returns:
- Whether the nextHopGateway field is set.
-
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;
- Specified by:
getNextHopGateway
in interfaceRouteOrBuilder
- Returns:
- The nextHopGateway.
-
getNextHopGatewayBytes
public com.google.protobuf.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;
- Specified by:
getNextHopGatewayBytes
in interfaceRouteOrBuilder
- Returns:
- The bytes for nextHopGateway.
-
hasNextHopHub
public boolean hasNextHopHub()
[Output Only] The full resource name of the Network Connectivity Center hub that will handle matching packets.
optional string next_hop_hub = 198679219;
- Specified by:
hasNextHopHub
in interfaceRouteOrBuilder
- Returns:
- Whether the nextHopHub field is set.
-
getNextHopHub
public String getNextHopHub()
[Output Only] The full resource name of the Network Connectivity Center hub that will handle matching packets.
optional string next_hop_hub = 198679219;
- Specified by:
getNextHopHub
in interfaceRouteOrBuilder
- Returns:
- The nextHopHub.
-
getNextHopHubBytes
public com.google.protobuf.ByteString getNextHopHubBytes()
[Output Only] The full resource name of the Network Connectivity Center hub that will handle matching packets.
optional string next_hop_hub = 198679219;
- Specified by:
getNextHopHubBytes
in interfaceRouteOrBuilder
- Returns:
- The bytes for nextHopHub.
-
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;
- Specified by:
hasNextHopIlb
in interfaceRouteOrBuilder
- Returns:
- Whether the nextHopIlb field is set.
-
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;
- Specified by:
getNextHopIlb
in interfaceRouteOrBuilder
- Returns:
- The nextHopIlb.
-
getNextHopIlbBytes
public com.google.protobuf.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;
- Specified by:
getNextHopIlbBytes
in interfaceRouteOrBuilder
- Returns:
- The bytes for nextHopIlb.
-
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;
- Specified by:
hasNextHopInstance
in interfaceRouteOrBuilder
- Returns:
- Whether the nextHopInstance field is set.
-
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;
- Specified by:
getNextHopInstance
in interfaceRouteOrBuilder
- Returns:
- The nextHopInstance.
-
getNextHopInstanceBytes
public com.google.protobuf.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;
- Specified by:
getNextHopInstanceBytes
in interfaceRouteOrBuilder
- Returns:
- The bytes for nextHopInstance.
-
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;
- Specified by:
hasNextHopIp
in interfaceRouteOrBuilder
- Returns:
- Whether the nextHopIp field is set.
-
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;
- Specified by:
getNextHopIp
in interfaceRouteOrBuilder
- Returns:
- The nextHopIp.
-
getNextHopIpBytes
public com.google.protobuf.ByteString getNextHopIpBytes()
The network IP address of an instance that should handle matching packets. Only IPv4 is supported.
optional string next_hop_ip = 110319529;
- Specified by:
getNextHopIpBytes
in interfaceRouteOrBuilder
- Returns:
- The bytes for nextHopIp.
-
hasNextHopNetwork
public boolean hasNextHopNetwork()
The URL of the local network if it should handle matching packets.
optional string next_hop_network = 262295788;
- Specified by:
hasNextHopNetwork
in interfaceRouteOrBuilder
- Returns:
- Whether the nextHopNetwork field is set.
-
getNextHopNetwork
public String getNextHopNetwork()
The URL of the local network if it should handle matching packets.
optional string next_hop_network = 262295788;
- Specified by:
getNextHopNetwork
in interfaceRouteOrBuilder
- Returns:
- The nextHopNetwork.
-
getNextHopNetworkBytes
public com.google.protobuf.ByteString getNextHopNetworkBytes()
The URL of the local network if it should handle matching packets.
optional string next_hop_network = 262295788;
- Specified by:
getNextHopNetworkBytes
in interfaceRouteOrBuilder
- Returns:
- The bytes for nextHopNetwork.
-
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;
- Specified by:
hasNextHopPeering
in interfaceRouteOrBuilder
- Returns:
- Whether the nextHopPeering field is set.
-
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;
- Specified by:
getNextHopPeering
in interfaceRouteOrBuilder
- Returns:
- The nextHopPeering.
-
getNextHopPeeringBytes
public com.google.protobuf.ByteString getNextHopPeeringBytes()
[Output Only] The network peering name that should handle matching packets, which should conform to RFC1035.
optional string next_hop_peering = 412682750;
- Specified by:
getNextHopPeeringBytes
in interfaceRouteOrBuilder
- Returns:
- The bytes for nextHopPeering.
-
hasNextHopVpnTunnel
public boolean hasNextHopVpnTunnel()
The URL to a VpnTunnel that should handle matching packets.
optional string next_hop_vpn_tunnel = 519844501;
- Specified by:
hasNextHopVpnTunnel
in interfaceRouteOrBuilder
- Returns:
- Whether the nextHopVpnTunnel field is set.
-
getNextHopVpnTunnel
public String getNextHopVpnTunnel()
The URL to a VpnTunnel that should handle matching packets.
optional string next_hop_vpn_tunnel = 519844501;
- Specified by:
getNextHopVpnTunnel
in interfaceRouteOrBuilder
- Returns:
- The nextHopVpnTunnel.
-
getNextHopVpnTunnelBytes
public com.google.protobuf.ByteString getNextHopVpnTunnelBytes()
The URL to a VpnTunnel that should handle matching packets.
optional string next_hop_vpn_tunnel = 519844501;
- Specified by:
getNextHopVpnTunnelBytes
in interfaceRouteOrBuilder
- Returns:
- The bytes for nextHopVpnTunnel.
-
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;
- Specified by:
hasPriority
in interfaceRouteOrBuilder
- Returns:
- Whether the priority field is set.
-
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;
- Specified by:
getPriority
in interfaceRouteOrBuilder
- Returns:
- The priority.
-
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;
- Specified by:
hasRouteStatus
in interfaceRouteOrBuilder
- Returns:
- Whether the routeStatus field is set.
-
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;
- Specified by:
getRouteStatus
in interfaceRouteOrBuilder
- Returns:
- The routeStatus.
-
getRouteStatusBytes
public com.google.protobuf.ByteString getRouteStatusBytes()
[Output only] The status of the route. Check the RouteStatus enum for the list of possible values.
optional string route_status = 418162344;
- Specified by:
getRouteStatusBytes
in interfaceRouteOrBuilder
- Returns:
- The bytes for routeStatus.
-
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;
- Specified by:
hasRouteType
in interfaceRouteOrBuilder
- Returns:
- Whether the routeType field is set.
-
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;
- Specified by:
getRouteType
in interfaceRouteOrBuilder
- Returns:
- The routeType.
-
getRouteTypeBytes
public com.google.protobuf.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;
- Specified by:
getRouteTypeBytes
in interfaceRouteOrBuilder
- Returns:
- The bytes for routeType.
-
hasSelfLink
public boolean hasSelfLink()
[Output Only] Server-defined fully-qualified URL for this resource.
optional string self_link = 456214797;
- Specified by:
hasSelfLink
in interfaceRouteOrBuilder
- Returns:
- Whether the selfLink field is set.
-
getSelfLink
public String getSelfLink()
[Output Only] Server-defined fully-qualified URL for this resource.
optional string self_link = 456214797;
- Specified by:
getSelfLink
in interfaceRouteOrBuilder
- Returns:
- The selfLink.
-
getSelfLinkBytes
public com.google.protobuf.ByteString getSelfLinkBytes()
[Output Only] Server-defined fully-qualified URL for this resource.
optional string self_link = 456214797;
- Specified by:
getSelfLinkBytes
in interfaceRouteOrBuilder
- Returns:
- The bytes for selfLink.
-
getTagsList
public com.google.protobuf.ProtocolStringList getTagsList()
A list of instance tags to which this route applies.
repeated string tags = 3552281;
- Specified by:
getTagsList
in interfaceRouteOrBuilder
- Returns:
- A list containing the tags.
-
getTagsCount
public int getTagsCount()
A list of instance tags to which this route applies.
repeated string tags = 3552281;
- Specified by:
getTagsCount
in interfaceRouteOrBuilder
- Returns:
- The count of tags.
-
getTags
public String getTags(int index)
A list of instance tags to which this route applies.
repeated string tags = 3552281;
- Specified by:
getTags
in interfaceRouteOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The tags at the given index.
-
getTagsBytes
public com.google.protobuf.ByteString getTagsBytes(int index)
A list of instance tags to which this route applies.
repeated string tags = 3552281;
- Specified by:
getTagsBytes
in interfaceRouteOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the tags at the given index.
-
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;
- Specified by:
getWarningsList
in interfaceRouteOrBuilder
-
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;
- Specified by:
getWarningsOrBuilderList
in interfaceRouteOrBuilder
-
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;
- Specified by:
getWarningsCount
in interfaceRouteOrBuilder
-
getWarnings
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;
- Specified by:
getWarnings
in interfaceRouteOrBuilder
-
getWarningsOrBuilder
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;
- Specified by:
getWarningsOrBuilder
in interfaceRouteOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Route parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Route parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Route parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Route parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Route parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Route parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Route parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Route parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Route parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Route parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Route parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Route parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Route.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Route.Builder newBuilder()
-
newBuilder
public static Route.Builder newBuilder(Route prototype)
-
toBuilder
public Route.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Route.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Route getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Route> parser()
-
getParserForType
public com.google.protobuf.Parser<Route> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Route getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-