Class Bucket.IamConfig (2.22.1)

public static final class Bucket.IamConfig extends GeneratedMessageV3 implements Bucket.IamConfigOrBuilder

Bucket restriction options.

Protobuf type google.storage.v2.Bucket.IamConfig

Static Fields

PUBLIC_ACCESS_PREVENTION_FIELD_NUMBER

public static final int PUBLIC_ACCESS_PREVENTION_FIELD_NUMBER
Field Value
TypeDescription
int

UNIFORM_BUCKET_LEVEL_ACCESS_FIELD_NUMBER

public static final int UNIFORM_BUCKET_LEVEL_ACCESS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Bucket.IamConfig getDefaultInstance()
Returns
TypeDescription
Bucket.IamConfig

getDescriptor()

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

newBuilder()

public static Bucket.IamConfig.Builder newBuilder()
Returns
TypeDescription
Bucket.IamConfig.Builder

newBuilder(Bucket.IamConfig prototype)

public static Bucket.IamConfig.Builder newBuilder(Bucket.IamConfig prototype)
Parameter
NameDescription
prototypeBucket.IamConfig
Returns
TypeDescription
Bucket.IamConfig.Builder

parseDelimitedFrom(InputStream input)

public static Bucket.IamConfig parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Bucket.IamConfig
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Bucket.IamConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Bucket.IamConfig
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Bucket.IamConfig parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Bucket.IamConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Bucket.IamConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Bucket.IamConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Bucket.IamConfig parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Bucket.IamConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Bucket.IamConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Bucket.IamConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Bucket.IamConfig parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Bucket.IamConfig
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Bucket.IamConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Bucket.IamConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Bucket.IamConfig parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Bucket.IamConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Bucket.IamConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Bucket.IamConfig
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Bucket.IamConfig parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Bucket.IamConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Bucket.IamConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Bucket.IamConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Bucket.IamConfig> parser()
Returns
TypeDescription
Parser<IamConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

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

getParserForType()

public Parser<Bucket.IamConfig> getParserForType()
Returns
TypeDescription
Parser<IamConfig>
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.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.

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

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Bucket.IamConfig.Builder newBuilderForType()
Returns
TypeDescription
Bucket.IamConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Bucket.IamConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Bucket.IamConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Bucket.IamConfig.Builder toBuilder()
Returns
TypeDescription
Bucket.IamConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException