Class SecretVersion
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.secretmanager.v1beta2.SecretVersion
- All Implemented Interfaces:
SecretVersionOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class SecretVersion
extends com.google.protobuf.GeneratedMessage
implements SecretVersionOrBuilder
A secret version resource in the Secret Manager API.Protobuf type
google.cloud.secretmanager.v1beta2.SecretVersion- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA secret version resource in the Secret Manager API.static enumThe state of a [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion], indicating if it can be accessed.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.Output only.Output only.static SecretVersionstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.getEtag()Output only.com.google.protobuf.ByteStringOutput only.getName()Output only.com.google.protobuf.ByteStringOutput only.com.google.protobuf.Parser<SecretVersion>The replication status of the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion].The replication status of the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion].com.google.protobuf.TimestampOptional.com.google.protobuf.TimestampOrBuilderOptional.intgetState()Output only.intOutput only.booleanOutput only.booleanOutput only.booleanOutput only.inthashCode()booleanThe replication status of the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion].booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic SecretVersion.Builderstatic SecretVersion.BuildernewBuilder(SecretVersion prototype) protected SecretVersion.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static SecretVersionparseDelimitedFrom(InputStream input) static SecretVersionparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SecretVersionparseFrom(byte[] data) static SecretVersionparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SecretVersionparseFrom(com.google.protobuf.ByteString data) static SecretVersionparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SecretVersionparseFrom(com.google.protobuf.CodedInputStream input) static SecretVersionparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SecretVersionparseFrom(InputStream input) static SecretVersionparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SecretVersionparseFrom(ByteBuffer data) static SecretVersionparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<SecretVersion>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER- See Also:
-
DESTROY_TIME_FIELD_NUMBER
public static final int DESTROY_TIME_FIELD_NUMBER- See Also:
-
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER- See Also:
-
REPLICATION_STATUS_FIELD_NUMBER
public static final int REPLICATION_STATUS_FIELD_NUMBER- See Also:
-
ETAG_FIELD_NUMBER
public static final int ETAG_FIELD_NUMBER- See Also:
-
CLIENT_SPECIFIED_PAYLOAD_CHECKSUM_FIELD_NUMBER
public static final int CLIENT_SPECIFIED_PAYLOAD_CHECKSUM_FIELD_NUMBER- See Also:
-
SCHEDULED_DESTROY_TIME_FIELD_NUMBER
public static final int SCHEDULED_DESTROY_TIME_FIELD_NUMBER- See Also:
-
CUSTOMER_MANAGED_ENCRYPTION_FIELD_NUMBER
public static final int CUSTOMER_MANAGED_ENCRYPTION_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getName
Output only. The resource name of the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] in the format `projects/*/secrets/*/versions/*`. [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] IDs in a [Secret][google.cloud.secretmanager.v1beta2.Secret] start at 1 and are incremented for each subsequent version of the secret.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNamein interfaceSecretVersionOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Output only. The resource name of the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] in the format `projects/*/secrets/*/versions/*`. [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] IDs in a [Secret][google.cloud.secretmanager.v1beta2.Secret] start at 1 and are incremented for each subsequent version of the secret.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNameBytesin interfaceSecretVersionOrBuilder- Returns:
- The bytes for name.
-
hasCreateTime
public boolean hasCreateTime()Output only. The time at which the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCreateTimein interfaceSecretVersionOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()Output only. The time at which the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfaceSecretVersionOrBuilder- Returns:
- The createTime.
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. The time at which the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfaceSecretVersionOrBuilder
-
hasDestroyTime
public boolean hasDestroyTime()Output only. The time this [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] was destroyed. Only present if [state][google.cloud.secretmanager.v1beta2.SecretVersion.state] is [DESTROYED][google.cloud.secretmanager.v1beta2.SecretVersion.State.DESTROYED].
.google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasDestroyTimein interfaceSecretVersionOrBuilder- Returns:
- Whether the destroyTime field is set.
-
getDestroyTime
public com.google.protobuf.Timestamp getDestroyTime()Output only. The time this [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] was destroyed. Only present if [state][google.cloud.secretmanager.v1beta2.SecretVersion.state] is [DESTROYED][google.cloud.secretmanager.v1beta2.SecretVersion.State.DESTROYED].
.google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDestroyTimein interfaceSecretVersionOrBuilder- Returns:
- The destroyTime.
-
getDestroyTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getDestroyTimeOrBuilder()Output only. The time this [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] was destroyed. Only present if [state][google.cloud.secretmanager.v1beta2.SecretVersion.state] is [DESTROYED][google.cloud.secretmanager.v1beta2.SecretVersion.State.DESTROYED].
.google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDestroyTimeOrBuilderin interfaceSecretVersionOrBuilder
-
getStateValue
public int getStateValue()Output only. The current state of the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion].
.google.cloud.secretmanager.v1beta2.SecretVersion.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStateValuein interfaceSecretVersionOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
getState
Output only. The current state of the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion].
.google.cloud.secretmanager.v1beta2.SecretVersion.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatein interfaceSecretVersionOrBuilder- Returns:
- The state.
-
hasReplicationStatus
public boolean hasReplicationStatus()The replication status of the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion].
.google.cloud.secretmanager.v1beta2.ReplicationStatus replication_status = 5;- Specified by:
hasReplicationStatusin interfaceSecretVersionOrBuilder- Returns:
- Whether the replicationStatus field is set.
-
getReplicationStatus
The replication status of the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion].
.google.cloud.secretmanager.v1beta2.ReplicationStatus replication_status = 5;- Specified by:
getReplicationStatusin interfaceSecretVersionOrBuilder- Returns:
- The replicationStatus.
-
getReplicationStatusOrBuilder
The replication status of the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion].
.google.cloud.secretmanager.v1beta2.ReplicationStatus replication_status = 5;- Specified by:
getReplicationStatusOrBuilderin interfaceSecretVersionOrBuilder
-
getEtag
Output only. Etag of the currently stored [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion].
string etag = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getEtagin interfaceSecretVersionOrBuilder- Returns:
- The etag.
-
getEtagBytes
public com.google.protobuf.ByteString getEtagBytes()Output only. Etag of the currently stored [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion].
string etag = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getEtagBytesin interfaceSecretVersionOrBuilder- Returns:
- The bytes for etag.
-
getClientSpecifiedPayloadChecksum
public boolean getClientSpecifiedPayloadChecksum()Output only. True if payload checksum specified in [SecretPayload][google.cloud.secretmanager.v1beta2.SecretPayload] object has been received by [SecretManagerService][google.cloud.secretmanager.v1beta2.SecretManagerService] on [SecretManagerService.AddSecretVersion][google.cloud.secretmanager.v1beta2.SecretManagerService.AddSecretVersion].
bool client_specified_payload_checksum = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getClientSpecifiedPayloadChecksumin interfaceSecretVersionOrBuilder- Returns:
- The clientSpecifiedPayloadChecksum.
-
hasScheduledDestroyTime
public boolean hasScheduledDestroyTime()Optional. Output only. Scheduled destroy time for secret version. This is a part of the Delayed secret version destroy feature. For a Secret with a valid version destroy TTL, when a secert version is destroyed, version is moved to disabled state and it is scheduled for destruction Version is destroyed only after the scheduled_destroy_time.
.google.protobuf.Timestamp scheduled_destroy_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasScheduledDestroyTimein interfaceSecretVersionOrBuilder- Returns:
- Whether the scheduledDestroyTime field is set.
-
getScheduledDestroyTime
public com.google.protobuf.Timestamp getScheduledDestroyTime()Optional. Output only. Scheduled destroy time for secret version. This is a part of the Delayed secret version destroy feature. For a Secret with a valid version destroy TTL, when a secert version is destroyed, version is moved to disabled state and it is scheduled for destruction Version is destroyed only after the scheduled_destroy_time.
.google.protobuf.Timestamp scheduled_destroy_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getScheduledDestroyTimein interfaceSecretVersionOrBuilder- Returns:
- The scheduledDestroyTime.
-
getScheduledDestroyTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getScheduledDestroyTimeOrBuilder()Optional. Output only. Scheduled destroy time for secret version. This is a part of the Delayed secret version destroy feature. For a Secret with a valid version destroy TTL, when a secert version is destroyed, version is moved to disabled state and it is scheduled for destruction Version is destroyed only after the scheduled_destroy_time.
.google.protobuf.Timestamp scheduled_destroy_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getScheduledDestroyTimeOrBuilderin interfaceSecretVersionOrBuilder
-
hasCustomerManagedEncryption
public boolean hasCustomerManagedEncryption()Output only. The customer-managed encryption status of the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. Only populated if customer-managed encryption is used and [Secret][google.cloud.secretmanager.v1beta2.Secret] is a Regionalised Secret.
.google.cloud.secretmanager.v1beta2.CustomerManagedEncryptionStatus customer_managed_encryption = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCustomerManagedEncryptionin interfaceSecretVersionOrBuilder- Returns:
- Whether the customerManagedEncryption field is set.
-
getCustomerManagedEncryption
Output only. The customer-managed encryption status of the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. Only populated if customer-managed encryption is used and [Secret][google.cloud.secretmanager.v1beta2.Secret] is a Regionalised Secret.
.google.cloud.secretmanager.v1beta2.CustomerManagedEncryptionStatus customer_managed_encryption = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCustomerManagedEncryptionin interfaceSecretVersionOrBuilder- Returns:
- The customerManagedEncryption.
-
getCustomerManagedEncryptionOrBuilder
Output only. The customer-managed encryption status of the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. Only populated if customer-managed encryption is used and [Secret][google.cloud.secretmanager.v1beta2.Secret] is a Regionalised Secret.
.google.cloud.secretmanager.v1beta2.CustomerManagedEncryptionStatus customer_managed_encryption = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCustomerManagedEncryptionOrBuilderin interfaceSecretVersionOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static SecretVersion parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SecretVersion parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SecretVersion parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SecretVersion parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SecretVersion parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SecretVersion parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static SecretVersion parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static SecretVersion parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static SecretVersion parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static SecretVersion parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected SecretVersion.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-