Class IcebergCatalog.RestrictedLocationsConfig.Builder (0.83.0)

public static final class IcebergCatalog.RestrictedLocationsConfig.Builder extends GeneratedMessage.Builder<IcebergCatalog.RestrictedLocationsConfig.Builder> implements IcebergCatalog.RestrictedLocationsConfigOrBuilder

Configuration of location restrictions.

Protobuf type google.cloud.biglake.v1.IcebergCatalog.RestrictedLocationsConfig

Static Methods

getDescriptor()

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

Methods

addAllRestrictedLocations(Iterable<String> values)

public IcebergCatalog.RestrictedLocationsConfig.Builder addAllRestrictedLocations(Iterable<String> values)

Optional. Additional Google Cloud Storage buckets and locations (e.g., gs://my-other-bucket/...) that are permitted for use by resources within a catalog. This field is currently only used for BigLake catalogs.

If restricted_locations is empty and unrestricted catalog creation is enabled, all accessible locations are allowed. Otherwise, only default_location and locations in this list are allowed.

repeated string restricted_locations = 1 [json_name = "restricted-locations", (.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The restrictedLocations to add.

Returns
Type Description
IcebergCatalog.RestrictedLocationsConfig.Builder

This builder for chaining.

addRestrictedLocations(String value)

public IcebergCatalog.RestrictedLocationsConfig.Builder addRestrictedLocations(String value)

Optional. Additional Google Cloud Storage buckets and locations (e.g., gs://my-other-bucket/...) that are permitted for use by resources within a catalog. This field is currently only used for BigLake catalogs.

If restricted_locations is empty and unrestricted catalog creation is enabled, all accessible locations are allowed. Otherwise, only default_location and locations in this list are allowed.

repeated string restricted_locations = 1 [json_name = "restricted-locations", (.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The restrictedLocations to add.

Returns
Type Description
IcebergCatalog.RestrictedLocationsConfig.Builder

This builder for chaining.

addRestrictedLocationsBytes(ByteString value)

public IcebergCatalog.RestrictedLocationsConfig.Builder addRestrictedLocationsBytes(ByteString value)

Optional. Additional Google Cloud Storage buckets and locations (e.g., gs://my-other-bucket/...) that are permitted for use by resources within a catalog. This field is currently only used for BigLake catalogs.

If restricted_locations is empty and unrestricted catalog creation is enabled, all accessible locations are allowed. Otherwise, only default_location and locations in this list are allowed.

repeated string restricted_locations = 1 [json_name = "restricted-locations", (.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the restrictedLocations to add.

Returns
Type Description
IcebergCatalog.RestrictedLocationsConfig.Builder

This builder for chaining.

build()

public IcebergCatalog.RestrictedLocationsConfig build()
Returns
Type Description
IcebergCatalog.RestrictedLocationsConfig

buildPartial()

public IcebergCatalog.RestrictedLocationsConfig buildPartial()
Returns
Type Description
IcebergCatalog.RestrictedLocationsConfig

clear()

public IcebergCatalog.RestrictedLocationsConfig.Builder clear()
Returns
Type Description
IcebergCatalog.RestrictedLocationsConfig.Builder
Overrides

clearRestrictedLocations()

public IcebergCatalog.RestrictedLocationsConfig.Builder clearRestrictedLocations()

Optional. Additional Google Cloud Storage buckets and locations (e.g., gs://my-other-bucket/...) that are permitted for use by resources within a catalog. This field is currently only used for BigLake catalogs.

If restricted_locations is empty and unrestricted catalog creation is enabled, all accessible locations are allowed. Otherwise, only default_location and locations in this list are allowed.

repeated string restricted_locations = 1 [json_name = "restricted-locations", (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
IcebergCatalog.RestrictedLocationsConfig.Builder

This builder for chaining.

getDefaultInstanceForType()

public IcebergCatalog.RestrictedLocationsConfig getDefaultInstanceForType()
Returns
Type Description
IcebergCatalog.RestrictedLocationsConfig

getDescriptorForType()

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

getRestrictedLocations(int index)

public String getRestrictedLocations(int index)

Optional. Additional Google Cloud Storage buckets and locations (e.g., gs://my-other-bucket/...) that are permitted for use by resources within a catalog. This field is currently only used for BigLake catalogs.

If restricted_locations is empty and unrestricted catalog creation is enabled, all accessible locations are allowed. Otherwise, only default_location and locations in this list are allowed.

repeated string restricted_locations = 1 [json_name = "restricted-locations", (.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The restrictedLocations at the given index.

getRestrictedLocationsBytes(int index)

public ByteString getRestrictedLocationsBytes(int index)

Optional. Additional Google Cloud Storage buckets and locations (e.g., gs://my-other-bucket/...) that are permitted for use by resources within a catalog. This field is currently only used for BigLake catalogs.

If restricted_locations is empty and unrestricted catalog creation is enabled, all accessible locations are allowed. Otherwise, only default_location and locations in this list are allowed.

repeated string restricted_locations = 1 [json_name = "restricted-locations", (.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 restrictedLocations at the given index.

getRestrictedLocationsCount()

public int getRestrictedLocationsCount()

Optional. Additional Google Cloud Storage buckets and locations (e.g., gs://my-other-bucket/...) that are permitted for use by resources within a catalog. This field is currently only used for BigLake catalogs.

If restricted_locations is empty and unrestricted catalog creation is enabled, all accessible locations are allowed. Otherwise, only default_location and locations in this list are allowed.

repeated string restricted_locations = 1 [json_name = "restricted-locations", (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of restrictedLocations.

getRestrictedLocationsList()

public ProtocolStringList getRestrictedLocationsList()

Optional. Additional Google Cloud Storage buckets and locations (e.g., gs://my-other-bucket/...) that are permitted for use by resources within a catalog. This field is currently only used for BigLake catalogs.

If restricted_locations is empty and unrestricted catalog creation is enabled, all accessible locations are allowed. Otherwise, only default_location and locations in this list are allowed.

repeated string restricted_locations = 1 [json_name = "restricted-locations", (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the restrictedLocations.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(IcebergCatalog.RestrictedLocationsConfig other)

public IcebergCatalog.RestrictedLocationsConfig.Builder mergeFrom(IcebergCatalog.RestrictedLocationsConfig other)
Parameter
Name Description
other IcebergCatalog.RestrictedLocationsConfig
Returns
Type Description
IcebergCatalog.RestrictedLocationsConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public IcebergCatalog.RestrictedLocationsConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
IcebergCatalog.RestrictedLocationsConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public IcebergCatalog.RestrictedLocationsConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
IcebergCatalog.RestrictedLocationsConfig.Builder
Overrides

setRestrictedLocations(int index, String value)

public IcebergCatalog.RestrictedLocationsConfig.Builder setRestrictedLocations(int index, String value)

Optional. Additional Google Cloud Storage buckets and locations (e.g., gs://my-other-bucket/...) that are permitted for use by resources within a catalog. This field is currently only used for BigLake catalogs.

If restricted_locations is empty and unrestricted catalog creation is enabled, all accessible locations are allowed. Otherwise, only default_location and locations in this list are allowed.

repeated string restricted_locations = 1 [json_name = "restricted-locations", (.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The restrictedLocations to set.

Returns
Type Description
IcebergCatalog.RestrictedLocationsConfig.Builder

This builder for chaining.