Class 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.GeneratedMessageV3.Builder<PeeringRoute.Builder>
    implements PeeringRouteOrBuilder
     Exchanged network peering route.
     
    Protobuf type google.cloud.vmwareengine.v1.PeeringRoute
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public PeeringRoute.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<PeeringRoute.Builder>
      • setField

        public PeeringRoute.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                             Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<PeeringRoute.Builder>
      • clearField

        public PeeringRoute.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<PeeringRoute.Builder>
      • clearOneof

        public PeeringRoute.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<PeeringRoute.Builder>
      • setRepeatedField

        public PeeringRoute.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                     int index,
                                                     Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<PeeringRoute.Builder>
      • addRepeatedField

        public PeeringRoute.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                     Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<PeeringRoute.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>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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.
      • setUnknownFields

        public final PeeringRoute.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<PeeringRoute.Builder>
      • mergeUnknownFields

        public final PeeringRoute.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<PeeringRoute.Builder>