All Downloads are FREE. Search and download functionalities are using the official Maven repository.

yandex.cloud.api.lockbox.v1.SecretOuterClass Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: yandex/cloud/lockbox/v1/secret.proto

package yandex.cloud.api.lockbox.v1;

public final class SecretOuterClass {
  private SecretOuterClass() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface SecretOrBuilder extends
      // @@protoc_insertion_point(interface_extends:yandex.cloud.lockbox.v1.Secret)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * ID of the secret.
     * 
* * string id = 1; * @return The id. */ java.lang.String getId(); /** *
     * ID of the secret.
     * 
* * string id = 1; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** *
     * ID of the folder that the secret belongs to.
     * 
* * string folder_id = 2; * @return The folderId. */ java.lang.String getFolderId(); /** *
     * ID of the folder that the secret belongs to.
     * 
* * string folder_id = 2; * @return The bytes for folderId. */ com.google.protobuf.ByteString getFolderIdBytes(); /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 3; * @return Whether the createdAt field is set. */ boolean hasCreatedAt(); /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 3; * @return The createdAt. */ com.google.protobuf.Timestamp getCreatedAt(); /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 3; */ com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); /** *
     * Name of the secret.
     * 
* * string name = 4; * @return The name. */ java.lang.String getName(); /** *
     * Name of the secret.
     * 
* * string name = 4; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * Description of the secret.
     * 
* * string description = 5; * @return The description. */ java.lang.String getDescription(); /** *
     * Description of the secret.
     * 
* * string description = 5; * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); /** *
     * Custom labels for the secret as `key:value` pairs. Maximum 64 per key.
     * 
* * map<string, string> labels = 6; */ int getLabelsCount(); /** *
     * Custom labels for the secret as `key:value` pairs. Maximum 64 per key.
     * 
* * map<string, string> labels = 6; */ boolean containsLabels( java.lang.String key); /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated java.util.Map getLabels(); /** *
     * Custom labels for the secret as `key:value` pairs. Maximum 64 per key.
     * 
* * map<string, string> labels = 6; */ java.util.Map getLabelsMap(); /** *
     * Custom labels for the secret as `key:value` pairs. Maximum 64 per key.
     * 
* * map<string, string> labels = 6; */ java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue); /** *
     * Custom labels for the secret as `key:value` pairs. Maximum 64 per key.
     * 
* * map<string, string> labels = 6; */ java.lang.String getLabelsOrThrow( java.lang.String key); /** *
     * Optional ID of the KMS key will be used to encrypt and decrypt the secret.
     * 
* * string kms_key_id = 7; * @return The kmsKeyId. */ java.lang.String getKmsKeyId(); /** *
     * Optional ID of the KMS key will be used to encrypt and decrypt the secret.
     * 
* * string kms_key_id = 7; * @return The bytes for kmsKeyId. */ com.google.protobuf.ByteString getKmsKeyIdBytes(); /** *
     * Status of the secret.
     * 
* * .yandex.cloud.lockbox.v1.Secret.Status status = 8; * @return The enum numeric value on the wire for status. */ int getStatusValue(); /** *
     * Status of the secret.
     * 
* * .yandex.cloud.lockbox.v1.Secret.Status status = 8; * @return The status. */ yandex.cloud.api.lockbox.v1.SecretOuterClass.Secret.Status getStatus(); /** *
     * Current (i.e. the `latest`) version of the secret.
     * 
* * .yandex.cloud.lockbox.v1.Version current_version = 9; * @return Whether the currentVersion field is set. */ boolean hasCurrentVersion(); /** *
     * Current (i.e. the `latest`) version of the secret.
     * 
* * .yandex.cloud.lockbox.v1.Version current_version = 9; * @return The currentVersion. */ yandex.cloud.api.lockbox.v1.SecretOuterClass.Version getCurrentVersion(); /** *
     * Current (i.e. the `latest`) version of the secret.
     * 
* * .yandex.cloud.lockbox.v1.Version current_version = 9; */ yandex.cloud.api.lockbox.v1.SecretOuterClass.VersionOrBuilder getCurrentVersionOrBuilder(); /** *
     * Flag that inhibits deletion of the secret.
     * 
* * bool deletion_protection = 10; * @return The deletionProtection. */ boolean getDeletionProtection(); } /** *
   * A secret that may contain several versions of the payload.
   * 
* * Protobuf type {@code yandex.cloud.lockbox.v1.Secret} */ public static final class Secret extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.lockbox.v1.Secret) SecretOrBuilder { private static final long serialVersionUID = 0L; // Use Secret.newBuilder() to construct. private Secret(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Secret() { id_ = ""; folderId_ = ""; name_ = ""; description_ = ""; kmsKeyId_ = ""; status_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Secret(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Secret( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); id_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); folderId_ = s; break; } case 26: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (createdAt_ != null) { subBuilder = createdAt_.toBuilder(); } createdAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(createdAt_); createdAt_ = subBuilder.buildPartial(); } break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); description_ = s; break; } case 50: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { labels_ = com.google.protobuf.MapField.newMapField( LabelsDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry labels__ = input.readMessage( LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); labels_.getMutableMap().put( labels__.getKey(), labels__.getValue()); break; } case 58: { java.lang.String s = input.readStringRequireUtf8(); kmsKeyId_ = s; break; } case 64: { int rawValue = input.readEnum(); status_ = rawValue; break; } case 74: { yandex.cloud.api.lockbox.v1.SecretOuterClass.Version.Builder subBuilder = null; if (currentVersion_ != null) { subBuilder = currentVersion_.toBuilder(); } currentVersion_ = input.readMessage(yandex.cloud.api.lockbox.v1.SecretOuterClass.Version.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(currentVersion_); currentVersion_ = subBuilder.buildPartial(); } break; } case 80: { deletionProtection_ = input.readBool(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.lockbox.v1.SecretOuterClass.internal_static_yandex_cloud_lockbox_v1_Secret_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 6: return internalGetLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.lockbox.v1.SecretOuterClass.internal_static_yandex_cloud_lockbox_v1_Secret_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.lockbox.v1.SecretOuterClass.Secret.class, yandex.cloud.api.lockbox.v1.SecretOuterClass.Secret.Builder.class); } /** * Protobuf enum {@code yandex.cloud.lockbox.v1.Secret.Status} */ public enum Status implements com.google.protobuf.ProtocolMessageEnum { /** * STATUS_UNSPECIFIED = 0; */ STATUS_UNSPECIFIED(0), /** *
       * The secret is being created.
       * 
* * CREATING = 1; */ CREATING(1), /** *
       * The secret is active and the secret payload can be accessed.
       * Can be set to INACTIVE using the [SecretService.Deactivate] method.
       * 
* * ACTIVE = 2; */ ACTIVE(2), /** *
       * The secret is inactive and unusable.
       * Can be set to ACTIVE using the [SecretService.Deactivate] method.
       * 
* * INACTIVE = 3; */ INACTIVE(3), UNRECOGNIZED(-1), ; /** * STATUS_UNSPECIFIED = 0; */ public static final int STATUS_UNSPECIFIED_VALUE = 0; /** *
       * The secret is being created.
       * 
* * CREATING = 1; */ public static final int CREATING_VALUE = 1; /** *
       * The secret is active and the secret payload can be accessed.
       * Can be set to INACTIVE using the [SecretService.Deactivate] method.
       * 
* * ACTIVE = 2; */ public static final int ACTIVE_VALUE = 2; /** *
       * The secret is inactive and unusable.
       * Can be set to ACTIVE using the [SecretService.Deactivate] method.
       * 
* * INACTIVE = 3; */ public static final int INACTIVE_VALUE = 3; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Status valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static Status forNumber(int value) { switch (value) { case 0: return STATUS_UNSPECIFIED; case 1: return CREATING; case 2: return ACTIVE; case 3: return INACTIVE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Status> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Status findValueByNumber(int number) { return Status.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return yandex.cloud.api.lockbox.v1.SecretOuterClass.Secret.getDescriptor().getEnumTypes().get(0); } private static final Status[] VALUES = values(); public static Status valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Status(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.lockbox.v1.Secret.Status) } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** *
     * ID of the secret.
     * 
* * string id = 1; * @return The id. */ @java.lang.Override public java.lang.String getId() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } } /** *
     * ID of the secret.
     * 
* * string id = 1; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FOLDER_ID_FIELD_NUMBER = 2; private volatile java.lang.Object folderId_; /** *
     * ID of the folder that the secret belongs to.
     * 
* * string folder_id = 2; * @return The folderId. */ @java.lang.Override public java.lang.String getFolderId() { java.lang.Object ref = folderId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); folderId_ = s; return s; } } /** *
     * ID of the folder that the secret belongs to.
     * 
* * string folder_id = 2; * @return The bytes for folderId. */ @java.lang.Override public com.google.protobuf.ByteString getFolderIdBytes() { java.lang.Object ref = folderId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); folderId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CREATED_AT_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createdAt_; /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 3; * @return Whether the createdAt field is set. */ @java.lang.Override public boolean hasCreatedAt() { return createdAt_ != null; } /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 3; * @return The createdAt. */ @java.lang.Override public com.google.protobuf.Timestamp getCreatedAt() { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 3; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { return getCreatedAt(); } public static final int NAME_FIELD_NUMBER = 4; private volatile java.lang.Object name_; /** *
     * Name of the secret.
     * 
* * string name = 4; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** *
     * Name of the secret.
     * 
* * string name = 4; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DESCRIPTION_FIELD_NUMBER = 5; private volatile java.lang.Object description_; /** *
     * Description of the secret.
     * 
* * string description = 5; * @return The description. */ @java.lang.Override public java.lang.String getDescription() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** *
     * Description of the secret.
     * 
* * string description = 5; * @return The bytes for description. */ @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LABELS_FIELD_NUMBER = 6; private static final class LabelsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( yandex.cloud.api.lockbox.v1.SecretOuterClass.internal_static_yandex_cloud_lockbox_v1_Secret_LabelsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField< java.lang.String, java.lang.String> labels_; private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { return com.google.protobuf.MapField.emptyMapField( LabelsDefaultEntryHolder.defaultEntry); } return labels_; } public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** *
     * Custom labels for the secret as `key:value` pairs. Maximum 64 per key.
     * 
* * map<string, string> labels = 6; */ @java.lang.Override public boolean containsLabels( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** *
     * Custom labels for the secret as `key:value` pairs. Maximum 64 per key.
     * 
* * map<string, string> labels = 6; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** *
     * Custom labels for the secret as `key:value` pairs. Maximum 64 per key.
     * 
* * map<string, string> labels = 6; */ @java.lang.Override public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * Custom labels for the secret as `key:value` pairs. Maximum 64 per key.
     * 
* * map<string, string> labels = 6; */ @java.lang.Override public java.lang.String getLabelsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int KMS_KEY_ID_FIELD_NUMBER = 7; private volatile java.lang.Object kmsKeyId_; /** *
     * Optional ID of the KMS key will be used to encrypt and decrypt the secret.
     * 
* * string kms_key_id = 7; * @return The kmsKeyId. */ @java.lang.Override public java.lang.String getKmsKeyId() { java.lang.Object ref = kmsKeyId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyId_ = s; return s; } } /** *
     * Optional ID of the KMS key will be used to encrypt and decrypt the secret.
     * 
* * string kms_key_id = 7; * @return The bytes for kmsKeyId. */ @java.lang.Override public com.google.protobuf.ByteString getKmsKeyIdBytes() { java.lang.Object ref = kmsKeyId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); kmsKeyId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int STATUS_FIELD_NUMBER = 8; private int status_; /** *
     * Status of the secret.
     * 
* * .yandex.cloud.lockbox.v1.Secret.Status status = 8; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** *
     * Status of the secret.
     * 
* * .yandex.cloud.lockbox.v1.Secret.Status status = 8; * @return The status. */ @java.lang.Override public yandex.cloud.api.lockbox.v1.SecretOuterClass.Secret.Status getStatus() { @SuppressWarnings("deprecation") yandex.cloud.api.lockbox.v1.SecretOuterClass.Secret.Status result = yandex.cloud.api.lockbox.v1.SecretOuterClass.Secret.Status.valueOf(status_); return result == null ? yandex.cloud.api.lockbox.v1.SecretOuterClass.Secret.Status.UNRECOGNIZED : result; } public static final int CURRENT_VERSION_FIELD_NUMBER = 9; private yandex.cloud.api.lockbox.v1.SecretOuterClass.Version currentVersion_; /** *
     * Current (i.e. the `latest`) version of the secret.
     * 
* * .yandex.cloud.lockbox.v1.Version current_version = 9; * @return Whether the currentVersion field is set. */ @java.lang.Override public boolean hasCurrentVersion() { return currentVersion_ != null; } /** *
     * Current (i.e. the `latest`) version of the secret.
     * 
* * .yandex.cloud.lockbox.v1.Version current_version = 9; * @return The currentVersion. */ @java.lang.Override public yandex.cloud.api.lockbox.v1.SecretOuterClass.Version getCurrentVersion() { return currentVersion_ == null ? yandex.cloud.api.lockbox.v1.SecretOuterClass.Version.getDefaultInstance() : currentVersion_; } /** *
     * Current (i.e. the `latest`) version of the secret.
     * 
* * .yandex.cloud.lockbox.v1.Version current_version = 9; */ @java.lang.Override public yandex.cloud.api.lockbox.v1.SecretOuterClass.VersionOrBuilder getCurrentVersionOrBuilder() { return getCurrentVersion(); } public static final int DELETION_PROTECTION_FIELD_NUMBER = 10; private boolean deletionProtection_; /** *
     * Flag that inhibits deletion of the secret.
     * 
* * bool deletion_protection = 10; * @return The deletionProtection. */ @java.lang.Override public boolean getDeletionProtection() { return deletionProtection_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folderId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, folderId_); } if (createdAt_ != null) { output.writeMessage(3, getCreatedAt()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, kmsKeyId_); } if (status_ != yandex.cloud.api.lockbox.v1.SecretOuterClass.Secret.Status.STATUS_UNSPECIFIED.getNumber()) { output.writeEnum(8, status_); } if (currentVersion_ != null) { output.writeMessage(9, getCurrentVersion()); } if (deletionProtection_ != false) { output.writeBool(10, deletionProtection_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folderId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, folderId_); } if (createdAt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getCreatedAt()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); } for (java.util.Map.Entry entry : internalGetLabels().getMap().entrySet()) { com.google.protobuf.MapEntry labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, kmsKeyId_); } if (status_ != yandex.cloud.api.lockbox.v1.SecretOuterClass.Secret.Status.STATUS_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(8, status_); } if (currentVersion_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getCurrentVersion()); } if (deletionProtection_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(10, deletionProtection_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof yandex.cloud.api.lockbox.v1.SecretOuterClass.Secret)) { return super.equals(obj); } yandex.cloud.api.lockbox.v1.SecretOuterClass.Secret other = (yandex.cloud.api.lockbox.v1.SecretOuterClass.Secret) obj; if (!getId() .equals(other.getId())) return false; if (!getFolderId() .equals(other.getFolderId())) return false; if (hasCreatedAt() != other.hasCreatedAt()) return false; if (hasCreatedAt()) { if (!getCreatedAt() .equals(other.getCreatedAt())) return false; } if (!getName() .equals(other.getName())) return false; if (!getDescription() .equals(other.getDescription())) return false; if (!internalGetLabels().equals( other.internalGetLabels())) return false; if (!getKmsKeyId() .equals(other.getKmsKeyId())) return false; if (status_ != other.status_) return false; if (hasCurrentVersion() != other.hasCurrentVersion()) return false; if (hasCurrentVersion()) { if (!getCurrentVersion() .equals(other.getCurrentVersion())) return false; } if (getDeletionProtection() != other.getDeletionProtection()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + FOLDER_ID_FIELD_NUMBER; hash = (53 * hash) + getFolderId().hashCode(); if (hasCreatedAt()) { hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; hash = (53 * hash) + getCreatedAt().hashCode(); } hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); if (!internalGetLabels().getMap().isEmpty()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); } hash = (37 * hash) + KMS_KEY_ID_FIELD_NUMBER; hash = (53 * hash) + getKmsKeyId().hashCode(); hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + status_; if (hasCurrentVersion()) { hash = (37 * hash) + CURRENT_VERSION_FIELD_NUMBER; hash = (53 * hash) + getCurrentVersion().hashCode(); } hash = (37 * hash) + DELETION_PROTECTION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getDeletionProtection()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.lockbox.v1.SecretOuterClass.Secret parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.lockbox.v1.SecretOuterClass.Secret parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.lockbox.v1.SecretOuterClass.Secret parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.lockbox.v1.SecretOuterClass.Secret parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.lockbox.v1.SecretOuterClass.Secret parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.lockbox.v1.SecretOuterClass.Secret parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.lockbox.v1.SecretOuterClass.Secret parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.lockbox.v1.SecretOuterClass.Secret parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static yandex.cloud.api.lockbox.v1.SecretOuterClass.Secret parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.lockbox.v1.SecretOuterClass.Secret parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static yandex.cloud.api.lockbox.v1.SecretOuterClass.Secret parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.lockbox.v1.SecretOuterClass.Secret parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(yandex.cloud.api.lockbox.v1.SecretOuterClass.Secret prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * A secret that may contain several versions of the payload.
     * 
* * Protobuf type {@code yandex.cloud.lockbox.v1.Secret} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.lockbox.v1.Secret) yandex.cloud.api.lockbox.v1.SecretOuterClass.SecretOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.lockbox.v1.SecretOuterClass.internal_static_yandex_cloud_lockbox_v1_Secret_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 6: return internalGetLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 6: return internalGetMutableLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.lockbox.v1.SecretOuterClass.internal_static_yandex_cloud_lockbox_v1_Secret_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.lockbox.v1.SecretOuterClass.Secret.class, yandex.cloud.api.lockbox.v1.SecretOuterClass.Secret.Builder.class); } // Construct using yandex.cloud.api.lockbox.v1.SecretOuterClass.Secret.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); id_ = ""; folderId_ = ""; if (createdAtBuilder_ == null) { createdAt_ = null; } else { createdAt_ = null; createdAtBuilder_ = null; } name_ = ""; description_ = ""; internalGetMutableLabels().clear(); kmsKeyId_ = ""; status_ = 0; if (currentVersionBuilder_ == null) { currentVersion_ = null; } else { currentVersion_ = null; currentVersionBuilder_ = null; } deletionProtection_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.lockbox.v1.SecretOuterClass.internal_static_yandex_cloud_lockbox_v1_Secret_descriptor; } @java.lang.Override public yandex.cloud.api.lockbox.v1.SecretOuterClass.Secret getDefaultInstanceForType() { return yandex.cloud.api.lockbox.v1.SecretOuterClass.Secret.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.lockbox.v1.SecretOuterClass.Secret build() { yandex.cloud.api.lockbox.v1.SecretOuterClass.Secret result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.lockbox.v1.SecretOuterClass.Secret buildPartial() { yandex.cloud.api.lockbox.v1.SecretOuterClass.Secret result = new yandex.cloud.api.lockbox.v1.SecretOuterClass.Secret(this); int from_bitField0_ = bitField0_; result.id_ = id_; result.folderId_ = folderId_; if (createdAtBuilder_ == null) { result.createdAt_ = createdAt_; } else { result.createdAt_ = createdAtBuilder_.build(); } result.name_ = name_; result.description_ = description_; result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); result.kmsKeyId_ = kmsKeyId_; result.status_ = status_; if (currentVersionBuilder_ == null) { result.currentVersion_ = currentVersion_; } else { result.currentVersion_ = currentVersionBuilder_.build(); } result.deletionProtection_ = deletionProtection_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof yandex.cloud.api.lockbox.v1.SecretOuterClass.Secret) { return mergeFrom((yandex.cloud.api.lockbox.v1.SecretOuterClass.Secret)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.lockbox.v1.SecretOuterClass.Secret other) { if (other == yandex.cloud.api.lockbox.v1.SecretOuterClass.Secret.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (!other.getFolderId().isEmpty()) { folderId_ = other.folderId_; onChanged(); } if (other.hasCreatedAt()) { mergeCreatedAt(other.getCreatedAt()); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } internalGetMutableLabels().mergeFrom( other.internalGetLabels()); if (!other.getKmsKeyId().isEmpty()) { kmsKeyId_ = other.kmsKeyId_; onChanged(); } if (other.status_ != 0) { setStatusValue(other.getStatusValue()); } if (other.hasCurrentVersion()) { mergeCurrentVersion(other.getCurrentVersion()); } if (other.getDeletionProtection() != false) { setDeletionProtection(other.getDeletionProtection()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.lockbox.v1.SecretOuterClass.Secret parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.lockbox.v1.SecretOuterClass.Secret) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object id_ = ""; /** *
       * ID of the secret.
       * 
