Class ExchangedPeeringRoute.Builder

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

public static final class ExchangedPeeringRoute.Builder extends com.google.protobuf.GeneratedMessage.Builder<ExchangedPeeringRoute.Builder> implements ExchangedPeeringRouteOrBuilder
 
Protobuf type google.cloud.compute.v1.ExchangedPeeringRoute
  • 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<ExchangedPeeringRoute.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<ExchangedPeeringRoute.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<ExchangedPeeringRoute.Builder>
    • getDefaultInstanceForType

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

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

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

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

    • isInitialized

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

      public ExchangedPeeringRoute.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<ExchangedPeeringRoute.Builder>
      Throws:
      IOException
    • hasDestRange

      public boolean hasDestRange()
       The destination range of the route.
       
      optional string dest_range = 381327712;
      Specified by:
      hasDestRange in interface ExchangedPeeringRouteOrBuilder
      Returns:
      Whether the destRange field is set.
    • getDestRange

      public String getDestRange()
       The destination range of the route.
       
      optional string dest_range = 381327712;
      Specified by:
      getDestRange in interface ExchangedPeeringRouteOrBuilder
      Returns:
      The destRange.
    • getDestRangeBytes

      public com.google.protobuf.ByteString getDestRangeBytes()
       The destination range of the route.
       
      optional string dest_range = 381327712;
      Specified by:
      getDestRangeBytes in interface ExchangedPeeringRouteOrBuilder
      Returns:
      The bytes for destRange.
    • setDestRange

      public ExchangedPeeringRoute.Builder setDestRange(String value)
       The destination range of the route.
       
      optional string dest_range = 381327712;
      Parameters:
      value - The destRange to set.
      Returns:
      This builder for chaining.
    • clearDestRange

      public ExchangedPeeringRoute.Builder clearDestRange()
       The destination range of the route.
       
      optional string dest_range = 381327712;
      Returns:
      This builder for chaining.
    • setDestRangeBytes

      public ExchangedPeeringRoute.Builder setDestRangeBytes(com.google.protobuf.ByteString value)
       The destination range of the route.
       
      optional string dest_range = 381327712;
      Parameters:
      value - The bytes for destRange to set.
      Returns:
      This builder for chaining.
    • hasImported

      public boolean hasImported()
       True if the peering route has been imported from a peer. The actual import
       happens if the field networkPeering.importCustomRoutes is true
       for this network, and networkPeering.exportCustomRoutes is
       true for the peer network, and the import does not result in a route
       conflict.
       
      optional bool imported = 114502404;
      Specified by:
      hasImported in interface ExchangedPeeringRouteOrBuilder
      Returns:
      Whether the imported field is set.
    • getImported

      public boolean getImported()
       True if the peering route has been imported from a peer. The actual import
       happens if the field networkPeering.importCustomRoutes is true
       for this network, and networkPeering.exportCustomRoutes is
       true for the peer network, and the import does not result in a route
       conflict.
       
      optional bool imported = 114502404;
      Specified by:
      getImported in interface ExchangedPeeringRouteOrBuilder
      Returns:
      The imported.
    • setImported

      public ExchangedPeeringRoute.Builder setImported(boolean value)
       True if the peering route has been imported from a peer. The actual import
       happens if the field networkPeering.importCustomRoutes is true
       for this network, and networkPeering.exportCustomRoutes is
       true for the peer network, and the import does not result in a route
       conflict.
       
      optional bool imported = 114502404;
      Parameters:
      value - The imported to set.
      Returns:
      This builder for chaining.
    • clearImported

      public ExchangedPeeringRoute.Builder clearImported()
       True if the peering route has been imported from a peer. The actual import
       happens if the field networkPeering.importCustomRoutes is true
       for this network, and networkPeering.exportCustomRoutes is
       true for the peer network, and the import does not result in a route
       conflict.
       
      optional bool imported = 114502404;
      Returns:
      This builder for chaining.
    • hasNextHopRegion

      public boolean hasNextHopRegion()
       The region of peering route next hop, only applies to dynamic routes.
       
      optional string next_hop_region = 122577014;
      Specified by:
      hasNextHopRegion in interface ExchangedPeeringRouteOrBuilder
      Returns:
      Whether the nextHopRegion field is set.
    • getNextHopRegion

      public String getNextHopRegion()
       The region of peering route next hop, only applies to dynamic routes.
       
      optional string next_hop_region = 122577014;
      Specified by:
      getNextHopRegion in interface ExchangedPeeringRouteOrBuilder
      Returns:
      The nextHopRegion.
    • getNextHopRegionBytes

      public com.google.protobuf.ByteString getNextHopRegionBytes()
       The region of peering route next hop, only applies to dynamic routes.
       
      optional string next_hop_region = 122577014;
      Specified by:
      getNextHopRegionBytes in interface ExchangedPeeringRouteOrBuilder
      Returns:
      The bytes for nextHopRegion.
    • setNextHopRegion

      public ExchangedPeeringRoute.Builder setNextHopRegion(String value)
       The region of peering route next hop, only applies to dynamic routes.
       
      optional string next_hop_region = 122577014;
      Parameters:
      value - The nextHopRegion to set.
      Returns:
      This builder for chaining.
    • clearNextHopRegion

      public ExchangedPeeringRoute.Builder clearNextHopRegion()
       The region of peering route next hop, only applies to dynamic routes.
       
      optional string next_hop_region = 122577014;
      Returns:
      This builder for chaining.
    • setNextHopRegionBytes

      public ExchangedPeeringRoute.Builder setNextHopRegionBytes(com.google.protobuf.ByteString value)
       The region of peering route next hop, only applies to dynamic routes.
       
      optional string next_hop_region = 122577014;
      Parameters:
      value - The bytes for nextHopRegion to set.
      Returns:
      This builder for chaining.
    • hasPriority

      public boolean hasPriority()
       The priority of the peering route.
       
      optional uint32 priority = 445151652;
      Specified by:
      hasPriority in interface ExchangedPeeringRouteOrBuilder
      Returns:
      Whether the priority field is set.
    • getPriority

      public int getPriority()
       The priority of the peering route.
       
      optional uint32 priority = 445151652;
      Specified by:
      getPriority in interface ExchangedPeeringRouteOrBuilder
      Returns:
      The priority.
    • setPriority

      public ExchangedPeeringRoute.Builder setPriority(int value)
       The priority of the peering route.
       
      optional uint32 priority = 445151652;
      Parameters:
      value - The priority to set.
      Returns:
      This builder for chaining.
    • clearPriority

      public ExchangedPeeringRoute.Builder clearPriority()
       The priority of the peering route.
       
      optional uint32 priority = 445151652;
      Returns:
      This builder for chaining.
    • hasType

      public boolean hasType()
       The type of the peering route.
       Check the Type enum for the list of possible values.
       
      optional string type = 3575610;
      Specified by:
      hasType in interface ExchangedPeeringRouteOrBuilder
      Returns:
      Whether the type field is set.
    • getType

      public String getType()
       The type of the peering route.
       Check the Type enum for the list of possible values.
       
      optional string type = 3575610;
      Specified by:
      getType in interface ExchangedPeeringRouteOrBuilder
      Returns:
      The type.
    • getTypeBytes

      public com.google.protobuf.ByteString getTypeBytes()
       The type of the peering route.
       Check the Type enum for the list of possible values.
       
      optional string type = 3575610;
      Specified by:
      getTypeBytes in interface ExchangedPeeringRouteOrBuilder
      Returns:
      The bytes for type.
    • setType

      public ExchangedPeeringRoute.Builder setType(String value)
       The type of the peering route.
       Check the Type enum for the list of possible values.
       
      optional string type = 3575610;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public ExchangedPeeringRoute.Builder clearType()
       The type of the peering route.
       Check the Type enum for the list of possible values.
       
      optional string type = 3575610;
      Returns:
      This builder for chaining.
    • setTypeBytes

      public ExchangedPeeringRoute.Builder setTypeBytes(com.google.protobuf.ByteString value)
       The type of the peering route.
       Check the Type enum for the list of possible values.
       
      optional string type = 3575610;
      Parameters:
      value - The bytes for type to set.
      Returns:
      This builder for chaining.