Class SingleTenantHsmInstanceProposal.UpgradeKeyTrust (2.98.0)

public static final class SingleTenantHsmInstanceProposal.UpgradeKeyTrust extends GeneratedMessage implements SingleTenantHsmInstanceProposal.UpgradeKeyTrustOrBuilder

Promotes a key with the AES_WRAPPING purpose to a trusted wrapping key. The key must be in the ACTIVE state to perform this operation.

Protobuf type google.cloud.kms.v1.SingleTenantHsmInstanceProposal.UpgradeKeyTrust

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > SingleTenantHsmInstanceProposal.UpgradeKeyTrust

Static Fields

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

TWO_FACTOR_PUBLIC_KEY_PEM_FIELD_NUMBER

public static final int TWO_FACTOR_PUBLIC_KEY_PEM_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static SingleTenantHsmInstanceProposal.UpgradeKeyTrust getDefaultInstance()
Returns
Type Description
SingleTenantHsmInstanceProposal.UpgradeKeyTrust

getDescriptor()

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

newBuilder()

public static SingleTenantHsmInstanceProposal.UpgradeKeyTrust.Builder newBuilder()
Returns
Type Description
SingleTenantHsmInstanceProposal.UpgradeKeyTrust.Builder

newBuilder(SingleTenantHsmInstanceProposal.UpgradeKeyTrust prototype)

public static SingleTenantHsmInstanceProposal.UpgradeKeyTrust.Builder newBuilder(SingleTenantHsmInstanceProposal.UpgradeKeyTrust prototype)
Parameter
Name Description
prototype SingleTenantHsmInstanceProposal.UpgradeKeyTrust
Returns
Type Description
SingleTenantHsmInstanceProposal.UpgradeKeyTrust.Builder

parseDelimitedFrom(InputStream input)

public static SingleTenantHsmInstanceProposal.UpgradeKeyTrust parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SingleTenantHsmInstanceProposal.UpgradeKeyTrust
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static SingleTenantHsmInstanceProposal.UpgradeKeyTrust parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
SingleTenantHsmInstanceProposal.UpgradeKeyTrust
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static SingleTenantHsmInstanceProposal.UpgradeKeyTrust parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
SingleTenantHsmInstanceProposal.UpgradeKeyTrust
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static SingleTenantHsmInstanceProposal.UpgradeKeyTrust parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SingleTenantHsmInstanceProposal.UpgradeKeyTrust
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static SingleTenantHsmInstanceProposal.UpgradeKeyTrust parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
SingleTenantHsmInstanceProposal.UpgradeKeyTrust
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<SingleTenantHsmInstanceProposal.UpgradeKeyTrust> parser()
Returns
Type Description
Parser<UpgradeKeyTrust>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public SingleTenantHsmInstanceProposal.UpgradeKeyTrust getDefaultInstanceForType()
Returns
Type Description
SingleTenantHsmInstanceProposal.UpgradeKeyTrust

getName()

public String getName()

Required. The name of the CryptoKeyVersion to promote.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The name of the CryptoKeyVersion to promote.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

public Parser<SingleTenantHsmInstanceProposal.UpgradeKeyTrust> getParserForType()
Returns
Type Description
Parser<UpgradeKeyTrust>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTwoFactorPublicKeyPem()

public String getTwoFactorPublicKeyPem()

Required. The public key associated with the 2FA key that will sign the login nonce for this operation.

string two_factor_public_key_pem = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The twoFactorPublicKeyPem.

getTwoFactorPublicKeyPemBytes()

public ByteString getTwoFactorPublicKeyPemBytes()

Required. The public key associated with the 2FA key that will sign the login nonce for this operation.

string two_factor_public_key_pem = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for twoFactorPublicKeyPem.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public SingleTenantHsmInstanceProposal.UpgradeKeyTrust.Builder newBuilderForType()
Returns
Type Description
SingleTenantHsmInstanceProposal.UpgradeKeyTrust.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected SingleTenantHsmInstanceProposal.UpgradeKeyTrust.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
SingleTenantHsmInstanceProposal.UpgradeKeyTrust.Builder
Overrides

toBuilder()

public SingleTenantHsmInstanceProposal.UpgradeKeyTrust.Builder toBuilder()
Returns
Type Description
SingleTenantHsmInstanceProposal.UpgradeKeyTrust.Builder

writeTo(CodedOutputStream output)

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