Class Bucket.Encryption.GoogleManagedEncryptionEnforcementConfig (2.53.2)

public static final class Bucket.Encryption.GoogleManagedEncryptionEnforcementConfig extends GeneratedMessageV3 implements Bucket.Encryption.GoogleManagedEncryptionEnforcementConfigOrBuilder

Google Managed Encryption (GMEK) enforcement config of a bucket.

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

Inheritance

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

Static Fields

EFFECTIVE_TIME_FIELD_NUMBER

public static final int EFFECTIVE_TIME_FIELD_NUMBER
Field Value
Type Description
int

RESTRICTED_FIELD_NUMBER

public static final int RESTRICTED_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

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

getDescriptor()

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

newBuilder()

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

newBuilder(Bucket.Encryption.GoogleManagedEncryptionEnforcementConfig prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

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

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.GoogleManagedEncryptionEnforcementConfig> getParserForType()
Returns
Type Description
Parser<GoogleManagedEncryptionEnforcementConfig>
Overrides

getRestricted()

public boolean getRestricted()

Whether Google Managed Encryption (GMEK) is restricted for new objects within the bucket. If true, new objects can't be created using GMEK encryption. If false or unset, creation of new objects with GMEK encryption is allowed.

optional bool restricted = 1;

Returns
Type Description
boolean

The restricted.

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.

hasRestricted()

public boolean hasRestricted()

Whether Google Managed Encryption (GMEK) is restricted for new objects within the bucket. If true, new objects can't be created using GMEK encryption. If false or unset, creation of new objects with GMEK encryption is allowed.

optional bool restricted = 1;

Returns
Type Description
boolean

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

writeTo(CodedOutputStream output)

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