Class Bucket.IpFilter.VpcNetworkSource (2.59.0)

public static final class Bucket.IpFilter.VpcNetworkSource extends GeneratedMessageV3 implements Bucket.IpFilter.VpcNetworkSourceOrBuilder

The list of VPC networks that can access the bucket.

Protobuf type google.storage.v2.Bucket.IpFilter.VpcNetworkSource

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > Bucket.IpFilter.VpcNetworkSource

Static Fields

ALLOWED_IP_CIDR_RANGES_FIELD_NUMBER

public static final int ALLOWED_IP_CIDR_RANGES_FIELD_NUMBER
Field Value
Type Description
int

NETWORK_FIELD_NUMBER

public static final int NETWORK_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Bucket.IpFilter.VpcNetworkSource getDefaultInstance()
Returns
Type Description
Bucket.IpFilter.VpcNetworkSource

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static Bucket.IpFilter.VpcNetworkSource.Builder newBuilder()
Returns
Type Description
Bucket.IpFilter.VpcNetworkSource.Builder

newBuilder(Bucket.IpFilter.VpcNetworkSource prototype)

public static Bucket.IpFilter.VpcNetworkSource.Builder newBuilder(Bucket.IpFilter.VpcNetworkSource prototype)
Parameter
Name Description
prototype Bucket.IpFilter.VpcNetworkSource
Returns
Type Description
Bucket.IpFilter.VpcNetworkSource.Builder

parseDelimitedFrom(InputStream input)

public static Bucket.IpFilter.VpcNetworkSource parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Bucket.IpFilter.VpcNetworkSource
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Bucket.IpFilter.VpcNetworkSource parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Bucket.IpFilter.VpcNetworkSource
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Bucket.IpFilter.VpcNetworkSource parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Bucket.IpFilter.VpcNetworkSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Bucket.IpFilter.VpcNetworkSource parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Bucket.IpFilter.VpcNetworkSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Bucket.IpFilter.VpcNetworkSource parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Bucket.IpFilter.VpcNetworkSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Bucket.IpFilter.VpcNetworkSource parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Bucket.IpFilter.VpcNetworkSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Bucket.IpFilter.VpcNetworkSource parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Bucket.IpFilter.VpcNetworkSource
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Bucket.IpFilter.VpcNetworkSource parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Bucket.IpFilter.VpcNetworkSource
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Bucket.IpFilter.VpcNetworkSource parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Bucket.IpFilter.VpcNetworkSource
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Bucket.IpFilter.VpcNetworkSource parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Bucket.IpFilter.VpcNetworkSource
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Bucket.IpFilter.VpcNetworkSource parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Bucket.IpFilter.VpcNetworkSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Bucket.IpFilter.VpcNetworkSource parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Bucket.IpFilter.VpcNetworkSource
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Bucket.IpFilter.VpcNetworkSource> parser()
Returns
Type Description
Parser<VpcNetworkSource>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAllowedIpCidrRanges(int index)

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];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The allowedIpCidrRanges at the given index.

getAllowedIpCidrRangesBytes(int index)

public 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];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the allowedIpCidrRanges at the given index.

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];

Returns
Type Description
int

The count of allowedIpCidrRanges.

getAllowedIpCidrRangesList()

public 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];

Returns
Type Description
ProtocolStringList

A list containing the allowedIpCidrRanges.

getDefaultInstanceForType()

public Bucket.IpFilter.VpcNetworkSource getDefaultInstanceForType()
Returns
Type Description
Bucket.IpFilter.VpcNetworkSource

getNetwork()

public String getNetwork()

Name of the network.

Format: projects/PROJECT_ID/global/networks/NETWORK_NAME

optional string network = 1;

Returns
Type Description
String

The network.

getNetworkBytes()

public ByteString getNetworkBytes()

Name of the network.

Format: projects/PROJECT_ID/global/networks/NETWORK_NAME

optional string network = 1;

Returns
Type Description
ByteString

The bytes for network.

getParserForType()

public Parser<Bucket.IpFilter.VpcNetworkSource> getParserForType()
Returns
Type Description
Parser<VpcNetworkSource>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasNetwork()

public boolean hasNetwork()

Name of the network.

Format: projects/PROJECT_ID/global/networks/NETWORK_NAME

optional string network = 1;

Returns
Type Description
boolean

Whether the network field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Bucket.IpFilter.VpcNetworkSource.Builder newBuilderForType()
Returns
Type Description
Bucket.IpFilter.VpcNetworkSource.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Bucket.IpFilter.VpcNetworkSource.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Bucket.IpFilter.VpcNetworkSource.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Bucket.IpFilter.VpcNetworkSource.Builder toBuilder()
Returns
Type Description
Bucket.IpFilter.VpcNetworkSource.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException