Send feedback
Class Bucket.IamConfig.Builder (2.47.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version latest keyboard_arrow_down
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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Bucket . IamConfig . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
public Bucket . IamConfig build ()
buildPartial()
public Bucket . IamConfig buildPartial ()
clear()
public Bucket . IamConfig . Builder clear ()
Overrides
clearField(Descriptors.FieldDescriptor field)
public Bucket . IamConfig . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Bucket . IamConfig . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
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;
public Bucket . IamConfig . Builder clearUniformBucketLevelAccess ()
Bucket restriction options currently enforced on the bucket.
.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1;
clone()
public Bucket . IamConfig . Builder clone ()
Overrides
getDefaultInstanceForType()
public Bucket . IamConfig getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
getPublicAccessPrevention()
public String getPublicAccessPrevention ()
Whether IAM will enforce public access prevention. Valid values are
"enforced" or "inherited".
string public_access_prevention = 3;
Returns
Type
Description
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
Type
Description
ByteString
The bytes 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;
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;
public Bucket . IamConfig . UniformBucketLevelAccessOrBuilder getUniformBucketLevelAccessOrBuilder ()
Bucket restriction options currently enforced on the bucket.
.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1;
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 ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
public Bucket . IamConfig . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public Bucket . IamConfig . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
mergeFrom(Bucket.IamConfig other)
public Bucket . IamConfig . Builder mergeFrom ( Bucket . IamConfig other )
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;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Bucket . IamConfig . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public Bucket . IamConfig . Builder setField ( Descriptors . FieldDescriptor field , Object value )
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
Name
Description
value
String
The publicAccessPrevention to set.
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
Name
Description
value
ByteString
The bytes for publicAccessPrevention to set.
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Bucket . IamConfig . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
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;
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;
setUnknownFields(UnknownFieldSet unknownFields)
public final Bucket . IamConfig . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-21 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-21 UTC."],[],[]]