Class Gateway.IpRangeReservation.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Gateway.IpRangeReservation.Builder>
com.google.cloud.networkconnectivity.v1beta.Gateway.IpRangeReservation.Builder
All Implemented Interfaces:
Gateway.IpRangeReservationOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Gateway.IpRangeReservation

public static final class Gateway.IpRangeReservation.Builder extends com.google.protobuf.GeneratedMessage.Builder<Gateway.IpRangeReservation.Builder> implements Gateway.IpRangeReservationOrBuilder
 A list of IP ranges that are reserved for this gateway's internal
 intfrastructure.
 
Protobuf type google.cloud.networkconnectivity.v1beta.Gateway.IpRangeReservation
  • 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<Gateway.IpRangeReservation.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<Gateway.IpRangeReservation.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<Gateway.IpRangeReservation.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

      public Gateway.IpRangeReservation.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<Gateway.IpRangeReservation.Builder>
      Throws:
      IOException
    • getIpRange

      public String getIpRange()
       Required. A block of IP addresses used to allocate supporting
       infrastructure for this gateway. This block must not overlap with subnets
       in any spokes or peer VPC networks that the gateway can communicate with.
       Example: "10.1.2.0/24"
       
      string ip_range = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getIpRange in interface Gateway.IpRangeReservationOrBuilder
      Returns:
      The ipRange.
    • getIpRangeBytes

      public com.google.protobuf.ByteString getIpRangeBytes()
       Required. A block of IP addresses used to allocate supporting
       infrastructure for this gateway. This block must not overlap with subnets
       in any spokes or peer VPC networks that the gateway can communicate with.
       Example: "10.1.2.0/24"
       
      string ip_range = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getIpRangeBytes in interface Gateway.IpRangeReservationOrBuilder
      Returns:
      The bytes for ipRange.
    • setIpRange

      public Gateway.IpRangeReservation.Builder setIpRange(String value)
       Required. A block of IP addresses used to allocate supporting
       infrastructure for this gateway. This block must not overlap with subnets
       in any spokes or peer VPC networks that the gateway can communicate with.
       Example: "10.1.2.0/24"
       
      string ip_range = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The ipRange to set.
      Returns:
      This builder for chaining.
    • clearIpRange

      public Gateway.IpRangeReservation.Builder clearIpRange()
       Required. A block of IP addresses used to allocate supporting
       infrastructure for this gateway. This block must not overlap with subnets
       in any spokes or peer VPC networks that the gateway can communicate with.
       Example: "10.1.2.0/24"
       
      string ip_range = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setIpRangeBytes

      public Gateway.IpRangeReservation.Builder setIpRangeBytes(com.google.protobuf.ByteString value)
       Required. A block of IP addresses used to allocate supporting
       infrastructure for this gateway. This block must not overlap with subnets
       in any spokes or peer VPC networks that the gateway can communicate with.
       Example: "10.1.2.0/24"
       
      string ip_range = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for ipRange to set.
      Returns:
      This builder for chaining.