* * string id = 1; * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the secret.
       * 
* * string id = 1; * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the secret.
       * 
* * string id = 1; * @param value The id to set. * @return This builder for chaining. */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); return this; } /** *
       * ID of the secret.
       * 
* * string id = 1; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
       * ID of the secret.
       * 
* * string id = 1; * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; onChanged(); return this; } private java.lang.Object folderId_ = ""; /** *
       * ID of the folder that the secret belongs to.
       * 
* * string folder_id = 2; * @return The folderId. */ public java.lang.String getFolderId() { java.lang.Object ref = folderId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); folderId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the folder that the secret belongs to.
       * 
* * string folder_id = 2; * @return The bytes for folderId. */ public com.google.protobuf.ByteString getFolderIdBytes() { java.lang.Object ref = folderId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); folderId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the folder that the secret belongs to.
       * 
* * string folder_id = 2; * @param value The folderId to set. * @return This builder for chaining. */ public Builder setFolderId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } folderId_ = value; onChanged(); return this; } /** *
       * ID of the folder that the secret belongs to.
       * 
* * string folder_id = 2; * @return This builder for chaining. */ public Builder clearFolderId() { folderId_ = getDefaultInstance().getFolderId(); onChanged(); return this; } /** *
       * ID of the folder that the secret belongs to.
       * 
* * string folder_id = 2; * @param value The bytes for folderId to set. * @return This builder for chaining. */ public Builder setFolderIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); folderId_ = value; onChanged(); return this; } private com.google.protobuf.Timestamp createdAt_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_; /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 3; * @return Whether the createdAt field is set. */ public boolean hasCreatedAt() { return createdAtBuilder_ != null || createdAt_ != null; } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 3; * @return The createdAt. */ public com.google.protobuf.Timestamp getCreatedAt() { if (createdAtBuilder_ == null) { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } else { return createdAtBuilder_.getMessage(); } } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public Builder setCreatedAt(com.google.protobuf.Timestamp value) { if (createdAtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } createdAt_ = value; onChanged(); } else { createdAtBuilder_.setMessage(value); } return this; } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public Builder setCreatedAt( com.google.protobuf.Timestamp.Builder builderForValue) { if (createdAtBuilder_ == null) { createdAt_ = builderForValue.build(); onChanged(); } else { createdAtBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) { if (createdAtBuilder_ == null) { if (createdAt_ != null) { createdAt_ = com.google.protobuf.Timestamp.newBuilder(createdAt_).mergeFrom(value).buildPartial(); } else { createdAt_ = value; } onChanged(); } else { createdAtBuilder_.mergeFrom(value); } return this; } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public Builder clearCreatedAt() { if (createdAtBuilder_ == null) { createdAt_ = null; onChanged(); } else { createdAt_ = null; createdAtBuilder_ = null; } return this; } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { onChanged(); return getCreatedAtFieldBuilder().getBuilder(); } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { if (createdAtBuilder_ != null) { return createdAtBuilder_.getMessageOrBuilder(); } else { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreatedAtFieldBuilder() { if (createdAtBuilder_ == null) { createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getCreatedAt(), getParentForChildren(), isClean()); createdAt_ = null; } return createdAtBuilder_; } private java.lang.Object name_ = ""; /** *
       * Name of the secret.
       * 
* * string name = 4; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Name of the secret.
       * 
* * string name = 4; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Name of the secret.
       * 
* * string name = 4; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       * Name of the secret.
       * 
* * string name = 4; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * Name of the secret.
       * 
* * string name = 4; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private java.lang.Object description_ = ""; /** *
       * Description of the secret.
       * 
* * string description = 5; * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Description of the secret.
       * 
* * string description = 5; * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Description of the secret.
       * 
* * string description = 5; * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; onChanged(); return this; } /** *
       * Description of the secret.
       * 
* * string description = 5; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** *
       * Description of the secret.
       * 
* * string description = 5; * @param value The bytes for description to set. * @return This builder for chaining. */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> labels_; private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { return com.google.protobuf.MapField.emptyMapField( LabelsDefaultEntryHolder.defaultEntry); } return labels_; } private com.google.protobuf.MapField internalGetMutableLabels() { onChanged();; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField( LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } return labels_; } public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** *
       * Custom labels for the secret as `key:value` pairs. Maximum 64 per key.
       * 
* * map<string, string> labels = 6; */ @java.lang.Override public boolean containsLabels( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** *
       * Custom labels for the secret as `key:value` pairs. Maximum 64 per key.
       * 
* * map<string, string> labels = 6; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** *
       * Custom labels for the secret as `key:value` pairs. Maximum 64 per key.
       * 
* * map<string, string> labels = 6; */ @java.lang.Override public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * Custom labels for the secret as `key:value` pairs. Maximum 64 per key.
       * 
* * map<string, string> labels = 6; */ @java.lang.Override public java.lang.String getLabelsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearLabels() { internalGetMutableLabels().getMutableMap() .clear(); return this; } /** *
       * Custom labels for the secret as `key:value` pairs. Maximum 64 per key.
       * 
* * map<string, string> labels = 6; */ public Builder removeLabels( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** *
       * Custom labels for the secret as `key:value` pairs. Maximum 64 per key.
       * 
* * map<string, string> labels = 6; */ public Builder putLabels( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableLabels().getMutableMap() .put(key, value); return this; } /** *
       * Custom labels for the secret as `key:value` pairs. Maximum 64 per key.
       * 
* * map<string, string> labels = 6; */ public Builder putAllLabels( java.util.Map values) { internalGetMutableLabels().getMutableMap() .putAll(values); return this; } private java.lang.Object kmsKeyId_ = ""; /** *
       * Optional ID of the KMS key will be used to encrypt and decrypt the secret.
       * 
* * string kms_key_id = 7; * @return The kmsKeyId. */ public java.lang.String getKmsKeyId() { java.lang.Object ref = kmsKeyId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Optional ID of the KMS key will be used to encrypt and decrypt the secret.
       * 
* * string kms_key_id = 7; * @return The bytes for kmsKeyId. */ public com.google.protobuf.ByteString getKmsKeyIdBytes() { java.lang.Object ref = kmsKeyId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); kmsKeyId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Optional ID of the KMS key will be used to encrypt and decrypt the secret.
       * 
* * string kms_key_id = 7; * @param value The kmsKeyId to set. * @return This builder for chaining. */ public Builder setKmsKeyId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } kmsKeyId_ = value; onChanged(); return this; } /** *
       * Optional ID of the KMS key will be used to encrypt and decrypt the secret.
       * 
* * string kms_key_id = 7; * @return This builder for chaining. */ public Builder clearKmsKeyId() { kmsKeyId_ = getDefaultInstance().getKmsKeyId(); onChanged(); return this; } /** *
       * Optional ID of the KMS key will be used to encrypt and decrypt the secret.
       * 
* * string kms_key_id = 7; * @param value The bytes for kmsKeyId to set. * @return This builder for chaining. */ public Builder setKmsKeyIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); kmsKeyId_ = value; onChanged(); return this; } private int status_ = 0; /** *
       * Status of the secret.
       * 
* * .yandex.cloud.lockbox.v1.Secret.Status status = 8; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** *
       * Status of the secret.
       * 
* * .yandex.cloud.lockbox.v1.Secret.Status status = 8; * @param value The enum numeric value on the wire for status to set. * @return This builder for chaining. */ public Builder setStatusValue(int value) { status_ = value; onChanged(); return this; } /** *
       * Status of the secret.
       * 
* * .yandex.cloud.lockbox.v1.Secret.Status status = 8; * @return The status. */ @java.lang.Override public yandex.cloud.api.lockbox.v1.SecretOuterClass.Secret.Status getStatus() { @SuppressWarnings("deprecation") yandex.cloud.api.lockbox.v1.SecretOuterClass.Secret.Status result = yandex.cloud.api.lockbox.v1.SecretOuterClass.Secret.Status.valueOf(status_); return result == null ? yandex.cloud.api.lockbox.v1.SecretOuterClass.Secret.Status.UNRECOGNIZED : result; } /** *
       * Status of the secret.
       * 
* * .yandex.cloud.lockbox.v1.Secret.Status status = 8; * @param value The status to set. * @return This builder for chaining. */ public Builder setStatus(yandex.cloud.api.lockbox.v1.SecretOuterClass.Secret.Status value) { if (value == null) { throw new NullPointerException(); } status_ = value.getNumber(); onChanged(); return this; } /** *
       * Status of the secret.
       * 
* * .yandex.cloud.lockbox.v1.Secret.Status status = 8; * @return This builder for chaining. */ public Builder clearStatus() { status_ = 0; onChanged(); return this; } private yandex.cloud.api.lockbox.v1.SecretOuterClass.Version currentVersion_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.lockbox.v1.SecretOuterClass.Version, yandex.cloud.api.lockbox.v1.SecretOuterClass.Version.Builder, yandex.cloud.api.lockbox.v1.SecretOuterClass.VersionOrBuilder> currentVersionBuilder_; /** *
       * Current (i.e. the `latest`) version of the secret.
       * 
* * .yandex.cloud.lockbox.v1.Version current_version = 9; * @return Whether the currentVersion field is set. */ public boolean hasCurrentVersion() { return currentVersionBuilder_ != null || currentVersion_ != null; } /** *
       * Current (i.e. the `latest`) version of the secret.
       * 
* * .yandex.cloud.lockbox.v1.Version current_version = 9; * @return The currentVersion. */ public yandex.cloud.api.lockbox.v1.SecretOuterClass.Version getCurrentVersion() { if (currentVersionBuilder_ == null) { return currentVersion_ == null ? yandex.cloud.api.lockbox.v1.SecretOuterClass.Version.getDefaultInstance() : currentVersion_; } else { return currentVersionBuilder_.getMessage(); } } /** *
       * Current (i.e. the `latest`) version of the secret.
       * 
* * .yandex.cloud.lockbox.v1.Version current_version = 9; */ public Builder setCurrentVersion(yandex.cloud.api.lockbox.v1.SecretOuterClass.Version value) { if (currentVersionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } currentVersion_ = value; onChanged(); } else { currentVersionBuilder_.setMessage(value); } return this; } /** *
       * Current (i.e. the `latest`) version of the secret.
       * 
* * .yandex.cloud.lockbox.v1.Version current_version = 9; */ public Builder setCurrentVersion( yandex.cloud.api.lockbox.v1.SecretOuterClass.Version.Builder builderForValue) { if (currentVersionBuilder_ == null) { currentVersion_ = builderForValue.build(); onChanged(); } else { currentVersionBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Current (i.e. the `latest`) version of the secret.
       * 
* * .yandex.cloud.lockbox.v1.Version current_version = 9; */ public Builder mergeCurrentVersion(yandex.cloud.api.lockbox.v1.SecretOuterClass.Version value) { if (currentVersionBuilder_ == null) { if (currentVersion_ != null) { currentVersion_ = yandex.cloud.api.lockbox.v1.SecretOuterClass.Version.newBuilder(currentVersion_).mergeFrom(value).buildPartial(); } else { currentVersion_ = value; } onChanged(); } else { currentVersionBuilder_.mergeFrom(value); } return this; } /** *
       * Current (i.e. the `latest`) version of the secret.
       * 
* * .yandex.cloud.lockbox.v1.Version current_version = 9; */ public Builder clearCurrentVersion() { if (currentVersionBuilder_ == null) { currentVersion_ = null; onChanged(); } else { currentVersion_ = null; currentVersionBuilder_ = null; } return this; } /** *
       * Current (i.e. the `latest`) version of the secret.
       * 
* * .yandex.cloud.lockbox.v1.Version current_version = 9; */ public yandex.cloud.api.lockbox.v1.SecretOuterClass.Version.Builder getCurrentVersionBuilder() { onChanged(); return getCurrentVersionFieldBuilder().getBuilder(); } /** *
       * Current (i.e. the `latest`) version of the secret.
       * 
* * .yandex.cloud.lockbox.v1.Version current_version = 9; */ public yandex.cloud.api.lockbox.v1.SecretOuterClass.VersionOrBuilder getCurrentVersionOrBuilder() { if (currentVersionBuilder_ != null) { return currentVersionBuilder_.getMessageOrBuilder(); } else { return currentVersion_ == null ? yandex.cloud.api.lockbox.v1.SecretOuterClass.Version.getDefaultInstance() : currentVersion_; } } /** *
       * Current (i.e. the `latest`) version of the secret.
       * 
* * .yandex.cloud.lockbox.v1.Version current_version = 9; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.lockbox.v1.SecretOuterClass.Version, yandex.cloud.api.lockbox.v1.SecretOuterClass.Version.Builder, yandex.cloud.api.lockbox.v1.SecretOuterClass.VersionOrBuilder> getCurrentVersionFieldBuilder() { if (currentVersionBuilder_ == null) { currentVersionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.lockbox.v1.SecretOuterClass.Version, yandex.cloud.api.lockbox.v1.SecretOuterClass.Version.Builder, yandex.cloud.api.lockbox.v1.SecretOuterClass.VersionOrBuilder>( getCurrentVersion(), getParentForChildren(), isClean()); currentVersion_ = null; } return currentVersionBuilder_; } private boolean deletionProtection_ ; /** *
       * Flag that inhibits deletion of the secret.
       * 
* * bool deletion_protection = 10; * @return The deletionProtection. */ @java.lang.Override public boolean getDeletionProtection() { return deletionProtection_; } /** *
       * Flag that inhibits deletion of the secret.
       * 
* * bool deletion_protection = 10; * @param value The deletionProtection to set. * @return This builder for chaining. */ public Builder setDeletionProtection(boolean value) { deletionProtection_ = value; onChanged(); return this; } /** *
       * Flag that inhibits deletion of the secret.
       * 
* * bool deletion_protection = 10; * @return This builder for chaining. */ public Builder clearDeletionProtection() { deletionProtection_ = false; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:yandex.cloud.lockbox.v1.Secret) } // @@protoc_insertion_point(class_scope:yandex.cloud.lockbox.v1.Secret) private static final yandex.cloud.api.lockbox.v1.SecretOuterClass.Secret DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.lockbox.v1.SecretOuterClass.Secret(); } public static yandex.cloud.api.lockbox.v1.SecretOuterClass.Secret getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Secret parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Secret(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public yandex.cloud.api.lockbox.v1.SecretOuterClass.Secret getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface VersionOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.lockbox.v1.Version) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the version.
     * 
* * string id = 1; * @return The id. */ java.lang.String getId(); /** *
     * ID of the version.
     * 
* * string id = 1; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** *
     * ID of the secret that the version belongs to.
     * 
* * string secret_id = 2; * @return The secretId. */ java.lang.String getSecretId(); /** *
     * ID of the secret that the version belongs to.
     * 
* * string secret_id = 2; * @return The bytes for secretId. */ com.google.protobuf.ByteString getSecretIdBytes(); /** *
     * Time when the version was created.
     * 
* * .google.protobuf.Timestamp created_at = 3; * @return Whether the createdAt field is set. */ boolean hasCreatedAt(); /** *
     * Time when the version was created.
     * 
* * .google.protobuf.Timestamp created_at = 3; * @return The createdAt. */ com.google.protobuf.Timestamp getCreatedAt(); /** *
     * Time when the version was created.
     * 
* * .google.protobuf.Timestamp created_at = 3; */ com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); /** *
     * Time when the version is going to be destroyed. Empty unless the status
     * is `SCHEDULED_FOR_DESTRUCTION`.
     * 
* * .google.protobuf.Timestamp destroy_at = 4; * @return Whether the destroyAt field is set. */ boolean hasDestroyAt(); /** *
     * Time when the version is going to be destroyed. Empty unless the status
     * is `SCHEDULED_FOR_DESTRUCTION`.
     * 
* * .google.protobuf.Timestamp destroy_at = 4; * @return The destroyAt. */ com.google.protobuf.Timestamp getDestroyAt(); /** *
     * Time when the version is going to be destroyed. Empty unless the status
     * is `SCHEDULED_FOR_DESTRUCTION`.
     * 
* * .google.protobuf.Timestamp destroy_at = 4; */ com.google.protobuf.TimestampOrBuilder getDestroyAtOrBuilder(); /** *
     * Description of the version.
     * 
* * string description = 5; * @return The description. */ java.lang.String getDescription(); /** *
     * Description of the version.
     * 
* * string description = 5; * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); /** *
     * Status of the secret.
     * 
* * .yandex.cloud.lockbox.v1.Version.Status status = 6; * @return The enum numeric value on the wire for status. */ int getStatusValue(); /** *
     * Status of the secret.
     * 
* * .yandex.cloud.lockbox.v1.Version.Status status = 6; * @return The status. */ yandex.cloud.api.lockbox.v1.SecretOuterClass.Version.Status getStatus(); /** *
     * Keys of the entries contained in the version payload.
     * 
* * repeated string payload_entry_keys = 7; * @return A list containing the payloadEntryKeys. */ java.util.List getPayloadEntryKeysList(); /** *
     * Keys of the entries contained in the version payload.
     * 
* * repeated string payload_entry_keys = 7; * @return The count of payloadEntryKeys. */ int getPayloadEntryKeysCount(); /** *
     * Keys of the entries contained in the version payload.
     * 
* * repeated string payload_entry_keys = 7; * @param index The index of the element to return. * @return The payloadEntryKeys at the given index. */ java.lang.String getPayloadEntryKeys(int index); /** *
     * Keys of the entries contained in the version payload.
     * 
* * repeated string payload_entry_keys = 7; * @param index The index of the value to return. * @return The bytes of the payloadEntryKeys at the given index. */ com.google.protobuf.ByteString getPayloadEntryKeysBytes(int index); } /** * Protobuf type {@code yandex.cloud.lockbox.v1.Version} */ public static final class Version extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.lockbox.v1.Version) VersionOrBuilder { private static final long serialVersionUID = 0L; // Use Version.newBuilder() to construct. private Version(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Version() { id_ = ""; secretId_ = ""; description_ = ""; status_ = 0; payloadEntryKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Version(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Version( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); id_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); secretId_ = s; break; } case 26: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (createdAt_ != null) { subBuilder = createdAt_.toBuilder(); } createdAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(createdAt_); createdAt_ = subBuilder.buildPartial(); } break; } case 34: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (destroyAt_ != null) { subBuilder = destroyAt_.toBuilder(); } destroyAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(destroyAt_); destroyAt_ = subBuilder.buildPartial(); } break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); description_ = s; break; } case 48: { int rawValue = input.readEnum(); status_ = rawValue; break; } case 58: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { payloadEntryKeys_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } payloadEntryKeys_.add(s); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { payloadEntryKeys_ = payloadEntryKeys_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.lockbox.v1.SecretOuterClass.internal_static_yandex_cloud_lockbox_v1_Version_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.lockbox.v1.SecretOuterClass.internal_static_yandex_cloud_lockbox_v1_Version_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.lockbox.v1.SecretOuterClass.Version.class, yandex.cloud.api.lockbox.v1.SecretOuterClass.Version.Builder.class); } /** * Protobuf enum {@code yandex.cloud.lockbox.v1.Version.Status} */ public enum Status implements com.google.protobuf.ProtocolMessageEnum { /** * STATUS_UNSPECIFIED = 0; */ STATUS_UNSPECIFIED(0), /** *
       * The version is active and the secret payload can be accessed.
       * 
* * ACTIVE = 1; */ ACTIVE(1), /** *
       * The version is scheduled for destruction, the time when it will be destroyed
       * is specified in the [Version.destroy_at] field.
       * 
* * SCHEDULED_FOR_DESTRUCTION = 2; */ SCHEDULED_FOR_DESTRUCTION(2), /** *
       * The version is destroyed and cannot be recovered.
       * 
* * DESTROYED = 3; */ DESTROYED(3), UNRECOGNIZED(-1), ; /** * STATUS_UNSPECIFIED = 0; */ public static final int STATUS_UNSPECIFIED_VALUE = 0; /** *
       * The version is active and the secret payload can be accessed.
       * 
* * ACTIVE = 1; */ public static final int ACTIVE_VALUE = 1; /** *
       * The version is scheduled for destruction, the time when it will be destroyed
       * is specified in the [Version.destroy_at] field.
       * 
* * SCHEDULED_FOR_DESTRUCTION = 2; */ public static final int SCHEDULED_FOR_DESTRUCTION_VALUE = 2; /** *
       * The version is destroyed and cannot be recovered.
       * 
* * DESTROYED = 3; */ public static final int DESTROYED_VALUE = 3; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Status valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static Status forNumber(int value) { switch (value) { case 0: return STATUS_UNSPECIFIED; case 1: return ACTIVE; case 2: return SCHEDULED_FOR_DESTRUCTION; case 3: return DESTROYED; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Status> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Status findValueByNumber(int number) { return Status.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return yandex.cloud.api.lockbox.v1.SecretOuterClass.Version.getDescriptor().getEnumTypes().get(0); } private static final Status[] VALUES = values(); public static Status valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Status(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.lockbox.v1.Version.Status) } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** *
     * ID of the version.
     * 
* * string id = 1; * @return The id. */ @java.lang.Override public java.lang.String getId() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } } /** *
     * ID of the version.
     * 
* * string id = 1; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SECRET_ID_FIELD_NUMBER = 2; private volatile java.lang.Object secretId_; /** *
     * ID of the secret that the version belongs to.
     * 
* * string secret_id = 2; * @return The secretId. */ @java.lang.Override public java.lang.String getSecretId() { java.lang.Object ref = secretId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); secretId_ = s; return s; } } /** *
     * ID of the secret that the version belongs to.
     * 
* * string secret_id = 2; * @return The bytes for secretId. */ @java.lang.Override public com.google.protobuf.ByteString getSecretIdBytes() { java.lang.Object ref = secretId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); secretId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CREATED_AT_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createdAt_; /** *
     * Time when the version was created.
     * 
* * .google.protobuf.Timestamp created_at = 3; * @return Whether the createdAt field is set. */ @java.lang.Override public boolean hasCreatedAt() { return createdAt_ != null; } /** *
     * Time when the version was created.
     * 
* * .google.protobuf.Timestamp created_at = 3; * @return The createdAt. */ @java.lang.Override public com.google.protobuf.Timestamp getCreatedAt() { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } /** *
     * Time when the version was created.
     * 
* * .google.protobuf.Timestamp created_at = 3; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { return getCreatedAt(); } public static final int DESTROY_AT_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp destroyAt_; /** *
     * Time when the version is going to be destroyed. Empty unless the status
     * is `SCHEDULED_FOR_DESTRUCTION`.
     * 
* * .google.protobuf.Timestamp destroy_at = 4; * @return Whether the destroyAt field is set. */ @java.lang.Override public boolean hasDestroyAt() { return destroyAt_ != null; } /** *
     * Time when the version is going to be destroyed. Empty unless the status
     * is `SCHEDULED_FOR_DESTRUCTION`.
     * 
* * .google.protobuf.Timestamp destroy_at = 4; * @return The destroyAt. */ @java.lang.Override public com.google.protobuf.Timestamp getDestroyAt() { return destroyAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : destroyAt_; } /** *
     * Time when the version is going to be destroyed. Empty unless the status
     * is `SCHEDULED_FOR_DESTRUCTION`.
     * 
* * .google.protobuf.Timestamp destroy_at = 4; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDestroyAtOrBuilder() { return getDestroyAt(); } public static final int DESCRIPTION_FIELD_NUMBER = 5; private volatile java.lang.Object description_; /** *
     * Description of the version.
     * 
* * string description = 5; * @return The description. */ @java.lang.Override public java.lang.String getDescription() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** *
     * Description of the version.
     * 
