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
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Bucket.IamConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public Bucket.IamConfig build()
Returns
buildPartial()
public Bucket.IamConfig buildPartial()
Returns
clear()
public Bucket.IamConfig.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public Bucket.IamConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Bucket.IamConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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
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
clone()
public Bucket.IamConfig.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public Bucket.IamConfig getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
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.
|
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
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
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
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
public Bucket.IamConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public Bucket.IamConfig.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeFrom(Bucket.IamConfig other)
public Bucket.IamConfig.Builder mergeFrom(Bucket.IamConfig other)
Parameter
Returns
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
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Bucket.IamConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public Bucket.IamConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
Returns
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Bucket.IamConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
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
Returns
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
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final Bucket.IamConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides