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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Route.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Route.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Route.Builder>
    • clear

      public Route.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Route.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Route.Builder>
    • getDefaultInstanceForType

      public Route getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Route build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Route buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Route.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Route.Builder>
    • mergeFrom

      public Route.Builder mergeFrom(Route other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Route.Builder>
      Throws:
      IOException
    • getName

      public String 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:
      getName in interface RouteOrBuilder
      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:
      getNameBytes in interface RouteOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Route.Builder setName(String value)
       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

      public Route.Builder 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

      public Route.Builder setNameBytes(com.google.protobuf.ByteString value)
       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:
      hasCreateTime in interface RouteOrBuilder
      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:
      getCreateTime in interface RouteOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public Route.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. The time the route was created.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public Route.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The time the route was created.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public Route.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. The time the route was created.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public Route.Builder 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:
      getCreateTimeOrBuilder in interface RouteOrBuilder
    • 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:
      hasUpdateTime in interface RouteOrBuilder
      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:
      getUpdateTime in interface RouteOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public Route.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The time the route was last updated.
       
      .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public Route.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The time the route was last updated.
       
      .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public Route.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The time the route was last updated.
       
      .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public Route.Builder 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:
      getUpdateTimeOrBuilder in interface RouteOrBuilder
    • getIpCidrRange

      public String getIpCidrRange()
       The destination IP address range.
       
      string ip_cidr_range = 1;
      Specified by:
      getIpCidrRange in interface RouteOrBuilder
      Returns:
      The ipCidrRange.
    • getIpCidrRangeBytes

      public com.google.protobuf.ByteString getIpCidrRangeBytes()
       The destination IP address range.
       
      string ip_cidr_range = 1;
      Specified by:
      getIpCidrRangeBytes in interface RouteOrBuilder
      Returns:
      The bytes for ipCidrRange.
    • setIpCidrRange

      public Route.Builder setIpCidrRange(String value)
       The destination IP address range.
       
      string ip_cidr_range = 1;
      Parameters:
      value - The ipCidrRange to set.
      Returns:
      This builder for chaining.
    • clearIpCidrRange

      public Route.Builder clearIpCidrRange()
       The destination IP address range.
       
      string ip_cidr_range = 1;
      Returns:
      This builder for chaining.
    • setIpCidrRangeBytes

      public Route.Builder setIpCidrRangeBytes(com.google.protobuf.ByteString value)
       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:
      getTypeValue in interface RouteOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • setTypeValue

      public Route.Builder setTypeValue(int value)
       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

      public RouteType 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:
      getType in interface RouteOrBuilder
      Returns:
      The type.
    • setType

      public Route.Builder setType(RouteType value)
       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

      public Route.Builder 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:
      hasNextHopVpcNetwork in interface RouteOrBuilder
      Returns:
      Whether the nextHopVpcNetwork field is set.
    • getNextHopVpcNetwork

      public NextHopVpcNetwork 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:
      getNextHopVpcNetwork in interface RouteOrBuilder
      Returns:
      The nextHopVpcNetwork.
    • setNextHopVpcNetwork

      public Route.Builder setNextHopVpcNetwork(NextHopVpcNetwork value)
       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

      public Route.Builder setNextHopVpcNetwork(NextHopVpcNetwork.Builder builderForValue)
       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

      public Route.Builder mergeNextHopVpcNetwork(NextHopVpcNetwork value)
       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

      public Route.Builder 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

      public NextHopVpcNetwork.Builder 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

      public NextHopVpcNetworkOrBuilder 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:
      getNextHopVpcNetworkOrBuilder in interface RouteOrBuilder
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: RouteOrBuilder
       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:
      getLabelsCount in interface RouteOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       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:
      containsLabels in interface RouteOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface RouteOrBuilder
    • getLabelsMap

      public Map<String,String> 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:
      getLabelsMap in interface RouteOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       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:
      getLabelsOrDefault in interface RouteOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       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:
      getLabelsOrThrow in interface RouteOrBuilder
    • clearLabels

      public Route.Builder clearLabels()
    • removeLabels

      public Route.Builder removeLabels(String key)
       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 public Map<String,String> getMutableLabels()
      Deprecated.
      Use alternate mutation accessors instead.
    • putLabels

      public Route.Builder putLabels(String key, String value)
       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

      public Route.Builder putAllLabels(Map<String,String> values)
       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

      public String getDescription()
       An optional description of the route.
       
      string description = 7;
      Specified by:
      getDescription in interface RouteOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       An optional description of the route.
       
      string description = 7;
      Specified by:
      getDescriptionBytes in interface RouteOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public Route.Builder setDescription(String value)
       An optional description of the route.
       
      string description = 7;
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public Route.Builder clearDescription()
       An optional description of the route.
       
      string description = 7;
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public Route.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       An optional description of the route.
       
      string description = 7;
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • getUid

      public String 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:
      getUid in interface RouteOrBuilder
      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:
      getUidBytes in interface RouteOrBuilder
      Returns:
      The bytes for uid.
    • setUid

      public Route.Builder setUid(String value)
       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

      public Route.Builder 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

      public Route.Builder setUidBytes(com.google.protobuf.ByteString value)
       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:
      getStateValue in interface RouteOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public Route.Builder setStateValue(int value)
       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

      public State 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:
      getState in interface RouteOrBuilder
      Returns:
      The state.
    • setState

      public Route.Builder setState(State value)
       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

      public Route.Builder 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

      public String 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:
      getSpoke in interface RouteOrBuilder
      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:
      getSpokeBytes in interface RouteOrBuilder
      Returns:
      The bytes for spoke.
    • setSpoke

      public Route.Builder setSpoke(String value)
       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

      public Route.Builder 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

      public Route.Builder setSpokeBytes(com.google.protobuf.ByteString value)
       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

      public String getLocation()
       Output only. The origin location of the route.
       Uses the following form: "projects/{project}/locations/{location}"
       Example: projects/1234/locations/us-central1
       
      string location = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLocation in interface RouteOrBuilder
      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-central1
       
      string location = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLocationBytes in interface RouteOrBuilder
      Returns:
      The bytes for location.
    • setLocation

      public Route.Builder setLocation(String value)
       Output only. The origin location of the route.
       Uses the following form: "projects/{project}/locations/{location}"
       Example: projects/1234/locations/us-central1
       
      string location = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The location to set.
      Returns:
      This builder for chaining.
    • clearLocation

      public Route.Builder clearLocation()
       Output only. The origin location of the route.
       Uses the following form: "projects/{project}/locations/{location}"
       Example: projects/1234/locations/us-central1
       
      string location = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setLocationBytes

      public Route.Builder setLocationBytes(com.google.protobuf.ByteString value)
       Output only. The origin location of the route.
       Uses the following form: "projects/{project}/locations/{location}"
       Example: projects/1234/locations/us-central1
       
      string 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:
      getPriority in interface RouteOrBuilder
      Returns:
      The priority.
    • setPriority

      public Route.Builder setPriority(long value)
       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

      public Route.Builder 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:
      hasNextHopVpnTunnel in interface RouteOrBuilder
      Returns:
      Whether the nextHopVpnTunnel field is set.
    • getNextHopVpnTunnel

      public NextHopVPNTunnel 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:
      getNextHopVpnTunnel in interface RouteOrBuilder
      Returns:
      The nextHopVpnTunnel.
    • setNextHopVpnTunnel

      public Route.Builder setNextHopVpnTunnel(NextHopVPNTunnel value)
       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

      public Route.Builder setNextHopVpnTunnel(NextHopVPNTunnel.Builder builderForValue)
       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

      public Route.Builder mergeNextHopVpnTunnel(NextHopVPNTunnel value)
       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

      public Route.Builder 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

      public NextHopVPNTunnel.Builder 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

      public NextHopVPNTunnelOrBuilder 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:
      getNextHopVpnTunnelOrBuilder in interface RouteOrBuilder
    • 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:
      hasNextHopRouterApplianceInstance in interface RouteOrBuilder
      Returns:
      Whether the nextHopRouterApplianceInstance field is set.
    • getNextHopRouterApplianceInstance

      public NextHopRouterApplianceInstance 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:
      getNextHopRouterApplianceInstance in interface RouteOrBuilder
      Returns:
      The nextHopRouterApplianceInstance.
    • setNextHopRouterApplianceInstance

      public Route.Builder setNextHopRouterApplianceInstance(NextHopRouterApplianceInstance value)
       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

      public Route.Builder mergeNextHopRouterApplianceInstance(NextHopRouterApplianceInstance value)
       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

      public Route.Builder 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

      public NextHopRouterApplianceInstance.Builder 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

      public NextHopRouterApplianceInstanceOrBuilder 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:
      getNextHopRouterApplianceInstanceOrBuilder in interface RouteOrBuilder
    • 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:
      hasNextHopInterconnectAttachment in interface RouteOrBuilder
      Returns:
      Whether the nextHopInterconnectAttachment field is set.
    • getNextHopInterconnectAttachment

      public NextHopInterconnectAttachment 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:
      getNextHopInterconnectAttachment in interface RouteOrBuilder
      Returns:
      The nextHopInterconnectAttachment.
    • setNextHopInterconnectAttachment

      public Route.Builder setNextHopInterconnectAttachment(NextHopInterconnectAttachment value)
       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

      public Route.Builder mergeNextHopInterconnectAttachment(NextHopInterconnectAttachment value)
       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

      public Route.Builder 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

      public NextHopInterconnectAttachment.Builder 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

      public NextHopInterconnectAttachmentOrBuilder 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:
      getNextHopInterconnectAttachmentOrBuilder in interface RouteOrBuilder
    • 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:
      hasNextHopSpoke in interface RouteOrBuilder
      Returns:
      Whether the nextHopSpoke field is set.
    • getNextHopSpoke

      public NextHopSpoke 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:
      getNextHopSpoke in interface RouteOrBuilder
      Returns:
      The nextHopSpoke.
    • setNextHopSpoke

      public Route.Builder setNextHopSpoke(NextHopSpoke value)
       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

      public Route.Builder setNextHopSpoke(NextHopSpoke.Builder builderForValue)
       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

      public Route.Builder mergeNextHopSpoke(NextHopSpoke value)
       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

      public Route.Builder 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

      public NextHopSpoke.Builder 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

      public NextHopSpokeOrBuilder 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:
      getNextHopSpokeOrBuilder in interface RouteOrBuilder