* * string description = 5; * @return The bytes for description. */ @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int STATUS_FIELD_NUMBER = 6; private int status_; /** *
     * Status of the secret.
     * 
* * .yandex.cloud.lockbox.v1.Version.Status status = 6; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** *
     * Status of the secret.
     * 
* * .yandex.cloud.lockbox.v1.Version.Status status = 6; * @return The status. */ @java.lang.Override public yandex.cloud.api.lockbox.v1.SecretOuterClass.Version.Status getStatus() { @SuppressWarnings("deprecation") yandex.cloud.api.lockbox.v1.SecretOuterClass.Version.Status result = yandex.cloud.api.lockbox.v1.SecretOuterClass.Version.Status.valueOf(status_); return result == null ? yandex.cloud.api.lockbox.v1.SecretOuterClass.Version.Status.UNRECOGNIZED : result; } public static final int PAYLOAD_ENTRY_KEYS_FIELD_NUMBER = 7; private com.google.protobuf.LazyStringList payloadEntryKeys_; /** *
     * Keys of the entries contained in the version payload.
     * 
* * repeated string payload_entry_keys = 7; * @return A list containing the payloadEntryKeys. */ public com.google.protobuf.ProtocolStringList getPayloadEntryKeysList() { return payloadEntryKeys_; } /** *
     * Keys of the entries contained in the version payload.
     * 
* * repeated string payload_entry_keys = 7; * @return The count of payloadEntryKeys. */ public int getPayloadEntryKeysCount() { return payloadEntryKeys_.size(); } /** *
     * Keys of the entries contained in the version payload.
     * 
* * repeated string payload_entry_keys = 7; * @param index The index of the element to return. * @return The payloadEntryKeys at the given index. */ public java.lang.String getPayloadEntryKeys(int index) { return payloadEntryKeys_.get(index); } /** *
     * Keys of the entries contained in the version payload.
     * 
* * repeated string payload_entry_keys = 7; * @param index The index of the value to return. * @return The bytes of the payloadEntryKeys at the given index. */ public com.google.protobuf.ByteString getPayloadEntryKeysBytes(int index) { return payloadEntryKeys_.getByteString(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secretId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, secretId_); } if (createdAt_ != null) { output.writeMessage(3, getCreatedAt()); } if (destroyAt_ != null) { output.writeMessage(4, getDestroyAt()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_); } if (status_ != yandex.cloud.api.lockbox.v1.SecretOuterClass.Version.Status.STATUS_UNSPECIFIED.getNumber()) { output.writeEnum(6, status_); } for (int i = 0; i < payloadEntryKeys_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, payloadEntryKeys_.getRaw(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secretId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, secretId_); } if (createdAt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getCreatedAt()); } if (destroyAt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getDestroyAt()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); } if (status_ != yandex.cloud.api.lockbox.v1.SecretOuterClass.Version.Status.STATUS_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(6, status_); } { int dataSize = 0; for (int i = 0; i < payloadEntryKeys_.size(); i++) { dataSize += computeStringSizeNoTag(payloadEntryKeys_.getRaw(i)); } size += dataSize; size += 1 * getPayloadEntryKeysList().size(); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof yandex.cloud.api.lockbox.v1.SecretOuterClass.Version)) { return super.equals(obj); } yandex.cloud.api.lockbox.v1.SecretOuterClass.Version other = (yandex.cloud.api.lockbox.v1.SecretOuterClass.Version) obj; if (!getId() .equals(other.getId())) return false; if (!getSecretId() .equals(other.getSecretId())) return false; if (hasCreatedAt() != other.hasCreatedAt()) return false; if (hasCreatedAt()) { if (!getCreatedAt() .equals(other.getCreatedAt())) return false; } if (hasDestroyAt() != other.hasDestroyAt()) return false; if (hasDestroyAt()) { if (!getDestroyAt() .equals(other.getDestroyAt())) return false; } if (!getDescription() .equals(other.getDescription())) return false; if (status_ != other.status_) return false; if (!getPayloadEntryKeysList() .equals(other.getPayloadEntryKeysList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + SECRET_ID_FIELD_NUMBER; hash = (53 * hash) + getSecretId().hashCode(); if (hasCreatedAt()) { hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; hash = (53 * hash) + getCreatedAt().hashCode(); } if (hasDestroyAt()) { hash = (37 * hash) + DESTROY_AT_FIELD_NUMBER; hash = (53 * hash) + getDestroyAt().hashCode(); } hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + status_; if (getPayloadEntryKeysCount() > 0) { hash = (37 * hash) + PAYLOAD_ENTRY_KEYS_FIELD_NUMBER; hash = (53 * hash) + getPayloadEntryKeysList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.lockbox.v1.SecretOuterClass.Version parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.lockbox.v1.SecretOuterClass.Version parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.lockbox.v1.SecretOuterClass.Version parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.lockbox.v1.SecretOuterClass.Version parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.lockbox.v1.SecretOuterClass.Version parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.lockbox.v1.SecretOuterClass.Version parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.lockbox.v1.SecretOuterClass.Version parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.lockbox.v1.SecretOuterClass.Version parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static yandex.cloud.api.lockbox.v1.SecretOuterClass.Version parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.lockbox.v1.SecretOuterClass.Version parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static yandex.cloud.api.lockbox.v1.SecretOuterClass.Version parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.lockbox.v1.SecretOuterClass.Version parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(yandex.cloud.api.lockbox.v1.SecretOuterClass.Version prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code yandex.cloud.lockbox.v1.Version} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.lockbox.v1.Version) yandex.cloud.api.lockbox.v1.SecretOuterClass.VersionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.lockbox.v1.SecretOuterClass.internal_static_yandex_cloud_lockbox_v1_Version_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.lockbox.v1.SecretOuterClass.internal_static_yandex_cloud_lockbox_v1_Version_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.lockbox.v1.SecretOuterClass.Version.class, yandex.cloud.api.lockbox.v1.SecretOuterClass.Version.Builder.class); } // Construct using yandex.cloud.api.lockbox.v1.SecretOuterClass.Version.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); id_ = ""; secretId_ = ""; if (createdAtBuilder_ == null) { createdAt_ = null; } else { createdAt_ = null; createdAtBuilder_ = null; } if (destroyAtBuilder_ == null) { destroyAt_ = null; } else { destroyAt_ = null; destroyAtBuilder_ = null; } description_ = ""; status_ = 0; payloadEntryKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.lockbox.v1.SecretOuterClass.internal_static_yandex_cloud_lockbox_v1_Version_descriptor; } @java.lang.Override public yandex.cloud.api.lockbox.v1.SecretOuterClass.Version getDefaultInstanceForType() { return yandex.cloud.api.lockbox.v1.SecretOuterClass.Version.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.lockbox.v1.SecretOuterClass.Version build() { yandex.cloud.api.lockbox.v1.SecretOuterClass.Version result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.lockbox.v1.SecretOuterClass.Version buildPartial() { yandex.cloud.api.lockbox.v1.SecretOuterClass.Version result = new yandex.cloud.api.lockbox.v1.SecretOuterClass.Version(this); int from_bitField0_ = bitField0_; result.id_ = id_; result.secretId_ = secretId_; if (createdAtBuilder_ == null) { result.createdAt_ = createdAt_; } else { result.createdAt_ = createdAtBuilder_.build(); } if (destroyAtBuilder_ == null) { result.destroyAt_ = destroyAt_; } else { result.destroyAt_ = destroyAtBuilder_.build(); } result.description_ = description_; result.status_ = status_; if (((bitField0_ & 0x00000001) != 0)) { payloadEntryKeys_ = payloadEntryKeys_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.payloadEntryKeys_ = payloadEntryKeys_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof yandex.cloud.api.lockbox.v1.SecretOuterClass.Version) { return mergeFrom((yandex.cloud.api.lockbox.v1.SecretOuterClass.Version)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.lockbox.v1.SecretOuterClass.Version other) { if (other == yandex.cloud.api.lockbox.v1.SecretOuterClass.Version.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (!other.getSecretId().isEmpty()) { secretId_ = other.secretId_; onChanged(); } if (other.hasCreatedAt()) { mergeCreatedAt(other.getCreatedAt()); } if (other.hasDestroyAt()) { mergeDestroyAt(other.getDestroyAt()); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } if (other.status_ != 0) { setStatusValue(other.getStatusValue()); } if (!other.payloadEntryKeys_.isEmpty()) { if (payloadEntryKeys_.isEmpty()) { payloadEntryKeys_ = other.payloadEntryKeys_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensurePayloadEntryKeysIsMutable(); payloadEntryKeys_.addAll(other.payloadEntryKeys_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.lockbox.v1.SecretOuterClass.Version parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.lockbox.v1.SecretOuterClass.Version) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object id_ = ""; /** *
       * ID of the version.
       * 
