Class Bucket.IamConfig (2.19.0)

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
Type Description
int

UNIFORM_BUCKET_LEVEL_ACCESS_FIELD_NUMBER

public static final int UNIFORM_BUCKET_LEVEL_ACCESS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Bucket.IamConfig getDefaultInstance()
Returns
Type Description
Bucket.IamConfig

getDescriptor()

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

newBuilder()

public static Bucket.IamConfig.Builder newBuilder()
Returns
Type Description
Bucket.IamConfig.Builder

newBuilder(Bucket.IamConfig prototype)

public static Bucket.IamConfig.Builder newBuilder(Bucket.IamConfig prototype)
Parameter
Name Description
prototype Bucket.IamConfig
Returns
Type Description
Bucket.IamConfig.Builder

parseDelimitedFrom(InputStream input)

public static Bucket.IamConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Bucket.IamConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Bucket.IamConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Bucket.IamConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Bucket.IamConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Bucket.IamConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Bucket.IamConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Bucket.IamConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Bucket.IamConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Bucket.IamConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Bucket.IamConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Bucket.IamConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Bucket.IamConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Bucket.IamConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Bucket.IamConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Bucket.IamConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Bucket.IamConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Bucket.IamConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Bucket.IamConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Bucket.IamConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Bucket.IamConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Bucket.IamConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Bucket.IamConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Bucket.IamConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

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

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
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
Type Description
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
Type Description
Bucket.IamConfig.UniformBucketLevelAccessOrBuilder

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
Type Description
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
Type Description
boolean

Whether the uniformBucketLevelAccess field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Bucket.IamConfig.Builder newBuilderForType()
Returns
Type Description
Bucket.IamConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Bucket.IamConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Bucket.IamConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Bucket.IamConfig.Builder toBuilder()
Returns
Type Description
Bucket.IamConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides Exceptions
Type Description
IOException