Class Bucket.IpFilter.PublicNetworkSource.Builder (2.63.0)

public static final class Bucket.IpFilter.PublicNetworkSource.Builder extends 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

Static Methods

getDescriptor()

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

Methods

addAllAllowedIpCidrRanges(Iterable<String> values)

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

Parameter
Name Description
values Iterable<String>

The allowedIpCidrRanges to add.

Returns
Type Description
Bucket.IpFilter.PublicNetworkSource.Builder

This builder for chaining.

addAllowedIpCidrRanges(String value)

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

Parameter
Name Description
value String

The allowedIpCidrRanges to add.

Returns
Type Description
Bucket.IpFilter.PublicNetworkSource.Builder

This builder for chaining.

addAllowedIpCidrRangesBytes(ByteString value)

public Bucket.IpFilter.PublicNetworkSource.Builder addAllowedIpCidrRangesBytes(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];

Parameter
Name Description
value ByteString

The bytes of the allowedIpCidrRanges to add.

Returns
Type Description
Bucket.IpFilter.PublicNetworkSource.Builder

This builder for chaining.

build()

public Bucket.IpFilter.PublicNetworkSource build()
Returns
Type Description
Bucket.IpFilter.PublicNetworkSource

buildPartial()

public Bucket.IpFilter.PublicNetworkSource buildPartial()
Returns
Type Description
Bucket.IpFilter.PublicNetworkSource

clear()

public Bucket.IpFilter.PublicNetworkSource.Builder clear()
Returns
Type Description
Bucket.IpFilter.PublicNetworkSource.Builder
Overrides

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
Type Description
Bucket.IpFilter.PublicNetworkSource.Builder

This builder for chaining.

getAllowedIpCidrRanges(int index)

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

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

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 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
Type Description
int

The count of allowedIpCidrRanges.

getAllowedIpCidrRangesList()

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

Returns
Type Description
ProtocolStringList

A list containing the allowedIpCidrRanges.

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Bucket.IpFilter.PublicNetworkSource.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Bucket.IpFilter.PublicNetworkSource.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Bucket.IpFilter.PublicNetworkSource.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Bucket.IpFilter.PublicNetworkSource.Builder
Overrides

mergeFrom(Bucket.IpFilter.PublicNetworkSource other)

public Bucket.IpFilter.PublicNetworkSource.Builder mergeFrom(Bucket.IpFilter.PublicNetworkSource other)
Parameter
Name Description
other Bucket.IpFilter.PublicNetworkSource
Returns
Type Description
Bucket.IpFilter.PublicNetworkSource.Builder

setAllowedIpCidrRanges(int index, String value)

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
Name Description
index int

The index to set the value at.

value String

The allowedIpCidrRanges to set.

Returns
Type Description
Bucket.IpFilter.PublicNetworkSource.Builder

This builder for chaining.