Class Bucket.IpFilter.VpcNetworkSource

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

public static final class Bucket.IpFilter.VpcNetworkSource extends com.google.protobuf.GeneratedMessageV3 implements Bucket.IpFilter.VpcNetworkSourceOrBuilder
 The list of VPC networks that can access the bucket.
 
Protobuf type google.storage.v2.Bucket.IpFilter.VpcNetworkSource
See Also:
  • Field Details

    • NETWORK_FIELD_NUMBER

      public static final int NETWORK_FIELD_NUMBER
      See Also:
    • ALLOWED_IP_CIDR_RANGES_FIELD_NUMBER

      public static final int ALLOWED_IP_CIDR_RANGES_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • 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
    • 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.
    • 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.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Bucket.IpFilter.VpcNetworkSource parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Bucket.IpFilter.VpcNetworkSource parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Bucket.IpFilter.VpcNetworkSource parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Bucket.IpFilter.VpcNetworkSource parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Bucket.IpFilter.VpcNetworkSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Bucket.IpFilter.VpcNetworkSource parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Bucket.IpFilter.VpcNetworkSource parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Bucket.IpFilter.VpcNetworkSource parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Bucket.IpFilter.VpcNetworkSource parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Bucket.IpFilter.VpcNetworkSource parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Bucket.IpFilter.VpcNetworkSource parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Bucket.IpFilter.VpcNetworkSource parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public Bucket.IpFilter.VpcNetworkSource.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Bucket.IpFilter.VpcNetworkSource.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Bucket.IpFilter.VpcNetworkSource.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static Bucket.IpFilter.VpcNetworkSource getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Bucket.IpFilter.VpcNetworkSource> parser()
    • getParserForType

      public com.google.protobuf.Parser<Bucket.IpFilter.VpcNetworkSource> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public Bucket.IpFilter.VpcNetworkSource getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder