Class Bucket.IpFilter.PublicNetworkSource.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Bucket.IpFilter.PublicNetworkSource.Builder>
com.google.storage.v2.Bucket.IpFilter.PublicNetworkSource.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Bucket.IpFilter.PublicNetworkSourceOrBuilder, Cloneable
Enclosing class:
Bucket.IpFilter.PublicNetworkSource

public static final class Bucket.IpFilter.PublicNetworkSource.Builder extends com.google.protobuf.GeneratedMessage.Builder<Bucket.IpFilter.PublicNetworkSource.Builder> implements Bucket.IpFilter.PublicNetworkSourceOrBuilder
 The public network IP address ranges that can access the bucket and its
 data.
 
Protobuf type google.storage.v2.Bucket.IpFilter.PublicNetworkSource
  • 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<Bucket.IpFilter.PublicNetworkSource.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<Bucket.IpFilter.PublicNetworkSource.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<Bucket.IpFilter.PublicNetworkSource.Builder>
    • getDefaultInstanceForType

      public Bucket.IpFilter.PublicNetworkSource 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 Bucket.IpFilter.PublicNetworkSource buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Bucket.IpFilter.PublicNetworkSource.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<Bucket.IpFilter.PublicNetworkSource.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<Bucket.IpFilter.PublicNetworkSource.Builder>
    • mergeFrom

      public Bucket.IpFilter.PublicNetworkSource.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<Bucket.IpFilter.PublicNetworkSource.Builder>
      Throws:
      IOException
    • getAllowedIpCidrRangesList

      public com.google.protobuf.ProtocolStringList getAllowedIpCidrRangesList()
       Optional. The list of IPv4 and IPv6 cidr blocks that are allowed to
       operate or access the bucket and its underlying objects.
       
      repeated string allowed_ip_cidr_ranges = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAllowedIpCidrRangesList in interface Bucket.IpFilter.PublicNetworkSourceOrBuilder
      Returns:
      A list containing the allowedIpCidrRanges.
    • getAllowedIpCidrRangesCount

      public int getAllowedIpCidrRangesCount()
       Optional. The list of IPv4 and IPv6 cidr blocks that are allowed to
       operate or access the bucket and its underlying objects.
       
      repeated string allowed_ip_cidr_ranges = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAllowedIpCidrRangesCount in interface Bucket.IpFilter.PublicNetworkSourceOrBuilder
      Returns:
      The count of allowedIpCidrRanges.
    • getAllowedIpCidrRanges

      public String getAllowedIpCidrRanges(int index)
       Optional. The list of IPv4 and IPv6 cidr blocks that are allowed to
       operate or access the bucket and its underlying objects.
       
      repeated string allowed_ip_cidr_ranges = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAllowedIpCidrRanges in interface Bucket.IpFilter.PublicNetworkSourceOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The allowedIpCidrRanges at the given index.
    • getAllowedIpCidrRangesBytes

      public com.google.protobuf.ByteString getAllowedIpCidrRangesBytes(int index)
       Optional. The list of IPv4 and IPv6 cidr blocks that are allowed to
       operate or access the bucket and its underlying objects.
       
      repeated string allowed_ip_cidr_ranges = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAllowedIpCidrRangesBytes in interface Bucket.IpFilter.PublicNetworkSourceOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the allowedIpCidrRanges at the given index.
    • setAllowedIpCidrRanges

      public Bucket.IpFilter.PublicNetworkSource.Builder setAllowedIpCidrRanges(int index, String value)
       Optional. The list of IPv4 and IPv6 cidr blocks that are allowed to
       operate or access the bucket and its underlying objects.
       
      repeated string allowed_ip_cidr_ranges = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The allowedIpCidrRanges to set.
      Returns:
      This builder for chaining.
    • addAllowedIpCidrRanges

      public Bucket.IpFilter.PublicNetworkSource.Builder addAllowedIpCidrRanges(String value)
       Optional. The list of IPv4 and IPv6 cidr blocks that are allowed to
       operate or access the bucket and its underlying objects.
       
      repeated string allowed_ip_cidr_ranges = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The allowedIpCidrRanges to add.
      Returns:
      This builder for chaining.
    • addAllAllowedIpCidrRanges

      public Bucket.IpFilter.PublicNetworkSource.Builder addAllAllowedIpCidrRanges(Iterable<String> values)
       Optional. The list of IPv4 and IPv6 cidr blocks that are allowed to
       operate or access the bucket and its underlying objects.
       
      repeated string allowed_ip_cidr_ranges = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The allowedIpCidrRanges to add.
      Returns:
      This builder for chaining.
    • clearAllowedIpCidrRanges

      public Bucket.IpFilter.PublicNetworkSource.Builder clearAllowedIpCidrRanges()
       Optional. The list of IPv4 and IPv6 cidr blocks that are allowed to
       operate or access the bucket and its underlying objects.
       
      repeated string allowed_ip_cidr_ranges = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • addAllowedIpCidrRangesBytes

      public Bucket.IpFilter.PublicNetworkSource.Builder addAllowedIpCidrRangesBytes(com.google.protobuf.ByteString value)
       Optional. The list of IPv4 and IPv6 cidr blocks that are allowed to
       operate or access the bucket and its underlying objects.
       
      repeated string allowed_ip_cidr_ranges = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes of the allowedIpCidrRanges to add.
      Returns:
      This builder for chaining.