Class Bucket.IamConfig.Builder (2.27.1-SNAPSHOT)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Bucket.IamConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Bucket.IamConfig.Builder
Overrides

build()

public Bucket.IamConfig build()
Returns
TypeDescription
Bucket.IamConfig

buildPartial()

public Bucket.IamConfig buildPartial()
Returns
TypeDescription
Bucket.IamConfig

clear()

public Bucket.IamConfig.Builder clear()
Returns
TypeDescription
Bucket.IamConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Bucket.IamConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Bucket.IamConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Bucket.IamConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Bucket.IamConfig.Builder
Overrides

clearPublicAccessPrevention()

public Bucket.IamConfig.Builder clearPublicAccessPrevention()

Whether IAM will enforce public access prevention. Valid values are "enforced" or "inherited".

string public_access_prevention = 3;

Returns
TypeDescription
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
TypeDescription
Bucket.IamConfig.Builder

clone()

public Bucket.IamConfig.Builder clone()
Returns
TypeDescription
Bucket.IamConfig.Builder
Overrides

getDefaultInstanceForType()

public Bucket.IamConfig getDefaultInstanceForType()
Returns
TypeDescription
Bucket.IamConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPublicAccessPrevention()

public String getPublicAccessPrevention()

Whether IAM will enforce public access prevention. Valid values are "enforced" or "inherited".

string public_access_prevention = 3;

Returns
TypeDescription
String

The publicAccessPrevention.

getPublicAccessPreventionBytes()

public ByteString getPublicAccessPreventionBytes()

Whether IAM will enforce public access prevention. Valid values are "enforced" or "inherited".

string public_access_prevention = 3;

Returns
TypeDescription
ByteString

The bytes 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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the uniformBucketLevelAccess field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Bucket.IamConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Bucket.IamConfig.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Bucket.IamConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Bucket.IamConfig.Builder
Overrides

mergeFrom(Bucket.IamConfig other)

public Bucket.IamConfig.Builder mergeFrom(Bucket.IamConfig other)
Parameter
NameDescription
otherBucket.IamConfig
Returns
TypeDescription
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
NameDescription
valueBucket.IamConfig.UniformBucketLevelAccess
Returns
TypeDescription
Bucket.IamConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Bucket.IamConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Bucket.IamConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Bucket.IamConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Bucket.IamConfig.Builder
Overrides

setPublicAccessPrevention(String value)

public Bucket.IamConfig.Builder setPublicAccessPrevention(String value)

Whether IAM will enforce public access prevention. Valid values are "enforced" or "inherited".

string public_access_prevention = 3;

Parameter
NameDescription
valueString

The publicAccessPrevention to set.

Returns
TypeDescription
Bucket.IamConfig.Builder

This builder for chaining.

setPublicAccessPreventionBytes(ByteString value)

public Bucket.IamConfig.Builder setPublicAccessPreventionBytes(ByteString value)

Whether IAM will enforce public access prevention. Valid values are "enforced" or "inherited".

string public_access_prevention = 3;

Parameter
NameDescription
valueByteString

The bytes for publicAccessPrevention to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueBucket.IamConfig.UniformBucketLevelAccess
Returns
TypeDescription
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
NameDescription
builderForValueBucket.IamConfig.UniformBucketLevelAccess.Builder
Returns
TypeDescription
Bucket.IamConfig.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Bucket.IamConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Bucket.IamConfig.Builder
Overrides