* * string id = 1; * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the version.
       * 
* * string id = 1; * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the version.
       * 
* * string id = 1; * @param value The id to set. * @return This builder for chaining. */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); return this; } /** *
       * ID of the version.
       * 
* * string id = 1; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
       * ID of the version.
       * 
* * string id = 1; * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; onChanged(); return this; } private java.lang.Object secretId_ = ""; /** *
       * ID of the secret that the version belongs to.
       * 
* * string secret_id = 2; * @return The secretId. */ public java.lang.String getSecretId() { java.lang.Object ref = secretId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); secretId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the secret that the version belongs to.
       * 
* * string secret_id = 2; * @return The bytes for secretId. */ public com.google.protobuf.ByteString getSecretIdBytes() { java.lang.Object ref = secretId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); secretId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the secret that the version belongs to.
       * 
* * string secret_id = 2; * @param value The secretId to set. * @return This builder for chaining. */ public Builder setSecretId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } secretId_ = value; onChanged(); return this; } /** *
       * ID of the secret that the version belongs to.
       * 
* * string secret_id = 2; * @return This builder for chaining. */ public Builder clearSecretId() { secretId_ = getDefaultInstance().getSecretId(); onChanged(); return this; } /** *
       * ID of the secret that the version belongs to.
       * 
* * string secret_id = 2; * @param value The bytes for secretId to set. * @return This builder for chaining. */ public Builder setSecretIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); secretId_ = value; onChanged(); return this; } private com.google.protobuf.Timestamp createdAt_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_; /** *
       * Time when the version was created.
       * 
* * .google.protobuf.Timestamp created_at = 3; * @return Whether the createdAt field is set. */ public boolean hasCreatedAt() { return createdAtBuilder_ != null || createdAt_ != null; } /** *
       * Time when the version was created.
       * 
* * .google.protobuf.Timestamp created_at = 3; * @return The createdAt. */ public com.google.protobuf.Timestamp getCreatedAt() { if (createdAtBuilder_ == null) { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } else { return createdAtBuilder_.getMessage(); } } /** *
       * Time when the version was created.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public Builder setCreatedAt(com.google.protobuf.Timestamp value) { if (createdAtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } createdAt_ = value; onChanged(); } else { createdAtBuilder_.setMessage(value); } return this; } /** *
       * Time when the version was created.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public Builder setCreatedAt( com.google.protobuf.Timestamp.Builder builderForValue) { if (createdAtBuilder_ == null) { createdAt_ = builderForValue.build(); onChanged(); } else { createdAtBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Time when the version was created.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) { if (createdAtBuilder_ == null) { if (createdAt_ != null) { createdAt_ = com.google.protobuf.Timestamp.newBuilder(createdAt_).mergeFrom(value).buildPartial(); } else { createdAt_ = value; } onChanged(); } else { createdAtBuilder_.mergeFrom(value); } return this; } /** *
       * Time when the version was created.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public Builder clearCreatedAt() { if (createdAtBuilder_ == null) { createdAt_ = null; onChanged(); } else { createdAt_ = null; createdAtBuilder_ = null; } return this; } /** *
       * Time when the version was created.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { onChanged(); return getCreatedAtFieldBuilder().getBuilder(); } /** *
       * Time when the version was created.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { if (createdAtBuilder_ != null) { return createdAtBuilder_.getMessageOrBuilder(); } else { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } } /** *
       * Time when the version was created.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreatedAtFieldBuilder() { if (createdAtBuilder_ == null) { createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getCreatedAt(), getParentForChildren(), isClean()); createdAt_ = null; } return createdAtBuilder_; } private com.google.protobuf.Timestamp destroyAt_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> destroyAtBuilder_; /** *
       * Time when the version is going to be destroyed. Empty unless the status
       * is `SCHEDULED_FOR_DESTRUCTION`.
       * 
* * .google.protobuf.Timestamp destroy_at = 4; * @return Whether the destroyAt field is set. */ public boolean hasDestroyAt() { return destroyAtBuilder_ != null || destroyAt_ != null; } /** *
       * Time when the version is going to be destroyed. Empty unless the status
       * is `SCHEDULED_FOR_DESTRUCTION`.
       * 
* * .google.protobuf.Timestamp destroy_at = 4; * @return The destroyAt. */ public com.google.protobuf.Timestamp getDestroyAt() { if (destroyAtBuilder_ == null) { return destroyAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : destroyAt_; } else { return destroyAtBuilder_.getMessage(); } } /** *
       * Time when the version is going to be destroyed. Empty unless the status
       * is `SCHEDULED_FOR_DESTRUCTION`.
       * 
* * .google.protobuf.Timestamp destroy_at = 4; */ public Builder setDestroyAt(com.google.protobuf.Timestamp value) { if (destroyAtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } destroyAt_ = value; onChanged(); } else { destroyAtBuilder_.setMessage(value); } return this; } /** *
       * Time when the version is going to be destroyed. Empty unless the status
       * is `SCHEDULED_FOR_DESTRUCTION`.
       * 
* * .google.protobuf.Timestamp destroy_at = 4; */ public Builder setDestroyAt( com.google.protobuf.Timestamp.Builder builderForValue) { if (destroyAtBuilder_ == null) { destroyAt_ = builderForValue.build(); onChanged(); } else { destroyAtBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Time when the version is going to be destroyed. Empty unless the status
       * is `SCHEDULED_FOR_DESTRUCTION`.
       * 
* * .google.protobuf.Timestamp destroy_at = 4; */ public Builder mergeDestroyAt(com.google.protobuf.Timestamp value) { if (destroyAtBuilder_ == null) { if (destroyAt_ != null) { destroyAt_ = com.google.protobuf.Timestamp.newBuilder(destroyAt_).mergeFrom(value).buildPartial(); } else { destroyAt_ = value; } onChanged(); } else { destroyAtBuilder_.mergeFrom(value); } return this; } /** *
       * Time when the version is going to be destroyed. Empty unless the status
       * is `SCHEDULED_FOR_DESTRUCTION`.
       * 
* * .google.protobuf.Timestamp destroy_at = 4; */ public Builder clearDestroyAt() { if (destroyAtBuilder_ == null) { destroyAt_ = null; onChanged(); } else { destroyAt_ = null; destroyAtBuilder_ = null; } return this; } /** *
       * Time when the version is going to be destroyed. Empty unless the status
       * is `SCHEDULED_FOR_DESTRUCTION`.
       * 
* * .google.protobuf.Timestamp destroy_at = 4; */ public com.google.protobuf.Timestamp.Builder getDestroyAtBuilder() { onChanged(); return getDestroyAtFieldBuilder().getBuilder(); } /** *
       * Time when the version is going to be destroyed. Empty unless the status
       * is `SCHEDULED_FOR_DESTRUCTION`.
       * 
* * .google.protobuf.Timestamp destroy_at = 4; */ public com.google.protobuf.TimestampOrBuilder getDestroyAtOrBuilder() { if (destroyAtBuilder_ != null) { return destroyAtBuilder_.getMessageOrBuilder(); } else { return destroyAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : destroyAt_; } } /** *
       * Time when the version is going to be destroyed. Empty unless the status
       * is `SCHEDULED_FOR_DESTRUCTION`.
       * 
* * .google.protobuf.Timestamp destroy_at = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getDestroyAtFieldBuilder() { if (destroyAtBuilder_ == null) { destroyAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getDestroyAt(), getParentForChildren(), isClean()); destroyAt_ = null; } return destroyAtBuilder_; } private java.lang.Object description_ = ""; /** *
       * Description of the version.
       * 
* * string description = 5; * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Description of the version.
       * 
* * string description = 5; * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Description of the version.
       * 
* * string description = 5; * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; onChanged(); return this; } /** *
       * Description of the version.
       * 
* * string description = 5; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** *
       * Description of the version.
       * 
* * string description = 5; * @param value The bytes for description to set. * @return This builder for chaining. */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; onChanged(); return this; } private int status_ = 0; /** *
       * Status of the secret.
       * 
* * .yandex.cloud.lockbox.v1.Version.Status status = 6; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** *
       * Status of the secret.
       * 
* * .yandex.cloud.lockbox.v1.Version.Status status = 6; * @param value The enum numeric value on the wire for status to set. * @return This builder for chaining. */ public Builder setStatusValue(int value) { status_ = value; onChanged(); return this; } /** *
       * Status of the secret.
       * 
* * .yandex.cloud.lockbox.v1.Version.Status status = 6; * @return The status. */ @java.lang.Override public yandex.cloud.api.lockbox.v1.SecretOuterClass.Version.Status getStatus() { @SuppressWarnings("deprecation") yandex.cloud.api.lockbox.v1.SecretOuterClass.Version.Status result = yandex.cloud.api.lockbox.v1.SecretOuterClass.Version.Status.valueOf(status_); return result == null ? yandex.cloud.api.lockbox.v1.SecretOuterClass.Version.Status.UNRECOGNIZED : result; } /** *
       * Status of the secret.
       * 
* * .yandex.cloud.lockbox.v1.Version.Status status = 6; * @param value The status to set. * @return This builder for chaining. */ public Builder setStatus(yandex.cloud.api.lockbox.v1.SecretOuterClass.Version.Status value) { if (value == null) { throw new NullPointerException(); } status_ = value.getNumber(); onChanged(); return this; } /** *
       * Status of the secret.
       * 
* * .yandex.cloud.lockbox.v1.Version.Status status = 6; * @return This builder for chaining. */ public Builder clearStatus() { status_ = 0; onChanged(); return this; } private com.google.protobuf.LazyStringList payloadEntryKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensurePayloadEntryKeysIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { payloadEntryKeys_ = new com.google.protobuf.LazyStringArrayList(payloadEntryKeys_); bitField0_ |= 0x00000001; } } /** *
       * Keys of the entries contained in the version payload.
       * 
* * repeated string payload_entry_keys = 7; * @return A list containing the payloadEntryKeys. */ public com.google.protobuf.ProtocolStringList getPayloadEntryKeysList() { return payloadEntryKeys_.getUnmodifiableView(); } /** *
       * Keys of the entries contained in the version payload.
       * 
* * repeated string payload_entry_keys = 7; * @return The count of payloadEntryKeys. */ public int getPayloadEntryKeysCount() { return payloadEntryKeys_.size(); } /** *
       * Keys of the entries contained in the version payload.
       * 
* * repeated string payload_entry_keys = 7; * @param index The index of the element to return. * @return The payloadEntryKeys at the given index. */ public java.lang.String getPayloadEntryKeys(int index) { return payloadEntryKeys_.get(index); } /** *
       * Keys of the entries contained in the version payload.
       * 
* * repeated string payload_entry_keys = 7; * @param index The index of the value to return. * @return The bytes of the payloadEntryKeys at the given index. */ public com.google.protobuf.ByteString getPayloadEntryKeysBytes(int index) { return payloadEntryKeys_.getByteString(index); } /** *
       * Keys of the entries contained in the version payload.
       * 
* * repeated string payload_entry_keys = 7; * @param index The index to set the value at. * @param value The payloadEntryKeys to set. * @return This builder for chaining. */ public Builder setPayloadEntryKeys( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePayloadEntryKeysIsMutable(); payloadEntryKeys_.set(index, value); onChanged(); return this; } /** *
       * Keys of the entries contained in the version payload.
       * 
* * repeated string payload_entry_keys = 7; * @param value The payloadEntryKeys to add. * @return This builder for chaining. */ public Builder addPayloadEntryKeys( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePayloadEntryKeysIsMutable(); payloadEntryKeys_.add(value); onChanged(); return this; } /** *
       * Keys of the entries contained in the version payload.
       * 
* * repeated string payload_entry_keys = 7; * @param values The payloadEntryKeys to add. * @return This builder for chaining. */ public Builder addAllPayloadEntryKeys( java.lang.Iterable values) { ensurePayloadEntryKeysIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, payloadEntryKeys_); onChanged(); return this; } /** *
       * Keys of the entries contained in the version payload.
       * 
* * repeated string payload_entry_keys = 7; * @return This builder for chaining. */ public Builder clearPayloadEntryKeys() { payloadEntryKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * Keys of the entries contained in the version payload.
       * 
* * repeated string payload_entry_keys = 7; * @param value The bytes of the payloadEntryKeys to add. * @return This builder for chaining. */ public Builder addPayloadEntryKeysBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensurePayloadEntryKeysIsMutable(); payloadEntryKeys_.add(value); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:yandex.cloud.lockbox.v1.Version) } // @@protoc_insertion_point(class_scope:yandex.cloud.lockbox.v1.Version) private static final yandex.cloud.api.lockbox.v1.SecretOuterClass.Version DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.lockbox.v1.SecretOuterClass.Version(); } public static yandex.cloud.api.lockbox.v1.SecretOuterClass.Version getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Version parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Version(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public yandex.cloud.api.lockbox.v1.SecretOuterClass.Version getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_lockbox_v1_Secret_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_lockbox_v1_Secret_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_lockbox_v1_Secret_LabelsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_lockbox_v1_Secret_LabelsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_lockbox_v1_Version_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_lockbox_v1_Version_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n$yandex/cloud/lockbox/v1/secret.proto\022\027" + "yandex.cloud.lockbox.v1\032\037google/protobuf" + "/timestamp.proto\"\324\003\n\006Secret\022\n\n\002id\030\001 \001(\t\022" + "\021\n\tfolder_id\030\002 \001(\t\022.\n\ncreated_at\030\003 \001(\0132\032" + ".google.protobuf.Timestamp\022\014\n\004name\030\004 \001(\t" + "\022\023\n\013description\030\005 \001(\t\022;\n\006labels\030\006 \003(\0132+." + "yandex.cloud.lockbox.v1.Secret.LabelsEnt" + "ry\022\022\n\nkms_key_id\030\007 \001(\t\0226\n\006status\030\010 \001(\0162&" + ".yandex.cloud.lockbox.v1.Secret.Status\0229" + "\n\017current_version\030\t \001(\0132 .yandex.cloud.l" + "ockbox.v1.Version\022\033\n\023deletion_protection" + "\030\n \001(\010\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + "lue\030\002 \001(\t:\0028\001\"H\n\006Status\022\026\n\022STATUS_UNSPEC" + "IFIED\020\000\022\014\n\010CREATING\020\001\022\n\n\006ACTIVE\020\002\022\014\n\010INA" + "CTIVE\020\003\"\316\002\n\007Version\022\n\n\002id\030\001 \001(\t\022\021\n\tsecre" + "t_id\030\002 \001(\t\022.\n\ncreated_at\030\003 \001(\0132\032.google." + "protobuf.Timestamp\022.\n\ndestroy_at\030\004 \001(\0132\032" + ".google.protobuf.Timestamp\022\023\n\013descriptio" + "n\030\005 \001(\t\0227\n\006status\030\006 \001(\0162\'.yandex.cloud.l" + "ockbox.v1.Version.Status\022\032\n\022payload_entr" + "y_keys\030\007 \003(\t\"Z\n\006Status\022\026\n\022STATUS_UNSPECI" + "FIED\020\000\022\n\n\006ACTIVE\020\001\022\035\n\031SCHEDULED_FOR_DEST" + "RUCTION\020\002\022\r\n\tDESTROYED\020\003Bb\n\033yandex.cloud" + ".api.lockbox.v1ZCgithub.com/yandex-cloud" + "/go-genproto/yandex/cloud/lockbox/v1;loc" + "kboxb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_yandex_cloud_lockbox_v1_Secret_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_yandex_cloud_lockbox_v1_Secret_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_lockbox_v1_Secret_descriptor, new java.lang.String[] { "Id", "FolderId", "CreatedAt", "Name", "Description", "Labels", "KmsKeyId", "Status", "CurrentVersion", "DeletionProtection", }); internal_static_yandex_cloud_lockbox_v1_Secret_LabelsEntry_descriptor = internal_static_yandex_cloud_lockbox_v1_Secret_descriptor.getNestedTypes().get(0); internal_static_yandex_cloud_lockbox_v1_Secret_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_lockbox_v1_Secret_LabelsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_yandex_cloud_lockbox_v1_Version_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_yandex_cloud_lockbox_v1_Version_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_lockbox_v1_Version_descriptor, new java.lang.String[] { "Id", "SecretId", "CreatedAt", "DestroyAt", "Description", "Status", "PayloadEntryKeys", }); com.google.protobuf.TimestampProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy