Class Bucket.Encryption.CustomerManagedEncryptionEnforcementConfig (2.53.3)

public static final class Bucket.Encryption.CustomerManagedEncryptionEnforcementConfig extends GeneratedMessageV3 implements Bucket.Encryption.CustomerManagedEncryptionEnforcementConfigOrBuilder

Customer Managed Encryption (CMEK) enforcement config of a bucket.

Protobuf type google.storage.v2.Bucket.Encryption.CustomerManagedEncryptionEnforcementConfig

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > Bucket.Encryption.CustomerManagedEncryptionEnforcementConfig

Static Fields

EFFECTIVE_TIME_FIELD_NUMBER

public static final int EFFECTIVE_TIME_FIELD_NUMBER
Field Value
Type Description
int

RESTRICTION_MODE_FIELD_NUMBER

public static final int RESTRICTION_MODE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Bucket.Encryption.CustomerManagedEncryptionEnforcementConfig getDefaultInstance()
Returns
Type Description
Bucket.Encryption.CustomerManagedEncryptionEnforcementConfig

getDescriptor()

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

newBuilder()

public static Bucket.Encryption.CustomerManagedEncryptionEnforcementConfig.Builder newBuilder()
Returns
Type Description
Bucket.Encryption.CustomerManagedEncryptionEnforcementConfig.Builder

newBuilder(Bucket.Encryption.CustomerManagedEncryptionEnforcementConfig prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public Bucket.Encryption.CustomerManagedEncryptionEnforcementConfig getDefaultInstanceForType()
Returns
Type Description
Bucket.Encryption.CustomerManagedEncryptionEnforcementConfig

getEffectiveTime()

public Timestamp getEffectiveTime()

Time from which the config was effective. This is service-provided.

optional .google.protobuf.Timestamp effective_time = 2;

Returns
Type Description
Timestamp

The effectiveTime.

getEffectiveTimeOrBuilder()

public TimestampOrBuilder getEffectiveTimeOrBuilder()

Time from which the config was effective. This is service-provided.

optional .google.protobuf.Timestamp effective_time = 2;

Returns
Type Description
TimestampOrBuilder

getParserForType()

public Parser<Bucket.Encryption.CustomerManagedEncryptionEnforcementConfig> getParserForType()
Returns
Type Description
Parser<CustomerManagedEncryptionEnforcementConfig>
Overrides

getRestrictionMode()

public String getRestrictionMode()

Restriction mode for customer-managed encryption for new objects within the bucket. Valid values are: "NotRestricted", "FullyRestricted". If NotRestricted or unset, creation of new objects with customer-managed encryption is allowed. If FullyRestricted, new objects can't be created using customer-managed encryption.

optional string restriction_mode = 3;

Returns
Type Description
String

The restrictionMode.

getRestrictionModeBytes()

public ByteString getRestrictionModeBytes()

Restriction mode for customer-managed encryption for new objects within the bucket. Valid values are: "NotRestricted", "FullyRestricted". If NotRestricted or unset, creation of new objects with customer-managed encryption is allowed. If FullyRestricted, new objects can't be created using customer-managed encryption.

optional string restriction_mode = 3;

Returns
Type Description
ByteString

The bytes for restrictionMode.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasEffectiveTime()

public boolean hasEffectiveTime()

Time from which the config was effective. This is service-provided.

optional .google.protobuf.Timestamp effective_time = 2;

Returns
Type Description
boolean

Whether the effectiveTime field is set.

hasRestrictionMode()

public boolean hasRestrictionMode()

Restriction mode for customer-managed encryption for new objects within the bucket. Valid values are: "NotRestricted", "FullyRestricted". If NotRestricted or unset, creation of new objects with customer-managed encryption is allowed. If FullyRestricted, new objects can't be created using customer-managed encryption.

optional string restriction_mode = 3;

Returns
Type Description
boolean

Whether the restrictionMode 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.Encryption.CustomerManagedEncryptionEnforcementConfig.Builder newBuilderForType()
Returns
Type Description
Bucket.Encryption.CustomerManagedEncryptionEnforcementConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Bucket.Encryption.CustomerManagedEncryptionEnforcementConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Bucket.Encryption.CustomerManagedEncryptionEnforcementConfig.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.Encryption.CustomerManagedEncryptionEnforcementConfig.Builder toBuilder()
Returns
Type Description
Bucket.Encryption.CustomerManagedEncryptionEnforcementConfig.Builder

writeTo(CodedOutputStream output)

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