Class PeeringRoute.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PeeringRoute.Builder>
com.google.cloud.vmwareengine.v1.PeeringRoute.Builder
All Implemented Interfaces:
PeeringRouteOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
PeeringRoute

public static final class PeeringRoute.Builder extends com.google.protobuf.GeneratedMessage.Builder<PeeringRoute.Builder> implements PeeringRouteOrBuilder
 Exchanged network peering route.
 
Protobuf type google.cloud.vmwareengine.v1.PeeringRoute
  • Method Details

    • getDescriptor

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

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

      public PeeringRoute.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<PeeringRoute.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<PeeringRoute.Builder>
    • getDefaultInstanceForType

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

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

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

      public PeeringRoute.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<PeeringRoute.Builder>
    • mergeFrom

      public PeeringRoute.Builder mergeFrom(PeeringRoute other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<PeeringRoute.Builder>
    • mergeFrom

      public PeeringRoute.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<PeeringRoute.Builder>
      Throws:
      IOException
    • getDestRange

      public String getDestRange()
       Output only. Destination range of the peering route in CIDR notation.
       
      string dest_range = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDestRange in interface PeeringRouteOrBuilder
      Returns:
      The destRange.
    • getDestRangeBytes

      public com.google.protobuf.ByteString getDestRangeBytes()
       Output only. Destination range of the peering route in CIDR notation.
       
      string dest_range = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDestRangeBytes in interface PeeringRouteOrBuilder
      Returns:
      The bytes for destRange.
    • setDestRange

      public PeeringRoute.Builder setDestRange(String value)
       Output only. Destination range of the peering route in CIDR notation.
       
      string dest_range = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The destRange to set.
      Returns:
      This builder for chaining.
    • clearDestRange

      public PeeringRoute.Builder clearDestRange()
       Output only. Destination range of the peering route in CIDR notation.
       
      string dest_range = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setDestRangeBytes

      public PeeringRoute.Builder setDestRangeBytes(com.google.protobuf.ByteString value)
       Output only. Destination range of the peering route in CIDR notation.
       
      string dest_range = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for destRange to set.
      Returns:
      This builder for chaining.
    • getTypeValue

      public int getTypeValue()
       Output only. Type of the route in the peer VPC network.
       
      .google.cloud.vmwareengine.v1.PeeringRoute.Type type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getTypeValue in interface PeeringRouteOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • setTypeValue

      public PeeringRoute.Builder setTypeValue(int value)
       Output only. Type of the route in the peer VPC network.
       
      .google.cloud.vmwareengine.v1.PeeringRoute.Type type = 2 [(.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 PeeringRoute.Type getType()
       Output only. Type of the route in the peer VPC network.
       
      .google.cloud.vmwareengine.v1.PeeringRoute.Type type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getType in interface PeeringRouteOrBuilder
      Returns:
      The type.
    • setType

      public PeeringRoute.Builder setType(PeeringRoute.Type value)
       Output only. Type of the route in the peer VPC network.
       
      .google.cloud.vmwareengine.v1.PeeringRoute.Type type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public PeeringRoute.Builder clearType()
       Output only. Type of the route in the peer VPC network.
       
      .google.cloud.vmwareengine.v1.PeeringRoute.Type type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getNextHopRegion

      public String getNextHopRegion()
       Output only. Region containing the next hop of the peering route. This
       field only applies to dynamic routes in the peer VPC network.
       
      string next_hop_region = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getNextHopRegion in interface PeeringRouteOrBuilder
      Returns:
      The nextHopRegion.
    • getNextHopRegionBytes

      public com.google.protobuf.ByteString getNextHopRegionBytes()
       Output only. Region containing the next hop of the peering route. This
       field only applies to dynamic routes in the peer VPC network.
       
      string next_hop_region = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getNextHopRegionBytes in interface PeeringRouteOrBuilder
      Returns:
      The bytes for nextHopRegion.
    • setNextHopRegion

      public PeeringRoute.Builder setNextHopRegion(String value)
       Output only. Region containing the next hop of the peering route. This
       field only applies to dynamic routes in the peer VPC network.
       
      string next_hop_region = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The nextHopRegion to set.
      Returns:
      This builder for chaining.
    • clearNextHopRegion

      public PeeringRoute.Builder clearNextHopRegion()
       Output only. Region containing the next hop of the peering route. This
       field only applies to dynamic routes in the peer VPC network.
       
      string next_hop_region = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setNextHopRegionBytes

      public PeeringRoute.Builder setNextHopRegionBytes(com.google.protobuf.ByteString value)
       Output only. Region containing the next hop of the peering route. This
       field only applies to dynamic routes in the peer VPC network.
       
      string next_hop_region = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for nextHopRegion to set.
      Returns:
      This builder for chaining.
    • getPriority

      public long getPriority()
       Output only. The priority of the peering route.
       
      int64 priority = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPriority in interface PeeringRouteOrBuilder
      Returns:
      The priority.
    • setPriority

      public PeeringRoute.Builder setPriority(long value)
       Output only. The priority of the peering route.
       
      int64 priority = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The priority to set.
      Returns:
      This builder for chaining.
    • clearPriority

      public PeeringRoute.Builder clearPriority()
       Output only. The priority of the peering route.
       
      int64 priority = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getImported

      public boolean getImported()
       Output only. True if the peering route has been imported from a peered
       VPC network; false otherwise. The import happens if the field
       `NetworkPeering.importCustomRoutes` is true for this network,
       `NetworkPeering.exportCustomRoutes` is true for the peer VPC network, and
       the import does not result in a route conflict.
       
      bool imported = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getImported in interface PeeringRouteOrBuilder
      Returns:
      The imported.
    • setImported

      public PeeringRoute.Builder setImported(boolean value)
       Output only. True if the peering route has been imported from a peered
       VPC network; false otherwise. The import happens if the field
       `NetworkPeering.importCustomRoutes` is true for this network,
       `NetworkPeering.exportCustomRoutes` is true for the peer VPC network, and
       the import does not result in a route conflict.
       
      bool imported = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The imported to set.
      Returns:
      This builder for chaining.
    • clearImported

      public PeeringRoute.Builder clearImported()
       Output only. True if the peering route has been imported from a peered
       VPC network; false otherwise. The import happens if the field
       `NetworkPeering.importCustomRoutes` is true for this network,
       `NetworkPeering.exportCustomRoutes` is true for the peer VPC network, and
       the import does not result in a route conflict.
       
      bool imported = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getDirectionValue

      public int getDirectionValue()
       Output only. Direction of the routes exchanged with the peer network, from
       the VMware Engine network perspective:
      
       * Routes of direction `INCOMING` are imported from the peer network.
       * Routes of direction `OUTGOING` are exported from the intranet VPC network
       of the VMware Engine network.
       
      .google.cloud.vmwareengine.v1.PeeringRoute.Direction direction = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDirectionValue in interface PeeringRouteOrBuilder
      Returns:
      The enum numeric value on the wire for direction.
    • setDirectionValue

      public PeeringRoute.Builder setDirectionValue(int value)
       Output only. Direction of the routes exchanged with the peer network, from
       the VMware Engine network perspective:
      
       * Routes of direction `INCOMING` are imported from the peer network.
       * Routes of direction `OUTGOING` are exported from the intranet VPC network
       of the VMware Engine network.
       
      .google.cloud.vmwareengine.v1.PeeringRoute.Direction direction = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for direction to set.
      Returns:
      This builder for chaining.
    • getDirection

      public PeeringRoute.Direction getDirection()
       Output only. Direction of the routes exchanged with the peer network, from
       the VMware Engine network perspective:
      
       * Routes of direction `INCOMING` are imported from the peer network.
       * Routes of direction `OUTGOING` are exported from the intranet VPC network
       of the VMware Engine network.
       
      .google.cloud.vmwareengine.v1.PeeringRoute.Direction direction = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDirection in interface PeeringRouteOrBuilder
      Returns:
      The direction.
    • setDirection

      public PeeringRoute.Builder setDirection(PeeringRoute.Direction value)
       Output only. Direction of the routes exchanged with the peer network, from
       the VMware Engine network perspective:
      
       * Routes of direction `INCOMING` are imported from the peer network.
       * Routes of direction `OUTGOING` are exported from the intranet VPC network
       of the VMware Engine network.
       
      .google.cloud.vmwareengine.v1.PeeringRoute.Direction direction = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The direction to set.
      Returns:
      This builder for chaining.
    • clearDirection

      public PeeringRoute.Builder clearDirection()
       Output only. Direction of the routes exchanged with the peer network, from
       the VMware Engine network perspective:
      
       * Routes of direction `INCOMING` are imported from the peer network.
       * Routes of direction `OUTGOING` are exported from the intranet VPC network
       of the VMware Engine network.
       
      .google.cloud.vmwareengine.v1.PeeringRoute.Direction direction = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.