Class Bucket.IpFilter.VpcNetworkSource.Builder

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

public static final class Bucket.IpFilter.VpcNetworkSource.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Bucket.IpFilter.VpcNetworkSource.Builder> implements Bucket.IpFilter.VpcNetworkSourceOrBuilder
 The list of VPC networks that can access the bucket.
 
Protobuf type google.storage.v2.Bucket.IpFilter.VpcNetworkSource
  • Method Details

    • 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<Bucket.IpFilter.VpcNetworkSource.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<Bucket.IpFilter.VpcNetworkSource.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<Bucket.IpFilter.VpcNetworkSource.Builder>
    • getDefaultInstanceForType

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

      public Bucket.IpFilter.VpcNetworkSource.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<Bucket.IpFilter.VpcNetworkSource.Builder>
    • clearField

      public Bucket.IpFilter.VpcNetworkSource.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<Bucket.IpFilter.VpcNetworkSource.Builder>
    • clearOneof

      public Bucket.IpFilter.VpcNetworkSource.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<Bucket.IpFilter.VpcNetworkSource.Builder>
    • setRepeatedField

      public Bucket.IpFilter.VpcNetworkSource.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<Bucket.IpFilter.VpcNetworkSource.Builder>
    • addRepeatedField

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

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

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Bucket.IpFilter.VpcNetworkSource.Builder>
    • mergeFrom

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

      public boolean hasNetwork()
       Name of the network.
      
       Format: `projects/PROJECT_ID/global/networks/NETWORK_NAME`
       
      optional string network = 1;
      Specified by:
      hasNetwork in interface Bucket.IpFilter.VpcNetworkSourceOrBuilder
      Returns:
      Whether the network field is set.
    • getNetwork

      public String getNetwork()
       Name of the network.
      
       Format: `projects/PROJECT_ID/global/networks/NETWORK_NAME`
       
      optional string network = 1;
      Specified by:
      getNetwork in interface Bucket.IpFilter.VpcNetworkSourceOrBuilder
      Returns:
      The network.
    • getNetworkBytes

      public com.google.protobuf.ByteString getNetworkBytes()
       Name of the network.
      
       Format: `projects/PROJECT_ID/global/networks/NETWORK_NAME`
       
      optional string network = 1;
      Specified by:
      getNetworkBytes in interface Bucket.IpFilter.VpcNetworkSourceOrBuilder
      Returns:
      The bytes for network.
    • setNetwork

       Name of the network.
      
       Format: `projects/PROJECT_ID/global/networks/NETWORK_NAME`
       
      optional string network = 1;
      Parameters:
      value - The network to set.
      Returns:
      This builder for chaining.
    • clearNetwork

       Name of the network.
      
       Format: `projects/PROJECT_ID/global/networks/NETWORK_NAME`
       
      optional string network = 1;
      Returns:
      This builder for chaining.
    • setNetworkBytes

      public Bucket.IpFilter.VpcNetworkSource.Builder setNetworkBytes(com.google.protobuf.ByteString value)
       Name of the network.
      
       Format: `projects/PROJECT_ID/global/networks/NETWORK_NAME`
       
      optional string network = 1;
      Parameters:
      value - The bytes for network to set.
      Returns:
      This builder for chaining.
    • getAllowedIpCidrRangesList

      public com.google.protobuf.ProtocolStringList getAllowedIpCidrRangesList()
       Optional. The list of public or private IPv4 and IPv6 CIDR ranges that
       can access the bucket. In the CIDR IP address block, the specified IP
       address must be properly truncated, meaning all the host bits must be
       zero or else the input is considered malformed. For example,
       `192.0.2.0/24` is accepted but `192.0.2.1/24` is not. Similarly, for
       IPv6, `2001:db8::/32` is accepted whereas `2001:db8::1/32` is not.
       
      repeated string allowed_ip_cidr_ranges = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAllowedIpCidrRangesList in interface Bucket.IpFilter.VpcNetworkSourceOrBuilder
      Returns:
      A list containing the allowedIpCidrRanges.
    • getAllowedIpCidrRangesCount

      public int getAllowedIpCidrRangesCount()
       Optional. The list of public or private IPv4 and IPv6 CIDR ranges that
       can access the bucket. In the CIDR IP address block, the specified IP
       address must be properly truncated, meaning all the host bits must be
       zero or else the input is considered malformed. For example,
       `192.0.2.0/24` is accepted but `192.0.2.1/24` is not. Similarly, for
       IPv6, `2001:db8::/32` is accepted whereas `2001:db8::1/32` is not.
       
      repeated string allowed_ip_cidr_ranges = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAllowedIpCidrRangesCount in interface Bucket.IpFilter.VpcNetworkSourceOrBuilder
      Returns:
      The count of allowedIpCidrRanges.
    • getAllowedIpCidrRanges

      public String getAllowedIpCidrRanges(int index)
       Optional. The list of public or private IPv4 and IPv6 CIDR ranges that
       can access the bucket. In the CIDR IP address block, the specified IP
       address must be properly truncated, meaning all the host bits must be
       zero or else the input is considered malformed. For example,
       `192.0.2.0/24` is accepted but `192.0.2.1/24` is not. Similarly, for
       IPv6, `2001:db8::/32` is accepted whereas `2001:db8::1/32` is not.
       
      repeated string allowed_ip_cidr_ranges = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAllowedIpCidrRanges in interface Bucket.IpFilter.VpcNetworkSourceOrBuilder
      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 public or private IPv4 and IPv6 CIDR ranges that
       can access the bucket. In the CIDR IP address block, the specified IP
       address must be properly truncated, meaning all the host bits must be
       zero or else the input is considered malformed. For example,
       `192.0.2.0/24` is accepted but `192.0.2.1/24` is not. Similarly, for
       IPv6, `2001:db8::/32` is accepted whereas `2001:db8::1/32` is not.
       
      repeated string allowed_ip_cidr_ranges = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAllowedIpCidrRangesBytes in interface Bucket.IpFilter.VpcNetworkSourceOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the allowedIpCidrRanges at the given index.
    • setAllowedIpCidrRanges

      public Bucket.IpFilter.VpcNetworkSource.Builder setAllowedIpCidrRanges(int index, String value)
       Optional. The list of public or private IPv4 and IPv6 CIDR ranges that
       can access the bucket. In the CIDR IP address block, the specified IP
       address must be properly truncated, meaning all the host bits must be
       zero or else the input is considered malformed. For example,
       `192.0.2.0/24` is accepted but `192.0.2.1/24` is not. Similarly, for
       IPv6, `2001:db8::/32` is accepted whereas `2001:db8::1/32` is not.
       
      repeated string allowed_ip_cidr_ranges = 2 [(.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.VpcNetworkSource.Builder addAllowedIpCidrRanges(String value)
       Optional. The list of public or private IPv4 and IPv6 CIDR ranges that
       can access the bucket. In the CIDR IP address block, the specified IP
       address must be properly truncated, meaning all the host bits must be
       zero or else the input is considered malformed. For example,
       `192.0.2.0/24` is accepted but `192.0.2.1/24` is not. Similarly, for
       IPv6, `2001:db8::/32` is accepted whereas `2001:db8::1/32` is not.
       
      repeated string allowed_ip_cidr_ranges = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The allowedIpCidrRanges to add.
      Returns:
      This builder for chaining.
    • addAllAllowedIpCidrRanges

      public Bucket.IpFilter.VpcNetworkSource.Builder addAllAllowedIpCidrRanges(Iterable<String> values)
       Optional. The list of public or private IPv4 and IPv6 CIDR ranges that
       can access the bucket. In the CIDR IP address block, the specified IP
       address must be properly truncated, meaning all the host bits must be
       zero or else the input is considered malformed. For example,
       `192.0.2.0/24` is accepted but `192.0.2.1/24` is not. Similarly, for
       IPv6, `2001:db8::/32` is accepted whereas `2001:db8::1/32` is not.
       
      repeated string allowed_ip_cidr_ranges = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The allowedIpCidrRanges to add.
      Returns:
      This builder for chaining.
    • clearAllowedIpCidrRanges

      public Bucket.IpFilter.VpcNetworkSource.Builder clearAllowedIpCidrRanges()
       Optional. The list of public or private IPv4 and IPv6 CIDR ranges that
       can access the bucket. In the CIDR IP address block, the specified IP
       address must be properly truncated, meaning all the host bits must be
       zero or else the input is considered malformed. For example,
       `192.0.2.0/24` is accepted but `192.0.2.1/24` is not. Similarly, for
       IPv6, `2001:db8::/32` is accepted whereas `2001:db8::1/32` is not.
       
      repeated string allowed_ip_cidr_ranges = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • addAllowedIpCidrRangesBytes

      public Bucket.IpFilter.VpcNetworkSource.Builder addAllowedIpCidrRangesBytes(com.google.protobuf.ByteString value)
       Optional. The list of public or private IPv4 and IPv6 CIDR ranges that
       can access the bucket. In the CIDR IP address block, the specified IP
       address must be properly truncated, meaning all the host bits must be
       zero or else the input is considered malformed. For example,
       `192.0.2.0/24` is accepted but `192.0.2.1/24` is not. Similarly, for
       IPv6, `2001:db8::/32` is accepted whereas `2001:db8::1/32` is not.
       
      repeated string allowed_ip_cidr_ranges = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes of the allowedIpCidrRanges to add.
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final Bucket.IpFilter.VpcNetworkSource.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<Bucket.IpFilter.VpcNetworkSource.Builder>
    • mergeUnknownFields

      public final Bucket.IpFilter.VpcNetworkSource.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<Bucket.IpFilter.VpcNetworkSource.Builder>