Class RouteInfo.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<RouteInfo.Builder>
-
- com.google.cloud.networkmanagement.v1.RouteInfo.Builder
-
- All Implemented Interfaces:
RouteInfoOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- RouteInfo
public static final class RouteInfo.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<RouteInfo.Builder> implements RouteInfoOrBuilder
For display only. Metadata associated with a Compute Engine route.
Protobuf typegoogle.cloud.networkmanagement.v1.RouteInfo
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RouteInfo.Builder
addAllDestPortRanges(Iterable<String> values)
Destination port ranges of the route.RouteInfo.Builder
addAllInstanceTags(Iterable<String> values)
Instance tags of the route.RouteInfo.Builder
addAllProtocols(Iterable<String> values)
Protocols of the route.RouteInfo.Builder
addAllSrcPortRanges(Iterable<String> values)
Source port ranges of the route.RouteInfo.Builder
addDestPortRanges(String value)
Destination port ranges of the route.RouteInfo.Builder
addDestPortRangesBytes(com.google.protobuf.ByteString value)
Destination port ranges of the route.RouteInfo.Builder
addInstanceTags(String value)
Instance tags of the route.RouteInfo.Builder
addInstanceTagsBytes(com.google.protobuf.ByteString value)
Instance tags of the route.RouteInfo.Builder
addProtocols(String value)
Protocols of the route.RouteInfo.Builder
addProtocolsBytes(com.google.protobuf.ByteString value)
Protocols of the route.RouteInfo.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
RouteInfo.Builder
addSrcPortRanges(String value)
Source port ranges of the route.RouteInfo.Builder
addSrcPortRangesBytes(com.google.protobuf.ByteString value)
Source port ranges of the route.RouteInfo
build()
RouteInfo
buildPartial()
RouteInfo.Builder
clear()
RouteInfo.Builder
clearDestIpRange()
Destination IP range of the route.RouteInfo.Builder
clearDestPortRanges()
Destination port ranges of the route.RouteInfo.Builder
clearDisplayName()
Name of a route.RouteInfo.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
RouteInfo.Builder
clearInstanceTags()
Instance tags of the route.RouteInfo.Builder
clearNccHubUri()
URI of a NCC Hub.RouteInfo.Builder
clearNccSpokeUri()
URI of a NCC Spoke.RouteInfo.Builder
clearNetworkUri()
URI of a Compute Engine network.RouteInfo.Builder
clearNextHop()
Next hop of the route.RouteInfo.Builder
clearNextHopType()
Type of next hop.RouteInfo.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
RouteInfo.Builder
clearPriority()
Priority of the route.RouteInfo.Builder
clearProtocols()
Protocols of the route.RouteInfo.Builder
clearRouteScope()
Indicates where route is applicable.RouteInfo.Builder
clearRouteType()
Type of route.RouteInfo.Builder
clearSrcIpRange()
Source IP address range of the route.RouteInfo.Builder
clearSrcPortRanges()
Source port ranges of the route.RouteInfo.Builder
clearUri()
URI of a route.RouteInfo.Builder
clone()
RouteInfo
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getDestIpRange()
Destination IP range of the route.com.google.protobuf.ByteString
getDestIpRangeBytes()
Destination IP range of the route.String
getDestPortRanges(int index)
Destination port ranges of the route.com.google.protobuf.ByteString
getDestPortRangesBytes(int index)
Destination port ranges of the route.int
getDestPortRangesCount()
Destination port ranges of the route.com.google.protobuf.ProtocolStringList
getDestPortRangesList()
Destination port ranges of the route.String
getDisplayName()
Name of a route.com.google.protobuf.ByteString
getDisplayNameBytes()
Name of a route.String
getInstanceTags(int index)
Instance tags of the route.com.google.protobuf.ByteString
getInstanceTagsBytes(int index)
Instance tags of the route.int
getInstanceTagsCount()
Instance tags of the route.com.google.protobuf.ProtocolStringList
getInstanceTagsList()
Instance tags of the route.String
getNccHubUri()
URI of a NCC Hub.com.google.protobuf.ByteString
getNccHubUriBytes()
URI of a NCC Hub.String
getNccSpokeUri()
URI of a NCC Spoke.com.google.protobuf.ByteString
getNccSpokeUriBytes()
URI of a NCC Spoke.String
getNetworkUri()
URI of a Compute Engine network.com.google.protobuf.ByteString
getNetworkUriBytes()
URI of a Compute Engine network.String
getNextHop()
Next hop of the route.com.google.protobuf.ByteString
getNextHopBytes()
Next hop of the route.RouteInfo.NextHopType
getNextHopType()
Type of next hop.int
getNextHopTypeValue()
Type of next hop.int
getPriority()
Priority of the route.String
getProtocols(int index)
Protocols of the route.com.google.protobuf.ByteString
getProtocolsBytes(int index)
Protocols of the route.int
getProtocolsCount()
Protocols of the route.com.google.protobuf.ProtocolStringList
getProtocolsList()
Protocols of the route.RouteInfo.RouteScope
getRouteScope()
Indicates where route is applicable.int
getRouteScopeValue()
Indicates where route is applicable.RouteInfo.RouteType
getRouteType()
Type of route.int
getRouteTypeValue()
Type of route.String
getSrcIpRange()
Source IP address range of the route.com.google.protobuf.ByteString
getSrcIpRangeBytes()
Source IP address range of the route.String
getSrcPortRanges(int index)
Source port ranges of the route.com.google.protobuf.ByteString
getSrcPortRangesBytes(int index)
Source port ranges of the route.int
getSrcPortRangesCount()
Source port ranges of the route.com.google.protobuf.ProtocolStringList
getSrcPortRangesList()
Source port ranges of the route.String
getUri()
URI of a route.com.google.protobuf.ByteString
getUriBytes()
URI of a route.boolean
hasNccHubUri()
URI of a NCC Hub.boolean
hasNccSpokeUri()
URI of a NCC Spoke.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
RouteInfo.Builder
mergeFrom(RouteInfo other)
RouteInfo.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
RouteInfo.Builder
mergeFrom(com.google.protobuf.Message other)
RouteInfo.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
RouteInfo.Builder
setDestIpRange(String value)
Destination IP range of the route.RouteInfo.Builder
setDestIpRangeBytes(com.google.protobuf.ByteString value)
Destination IP range of the route.RouteInfo.Builder
setDestPortRanges(int index, String value)
Destination port ranges of the route.RouteInfo.Builder
setDisplayName(String value)
Name of a route.RouteInfo.Builder
setDisplayNameBytes(com.google.protobuf.ByteString value)
Name of a route.RouteInfo.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
RouteInfo.Builder
setInstanceTags(int index, String value)
Instance tags of the route.RouteInfo.Builder
setNccHubUri(String value)
URI of a NCC Hub.RouteInfo.Builder
setNccHubUriBytes(com.google.protobuf.ByteString value)
URI of a NCC Hub.RouteInfo.Builder
setNccSpokeUri(String value)
URI of a NCC Spoke.RouteInfo.Builder
setNccSpokeUriBytes(com.google.protobuf.ByteString value)
URI of a NCC Spoke.RouteInfo.Builder
setNetworkUri(String value)
URI of a Compute Engine network.RouteInfo.Builder
setNetworkUriBytes(com.google.protobuf.ByteString value)
URI of a Compute Engine network.RouteInfo.Builder
setNextHop(String value)
Next hop of the route.RouteInfo.Builder
setNextHopBytes(com.google.protobuf.ByteString value)
Next hop of the route.RouteInfo.Builder
setNextHopType(RouteInfo.NextHopType value)
Type of next hop.RouteInfo.Builder
setNextHopTypeValue(int value)
Type of next hop.RouteInfo.Builder
setPriority(int value)
Priority of the route.RouteInfo.Builder
setProtocols(int index, String value)
Protocols of the route.RouteInfo.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
RouteInfo.Builder
setRouteScope(RouteInfo.RouteScope value)
Indicates where route is applicable.RouteInfo.Builder
setRouteScopeValue(int value)
Indicates where route is applicable.RouteInfo.Builder
setRouteType(RouteInfo.RouteType value)
Type of route.RouteInfo.Builder
setRouteTypeValue(int value)
Type of route.RouteInfo.Builder
setSrcIpRange(String value)
Source IP address range of the route.RouteInfo.Builder
setSrcIpRangeBytes(com.google.protobuf.ByteString value)
Source IP address range of the route.RouteInfo.Builder
setSrcPortRanges(int index, String value)
Source port ranges of the route.RouteInfo.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
RouteInfo.Builder
setUri(String value)
URI of a route.RouteInfo.Builder
setUriBytes(com.google.protobuf.ByteString value)
URI of a route.-
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<RouteInfo.Builder>
-
clear
public RouteInfo.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<RouteInfo.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<RouteInfo.Builder>
-
getDefaultInstanceForType
public RouteInfo getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public RouteInfo build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public RouteInfo buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public RouteInfo.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<RouteInfo.Builder>
-
setField
public RouteInfo.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<RouteInfo.Builder>
-
clearField
public RouteInfo.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<RouteInfo.Builder>
-
clearOneof
public RouteInfo.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<RouteInfo.Builder>
-
setRepeatedField
public RouteInfo.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<RouteInfo.Builder>
-
addRepeatedField
public RouteInfo.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<RouteInfo.Builder>
-
mergeFrom
public RouteInfo.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<RouteInfo.Builder>
-
mergeFrom
public RouteInfo.Builder mergeFrom(RouteInfo other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouteInfo.Builder>
-
mergeFrom
public RouteInfo.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<RouteInfo.Builder>
- Throws:
IOException
-
getRouteTypeValue
public int getRouteTypeValue()
Type of route.
.google.cloud.networkmanagement.v1.RouteInfo.RouteType route_type = 8;
- Specified by:
getRouteTypeValue
in interfaceRouteInfoOrBuilder
- Returns:
- The enum numeric value on the wire for routeType.
-
setRouteTypeValue
public RouteInfo.Builder setRouteTypeValue(int value)
Type of route.
.google.cloud.networkmanagement.v1.RouteInfo.RouteType route_type = 8;
- Parameters:
value
- The enum numeric value on the wire for routeType to set.- Returns:
- This builder for chaining.
-
getRouteType
public RouteInfo.RouteType getRouteType()
Type of route.
.google.cloud.networkmanagement.v1.RouteInfo.RouteType route_type = 8;
- Specified by:
getRouteType
in interfaceRouteInfoOrBuilder
- Returns:
- The routeType.
-
setRouteType
public RouteInfo.Builder setRouteType(RouteInfo.RouteType value)
Type of route.
.google.cloud.networkmanagement.v1.RouteInfo.RouteType route_type = 8;
- Parameters:
value
- The routeType to set.- Returns:
- This builder for chaining.
-
clearRouteType
public RouteInfo.Builder clearRouteType()
Type of route.
.google.cloud.networkmanagement.v1.RouteInfo.RouteType route_type = 8;
- Returns:
- This builder for chaining.
-
getNextHopTypeValue
public int getNextHopTypeValue()
Type of next hop.
.google.cloud.networkmanagement.v1.RouteInfo.NextHopType next_hop_type = 9;
- Specified by:
getNextHopTypeValue
in interfaceRouteInfoOrBuilder
- Returns:
- The enum numeric value on the wire for nextHopType.
-
setNextHopTypeValue
public RouteInfo.Builder setNextHopTypeValue(int value)
Type of next hop.
.google.cloud.networkmanagement.v1.RouteInfo.NextHopType next_hop_type = 9;
- Parameters:
value
- The enum numeric value on the wire for nextHopType to set.- Returns:
- This builder for chaining.
-
getNextHopType
public RouteInfo.NextHopType getNextHopType()
Type of next hop.
.google.cloud.networkmanagement.v1.RouteInfo.NextHopType next_hop_type = 9;
- Specified by:
getNextHopType
in interfaceRouteInfoOrBuilder
- Returns:
- The nextHopType.
-
setNextHopType
public RouteInfo.Builder setNextHopType(RouteInfo.NextHopType value)
Type of next hop.
.google.cloud.networkmanagement.v1.RouteInfo.NextHopType next_hop_type = 9;
- Parameters:
value
- The nextHopType to set.- Returns:
- This builder for chaining.
-
clearNextHopType
public RouteInfo.Builder clearNextHopType()
Type of next hop.
.google.cloud.networkmanagement.v1.RouteInfo.NextHopType next_hop_type = 9;
- Returns:
- This builder for chaining.
-
getRouteScopeValue
public int getRouteScopeValue()
Indicates where route is applicable.
.google.cloud.networkmanagement.v1.RouteInfo.RouteScope route_scope = 14;
- Specified by:
getRouteScopeValue
in interfaceRouteInfoOrBuilder
- Returns:
- The enum numeric value on the wire for routeScope.
-
setRouteScopeValue
public RouteInfo.Builder setRouteScopeValue(int value)
Indicates where route is applicable.
.google.cloud.networkmanagement.v1.RouteInfo.RouteScope route_scope = 14;
- Parameters:
value
- The enum numeric value on the wire for routeScope to set.- Returns:
- This builder for chaining.
-
getRouteScope
public RouteInfo.RouteScope getRouteScope()
Indicates where route is applicable.
.google.cloud.networkmanagement.v1.RouteInfo.RouteScope route_scope = 14;
- Specified by:
getRouteScope
in interfaceRouteInfoOrBuilder
- Returns:
- The routeScope.
-
setRouteScope
public RouteInfo.Builder setRouteScope(RouteInfo.RouteScope value)
Indicates where route is applicable.
.google.cloud.networkmanagement.v1.RouteInfo.RouteScope route_scope = 14;
- Parameters:
value
- The routeScope to set.- Returns:
- This builder for chaining.
-
clearRouteScope
public RouteInfo.Builder clearRouteScope()
Indicates where route is applicable.
.google.cloud.networkmanagement.v1.RouteInfo.RouteScope route_scope = 14;
- Returns:
- This builder for chaining.
-
getDisplayName
public String getDisplayName()
Name of a route.
string display_name = 1;
- Specified by:
getDisplayName
in interfaceRouteInfoOrBuilder
- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()
Name of a route.
string display_name = 1;
- Specified by:
getDisplayNameBytes
in interfaceRouteInfoOrBuilder
- Returns:
- The bytes for displayName.
-
setDisplayName
public RouteInfo.Builder setDisplayName(String value)
Name of a route.
string display_name = 1;
- Parameters:
value
- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
public RouteInfo.Builder clearDisplayName()
Name of a route.
string display_name = 1;
- Returns:
- This builder for chaining.
-
setDisplayNameBytes
public RouteInfo.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
Name of a route.
string display_name = 1;
- Parameters:
value
- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
getUri
public String getUri()
URI of a route. Dynamic, peering static and peering dynamic routes do not have an URI. Advertised route from Google Cloud VPC to on-premises network also does not have an URI.
string uri = 2;
- Specified by:
getUri
in interfaceRouteInfoOrBuilder
- Returns:
- The uri.
-
getUriBytes
public com.google.protobuf.ByteString getUriBytes()
URI of a route. Dynamic, peering static and peering dynamic routes do not have an URI. Advertised route from Google Cloud VPC to on-premises network also does not have an URI.
string uri = 2;
- Specified by:
getUriBytes
in interfaceRouteInfoOrBuilder
- Returns:
- The bytes for uri.
-
setUri
public RouteInfo.Builder setUri(String value)
URI of a route. Dynamic, peering static and peering dynamic routes do not have an URI. Advertised route from Google Cloud VPC to on-premises network also does not have an URI.
string uri = 2;
- Parameters:
value
- The uri to set.- Returns:
- This builder for chaining.
-
clearUri
public RouteInfo.Builder clearUri()
URI of a route. Dynamic, peering static and peering dynamic routes do not have an URI. Advertised route from Google Cloud VPC to on-premises network also does not have an URI.
string uri = 2;
- Returns:
- This builder for chaining.
-
setUriBytes
public RouteInfo.Builder setUriBytes(com.google.protobuf.ByteString value)
URI of a route. Dynamic, peering static and peering dynamic routes do not have an URI. Advertised route from Google Cloud VPC to on-premises network also does not have an URI.
string uri = 2;
- Parameters:
value
- The bytes for uri to set.- Returns:
- This builder for chaining.
-
getDestIpRange
public String getDestIpRange()
Destination IP range of the route.
string dest_ip_range = 3;
- Specified by:
getDestIpRange
in interfaceRouteInfoOrBuilder
- Returns:
- The destIpRange.
-
getDestIpRangeBytes
public com.google.protobuf.ByteString getDestIpRangeBytes()
Destination IP range of the route.
string dest_ip_range = 3;
- Specified by:
getDestIpRangeBytes
in interfaceRouteInfoOrBuilder
- Returns:
- The bytes for destIpRange.
-
setDestIpRange
public RouteInfo.Builder setDestIpRange(String value)
Destination IP range of the route.
string dest_ip_range = 3;
- Parameters:
value
- The destIpRange to set.- Returns:
- This builder for chaining.
-
clearDestIpRange
public RouteInfo.Builder clearDestIpRange()
Destination IP range of the route.
string dest_ip_range = 3;
- Returns:
- This builder for chaining.
-
setDestIpRangeBytes
public RouteInfo.Builder setDestIpRangeBytes(com.google.protobuf.ByteString value)
Destination IP range of the route.
string dest_ip_range = 3;
- Parameters:
value
- The bytes for destIpRange to set.- Returns:
- This builder for chaining.
-
getNextHop
public String getNextHop()
Next hop of the route.
string next_hop = 4;
- Specified by:
getNextHop
in interfaceRouteInfoOrBuilder
- Returns:
- The nextHop.
-
getNextHopBytes
public com.google.protobuf.ByteString getNextHopBytes()
Next hop of the route.
string next_hop = 4;
- Specified by:
getNextHopBytes
in interfaceRouteInfoOrBuilder
- Returns:
- The bytes for nextHop.
-
setNextHop
public RouteInfo.Builder setNextHop(String value)
Next hop of the route.
string next_hop = 4;
- Parameters:
value
- The nextHop to set.- Returns:
- This builder for chaining.
-
clearNextHop
public RouteInfo.Builder clearNextHop()
Next hop of the route.
string next_hop = 4;
- Returns:
- This builder for chaining.
-
setNextHopBytes
public RouteInfo.Builder setNextHopBytes(com.google.protobuf.ByteString value)
Next hop of the route.
string next_hop = 4;
- Parameters:
value
- The bytes for nextHop to set.- Returns:
- This builder for chaining.
-
getNetworkUri
public String getNetworkUri()
URI of a Compute Engine network. NETWORK routes only.
string network_uri = 5;
- Specified by:
getNetworkUri
in interfaceRouteInfoOrBuilder
- Returns:
- The networkUri.
-
getNetworkUriBytes
public com.google.protobuf.ByteString getNetworkUriBytes()
URI of a Compute Engine network. NETWORK routes only.
string network_uri = 5;
- Specified by:
getNetworkUriBytes
in interfaceRouteInfoOrBuilder
- Returns:
- The bytes for networkUri.
-
setNetworkUri
public RouteInfo.Builder setNetworkUri(String value)
URI of a Compute Engine network. NETWORK routes only.
string network_uri = 5;
- Parameters:
value
- The networkUri to set.- Returns:
- This builder for chaining.
-
clearNetworkUri
public RouteInfo.Builder clearNetworkUri()
URI of a Compute Engine network. NETWORK routes only.
string network_uri = 5;
- Returns:
- This builder for chaining.
-
setNetworkUriBytes
public RouteInfo.Builder setNetworkUriBytes(com.google.protobuf.ByteString value)
URI of a Compute Engine network. NETWORK routes only.
string network_uri = 5;
- Parameters:
value
- The bytes for networkUri to set.- Returns:
- This builder for chaining.
-
getPriority
public int getPriority()
Priority of the route.
int32 priority = 6;
- Specified by:
getPriority
in interfaceRouteInfoOrBuilder
- Returns:
- The priority.
-
setPriority
public RouteInfo.Builder setPriority(int value)
Priority of the route.
int32 priority = 6;
- Parameters:
value
- The priority to set.- Returns:
- This builder for chaining.
-
clearPriority
public RouteInfo.Builder clearPriority()
Priority of the route.
int32 priority = 6;
- Returns:
- This builder for chaining.
-
getInstanceTagsList
public com.google.protobuf.ProtocolStringList getInstanceTagsList()
Instance tags of the route.
repeated string instance_tags = 7;
- Specified by:
getInstanceTagsList
in interfaceRouteInfoOrBuilder
- Returns:
- A list containing the instanceTags.
-
getInstanceTagsCount
public int getInstanceTagsCount()
Instance tags of the route.
repeated string instance_tags = 7;
- Specified by:
getInstanceTagsCount
in interfaceRouteInfoOrBuilder
- Returns:
- The count of instanceTags.
-
getInstanceTags
public String getInstanceTags(int index)
Instance tags of the route.
repeated string instance_tags = 7;
- Specified by:
getInstanceTags
in interfaceRouteInfoOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The instanceTags at the given index.
-
getInstanceTagsBytes
public com.google.protobuf.ByteString getInstanceTagsBytes(int index)
Instance tags of the route.
repeated string instance_tags = 7;
- Specified by:
getInstanceTagsBytes
in interfaceRouteInfoOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the instanceTags at the given index.
-
setInstanceTags
public RouteInfo.Builder setInstanceTags(int index, String value)
Instance tags of the route.
repeated string instance_tags = 7;
- Parameters:
index
- The index to set the value at.value
- The instanceTags to set.- Returns:
- This builder for chaining.
-
addInstanceTags
public RouteInfo.Builder addInstanceTags(String value)
Instance tags of the route.
repeated string instance_tags = 7;
- Parameters:
value
- The instanceTags to add.- Returns:
- This builder for chaining.
-
addAllInstanceTags
public RouteInfo.Builder addAllInstanceTags(Iterable<String> values)
Instance tags of the route.
repeated string instance_tags = 7;
- Parameters:
values
- The instanceTags to add.- Returns:
- This builder for chaining.
-
clearInstanceTags
public RouteInfo.Builder clearInstanceTags()
Instance tags of the route.
repeated string instance_tags = 7;
- Returns:
- This builder for chaining.
-
addInstanceTagsBytes
public RouteInfo.Builder addInstanceTagsBytes(com.google.protobuf.ByteString value)
Instance tags of the route.
repeated string instance_tags = 7;
- Parameters:
value
- The bytes of the instanceTags to add.- Returns:
- This builder for chaining.
-
getSrcIpRange
public String getSrcIpRange()
Source IP address range of the route. Policy based routes only.
string src_ip_range = 10;
- Specified by:
getSrcIpRange
in interfaceRouteInfoOrBuilder
- Returns:
- The srcIpRange.
-
getSrcIpRangeBytes
public com.google.protobuf.ByteString getSrcIpRangeBytes()
Source IP address range of the route. Policy based routes only.
string src_ip_range = 10;
- Specified by:
getSrcIpRangeBytes
in interfaceRouteInfoOrBuilder
- Returns:
- The bytes for srcIpRange.
-
setSrcIpRange
public RouteInfo.Builder setSrcIpRange(String value)
Source IP address range of the route. Policy based routes only.
string src_ip_range = 10;
- Parameters:
value
- The srcIpRange to set.- Returns:
- This builder for chaining.
-
clearSrcIpRange
public RouteInfo.Builder clearSrcIpRange()
Source IP address range of the route. Policy based routes only.
string src_ip_range = 10;
- Returns:
- This builder for chaining.
-
setSrcIpRangeBytes
public RouteInfo.Builder setSrcIpRangeBytes(com.google.protobuf.ByteString value)
Source IP address range of the route. Policy based routes only.
string src_ip_range = 10;
- Parameters:
value
- The bytes for srcIpRange to set.- Returns:
- This builder for chaining.
-
getDestPortRangesList
public com.google.protobuf.ProtocolStringList getDestPortRangesList()
Destination port ranges of the route. Policy based routes only.
repeated string dest_port_ranges = 11;
- Specified by:
getDestPortRangesList
in interfaceRouteInfoOrBuilder
- Returns:
- A list containing the destPortRanges.
-
getDestPortRangesCount
public int getDestPortRangesCount()
Destination port ranges of the route. Policy based routes only.
repeated string dest_port_ranges = 11;
- Specified by:
getDestPortRangesCount
in interfaceRouteInfoOrBuilder
- Returns:
- The count of destPortRanges.
-
getDestPortRanges
public String getDestPortRanges(int index)
Destination port ranges of the route. Policy based routes only.
repeated string dest_port_ranges = 11;
- Specified by:
getDestPortRanges
in interfaceRouteInfoOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The destPortRanges at the given index.
-
getDestPortRangesBytes
public com.google.protobuf.ByteString getDestPortRangesBytes(int index)
Destination port ranges of the route. Policy based routes only.
repeated string dest_port_ranges = 11;
- Specified by:
getDestPortRangesBytes
in interfaceRouteInfoOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the destPortRanges at the given index.
-
setDestPortRanges
public RouteInfo.Builder setDestPortRanges(int index, String value)
Destination port ranges of the route. Policy based routes only.
repeated string dest_port_ranges = 11;
- Parameters:
index
- The index to set the value at.value
- The destPortRanges to set.- Returns:
- This builder for chaining.
-
addDestPortRanges
public RouteInfo.Builder addDestPortRanges(String value)
Destination port ranges of the route. Policy based routes only.
repeated string dest_port_ranges = 11;
- Parameters:
value
- The destPortRanges to add.- Returns:
- This builder for chaining.
-
addAllDestPortRanges
public RouteInfo.Builder addAllDestPortRanges(Iterable<String> values)
Destination port ranges of the route. Policy based routes only.
repeated string dest_port_ranges = 11;
- Parameters:
values
- The destPortRanges to add.- Returns:
- This builder for chaining.
-
clearDestPortRanges
public RouteInfo.Builder clearDestPortRanges()
Destination port ranges of the route. Policy based routes only.
repeated string dest_port_ranges = 11;
- Returns:
- This builder for chaining.
-
addDestPortRangesBytes
public RouteInfo.Builder addDestPortRangesBytes(com.google.protobuf.ByteString value)
Destination port ranges of the route. Policy based routes only.
repeated string dest_port_ranges = 11;
- Parameters:
value
- The bytes of the destPortRanges to add.- Returns:
- This builder for chaining.
-
getSrcPortRangesList
public com.google.protobuf.ProtocolStringList getSrcPortRangesList()
Source port ranges of the route. Policy based routes only.
repeated string src_port_ranges = 12;
- Specified by:
getSrcPortRangesList
in interfaceRouteInfoOrBuilder
- Returns:
- A list containing the srcPortRanges.
-
getSrcPortRangesCount
public int getSrcPortRangesCount()
Source port ranges of the route. Policy based routes only.
repeated string src_port_ranges = 12;
- Specified by:
getSrcPortRangesCount
in interfaceRouteInfoOrBuilder
- Returns:
- The count of srcPortRanges.
-
getSrcPortRanges
public String getSrcPortRanges(int index)
Source port ranges of the route. Policy based routes only.
repeated string src_port_ranges = 12;
- Specified by:
getSrcPortRanges
in interfaceRouteInfoOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The srcPortRanges at the given index.
-
getSrcPortRangesBytes
public com.google.protobuf.ByteString getSrcPortRangesBytes(int index)
Source port ranges of the route. Policy based routes only.
repeated string src_port_ranges = 12;
- Specified by:
getSrcPortRangesBytes
in interfaceRouteInfoOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the srcPortRanges at the given index.
-
setSrcPortRanges
public RouteInfo.Builder setSrcPortRanges(int index, String value)
Source port ranges of the route. Policy based routes only.
repeated string src_port_ranges = 12;
- Parameters:
index
- The index to set the value at.value
- The srcPortRanges to set.- Returns:
- This builder for chaining.
-
addSrcPortRanges
public RouteInfo.Builder addSrcPortRanges(String value)
Source port ranges of the route. Policy based routes only.
repeated string src_port_ranges = 12;
- Parameters:
value
- The srcPortRanges to add.- Returns:
- This builder for chaining.
-
addAllSrcPortRanges
public RouteInfo.Builder addAllSrcPortRanges(Iterable<String> values)
Source port ranges of the route. Policy based routes only.
repeated string src_port_ranges = 12;
- Parameters:
values
- The srcPortRanges to add.- Returns:
- This builder for chaining.
-
clearSrcPortRanges
public RouteInfo.Builder clearSrcPortRanges()
Source port ranges of the route. Policy based routes only.
repeated string src_port_ranges = 12;
- Returns:
- This builder for chaining.
-
addSrcPortRangesBytes
public RouteInfo.Builder addSrcPortRangesBytes(com.google.protobuf.ByteString value)
Source port ranges of the route. Policy based routes only.
repeated string src_port_ranges = 12;
- Parameters:
value
- The bytes of the srcPortRanges to add.- Returns:
- This builder for chaining.
-
getProtocolsList
public com.google.protobuf.ProtocolStringList getProtocolsList()
Protocols of the route. Policy based routes only.
repeated string protocols = 13;
- Specified by:
getProtocolsList
in interfaceRouteInfoOrBuilder
- Returns:
- A list containing the protocols.
-
getProtocolsCount
public int getProtocolsCount()
Protocols of the route. Policy based routes only.
repeated string protocols = 13;
- Specified by:
getProtocolsCount
in interfaceRouteInfoOrBuilder
- Returns:
- The count of protocols.
-
getProtocols
public String getProtocols(int index)
Protocols of the route. Policy based routes only.
repeated string protocols = 13;
- Specified by:
getProtocols
in interfaceRouteInfoOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The protocols at the given index.
-
getProtocolsBytes
public com.google.protobuf.ByteString getProtocolsBytes(int index)
Protocols of the route. Policy based routes only.
repeated string protocols = 13;
- Specified by:
getProtocolsBytes
in interfaceRouteInfoOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the protocols at the given index.
-
setProtocols
public RouteInfo.Builder setProtocols(int index, String value)
Protocols of the route. Policy based routes only.
repeated string protocols = 13;
- Parameters:
index
- The index to set the value at.value
- The protocols to set.- Returns:
- This builder for chaining.
-
addProtocols
public RouteInfo.Builder addProtocols(String value)
Protocols of the route. Policy based routes only.
repeated string protocols = 13;
- Parameters:
value
- The protocols to add.- Returns:
- This builder for chaining.
-
addAllProtocols
public RouteInfo.Builder addAllProtocols(Iterable<String> values)
Protocols of the route. Policy based routes only.
repeated string protocols = 13;
- Parameters:
values
- The protocols to add.- Returns:
- This builder for chaining.
-
clearProtocols
public RouteInfo.Builder clearProtocols()
Protocols of the route. Policy based routes only.
repeated string protocols = 13;
- Returns:
- This builder for chaining.
-
addProtocolsBytes
public RouteInfo.Builder addProtocolsBytes(com.google.protobuf.ByteString value)
Protocols of the route. Policy based routes only.
repeated string protocols = 13;
- Parameters:
value
- The bytes of the protocols to add.- Returns:
- This builder for chaining.
-
hasNccHubUri
public boolean hasNccHubUri()
URI of a NCC Hub. NCC_HUB routes only.
optional string ncc_hub_uri = 15;
- Specified by:
hasNccHubUri
in interfaceRouteInfoOrBuilder
- Returns:
- Whether the nccHubUri field is set.
-
getNccHubUri
public String getNccHubUri()
URI of a NCC Hub. NCC_HUB routes only.
optional string ncc_hub_uri = 15;
- Specified by:
getNccHubUri
in interfaceRouteInfoOrBuilder
- Returns:
- The nccHubUri.
-
getNccHubUriBytes
public com.google.protobuf.ByteString getNccHubUriBytes()
URI of a NCC Hub. NCC_HUB routes only.
optional string ncc_hub_uri = 15;
- Specified by:
getNccHubUriBytes
in interfaceRouteInfoOrBuilder
- Returns:
- The bytes for nccHubUri.
-
setNccHubUri
public RouteInfo.Builder setNccHubUri(String value)
URI of a NCC Hub. NCC_HUB routes only.
optional string ncc_hub_uri = 15;
- Parameters:
value
- The nccHubUri to set.- Returns:
- This builder for chaining.
-
clearNccHubUri
public RouteInfo.Builder clearNccHubUri()
URI of a NCC Hub. NCC_HUB routes only.
optional string ncc_hub_uri = 15;
- Returns:
- This builder for chaining.
-
setNccHubUriBytes
public RouteInfo.Builder setNccHubUriBytes(com.google.protobuf.ByteString value)
URI of a NCC Hub. NCC_HUB routes only.
optional string ncc_hub_uri = 15;
- Parameters:
value
- The bytes for nccHubUri to set.- Returns:
- This builder for chaining.
-
hasNccSpokeUri
public boolean hasNccSpokeUri()
URI of a NCC Spoke. NCC_HUB routes only.
optional string ncc_spoke_uri = 16;
- Specified by:
hasNccSpokeUri
in interfaceRouteInfoOrBuilder
- Returns:
- Whether the nccSpokeUri field is set.
-
getNccSpokeUri
public String getNccSpokeUri()
URI of a NCC Spoke. NCC_HUB routes only.
optional string ncc_spoke_uri = 16;
- Specified by:
getNccSpokeUri
in interfaceRouteInfoOrBuilder
- Returns:
- The nccSpokeUri.
-
getNccSpokeUriBytes
public com.google.protobuf.ByteString getNccSpokeUriBytes()
URI of a NCC Spoke. NCC_HUB routes only.
optional string ncc_spoke_uri = 16;
- Specified by:
getNccSpokeUriBytes
in interfaceRouteInfoOrBuilder
- Returns:
- The bytes for nccSpokeUri.
-
setNccSpokeUri
public RouteInfo.Builder setNccSpokeUri(String value)
URI of a NCC Spoke. NCC_HUB routes only.
optional string ncc_spoke_uri = 16;
- Parameters:
value
- The nccSpokeUri to set.- Returns:
- This builder for chaining.
-
clearNccSpokeUri
public RouteInfo.Builder clearNccSpokeUri()
URI of a NCC Spoke. NCC_HUB routes only.
optional string ncc_spoke_uri = 16;
- Returns:
- This builder for chaining.
-
setNccSpokeUriBytes
public RouteInfo.Builder setNccSpokeUriBytes(com.google.protobuf.ByteString value)
URI of a NCC Spoke. NCC_HUB routes only.
optional string ncc_spoke_uri = 16;
- Parameters:
value
- The bytes for nccSpokeUri to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final RouteInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouteInfo.Builder>
-
mergeUnknownFields
public final RouteInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouteInfo.Builder>
-
-