Class CustomerEncryption (2.27.1-SNAPSHOT)

public final class CustomerEncryption extends GeneratedMessageV3 implements CustomerEncryptionOrBuilder

Describes the Customer-Supplied Encryption Key mechanism used to store an Object's data at rest.

Protobuf type google.storage.v2.CustomerEncryption

Static Fields

ENCRYPTION_ALGORITHM_FIELD_NUMBER

public static final int ENCRYPTION_ALGORITHM_FIELD_NUMBER
Field Value
TypeDescription
int

KEY_SHA256_BYTES_FIELD_NUMBER

public static final int KEY_SHA256_BYTES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CustomerEncryption getDefaultInstance()
Returns
TypeDescription
CustomerEncryption

getDescriptor()

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

newBuilder()

public static CustomerEncryption.Builder newBuilder()
Returns
TypeDescription
CustomerEncryption.Builder

newBuilder(CustomerEncryption prototype)

public static CustomerEncryption.Builder newBuilder(CustomerEncryption prototype)
Parameter
NameDescription
prototypeCustomerEncryption
Returns
TypeDescription
CustomerEncryption.Builder

parseDelimitedFrom(InputStream input)

public static CustomerEncryption parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CustomerEncryption
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static CustomerEncryption parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
CustomerEncryption
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static CustomerEncryption parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
CustomerEncryption
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static CustomerEncryption parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CustomerEncryption
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static CustomerEncryption parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
CustomerEncryption
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<CustomerEncryption> parser()
Returns
TypeDescription
Parser<CustomerEncryption>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public CustomerEncryption getDefaultInstanceForType()
Returns
TypeDescription
CustomerEncryption

getEncryptionAlgorithm()

public String getEncryptionAlgorithm()

The encryption algorithm.

string encryption_algorithm = 1;

Returns
TypeDescription
String

The encryptionAlgorithm.

getEncryptionAlgorithmBytes()

public ByteString getEncryptionAlgorithmBytes()

The encryption algorithm.

string encryption_algorithm = 1;

Returns
TypeDescription
ByteString

The bytes for encryptionAlgorithm.

getKeySha256Bytes()

public ByteString getKeySha256Bytes()

SHA256 hash value of the encryption key. In raw bytes format (not base64-encoded).

bytes key_sha256_bytes = 3;

Returns
TypeDescription
ByteString

The keySha256Bytes.

getParserForType()

public Parser<CustomerEncryption> getParserForType()
Returns
TypeDescription
Parser<CustomerEncryption>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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 CustomerEncryption.Builder newBuilderForType()
Returns
TypeDescription
CustomerEncryption.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public CustomerEncryption.Builder toBuilder()
Returns
TypeDescription
CustomerEncryption.Builder

writeTo(CodedOutputStream output)

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