Class Route.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Route.Builder>
com.google.cloud.networkconnectivity.v1beta.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.GeneratedMessage.Builder<Route.Builder>
implements RouteOrBuilder
A route defines a path from VM instances within a spoke to a specific destination resource. Only VPC spokes have routes.Protobuf type
google.cloud.networkconnectivity.v1beta.Route-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.An optional description of the route.The destination IP address range.Output only.Immutable.Immutable.Immutable.Immutable.Immutable.Immutable.Output only.Immutable.Output only.Output only.clearUid()Output only.Output only.booleancontainsLabels(String key) Optional labels in key-value pair format.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.An optional description of the route.com.google.protobuf.ByteStringAn optional description of the route.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe destination IP address range.com.google.protobuf.ByteStringThe destination IP address range.Deprecated.intOptional labels in key-value pair format.Optional labels in key-value pair format.getLabelsOrDefault(String key, String defaultValue) Optional labels in key-value pair format.getLabelsOrThrow(String key) Optional labels in key-value pair format.Output only.com.google.protobuf.ByteStringOutput only.Deprecated.getName()Immutable.com.google.protobuf.ByteStringImmutable.Immutable.Immutable.Immutable.Immutable.Immutable.Immutable.Immutable.Immutable.Immutable.Immutable.Immutable.Immutable.Immutable.Immutable.Immutable.longOutput only.getSpoke()Immutable.com.google.protobuf.ByteStringImmutable.getState()Output only.intOutput only.getType()Output only.intOutput only.getUid()Output only.com.google.protobuf.ByteStringOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.booleanOutput only.booleanImmutable.booleanImmutable.booleanImmutable.booleanImmutable.booleanImmutable.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeCreateTime(com.google.protobuf.Timestamp value) Output only.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Immutable.Immutable.mergeNextHopSpoke(NextHopSpoke value) Immutable.Immutable.Immutable.mergeUpdateTime(com.google.protobuf.Timestamp value) Output only.putAllLabels(Map<String, String> values) Optional labels in key-value pair format.Optional labels in key-value pair format.removeLabels(String key) Optional labels in key-value pair format.setCreateTime(com.google.protobuf.Timestamp value) Output only.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setDescription(String value) An optional description of the route.setDescriptionBytes(com.google.protobuf.ByteString value) An optional description of the route.setIpCidrRange(String value) The destination IP address range.setIpCidrRangeBytes(com.google.protobuf.ByteString value) The destination IP address range.setLocation(String value) Output only.setLocationBytes(com.google.protobuf.ByteString value) Output only.Immutable.setNameBytes(com.google.protobuf.ByteString value) Immutable.Immutable.setNextHopInterconnectAttachment(NextHopInterconnectAttachment.Builder builderForValue) Immutable.Immutable.setNextHopRouterApplianceInstance(NextHopRouterApplianceInstance.Builder builderForValue) Immutable.setNextHopSpoke(NextHopSpoke value) Immutable.setNextHopSpoke(NextHopSpoke.Builder builderForValue) Immutable.Immutable.setNextHopVpcNetwork(NextHopVpcNetwork.Builder builderForValue) Immutable.Immutable.setNextHopVpnTunnel(NextHopVPNTunnel.Builder builderForValue) Immutable.setPriority(long value) Output only.Immutable.setSpokeBytes(com.google.protobuf.ByteString value) Immutable.Output only.setStateValue(int value) Output only.Output only.setTypeValue(int value) Output only.Output only.setUidBytes(com.google.protobuf.ByteString value) Output only.setUpdateTime(com.google.protobuf.Timestamp value) Output only.setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<Route.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<Route.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Route.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Route.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.GeneratedMessage.Builder<Route.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Route.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Route.Builder>
-
mergeFrom
public Route.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<Route.Builder>- Throws:
IOException
-
getName
Immutable. The name of the route. Route names must be unique. Route names use the following form: `projects/{project_number}/locations/global/hubs/{hub}/routeTables/{route_table_id}/routes/{route_id}`string name = 3 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getNamein interfaceRouteOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Immutable. The name of the route. Route names must be unique. Route names use the following form: `projects/{project_number}/locations/global/hubs/{hub}/routeTables/{route_table_id}/routes/{route_id}`string name = 3 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getNameBytesin interfaceRouteOrBuilder- Returns:
- The bytes for name.
-
setName
Immutable. The name of the route. Route names must be unique. Route names use the following form: `projects/{project_number}/locations/global/hubs/{hub}/routeTables/{route_table_id}/routes/{route_id}`string name = 3 [(.google.api.field_behavior) = IMMUTABLE];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Immutable. The name of the route. Route names must be unique. Route names use the following form: `projects/{project_number}/locations/global/hubs/{hub}/routeTables/{route_table_id}/routes/{route_id}`string name = 3 [(.google.api.field_behavior) = IMMUTABLE];- Returns:
- This builder for chaining.
-
setNameBytes
Immutable. The name of the route. Route names must be unique. Route names use the following form: `projects/{project_number}/locations/global/hubs/{hub}/routeTables/{route_table_id}/routes/{route_id}`string name = 3 [(.google.api.field_behavior) = IMMUTABLE];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasCreateTime
public boolean hasCreateTime()Output only. The time the route was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCreateTimein interfaceRouteOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()Output only. The time the route was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfaceRouteOrBuilder- Returns:
- The createTime.
-
setCreateTime
Output only. The time the route was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setCreateTime
Output only. The time the route was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeCreateTime
Output only. The time the route was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearCreateTime
Output only. The time the route was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()Output only. The time the route was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. The time the route was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfaceRouteOrBuilder
-
hasUpdateTime
public boolean hasUpdateTime()Output only. The time the route was last updated.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasUpdateTimein interfaceRouteOrBuilder- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()Output only. The time the route was last updated.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimein interfaceRouteOrBuilder- Returns:
- The updateTime.
-
setUpdateTime
Output only. The time the route was last updated.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setUpdateTime
Output only. The time the route was last updated.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeUpdateTime
Output only. The time the route was last updated.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearUpdateTime
Output only. The time the route was last updated.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getUpdateTimeBuilder
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()Output only. The time the route was last updated.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()Output only. The time the route was last updated.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimeOrBuilderin interfaceRouteOrBuilder
-
getIpCidrRange
The destination IP address range.
string ip_cidr_range = 1;- Specified by:
getIpCidrRangein interfaceRouteOrBuilder- Returns:
- The ipCidrRange.
-
getIpCidrRangeBytes
public com.google.protobuf.ByteString getIpCidrRangeBytes()The destination IP address range.
string ip_cidr_range = 1;- Specified by:
getIpCidrRangeBytesin interfaceRouteOrBuilder- Returns:
- The bytes for ipCidrRange.
-
setIpCidrRange
The destination IP address range.
string ip_cidr_range = 1;- Parameters:
value- The ipCidrRange to set.- Returns:
- This builder for chaining.
-
clearIpCidrRange
The destination IP address range.
string ip_cidr_range = 1;- Returns:
- This builder for chaining.
-
setIpCidrRangeBytes
The destination IP address range.
string ip_cidr_range = 1;- Parameters:
value- The bytes for ipCidrRange to set.- Returns:
- This builder for chaining.
-
getTypeValue
public int getTypeValue()Output only. The route's type. Its type is determined by the properties of its IP address range.
.google.cloud.networkconnectivity.v1beta.RouteType type = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getTypeValuein interfaceRouteOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
Output only. The route's type. Its type is determined by the properties of its IP address range.
.google.cloud.networkconnectivity.v1beta.RouteType type = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
getType
Output only. The route's type. Its type is determined by the properties of its IP address range.
.google.cloud.networkconnectivity.v1beta.RouteType type = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getTypein interfaceRouteOrBuilder- Returns:
- The type.
-
setType
Output only. The route's type. Its type is determined by the properties of its IP address range.
.google.cloud.networkconnectivity.v1beta.RouteType type = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
Output only. The route's type. Its type is determined by the properties of its IP address range.
.google.cloud.networkconnectivity.v1beta.RouteType type = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
hasNextHopVpcNetwork
public boolean hasNextHopVpcNetwork()Immutable. The destination VPC network for packets on this route.
.google.cloud.networkconnectivity.v1beta.NextHopVpcNetwork next_hop_vpc_network = 2 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
hasNextHopVpcNetworkin interfaceRouteOrBuilder- Returns:
- Whether the nextHopVpcNetwork field is set.
-
getNextHopVpcNetwork
Immutable. The destination VPC network for packets on this route.
.google.cloud.networkconnectivity.v1beta.NextHopVpcNetwork next_hop_vpc_network = 2 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getNextHopVpcNetworkin interfaceRouteOrBuilder- Returns:
- The nextHopVpcNetwork.
-
setNextHopVpcNetwork
Immutable. The destination VPC network for packets on this route.
.google.cloud.networkconnectivity.v1beta.NextHopVpcNetwork next_hop_vpc_network = 2 [(.google.api.field_behavior) = IMMUTABLE]; -
setNextHopVpcNetwork
Immutable. The destination VPC network for packets on this route.
.google.cloud.networkconnectivity.v1beta.NextHopVpcNetwork next_hop_vpc_network = 2 [(.google.api.field_behavior) = IMMUTABLE]; -
mergeNextHopVpcNetwork
Immutable. The destination VPC network for packets on this route.
.google.cloud.networkconnectivity.v1beta.NextHopVpcNetwork next_hop_vpc_network = 2 [(.google.api.field_behavior) = IMMUTABLE]; -
clearNextHopVpcNetwork
Immutable. The destination VPC network for packets on this route.
.google.cloud.networkconnectivity.v1beta.NextHopVpcNetwork next_hop_vpc_network = 2 [(.google.api.field_behavior) = IMMUTABLE]; -
getNextHopVpcNetworkBuilder
Immutable. The destination VPC network for packets on this route.
.google.cloud.networkconnectivity.v1beta.NextHopVpcNetwork next_hop_vpc_network = 2 [(.google.api.field_behavior) = IMMUTABLE]; -
getNextHopVpcNetworkOrBuilder
Immutable. The destination VPC network for packets on this route.
.google.cloud.networkconnectivity.v1beta.NextHopVpcNetwork next_hop_vpc_network = 2 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getNextHopVpcNetworkOrBuilderin interfaceRouteOrBuilder
-
getLabelsCount
public int getLabelsCount()Description copied from interface:RouteOrBuilderOptional labels in key-value pair format. For more information about labels, see [Requirements for labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements).
map<string, string> labels = 6;- Specified by:
getLabelsCountin interfaceRouteOrBuilder
-
containsLabels
Optional labels in key-value pair format. For more information about labels, see [Requirements for labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements).
map<string, string> labels = 6;- Specified by:
containsLabelsin interfaceRouteOrBuilder
-
getLabels
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceRouteOrBuilder
-
getLabelsMap
Optional labels in key-value pair format. For more information about labels, see [Requirements for labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements).
map<string, string> labels = 6;- Specified by:
getLabelsMapin interfaceRouteOrBuilder
-
getLabelsOrDefault
Optional labels in key-value pair format. For more information about labels, see [Requirements for labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements).
map<string, string> labels = 6;- Specified by:
getLabelsOrDefaultin interfaceRouteOrBuilder
-
getLabelsOrThrow
Optional labels in key-value pair format. For more information about labels, see [Requirements for labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements).
map<string, string> labels = 6;- Specified by:
getLabelsOrThrowin interfaceRouteOrBuilder
-
clearLabels
-
removeLabels
Optional labels in key-value pair format. For more information about labels, see [Requirements for labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements).
map<string, string> labels = 6; -
getMutableLabels
Deprecated.Use alternate mutation accessors instead. -
putLabels
Optional labels in key-value pair format. For more information about labels, see [Requirements for labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements).
map<string, string> labels = 6; -
putAllLabels
Optional labels in key-value pair format. For more information about labels, see [Requirements for labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements).
map<string, string> labels = 6; -
getDescription
An optional description of the route.
string description = 7;- Specified by:
getDescriptionin interfaceRouteOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()An optional description of the route.
string description = 7;- Specified by:
getDescriptionBytesin interfaceRouteOrBuilder- Returns:
- The bytes for description.
-
setDescription
An optional description of the route.
string description = 7;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
An optional description of the route.
string description = 7;- Returns:
- This builder for chaining.
-
setDescriptionBytes
An optional description of the route.
string description = 7;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
getUid
Output only. The Google-generated UUID for the route. This value is unique across all Network Connectivity Center route resources. If a route is deleted and another with the same name is created, the new route is assigned a different `uid`.
string uid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUidin interfaceRouteOrBuilder- Returns:
- The uid.
-
getUidBytes
public com.google.protobuf.ByteString getUidBytes()Output only. The Google-generated UUID for the route. This value is unique across all Network Connectivity Center route resources. If a route is deleted and another with the same name is created, the new route is assigned a different `uid`.
string uid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUidBytesin interfaceRouteOrBuilder- Returns:
- The bytes for uid.
-
setUid
Output only. The Google-generated UUID for the route. This value is unique across all Network Connectivity Center route resources. If a route is deleted and another with the same name is created, the new route is assigned a different `uid`.
string uid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The uid to set.- Returns:
- This builder for chaining.
-
clearUid
Output only. The Google-generated UUID for the route. This value is unique across all Network Connectivity Center route resources. If a route is deleted and another with the same name is created, the new route is assigned a different `uid`.
string uid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setUidBytes
Output only. The Google-generated UUID for the route. This value is unique across all Network Connectivity Center route resources. If a route is deleted and another with the same name is created, the new route is assigned a different `uid`.
string uid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for uid to set.- Returns:
- This builder for chaining.
-
getStateValue
public int getStateValue()Output only. The current lifecycle state of the route.
.google.cloud.networkconnectivity.v1beta.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStateValuein interfaceRouteOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
Output only. The current lifecycle state of the route.
.google.cloud.networkconnectivity.v1beta.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The enum numeric value on the wire for state to set.- Returns:
- This builder for chaining.
-
getState
Output only. The current lifecycle state of the route.
.google.cloud.networkconnectivity.v1beta.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatein interfaceRouteOrBuilder- Returns:
- The state.
-
setState
Output only. The current lifecycle state of the route.
.google.cloud.networkconnectivity.v1beta.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The state to set.- Returns:
- This builder for chaining.
-
clearState
Output only. The current lifecycle state of the route.
.google.cloud.networkconnectivity.v1beta.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getSpoke
Immutable. The spoke that this route leads to. Example: projects/12345/locations/global/spokes/SPOKE
string spoke = 11 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Specified by:
getSpokein interfaceRouteOrBuilder- Returns:
- The spoke.
-
getSpokeBytes
public com.google.protobuf.ByteString getSpokeBytes()Immutable. The spoke that this route leads to. Example: projects/12345/locations/global/spokes/SPOKE
string spoke = 11 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Specified by:
getSpokeBytesin interfaceRouteOrBuilder- Returns:
- The bytes for spoke.
-
setSpoke
Immutable. The spoke that this route leads to. Example: projects/12345/locations/global/spokes/SPOKE
string spoke = 11 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Parameters:
value- The spoke to set.- Returns:
- This builder for chaining.
-
clearSpoke
Immutable. The spoke that this route leads to. Example: projects/12345/locations/global/spokes/SPOKE
string spoke = 11 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setSpokeBytes
Immutable. The spoke that this route leads to. Example: projects/12345/locations/global/spokes/SPOKE
string spoke = 11 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for spoke to set.- Returns:
- This builder for chaining.
-
getLocation
Output only. The origin location of the route. Uses the following form: "projects/{project}/locations/{location}" Example: projects/1234/locations/us-central1string location = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLocationin interfaceRouteOrBuilder- Returns:
- The location.
-
getLocationBytes
public com.google.protobuf.ByteString getLocationBytes()Output only. The origin location of the route. Uses the following form: "projects/{project}/locations/{location}" Example: projects/1234/locations/us-central1string location = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLocationBytesin interfaceRouteOrBuilder- Returns:
- The bytes for location.
-
setLocation
Output only. The origin location of the route. Uses the following form: "projects/{project}/locations/{location}" Example: projects/1234/locations/us-central1string location = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The location to set.- Returns:
- This builder for chaining.
-
clearLocation
Output only. The origin location of the route. Uses the following form: "projects/{project}/locations/{location}" Example: projects/1234/locations/us-central1string location = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setLocationBytes
Output only. The origin location of the route. Uses the following form: "projects/{project}/locations/{location}" Example: projects/1234/locations/us-central1string location = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for location to set.- Returns:
- This builder for chaining.
-
getPriority
public long getPriority()Output only. The priority of this route. Priority is used to break ties in cases where a destination matches more than one route. In these cases the route with the lowest-numbered priority value wins.
int64 priority = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPriorityin interfaceRouteOrBuilder- Returns:
- The priority.
-
setPriority
Output only. The priority of this route. Priority is used to break ties in cases where a destination matches more than one route. In these cases the route with the lowest-numbered priority value wins.
int64 priority = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The priority to set.- Returns:
- This builder for chaining.
-
clearPriority
Output only. The priority of this route. Priority is used to break ties in cases where a destination matches more than one route. In these cases the route with the lowest-numbered priority value wins.
int64 priority = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
hasNextHopVpnTunnel
public boolean hasNextHopVpnTunnel()Immutable. The next-hop VPN tunnel for packets on this route.
.google.cloud.networkconnectivity.v1beta.NextHopVPNTunnel next_hop_vpn_tunnel = 14 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
hasNextHopVpnTunnelin interfaceRouteOrBuilder- Returns:
- Whether the nextHopVpnTunnel field is set.
-
getNextHopVpnTunnel
Immutable. The next-hop VPN tunnel for packets on this route.
.google.cloud.networkconnectivity.v1beta.NextHopVPNTunnel next_hop_vpn_tunnel = 14 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getNextHopVpnTunnelin interfaceRouteOrBuilder- Returns:
- The nextHopVpnTunnel.
-
setNextHopVpnTunnel
Immutable. The next-hop VPN tunnel for packets on this route.
.google.cloud.networkconnectivity.v1beta.NextHopVPNTunnel next_hop_vpn_tunnel = 14 [(.google.api.field_behavior) = IMMUTABLE]; -
setNextHopVpnTunnel
Immutable. The next-hop VPN tunnel for packets on this route.
.google.cloud.networkconnectivity.v1beta.NextHopVPNTunnel next_hop_vpn_tunnel = 14 [(.google.api.field_behavior) = IMMUTABLE]; -
mergeNextHopVpnTunnel
Immutable. The next-hop VPN tunnel for packets on this route.
.google.cloud.networkconnectivity.v1beta.NextHopVPNTunnel next_hop_vpn_tunnel = 14 [(.google.api.field_behavior) = IMMUTABLE]; -
clearNextHopVpnTunnel
Immutable. The next-hop VPN tunnel for packets on this route.
.google.cloud.networkconnectivity.v1beta.NextHopVPNTunnel next_hop_vpn_tunnel = 14 [(.google.api.field_behavior) = IMMUTABLE]; -
getNextHopVpnTunnelBuilder
Immutable. The next-hop VPN tunnel for packets on this route.
.google.cloud.networkconnectivity.v1beta.NextHopVPNTunnel next_hop_vpn_tunnel = 14 [(.google.api.field_behavior) = IMMUTABLE]; -
getNextHopVpnTunnelOrBuilder
Immutable. The next-hop VPN tunnel for packets on this route.
.google.cloud.networkconnectivity.v1beta.NextHopVPNTunnel next_hop_vpn_tunnel = 14 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getNextHopVpnTunnelOrBuilderin interfaceRouteOrBuilder
-
hasNextHopRouterApplianceInstance
public boolean hasNextHopRouterApplianceInstance()Immutable. The next-hop Router appliance instance for packets on this route.
.google.cloud.networkconnectivity.v1beta.NextHopRouterApplianceInstance next_hop_router_appliance_instance = 15 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
hasNextHopRouterApplianceInstancein interfaceRouteOrBuilder- Returns:
- Whether the nextHopRouterApplianceInstance field is set.
-
getNextHopRouterApplianceInstance
Immutable. The next-hop Router appliance instance for packets on this route.
.google.cloud.networkconnectivity.v1beta.NextHopRouterApplianceInstance next_hop_router_appliance_instance = 15 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getNextHopRouterApplianceInstancein interfaceRouteOrBuilder- Returns:
- The nextHopRouterApplianceInstance.
-
setNextHopRouterApplianceInstance
Immutable. The next-hop Router appliance instance for packets on this route.
.google.cloud.networkconnectivity.v1beta.NextHopRouterApplianceInstance next_hop_router_appliance_instance = 15 [(.google.api.field_behavior) = IMMUTABLE]; -
setNextHopRouterApplianceInstance
public Route.Builder setNextHopRouterApplianceInstance(NextHopRouterApplianceInstance.Builder builderForValue) Immutable. The next-hop Router appliance instance for packets on this route.
.google.cloud.networkconnectivity.v1beta.NextHopRouterApplianceInstance next_hop_router_appliance_instance = 15 [(.google.api.field_behavior) = IMMUTABLE]; -
mergeNextHopRouterApplianceInstance
Immutable. The next-hop Router appliance instance for packets on this route.
.google.cloud.networkconnectivity.v1beta.NextHopRouterApplianceInstance next_hop_router_appliance_instance = 15 [(.google.api.field_behavior) = IMMUTABLE]; -
clearNextHopRouterApplianceInstance
Immutable. The next-hop Router appliance instance for packets on this route.
.google.cloud.networkconnectivity.v1beta.NextHopRouterApplianceInstance next_hop_router_appliance_instance = 15 [(.google.api.field_behavior) = IMMUTABLE]; -
getNextHopRouterApplianceInstanceBuilder
Immutable. The next-hop Router appliance instance for packets on this route.
.google.cloud.networkconnectivity.v1beta.NextHopRouterApplianceInstance next_hop_router_appliance_instance = 15 [(.google.api.field_behavior) = IMMUTABLE]; -
getNextHopRouterApplianceInstanceOrBuilder
Immutable. The next-hop Router appliance instance for packets on this route.
.google.cloud.networkconnectivity.v1beta.NextHopRouterApplianceInstance next_hop_router_appliance_instance = 15 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getNextHopRouterApplianceInstanceOrBuilderin interfaceRouteOrBuilder
-
hasNextHopInterconnectAttachment
public boolean hasNextHopInterconnectAttachment()Immutable. The next-hop VLAN attachment for packets on this route.
.google.cloud.networkconnectivity.v1beta.NextHopInterconnectAttachment next_hop_interconnect_attachment = 16 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
hasNextHopInterconnectAttachmentin interfaceRouteOrBuilder- Returns:
- Whether the nextHopInterconnectAttachment field is set.
-
getNextHopInterconnectAttachment
Immutable. The next-hop VLAN attachment for packets on this route.
.google.cloud.networkconnectivity.v1beta.NextHopInterconnectAttachment next_hop_interconnect_attachment = 16 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getNextHopInterconnectAttachmentin interfaceRouteOrBuilder- Returns:
- The nextHopInterconnectAttachment.
-
setNextHopInterconnectAttachment
Immutable. The next-hop VLAN attachment for packets on this route.
.google.cloud.networkconnectivity.v1beta.NextHopInterconnectAttachment next_hop_interconnect_attachment = 16 [(.google.api.field_behavior) = IMMUTABLE]; -
setNextHopInterconnectAttachment
public Route.Builder setNextHopInterconnectAttachment(NextHopInterconnectAttachment.Builder builderForValue) Immutable. The next-hop VLAN attachment for packets on this route.
.google.cloud.networkconnectivity.v1beta.NextHopInterconnectAttachment next_hop_interconnect_attachment = 16 [(.google.api.field_behavior) = IMMUTABLE]; -
mergeNextHopInterconnectAttachment
Immutable. The next-hop VLAN attachment for packets on this route.
.google.cloud.networkconnectivity.v1beta.NextHopInterconnectAttachment next_hop_interconnect_attachment = 16 [(.google.api.field_behavior) = IMMUTABLE]; -
clearNextHopInterconnectAttachment
Immutable. The next-hop VLAN attachment for packets on this route.
.google.cloud.networkconnectivity.v1beta.NextHopInterconnectAttachment next_hop_interconnect_attachment = 16 [(.google.api.field_behavior) = IMMUTABLE]; -
getNextHopInterconnectAttachmentBuilder
Immutable. The next-hop VLAN attachment for packets on this route.
.google.cloud.networkconnectivity.v1beta.NextHopInterconnectAttachment next_hop_interconnect_attachment = 16 [(.google.api.field_behavior) = IMMUTABLE]; -
getNextHopInterconnectAttachmentOrBuilder
Immutable. The next-hop VLAN attachment for packets on this route.
.google.cloud.networkconnectivity.v1beta.NextHopInterconnectAttachment next_hop_interconnect_attachment = 16 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getNextHopInterconnectAttachmentOrBuilderin interfaceRouteOrBuilder
-
hasNextHopSpoke
public boolean hasNextHopSpoke()Immutable. The next-hop spoke for packets on this route.
.google.cloud.networkconnectivity.v1beta.NextHopSpoke next_hop_spoke = 18 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
hasNextHopSpokein interfaceRouteOrBuilder- Returns:
- Whether the nextHopSpoke field is set.
-
getNextHopSpoke
Immutable. The next-hop spoke for packets on this route.
.google.cloud.networkconnectivity.v1beta.NextHopSpoke next_hop_spoke = 18 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getNextHopSpokein interfaceRouteOrBuilder- Returns:
- The nextHopSpoke.
-
setNextHopSpoke
Immutable. The next-hop spoke for packets on this route.
.google.cloud.networkconnectivity.v1beta.NextHopSpoke next_hop_spoke = 18 [(.google.api.field_behavior) = IMMUTABLE]; -
setNextHopSpoke
Immutable. The next-hop spoke for packets on this route.
.google.cloud.networkconnectivity.v1beta.NextHopSpoke next_hop_spoke = 18 [(.google.api.field_behavior) = IMMUTABLE]; -
mergeNextHopSpoke
Immutable. The next-hop spoke for packets on this route.
.google.cloud.networkconnectivity.v1beta.NextHopSpoke next_hop_spoke = 18 [(.google.api.field_behavior) = IMMUTABLE]; -
clearNextHopSpoke
Immutable. The next-hop spoke for packets on this route.
.google.cloud.networkconnectivity.v1beta.NextHopSpoke next_hop_spoke = 18 [(.google.api.field_behavior) = IMMUTABLE]; -
getNextHopSpokeBuilder
Immutable. The next-hop spoke for packets on this route.
.google.cloud.networkconnectivity.v1beta.NextHopSpoke next_hop_spoke = 18 [(.google.api.field_behavior) = IMMUTABLE]; -
getNextHopSpokeOrBuilder
Immutable. The next-hop spoke for packets on this route.
.google.cloud.networkconnectivity.v1beta.NextHopSpoke next_hop_spoke = 18 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getNextHopSpokeOrBuilderin interfaceRouteOrBuilder
-