Package com.google.cloud.compute.v1
Class Route.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Route.Builder>
-
- com.google.cloud.compute.v1.Route.Builder
-
- All Implemented Interfaces:
RouteOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- Route
public static final class Route.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Route.Builder> 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
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Route.Builder
addAllAsPaths(Iterable<? extends RouteAsPath> values)
[Output Only] AS path.Route.Builder
addAllTags(Iterable<String> values)
A list of instance tags to which this route applies.Route.Builder
addAllWarnings(Iterable<? extends Warnings> values)
[Output Only] If potential misconfigurations are detected for this route, this field will be populated with warning messages.Route.Builder
addAsPaths(int index, RouteAsPath value)
[Output Only] AS path.Route.Builder
addAsPaths(int index, RouteAsPath.Builder builderForValue)
[Output Only] AS path.Route.Builder
addAsPaths(RouteAsPath value)
[Output Only] AS path.Route.Builder
addAsPaths(RouteAsPath.Builder builderForValue)
[Output Only] AS path.RouteAsPath.Builder
addAsPathsBuilder()
[Output Only] AS path.RouteAsPath.Builder
addAsPathsBuilder(int index)
[Output Only] AS path.Route.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Route.Builder
addTags(String value)
A list of instance tags to which this route applies.Route.Builder
addTagsBytes(com.google.protobuf.ByteString value)
A list of instance tags to which this route applies.Route.Builder
addWarnings(int index, Warnings value)
[Output Only] If potential misconfigurations are detected for this route, this field will be populated with warning messages.Route.Builder
addWarnings(int index, Warnings.Builder builderForValue)
[Output Only] If potential misconfigurations are detected for this route, this field will be populated with warning messages.Route.Builder
addWarnings(Warnings value)
[Output Only] If potential misconfigurations are detected for this route, this field will be populated with warning messages.Route.Builder
addWarnings(Warnings.Builder builderForValue)
[Output Only] If potential misconfigurations are detected for this route, this field will be populated with warning messages.Warnings.Builder
addWarningsBuilder()
[Output Only] If potential misconfigurations are detected for this route, this field will be populated with warning messages.Warnings.Builder
addWarningsBuilder(int index)
[Output Only] If potential misconfigurations are detected for this route, this field will be populated with warning messages.Route
build()
Route
buildPartial()
Route.Builder
clear()
Route.Builder
clearAsPaths()
[Output Only] AS path.Route.Builder
clearCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.Route.Builder
clearDescription()
An optional description of this resource.Route.Builder
clearDestRange()
The destination range of outgoing packets that this route applies to.Route.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Route.Builder
clearId()
[Output Only] The unique identifier for the resource.Route.Builder
clearKind()
[Output Only] Type of this resource.Route.Builder
clearName()
Name of the resource.Route.Builder
clearNetwork()
Fully-qualified URL of the network that this route applies to.Route.Builder
clearNextHopGateway()
The URL to a gateway that should handle matching packets.Route.Builder
clearNextHopHub()
[Output Only] The full resource name of the Network Connectivity Center hub that will handle matching packets.Route.Builder
clearNextHopIlb()
The URL to a forwarding rule of type loadBalancingScheme=INTERNAL that should handle matching packets or the IP address of the forwarding Rule.Route.Builder
clearNextHopInstance()
The URL to an instance that should handle matching packets.Route.Builder
clearNextHopIp()
The network IP address of an instance that should handle matching packets.Route.Builder
clearNextHopNetwork()
The URL of the local network if it should handle matching packets.Route.Builder
clearNextHopPeering()
[Output Only] The network peering name that should handle matching packets, which should conform to RFC1035.Route.Builder
clearNextHopVpnTunnel()
The URL to a VpnTunnel that should handle matching packets.Route.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Route.Builder
clearPriority()
The priority of this route.Route.Builder
clearRouteStatus()
[Output only] The status of the route.Route.Builder
clearRouteType()
[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.Route.Builder
clearSelfLink()
[Output Only] Server-defined fully-qualified URL for this resource.Route.Builder
clearTags()
A list of instance tags to which this route applies.Route.Builder
clearWarnings()
[Output Only] If potential misconfigurations are detected for this route, this field will be populated with warning messages.Route.Builder
clone()
RouteAsPath
getAsPaths(int index)
[Output Only] AS path.RouteAsPath.Builder
getAsPathsBuilder(int index)
[Output Only] AS path.List<RouteAsPath.Builder>
getAsPathsBuilderList()
[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.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()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
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.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.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.Warnings.Builder
getWarningsBuilder(int index)
[Output Only] If potential misconfigurations are detected for this route, this field will be populated with warning messages.List<Warnings.Builder>
getWarningsBuilderList()
[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.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()
Route.Builder
mergeFrom(Route other)
Route.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Route.Builder
mergeFrom(com.google.protobuf.Message other)
Route.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Route.Builder
removeAsPaths(int index)
[Output Only] AS path.Route.Builder
removeWarnings(int index)
[Output Only] If potential misconfigurations are detected for this route, this field will be populated with warning messages.Route.Builder
setAsPaths(int index, RouteAsPath value)
[Output Only] AS path.Route.Builder
setAsPaths(int index, RouteAsPath.Builder builderForValue)
[Output Only] AS path.Route.Builder
setCreationTimestamp(String value)
[Output Only] Creation timestamp in RFC3339 text format.Route.Builder
setCreationTimestampBytes(com.google.protobuf.ByteString value)
[Output Only] Creation timestamp in RFC3339 text format.Route.Builder
setDescription(String value)
An optional description of this resource.Route.Builder
setDescriptionBytes(com.google.protobuf.ByteString value)
An optional description of this resource.Route.Builder
setDestRange(String value)
The destination range of outgoing packets that this route applies to.Route.Builder
setDestRangeBytes(com.google.protobuf.ByteString value)
The destination range of outgoing packets that this route applies to.Route.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Route.Builder
setId(long value)
[Output Only] The unique identifier for the resource.Route.Builder
setKind(String value)
[Output Only] Type of this resource.Route.Builder
setKindBytes(com.google.protobuf.ByteString value)
[Output Only] Type of this resource.Route.Builder
setName(String value)
Name of the resource.Route.Builder
setNameBytes(com.google.protobuf.ByteString value)
Name of the resource.Route.Builder
setNetwork(String value)
Fully-qualified URL of the network that this route applies to.Route.Builder
setNetworkBytes(com.google.protobuf.ByteString value)
Fully-qualified URL of the network that this route applies to.Route.Builder
setNextHopGateway(String value)
The URL to a gateway that should handle matching packets.Route.Builder
setNextHopGatewayBytes(com.google.protobuf.ByteString value)
The URL to a gateway that should handle matching packets.Route.Builder
setNextHopHub(String value)
[Output Only] The full resource name of the Network Connectivity Center hub that will handle matching packets.Route.Builder
setNextHopHubBytes(com.google.protobuf.ByteString value)
[Output Only] The full resource name of the Network Connectivity Center hub that will handle matching packets.Route.Builder
setNextHopIlb(String value)
The URL to a forwarding rule of type loadBalancingScheme=INTERNAL that should handle matching packets or the IP address of the forwarding Rule.Route.Builder
setNextHopIlbBytes(com.google.protobuf.ByteString value)
The URL to a forwarding rule of type loadBalancingScheme=INTERNAL that should handle matching packets or the IP address of the forwarding Rule.Route.Builder
setNextHopInstance(String value)
The URL to an instance that should handle matching packets.Route.Builder
setNextHopInstanceBytes(com.google.protobuf.ByteString value)
The URL to an instance that should handle matching packets.Route.Builder
setNextHopIp(String value)
The network IP address of an instance that should handle matching packets.Route.Builder
setNextHopIpBytes(com.google.protobuf.ByteString value)
The network IP address of an instance that should handle matching packets.Route.Builder
setNextHopNetwork(String value)
The URL of the local network if it should handle matching packets.Route.Builder
setNextHopNetworkBytes(com.google.protobuf.ByteString value)
The URL of the local network if it should handle matching packets.Route.Builder
setNextHopPeering(String value)
[Output Only] The network peering name that should handle matching packets, which should conform to RFC1035.Route.Builder
setNextHopPeeringBytes(com.google.protobuf.ByteString value)
[Output Only] The network peering name that should handle matching packets, which should conform to RFC1035.Route.Builder
setNextHopVpnTunnel(String value)
The URL to a VpnTunnel that should handle matching packets.Route.Builder
setNextHopVpnTunnelBytes(com.google.protobuf.ByteString value)
The URL to a VpnTunnel that should handle matching packets.Route.Builder
setPriority(int value)
The priority of this route.Route.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Route.Builder
setRouteStatus(String value)
[Output only] The status of the route.Route.Builder
setRouteStatusBytes(com.google.protobuf.ByteString value)
[Output only] The status of the route.Route.Builder
setRouteType(String value)
[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.Route.Builder
setRouteTypeBytes(com.google.protobuf.ByteString value)
[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.Route.Builder
setSelfLink(String value)
[Output Only] Server-defined fully-qualified URL for this resource.Route.Builder
setSelfLinkBytes(com.google.protobuf.ByteString value)
[Output Only] Server-defined fully-qualified URL for this resource.Route.Builder
setTags(int index, String value)
A list of instance tags to which this route applies.Route.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Route.Builder
setWarnings(int index, Warnings value)
[Output Only] If potential misconfigurations are detected for this route, this field will be populated with warning messages.Route.Builder
setWarnings(int index, Warnings.Builder builderForValue)
[Output Only] If potential misconfigurations are detected for this route, this field will be populated with warning messages.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
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.Builder<Route.Builder>
-
clear
public Route.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Route.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Route.Builder>
-
getDefaultInstanceForType
public Route getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Route build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Route buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Route.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Route.Builder>
-
setField
public Route.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Route.Builder>
-
clearField
public Route.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Route.Builder>
-
clearOneof
public Route.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Route.Builder>
-
setRepeatedField
public Route.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Route.Builder>
-
addRepeatedField
public Route.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Route.Builder>
-
mergeFrom
public Route.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Route.Builder>
-
mergeFrom
public Route.Builder mergeFrom(Route other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Route.Builder>
-
mergeFrom
public Route.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Route.Builder>
- Throws:
IOException
-
getAsPathsList
public List<RouteAsPath> getAsPathsList()
[Output Only] AS path.
repeated .google.cloud.compute.v1.RouteAsPath as_paths = 137568929;
- Specified by:
getAsPathsList
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
-
setAsPaths
public Route.Builder setAsPaths(int index, RouteAsPath value)
[Output Only] AS path.
repeated .google.cloud.compute.v1.RouteAsPath as_paths = 137568929;
-
setAsPaths
public Route.Builder setAsPaths(int index, RouteAsPath.Builder builderForValue)
[Output Only] AS path.
repeated .google.cloud.compute.v1.RouteAsPath as_paths = 137568929;
-
addAsPaths
public Route.Builder addAsPaths(RouteAsPath value)
[Output Only] AS path.
repeated .google.cloud.compute.v1.RouteAsPath as_paths = 137568929;
-
addAsPaths
public Route.Builder addAsPaths(int index, RouteAsPath value)
[Output Only] AS path.
repeated .google.cloud.compute.v1.RouteAsPath as_paths = 137568929;
-
addAsPaths
public Route.Builder addAsPaths(RouteAsPath.Builder builderForValue)
[Output Only] AS path.
repeated .google.cloud.compute.v1.RouteAsPath as_paths = 137568929;
-
addAsPaths
public Route.Builder addAsPaths(int index, RouteAsPath.Builder builderForValue)
[Output Only] AS path.
repeated .google.cloud.compute.v1.RouteAsPath as_paths = 137568929;
-
addAllAsPaths
public Route.Builder addAllAsPaths(Iterable<? extends RouteAsPath> values)
[Output Only] AS path.
repeated .google.cloud.compute.v1.RouteAsPath as_paths = 137568929;
-
clearAsPaths
public Route.Builder clearAsPaths()
[Output Only] AS path.
repeated .google.cloud.compute.v1.RouteAsPath as_paths = 137568929;
-
removeAsPaths
public Route.Builder removeAsPaths(int index)
[Output Only] AS path.
repeated .google.cloud.compute.v1.RouteAsPath as_paths = 137568929;
-
getAsPathsBuilder
public RouteAsPath.Builder getAsPathsBuilder(int index)
[Output Only] AS path.
repeated .google.cloud.compute.v1.RouteAsPath as_paths = 137568929;
-
getAsPathsOrBuilder
public RouteAsPathOrBuilder getAsPathsOrBuilder(int index)
[Output Only] AS path.
repeated .google.cloud.compute.v1.RouteAsPath as_paths = 137568929;
- Specified by:
getAsPathsOrBuilder
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
-
addAsPathsBuilder
public RouteAsPath.Builder addAsPathsBuilder()
[Output Only] AS path.
repeated .google.cloud.compute.v1.RouteAsPath as_paths = 137568929;
-
addAsPathsBuilder
public RouteAsPath.Builder addAsPathsBuilder(int index)
[Output Only] AS path.
repeated .google.cloud.compute.v1.RouteAsPath as_paths = 137568929;
-
getAsPathsBuilderList
public List<RouteAsPath.Builder> getAsPathsBuilderList()
[Output Only] AS path.
repeated .google.cloud.compute.v1.RouteAsPath as_paths = 137568929;
-
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.
-
setCreationTimestamp
public Route.Builder setCreationTimestamp(String value)
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Parameters:
value
- The creationTimestamp to set.- Returns:
- This builder for chaining.
-
clearCreationTimestamp
public Route.Builder clearCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Returns:
- This builder for chaining.
-
setCreationTimestampBytes
public Route.Builder setCreationTimestampBytes(com.google.protobuf.ByteString value)
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Parameters:
value
- The bytes for creationTimestamp to set.- Returns:
- This builder for chaining.
-
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.
-
setDescription
public Route.Builder setDescription(String value)
An optional description of this resource. Provide this field when you create the resource.
optional string description = 422937596;
- Parameters:
value
- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
public Route.Builder clearDescription()
An optional description of this resource. Provide this field when you create the resource.
optional string description = 422937596;
- Returns:
- This builder for chaining.
-
setDescriptionBytes
public Route.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
An optional description of this resource. Provide this field when you create the resource.
optional string description = 422937596;
- Parameters:
value
- The bytes for description to set.- Returns:
- This builder for chaining.
-
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.
-
setDestRange
public Route.Builder setDestRange(String value)
The destination range of outgoing packets that this route applies to. Both IPv4 and IPv6 are supported.
optional string dest_range = 381327712;
- Parameters:
value
- The destRange to set.- Returns:
- This builder for chaining.
-
clearDestRange
public Route.Builder clearDestRange()
The destination range of outgoing packets that this route applies to. Both IPv4 and IPv6 are supported.
optional string dest_range = 381327712;
- Returns:
- This builder for chaining.
-
setDestRangeBytes
public Route.Builder setDestRangeBytes(com.google.protobuf.ByteString value)
The destination range of outgoing packets that this route applies to. Both IPv4 and IPv6 are supported.
optional string dest_range = 381327712;
- Parameters:
value
- The bytes for destRange to set.- Returns:
- This builder for chaining.
-
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.
-
setId
public Route.Builder setId(long value)
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;
- Parameters:
value
- The id to set.- Returns:
- This builder for chaining.
-
clearId
public Route.Builder clearId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;
- Returns:
- This builder for chaining.
-
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.
-
setKind
public Route.Builder setKind(String value)
[Output Only] Type of this resource. Always compute#routes for Route resources.
optional string kind = 3292052;
- Parameters:
value
- The kind to set.- Returns:
- This builder for chaining.
-
clearKind
public Route.Builder clearKind()
[Output Only] Type of this resource. Always compute#routes for Route resources.
optional string kind = 3292052;
- Returns:
- This builder for chaining.
-
setKindBytes
public Route.Builder setKindBytes(com.google.protobuf.ByteString value)
[Output Only] Type of this resource. Always compute#routes for Route resources.
optional string kind = 3292052;
- Parameters:
value
- The bytes for kind to set.- Returns:
- This builder for chaining.
-
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.
-
setName
public Route.Builder setName(String value)
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;
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
public Route.Builder clearName()
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;
- Returns:
- This builder for chaining.
-
setNameBytes
public Route.Builder setNameBytes(com.google.protobuf.ByteString value)
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;
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
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.
-
setNetwork
public Route.Builder setNetwork(String value)
Fully-qualified URL of the network that this route applies to.
optional string network = 232872494;
- Parameters:
value
- The network to set.- Returns:
- This builder for chaining.
-
clearNetwork
public Route.Builder clearNetwork()
Fully-qualified URL of the network that this route applies to.
optional string network = 232872494;
- Returns:
- This builder for chaining.
-
setNetworkBytes
public Route.Builder setNetworkBytes(com.google.protobuf.ByteString value)
Fully-qualified URL of the network that this route applies to.
optional string network = 232872494;
- Parameters:
value
- The bytes for network to set.- Returns:
- This builder for chaining.
-
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.
-
setNextHopGateway
public Route.Builder setNextHopGateway(String value)
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;
- Parameters:
value
- The nextHopGateway to set.- Returns:
- This builder for chaining.
-
clearNextHopGateway
public Route.Builder clearNextHopGateway()
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:
- This builder for chaining.
-
setNextHopGatewayBytes
public Route.Builder setNextHopGatewayBytes(com.google.protobuf.ByteString value)
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;
- Parameters:
value
- The bytes for nextHopGateway to set.- Returns:
- This builder for chaining.
-
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.
-
setNextHopHub
public Route.Builder setNextHopHub(String value)
[Output Only] The full resource name of the Network Connectivity Center hub that will handle matching packets.
optional string next_hop_hub = 198679219;
- Parameters:
value
- The nextHopHub to set.- Returns:
- This builder for chaining.
-
clearNextHopHub
public Route.Builder clearNextHopHub()
[Output Only] The full resource name of the Network Connectivity Center hub that will handle matching packets.
optional string next_hop_hub = 198679219;
- Returns:
- This builder for chaining.
-
setNextHopHubBytes
public Route.Builder setNextHopHubBytes(com.google.protobuf.ByteString value)
[Output Only] The full resource name of the Network Connectivity Center hub that will handle matching packets.
optional string next_hop_hub = 198679219;
- Parameters:
value
- The bytes for nextHopHub to set.- Returns:
- This builder for chaining.
-
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.
-
setNextHopIlb
public Route.Builder setNextHopIlb(String value)
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;
- Parameters:
value
- The nextHopIlb to set.- Returns:
- This builder for chaining.
-
clearNextHopIlb
public Route.Builder clearNextHopIlb()
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:
- This builder for chaining.
-
setNextHopIlbBytes
public Route.Builder setNextHopIlbBytes(com.google.protobuf.ByteString value)
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;
- Parameters:
value
- The bytes for nextHopIlb to set.- Returns:
- This builder for chaining.
-
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.
-
setNextHopInstance
public Route.Builder setNextHopInstance(String value)
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;
- Parameters:
value
- The nextHopInstance to set.- Returns:
- This builder for chaining.
-
clearNextHopInstance
public Route.Builder clearNextHopInstance()
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:
- This builder for chaining.
-
setNextHopInstanceBytes
public Route.Builder setNextHopInstanceBytes(com.google.protobuf.ByteString value)
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;
- Parameters:
value
- The bytes for nextHopInstance to set.- Returns:
- This builder for chaining.
-
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.
-
setNextHopIp
public Route.Builder setNextHopIp(String value)
The network IP address of an instance that should handle matching packets. Only IPv4 is supported.
optional string next_hop_ip = 110319529;
- Parameters:
value
- The nextHopIp to set.- Returns:
- This builder for chaining.
-
clearNextHopIp
public Route.Builder clearNextHopIp()
The network IP address of an instance that should handle matching packets. Only IPv4 is supported.
optional string next_hop_ip = 110319529;
- Returns:
- This builder for chaining.
-
setNextHopIpBytes
public Route.Builder setNextHopIpBytes(com.google.protobuf.ByteString value)
The network IP address of an instance that should handle matching packets. Only IPv4 is supported.
optional string next_hop_ip = 110319529;
- Parameters:
value
- The bytes for nextHopIp to set.- Returns:
- This builder for chaining.
-
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.
-
setNextHopNetwork
public Route.Builder setNextHopNetwork(String value)
The URL of the local network if it should handle matching packets.
optional string next_hop_network = 262295788;
- Parameters:
value
- The nextHopNetwork to set.- Returns:
- This builder for chaining.
-
clearNextHopNetwork
public Route.Builder clearNextHopNetwork()
The URL of the local network if it should handle matching packets.
optional string next_hop_network = 262295788;
- Returns:
- This builder for chaining.
-
setNextHopNetworkBytes
public Route.Builder setNextHopNetworkBytes(com.google.protobuf.ByteString value)
The URL of the local network if it should handle matching packets.
optional string next_hop_network = 262295788;
- Parameters:
value
- The bytes for nextHopNetwork to set.- Returns:
- This builder for chaining.
-
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.
-
setNextHopPeering
public Route.Builder setNextHopPeering(String value)
[Output Only] The network peering name that should handle matching packets, which should conform to RFC1035.
optional string next_hop_peering = 412682750;
- Parameters:
value
- The nextHopPeering to set.- Returns:
- This builder for chaining.
-
clearNextHopPeering
public Route.Builder clearNextHopPeering()
[Output Only] The network peering name that should handle matching packets, which should conform to RFC1035.
optional string next_hop_peering = 412682750;
- Returns:
- This builder for chaining.
-
setNextHopPeeringBytes
public Route.Builder setNextHopPeeringBytes(com.google.protobuf.ByteString value)
[Output Only] The network peering name that should handle matching packets, which should conform to RFC1035.
optional string next_hop_peering = 412682750;
- Parameters:
value
- The bytes for nextHopPeering to set.- Returns:
- This builder for chaining.
-
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.
-
setNextHopVpnTunnel
public Route.Builder setNextHopVpnTunnel(String value)
The URL to a VpnTunnel that should handle matching packets.
optional string next_hop_vpn_tunnel = 519844501;
- Parameters:
value
- The nextHopVpnTunnel to set.- Returns:
- This builder for chaining.
-
clearNextHopVpnTunnel
public Route.Builder clearNextHopVpnTunnel()
The URL to a VpnTunnel that should handle matching packets.
optional string next_hop_vpn_tunnel = 519844501;
- Returns:
- This builder for chaining.
-
setNextHopVpnTunnelBytes
public Route.Builder setNextHopVpnTunnelBytes(com.google.protobuf.ByteString value)
The URL to a VpnTunnel that should handle matching packets.
optional string next_hop_vpn_tunnel = 519844501;
- Parameters:
value
- The bytes for nextHopVpnTunnel to set.- Returns:
- This builder for chaining.
-
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.
-
setPriority
public Route.Builder setPriority(int value)
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;
- Parameters:
value
- The priority to set.- Returns:
- This builder for chaining.
-
clearPriority
public Route.Builder clearPriority()
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:
- This builder for chaining.
-
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.
-
setRouteStatus
public Route.Builder setRouteStatus(String value)
[Output only] The status of the route. Check the RouteStatus enum for the list of possible values.
optional string route_status = 418162344;
- Parameters:
value
- The routeStatus to set.- Returns:
- This builder for chaining.
-
clearRouteStatus
public Route.Builder clearRouteStatus()
[Output only] The status of the route. Check the RouteStatus enum for the list of possible values.
optional string route_status = 418162344;
- Returns:
- This builder for chaining.
-
setRouteStatusBytes
public Route.Builder setRouteStatusBytes(com.google.protobuf.ByteString value)
[Output only] The status of the route. Check the RouteStatus enum for the list of possible values.
optional string route_status = 418162344;
- Parameters:
value
- The bytes for routeStatus to set.- Returns:
- This builder for chaining.
-
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.
-
setRouteType
public Route.Builder setRouteType(String value)
[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;
- Parameters:
value
- The routeType to set.- Returns:
- This builder for chaining.
-
clearRouteType
public Route.Builder clearRouteType()
[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:
- This builder for chaining.
-
setRouteTypeBytes
public Route.Builder setRouteTypeBytes(com.google.protobuf.ByteString value)
[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;
- Parameters:
value
- The bytes for routeType to set.- Returns:
- This builder for chaining.
-
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.
-
setSelfLink
public Route.Builder setSelfLink(String value)
[Output Only] Server-defined fully-qualified URL for this resource.
optional string self_link = 456214797;
- Parameters:
value
- The selfLink to set.- Returns:
- This builder for chaining.
-
clearSelfLink
public Route.Builder clearSelfLink()
[Output Only] Server-defined fully-qualified URL for this resource.
optional string self_link = 456214797;
- Returns:
- This builder for chaining.
-
setSelfLinkBytes
public Route.Builder setSelfLinkBytes(com.google.protobuf.ByteString value)
[Output Only] Server-defined fully-qualified URL for this resource.
optional string self_link = 456214797;
- Parameters:
value
- The bytes for selfLink to set.- Returns:
- This builder for chaining.
-
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.
-
setTags
public Route.Builder setTags(int index, String value)
A list of instance tags to which this route applies.
repeated string tags = 3552281;
- Parameters:
index
- The index to set the value at.value
- The tags to set.- Returns:
- This builder for chaining.
-
addTags
public Route.Builder addTags(String value)
A list of instance tags to which this route applies.
repeated string tags = 3552281;
- Parameters:
value
- The tags to add.- Returns:
- This builder for chaining.
-
addAllTags
public Route.Builder addAllTags(Iterable<String> values)
A list of instance tags to which this route applies.
repeated string tags = 3552281;
- Parameters:
values
- The tags to add.- Returns:
- This builder for chaining.
-
clearTags
public Route.Builder clearTags()
A list of instance tags to which this route applies.
repeated string tags = 3552281;
- Returns:
- This builder for chaining.
-
addTagsBytes
public Route.Builder addTagsBytes(com.google.protobuf.ByteString value)
A list of instance tags to which this route applies.
repeated string tags = 3552281;
- Parameters:
value
- The bytes of the tags to add.- Returns:
- This builder for chaining.
-
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
-
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
-
setWarnings
public Route.Builder setWarnings(int index, Warnings value)
[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;
-
setWarnings
public Route.Builder setWarnings(int index, Warnings.Builder builderForValue)
[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;
-
addWarnings
public Route.Builder addWarnings(Warnings value)
[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;
-
addWarnings
public Route.Builder addWarnings(int index, Warnings value)
[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;
-
addWarnings
public Route.Builder addWarnings(Warnings.Builder builderForValue)
[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;
-
addWarnings
public Route.Builder addWarnings(int index, Warnings.Builder builderForValue)
[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;
-
addAllWarnings
public Route.Builder addAllWarnings(Iterable<? extends Warnings> values)
[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;
-
clearWarnings
public Route.Builder clearWarnings()
[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;
-
removeWarnings
public Route.Builder removeWarnings(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;
-
getWarningsBuilder
public Warnings.Builder getWarningsBuilder(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;
-
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
-
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
-
addWarningsBuilder
public Warnings.Builder addWarningsBuilder()
[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;
-
addWarningsBuilder
public Warnings.Builder addWarningsBuilder(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;
-
getWarningsBuilderList
public List<Warnings.Builder> getWarningsBuilderList()
[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;
-
setUnknownFields
public final Route.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Route.Builder>
-
mergeUnknownFields
public final Route.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Route.Builder>
-
-