Class Bucket.Encryption.CustomerSuppliedEncryptionEnforcementConfig (2.53.2)

public static final class Bucket.Encryption.CustomerSuppliedEncryptionEnforcementConfig extends GeneratedMessageV3 implements Bucket.Encryption.CustomerSuppliedEncryptionEnforcementConfigOrBuilder

Customer Supplied Encryption (CSEK) enforcement config of a bucket.

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

Inheritance

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

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.CustomerSuppliedEncryptionEnforcementConfig getDefaultInstance()
Returns
Type Description
Bucket.Encryption.CustomerSuppliedEncryptionEnforcementConfig

getDescriptor()

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

newBuilder()

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

newBuilder(Bucket.Encryption.CustomerSuppliedEncryptionEnforcementConfig prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

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

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

getRestricted()

public boolean getRestricted()

Whether Customer Supplied Encryption (CSEK) is restricted for new objects within the bucket. If true, new objects can't be created using CSEK encryption. If false or unset, creation of new objects with CSEK 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 Customer Supplied Encryption (CSEK) is restricted for new objects within the bucket. If true, new objects can't be created using CSEK encryption. If false or unset, creation of new objects with CSEK 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.CustomerSuppliedEncryptionEnforcementConfig.Builder newBuilderForType()
Returns
Type Description
Bucket.Encryption.CustomerSuppliedEncryptionEnforcementConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

writeTo(CodedOutputStream output)

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