Class SingleTenantHsmInstance (2.86.0)

public final class SingleTenantHsmInstance extends GeneratedMessage implements SingleTenantHsmInstanceOrBuilder

A SingleTenantHsmInstance represents a single-tenant HSM instance. It can be used for creating CryptoKeys with a ProtectionLevel of HSM_SINGLE_TENANT, as well as performing cryptographic operations using keys created within the SingleTenantHsmInstance.

Protobuf type google.cloud.kms.v1.SingleTenantHsmInstance

Static Fields

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

DELETE_TIME_FIELD_NUMBER

public static final int DELETE_TIME_FIELD_NUMBER
Field Value
Type Description
int

DISABLE_TIME_FIELD_NUMBER

public static final int DISABLE_TIME_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

QUORUM_AUTH_FIELD_NUMBER

public static final int QUORUM_AUTH_FIELD_NUMBER
Field Value
Type Description
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
Type Description
int

UNREFRESHED_DURATION_UNTIL_DISABLE_FIELD_NUMBER

public static final int UNREFRESHED_DURATION_UNTIL_DISABLE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static SingleTenantHsmInstance getDefaultInstance()
Returns
Type Description
SingleTenantHsmInstance

getDescriptor()

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

newBuilder()

public static SingleTenantHsmInstance.Builder newBuilder()
Returns
Type Description
SingleTenantHsmInstance.Builder

newBuilder(SingleTenantHsmInstance prototype)

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

parseDelimitedFrom(InputStream input)

public static SingleTenantHsmInstance parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SingleTenantHsmInstance
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static SingleTenantHsmInstance parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
SingleTenantHsmInstance
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static SingleTenantHsmInstance parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
SingleTenantHsmInstance
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static SingleTenantHsmInstance parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SingleTenantHsmInstance
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static SingleTenantHsmInstance parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
SingleTenantHsmInstance
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<SingleTenantHsmInstance> parser()
Returns
Type Description
Parser<SingleTenantHsmInstance>

Methods

equals(Object obj)

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

getCreateTime()

public Timestamp getCreateTime()

Output only. The time at which the SingleTenantHsmInstance was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time at which the SingleTenantHsmInstance was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public SingleTenantHsmInstance getDefaultInstanceForType()
Returns
Type Description
SingleTenantHsmInstance

getDeleteTime()

public Timestamp getDeleteTime()

Output only. The time at which the SingleTenantHsmInstance was deleted.

.google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The deleteTime.

getDeleteTimeOrBuilder()

public TimestampOrBuilder getDeleteTimeOrBuilder()

Output only. The time at which the SingleTenantHsmInstance was deleted.

.google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDisableTime()

public Timestamp getDisableTime()

Output only. The time at which the instance will be automatically disabled if not refreshed. This field is updated upon creation and after each successful refresh operation and enable. A [RefreshSingleTenantHsmInstance][] operation must be made via a SingleTenantHsmInstanceProposal before this time otherwise the SingleTenantHsmInstance will become disabled.

.google.protobuf.Timestamp disable_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The disableTime.

getDisableTimeOrBuilder()

public TimestampOrBuilder getDisableTimeOrBuilder()

Output only. The time at which the instance will be automatically disabled if not refreshed. This field is updated upon creation and after each successful refresh operation and enable. A [RefreshSingleTenantHsmInstance][] operation must be made via a SingleTenantHsmInstanceProposal before this time otherwise the SingleTenantHsmInstance will become disabled.

.google.protobuf.Timestamp disable_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getName()

public String getName()

Identifier. The resource name for this SingleTenantHsmInstance in the format projects/*/locations/*/singleTenantHsmInstances/*.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The resource name for this SingleTenantHsmInstance in the format projects/*/locations/*/singleTenantHsmInstances/*.

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

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

public Parser<SingleTenantHsmInstance> getParserForType()
Returns
Type Description
Parser<SingleTenantHsmInstance>
Overrides

getQuorumAuth()

public SingleTenantHsmInstance.QuorumAuth getQuorumAuth()

Required. The quorum auth configuration for the SingleTenantHsmInstance.

.google.cloud.kms.v1.SingleTenantHsmInstance.QuorumAuth quorum_auth = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SingleTenantHsmInstance.QuorumAuth

The quorumAuth.

getQuorumAuthOrBuilder()

public SingleTenantHsmInstance.QuorumAuthOrBuilder getQuorumAuthOrBuilder()

Required. The quorum auth configuration for the SingleTenantHsmInstance.

.google.cloud.kms.v1.SingleTenantHsmInstance.QuorumAuth quorum_auth = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SingleTenantHsmInstance.QuorumAuthOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getState()

public SingleTenantHsmInstance.State getState()

Output only. The state of the SingleTenantHsmInstance.

.google.cloud.kms.v1.SingleTenantHsmInstance.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
SingleTenantHsmInstance.State

The state.

getStateValue()

public int getStateValue()

Output only. The state of the SingleTenantHsmInstance.

.google.cloud.kms.v1.SingleTenantHsmInstance.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

getUnrefreshedDurationUntilDisable()

public Duration getUnrefreshedDurationUntilDisable()

Output only. The system-defined duration that an instance can remain unrefreshed until it is automatically disabled. This will have a value of 120 days.

.google.protobuf.Duration unrefreshed_duration_until_disable = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Duration

The unrefreshedDurationUntilDisable.

getUnrefreshedDurationUntilDisableOrBuilder()

public DurationOrBuilder getUnrefreshedDurationUntilDisableOrBuilder()

Output only. The system-defined duration that an instance can remain unrefreshed until it is automatically disabled. This will have a value of 120 days.

.google.protobuf.Duration unrefreshed_duration_until_disable = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DurationOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. The time at which the SingleTenantHsmInstance was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasDeleteTime()

public boolean hasDeleteTime()

Output only. The time at which the SingleTenantHsmInstance was deleted.

.google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the deleteTime field is set.

hasDisableTime()

public boolean hasDisableTime()

Output only. The time at which the instance will be automatically disabled if not refreshed. This field is updated upon creation and after each successful refresh operation and enable. A [RefreshSingleTenantHsmInstance][] operation must be made via a SingleTenantHsmInstanceProposal before this time otherwise the SingleTenantHsmInstance will become disabled.

.google.protobuf.Timestamp disable_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the disableTime field is set.

hasQuorumAuth()

public boolean hasQuorumAuth()

Required. The quorum auth configuration for the SingleTenantHsmInstance.

.google.cloud.kms.v1.SingleTenantHsmInstance.QuorumAuth quorum_auth = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the quorumAuth field is set.

hasUnrefreshedDurationUntilDisable()

public boolean hasUnrefreshedDurationUntilDisable()

Output only. The system-defined duration that an instance can remain unrefreshed until it is automatically disabled. This will have a value of 120 days.

.google.protobuf.Duration unrefreshed_duration_until_disable = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the unrefreshedDurationUntilDisable field is set.

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 SingleTenantHsmInstance.Builder newBuilderForType()
Returns
Type Description
SingleTenantHsmInstance.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

public SingleTenantHsmInstance.Builder toBuilder()
Returns
Type Description
SingleTenantHsmInstance.Builder

writeTo(CodedOutputStream output)

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