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.BuilderaddAllDestPortRanges(Iterable<String> values)Destination port ranges of the route.RouteInfo.BuilderaddAllInstanceTags(Iterable<String> values)Instance tags of the route.RouteInfo.BuilderaddAllProtocols(Iterable<String> values)Protocols of the route.RouteInfo.BuilderaddAllSrcPortRanges(Iterable<String> values)Source port ranges of the route.RouteInfo.BuilderaddDestPortRanges(String value)Destination port ranges of the route.RouteInfo.BuilderaddDestPortRangesBytes(com.google.protobuf.ByteString value)Destination port ranges of the route.RouteInfo.BuilderaddInstanceTags(String value)Instance tags of the route.RouteInfo.BuilderaddInstanceTagsBytes(com.google.protobuf.ByteString value)Instance tags of the route.RouteInfo.BuilderaddProtocols(String value)Protocols of the route.RouteInfo.BuilderaddProtocolsBytes(com.google.protobuf.ByteString value)Protocols of the route.RouteInfo.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)RouteInfo.BuilderaddSrcPortRanges(String value)Source port ranges of the route.RouteInfo.BuilderaddSrcPortRangesBytes(com.google.protobuf.ByteString value)Source port ranges of the route.RouteInfobuild()RouteInfobuildPartial()RouteInfo.Builderclear()RouteInfo.BuilderclearDestIpRange()Destination IP range of the route.RouteInfo.BuilderclearDestPortRanges()Destination port ranges of the route.RouteInfo.BuilderclearDisplayName()Name of a route.RouteInfo.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)RouteInfo.BuilderclearInstanceTags()Instance tags of the route.RouteInfo.BuilderclearNccHubUri()URI of a NCC Hub.RouteInfo.BuilderclearNccSpokeUri()URI of a NCC Spoke.RouteInfo.BuilderclearNetworkUri()URI of a Compute Engine network.RouteInfo.BuilderclearNextHop()Next hop of the route.RouteInfo.BuilderclearNextHopType()Type of next hop.RouteInfo.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)RouteInfo.BuilderclearPriority()Priority of the route.RouteInfo.BuilderclearProtocols()Protocols of the route.RouteInfo.BuilderclearRouteScope()Indicates where route is applicable.RouteInfo.BuilderclearRouteType()Type of route.RouteInfo.BuilderclearSrcIpRange()Source IP address range of the route.RouteInfo.BuilderclearSrcPortRanges()Source port ranges of the route.RouteInfo.BuilderclearUri()URI of a route.RouteInfo.Builderclone()RouteInfogetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetDestIpRange()Destination IP range of the route.com.google.protobuf.ByteStringgetDestIpRangeBytes()Destination IP range of the route.StringgetDestPortRanges(int index)Destination port ranges of the route.com.google.protobuf.ByteStringgetDestPortRangesBytes(int index)Destination port ranges of the route.intgetDestPortRangesCount()Destination port ranges of the route.com.google.protobuf.ProtocolStringListgetDestPortRangesList()Destination port ranges of the route.StringgetDisplayName()Name of a route.com.google.protobuf.ByteStringgetDisplayNameBytes()Name of a route.StringgetInstanceTags(int index)Instance tags of the route.com.google.protobuf.ByteStringgetInstanceTagsBytes(int index)Instance tags of the route.intgetInstanceTagsCount()Instance tags of the route.com.google.protobuf.ProtocolStringListgetInstanceTagsList()Instance tags of the route.StringgetNccHubUri()URI of a NCC Hub.com.google.protobuf.ByteStringgetNccHubUriBytes()URI of a NCC Hub.StringgetNccSpokeUri()URI of a NCC Spoke.com.google.protobuf.ByteStringgetNccSpokeUriBytes()URI of a NCC Spoke.StringgetNetworkUri()URI of a Compute Engine network.com.google.protobuf.ByteStringgetNetworkUriBytes()URI of a Compute Engine network.StringgetNextHop()Next hop of the route.com.google.protobuf.ByteStringgetNextHopBytes()Next hop of the route.RouteInfo.NextHopTypegetNextHopType()Type of next hop.intgetNextHopTypeValue()Type of next hop.intgetPriority()Priority of the route.StringgetProtocols(int index)Protocols of the route.com.google.protobuf.ByteStringgetProtocolsBytes(int index)Protocols of the route.intgetProtocolsCount()Protocols of the route.com.google.protobuf.ProtocolStringListgetProtocolsList()Protocols of the route.RouteInfo.RouteScopegetRouteScope()Indicates where route is applicable.intgetRouteScopeValue()Indicates where route is applicable.RouteInfo.RouteTypegetRouteType()Type of route.intgetRouteTypeValue()Type of route.StringgetSrcIpRange()Source IP address range of the route.com.google.protobuf.ByteStringgetSrcIpRangeBytes()Source IP address range of the route.StringgetSrcPortRanges(int index)Source port ranges of the route.com.google.protobuf.ByteStringgetSrcPortRangesBytes(int index)Source port ranges of the route.intgetSrcPortRangesCount()Source port ranges of the route.com.google.protobuf.ProtocolStringListgetSrcPortRangesList()Source port ranges of the route.StringgetUri()URI of a route.com.google.protobuf.ByteStringgetUriBytes()URI of a route.booleanhasNccHubUri()URI of a NCC Hub.booleanhasNccSpokeUri()URI of a NCC Spoke.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()RouteInfo.BuildermergeFrom(RouteInfo other)RouteInfo.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)RouteInfo.BuildermergeFrom(com.google.protobuf.Message other)RouteInfo.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)RouteInfo.BuildersetDestIpRange(String value)Destination IP range of the route.RouteInfo.BuildersetDestIpRangeBytes(com.google.protobuf.ByteString value)Destination IP range of the route.RouteInfo.BuildersetDestPortRanges(int index, String value)Destination port ranges of the route.RouteInfo.BuildersetDisplayName(String value)Name of a route.RouteInfo.BuildersetDisplayNameBytes(com.google.protobuf.ByteString value)Name of a route.RouteInfo.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)RouteInfo.BuildersetInstanceTags(int index, String value)Instance tags of the route.RouteInfo.BuildersetNccHubUri(String value)URI of a NCC Hub.RouteInfo.BuildersetNccHubUriBytes(com.google.protobuf.ByteString value)URI of a NCC Hub.RouteInfo.BuildersetNccSpokeUri(String value)URI of a NCC Spoke.RouteInfo.BuildersetNccSpokeUriBytes(com.google.protobuf.ByteString value)URI of a NCC Spoke.RouteInfo.BuildersetNetworkUri(String value)URI of a Compute Engine network.RouteInfo.BuildersetNetworkUriBytes(com.google.protobuf.ByteString value)URI of a Compute Engine network.RouteInfo.BuildersetNextHop(String value)Next hop of the route.RouteInfo.BuildersetNextHopBytes(com.google.protobuf.ByteString value)Next hop of the route.RouteInfo.BuildersetNextHopType(RouteInfo.NextHopType value)Type of next hop.RouteInfo.BuildersetNextHopTypeValue(int value)Type of next hop.RouteInfo.BuildersetPriority(int value)Priority of the route.RouteInfo.BuildersetProtocols(int index, String value)Protocols of the route.RouteInfo.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)RouteInfo.BuildersetRouteScope(RouteInfo.RouteScope value)Indicates where route is applicable.RouteInfo.BuildersetRouteScopeValue(int value)Indicates where route is applicable.RouteInfo.BuildersetRouteType(RouteInfo.RouteType value)Type of route.RouteInfo.BuildersetRouteTypeValue(int value)Type of route.RouteInfo.BuildersetSrcIpRange(String value)Source IP address range of the route.RouteInfo.BuildersetSrcIpRangeBytes(com.google.protobuf.ByteString value)Source IP address range of the route.RouteInfo.BuildersetSrcPortRanges(int index, String value)Source port ranges of the route.RouteInfo.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)RouteInfo.BuildersetUri(String value)URI of a route.RouteInfo.BuildersetUriBytes(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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<RouteInfo.Builder>
-
clear
public RouteInfo.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<RouteInfo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<RouteInfo.Builder>
-
getDefaultInstanceForType
public RouteInfo getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public RouteInfo build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public RouteInfo buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public RouteInfo.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<RouteInfo.Builder>
-
setField
public RouteInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RouteInfo.Builder>
-
clearField
public RouteInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RouteInfo.Builder>
-
clearOneof
public RouteInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<RouteInfo.Builder>
-
setRepeatedField
public RouteInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RouteInfo.Builder>
-
addRepeatedField
public RouteInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RouteInfo.Builder>
-
mergeFrom
public RouteInfo.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RouteInfo.Builder>
-
mergeFrom
public RouteInfo.Builder mergeFrom(RouteInfo other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin 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:
getRouteTypeValuein 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:
getRouteTypein 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:
getNextHopTypeValuein 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:
getNextHopTypein 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:
getRouteScopeValuein 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:
getRouteScopein 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:
getDisplayNamein interfaceRouteInfoOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()
Name of a route.
string display_name = 1;- Specified by:
getDisplayNameBytesin 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:
getUriin 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:
getUriBytesin 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:
getDestIpRangein interfaceRouteInfoOrBuilder- Returns:
- The destIpRange.
-
getDestIpRangeBytes
public com.google.protobuf.ByteString getDestIpRangeBytes()
Destination IP range of the route.
string dest_ip_range = 3;- Specified by:
getDestIpRangeBytesin 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:
getNextHopin interfaceRouteInfoOrBuilder- Returns:
- The nextHop.
-
getNextHopBytes
public com.google.protobuf.ByteString getNextHopBytes()
Next hop of the route.
string next_hop = 4;- Specified by:
getNextHopBytesin 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:
getNetworkUriin 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:
getNetworkUriBytesin 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:
getPriorityin 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:
getInstanceTagsListin interfaceRouteInfoOrBuilder- Returns:
- A list containing the instanceTags.
-
getInstanceTagsCount
public int getInstanceTagsCount()
Instance tags of the route.
repeated string instance_tags = 7;- Specified by:
getInstanceTagsCountin interfaceRouteInfoOrBuilder- Returns:
- The count of instanceTags.
-
getInstanceTags
public String getInstanceTags(int index)
Instance tags of the route.
repeated string instance_tags = 7;- Specified by:
getInstanceTagsin 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:
getInstanceTagsBytesin 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:
getSrcIpRangein 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:
getSrcIpRangeBytesin 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:
getDestPortRangesListin 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:
getDestPortRangesCountin 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:
getDestPortRangesin 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:
getDestPortRangesBytesin 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:
getSrcPortRangesListin 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:
getSrcPortRangesCountin 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:
getSrcPortRangesin 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:
getSrcPortRangesBytesin 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:
getProtocolsListin 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:
getProtocolsCountin 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:
getProtocolsin 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:
getProtocolsBytesin 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:
hasNccHubUriin 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:
getNccHubUriin 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:
getNccHubUriBytesin 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:
hasNccSpokeUriin 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:
getNccSpokeUriin 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:
getNccSpokeUriBytesin 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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RouteInfo.Builder>
-
mergeUnknownFields
public final RouteInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RouteInfo.Builder>
-
-