Class Bucket.IamConfig.Builder (2.1.10)

public static final class Bucket.IamConfig.Builder extends GeneratedMessageV3.Builder<Bucket.IamConfig.Builder> implements Bucket.IamConfigOrBuilder

Bucket restriction options.

Protobuf type google.storage.v2.Bucket.IamConfig

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Bucket.IamConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Bucket.IamConfig.Builder
Overrides

build()

public Bucket.IamConfig build()
Returns
Type Description
Bucket.IamConfig

buildPartial()

public Bucket.IamConfig buildPartial()
Returns
Type Description
Bucket.IamConfig

clear()

public Bucket.IamConfig.Builder clear()
Returns
Type Description
Bucket.IamConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Bucket.IamConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Bucket.IamConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Bucket.IamConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Bucket.IamConfig.Builder
Overrides

clearPublicAccessPrevention()

public Bucket.IamConfig.Builder clearPublicAccessPrevention()

Whether IAM will enforce public access prevention.

.google.storage.v2.Bucket.IamConfig.PublicAccessPrevention public_access_prevention = 2;

Returns
Type Description
Bucket.IamConfig.Builder

This builder for chaining.

clearUniformBucketLevelAccess()

public Bucket.IamConfig.Builder clearUniformBucketLevelAccess()

Bucket restriction options currently enforced on the bucket.

.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1;

Returns
Type Description
Bucket.IamConfig.Builder

clone()

public Bucket.IamConfig.Builder clone()
Returns
Type Description
Bucket.IamConfig.Builder
Overrides

getDefaultInstanceForType()

public Bucket.IamConfig getDefaultInstanceForType()
Returns
Type Description
Bucket.IamConfig

getDescriptor()

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

getDescriptorForType()

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

getPublicAccessPrevention()

public Bucket.IamConfig.PublicAccessPrevention getPublicAccessPrevention()

Whether IAM will enforce public access prevention.

.google.storage.v2.Bucket.IamConfig.PublicAccessPrevention public_access_prevention = 2;

Returns
Type Description
Bucket.IamConfig.PublicAccessPrevention

The publicAccessPrevention.

getPublicAccessPreventionValue()

public int getPublicAccessPreventionValue()

Whether IAM will enforce public access prevention.

.google.storage.v2.Bucket.IamConfig.PublicAccessPrevention public_access_prevention = 2;

Returns
Type Description
int

The enum numeric value on the wire for publicAccessPrevention.

getUniformBucketLevelAccess()

public Bucket.IamConfig.UniformBucketLevelAccess getUniformBucketLevelAccess()

Bucket restriction options currently enforced on the bucket.

.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1;

Returns
Type Description
Bucket.IamConfig.UniformBucketLevelAccess

The uniformBucketLevelAccess.

getUniformBucketLevelAccessBuilder()

public Bucket.IamConfig.UniformBucketLevelAccess.Builder getUniformBucketLevelAccessBuilder()

Bucket restriction options currently enforced on the bucket.

.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1;

Returns
Type Description
Bucket.IamConfig.UniformBucketLevelAccess.Builder

getUniformBucketLevelAccessOrBuilder()

public Bucket.IamConfig.UniformBucketLevelAccessOrBuilder getUniformBucketLevelAccessOrBuilder()

Bucket restriction options currently enforced on the bucket.

.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1;

Returns
Type Description
Bucket.IamConfig.UniformBucketLevelAccessOrBuilder

hasUniformBucketLevelAccess()

public boolean hasUniformBucketLevelAccess()

Bucket restriction options currently enforced on the bucket.

.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1;

Returns
Type Description
boolean

Whether the uniformBucketLevelAccess field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(Bucket.IamConfig other)

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

mergeUniformBucketLevelAccess(Bucket.IamConfig.UniformBucketLevelAccess value)

public Bucket.IamConfig.Builder mergeUniformBucketLevelAccess(Bucket.IamConfig.UniformBucketLevelAccess value)

Bucket restriction options currently enforced on the bucket.

.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1;

Parameter
Name Description
value Bucket.IamConfig.UniformBucketLevelAccess
Returns
Type Description
Bucket.IamConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Bucket.IamConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Bucket.IamConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Bucket.IamConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Bucket.IamConfig.Builder
Overrides

setPublicAccessPrevention(Bucket.IamConfig.PublicAccessPrevention value)

public Bucket.IamConfig.Builder setPublicAccessPrevention(Bucket.IamConfig.PublicAccessPrevention value)

Whether IAM will enforce public access prevention.

.google.storage.v2.Bucket.IamConfig.PublicAccessPrevention public_access_prevention = 2;

Parameter
Name Description
value Bucket.IamConfig.PublicAccessPrevention

The publicAccessPrevention to set.

Returns
Type Description
Bucket.IamConfig.Builder

This builder for chaining.

setPublicAccessPreventionValue(int value)

public Bucket.IamConfig.Builder setPublicAccessPreventionValue(int value)

Whether IAM will enforce public access prevention.

.google.storage.v2.Bucket.IamConfig.PublicAccessPrevention public_access_prevention = 2;

Parameter
Name Description
value int

The enum numeric value on the wire for publicAccessPrevention to set.

Returns
Type Description
Bucket.IamConfig.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Bucket.IamConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Bucket.IamConfig.Builder
Overrides

setUniformBucketLevelAccess(Bucket.IamConfig.UniformBucketLevelAccess value)

public Bucket.IamConfig.Builder setUniformBucketLevelAccess(Bucket.IamConfig.UniformBucketLevelAccess value)

Bucket restriction options currently enforced on the bucket.

.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1;

Parameter
Name Description
value Bucket.IamConfig.UniformBucketLevelAccess
Returns
Type Description
Bucket.IamConfig.Builder

setUniformBucketLevelAccess(Bucket.IamConfig.UniformBucketLevelAccess.Builder builderForValue)

public Bucket.IamConfig.Builder setUniformBucketLevelAccess(Bucket.IamConfig.UniformBucketLevelAccess.Builder builderForValue)

Bucket restriction options currently enforced on the bucket.

.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1;

Parameter
Name Description
builderForValue Bucket.IamConfig.UniformBucketLevelAccess.Builder
Returns
Type Description
Bucket.IamConfig.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Bucket.IamConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Bucket.IamConfig.Builder
Overrides