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

yandex.cloud.api.iam.v1.KeyOuterClass Maven / Gradle / Ivy

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

package yandex.cloud.api.iam.v1;

public final class KeyOuterClass {
  private KeyOuterClass() {}
  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 KeyOrBuilder extends
      // @@protoc_insertion_point(interface_extends:yandex.cloud.iam.v1.Key)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * ID of the Key resource.
     * 
* * string id = 1; * @return The id. */ java.lang.String getId(); /** *
     * ID of the Key resource.
     * 
* * string id = 1; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** *
     * ID of the user account that the Key resource belongs to.
     * 
* * string user_account_id = 2; * @return Whether the userAccountId field is set. */ boolean hasUserAccountId(); /** *
     * ID of the user account that the Key resource belongs to.
     * 
* * string user_account_id = 2; * @return The userAccountId. */ java.lang.String getUserAccountId(); /** *
     * ID of the user account that the Key resource belongs to.
     * 
* * string user_account_id = 2; * @return The bytes for userAccountId. */ com.google.protobuf.ByteString getUserAccountIdBytes(); /** *
     * ID of the service account that the Key resource belongs to.
     * 
* * string service_account_id = 3; * @return Whether the serviceAccountId field is set. */ boolean hasServiceAccountId(); /** *
     * ID of the service account that the Key resource belongs to.
     * 
* * string service_account_id = 3; * @return The serviceAccountId. */ java.lang.String getServiceAccountId(); /** *
     * ID of the service account that the Key resource belongs to.
     * 
* * string service_account_id = 3; * @return The bytes for serviceAccountId. */ com.google.protobuf.ByteString getServiceAccountIdBytes(); /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 4; * @return Whether the createdAt field is set. */ boolean hasCreatedAt(); /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 4; * @return The createdAt. */ com.google.protobuf.Timestamp getCreatedAt(); /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 4; */ com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); /** *
     * Description of the Key resource. 0-256 characters long.
     * 
* * string description = 5; * @return The description. */ java.lang.String getDescription(); /** *
     * Description of the Key resource. 0-256 characters long.
     * 
* * string description = 5; * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); /** *
     * An algorithm used to generate a key pair of the Key resource.
     * 
* * .yandex.cloud.iam.v1.Key.Algorithm key_algorithm = 6; * @return The enum numeric value on the wire for keyAlgorithm. */ int getKeyAlgorithmValue(); /** *
     * An algorithm used to generate a key pair of the Key resource.
     * 
* * .yandex.cloud.iam.v1.Key.Algorithm key_algorithm = 6; * @return The keyAlgorithm. */ yandex.cloud.api.iam.v1.KeyOuterClass.Key.Algorithm getKeyAlgorithm(); /** *
     * A public key of the Key resource.
     * 
* * string public_key = 7; * @return The publicKey. */ java.lang.String getPublicKey(); /** *
     * A public key of the Key resource.
     * 
* * string public_key = 7; * @return The bytes for publicKey. */ com.google.protobuf.ByteString getPublicKeyBytes(); public yandex.cloud.api.iam.v1.KeyOuterClass.Key.SubjectCase getSubjectCase(); } /** *
   * A Key resource. For more information, see [Authorized keys](/docs/iam/concepts/authorization/key).
   * 
* * Protobuf type {@code yandex.cloud.iam.v1.Key} */ public static final class Key extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.iam.v1.Key) KeyOrBuilder { private static final long serialVersionUID = 0L; // Use Key.newBuilder() to construct. private Key(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Key() { id_ = ""; description_ = ""; keyAlgorithm_ = 0; publicKey_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Key(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Key( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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(); subjectCase_ = 2; subject_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); subjectCase_ = 3; subject_ = s; break; } case 34: { 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 42: { java.lang.String s = input.readStringRequireUtf8(); description_ = s; break; } case 48: { int rawValue = input.readEnum(); keyAlgorithm_ = rawValue; break; } case 58: { java.lang.String s = input.readStringRequireUtf8(); publicKey_ = 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.iam.v1.KeyOuterClass.internal_static_yandex_cloud_iam_v1_Key_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iam.v1.KeyOuterClass.internal_static_yandex_cloud_iam_v1_Key_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iam.v1.KeyOuterClass.Key.class, yandex.cloud.api.iam.v1.KeyOuterClass.Key.Builder.class); } /** * Protobuf enum {@code yandex.cloud.iam.v1.Key.Algorithm} */ public enum Algorithm implements com.google.protobuf.ProtocolMessageEnum { /** * ALGORITHM_UNSPECIFIED = 0; */ ALGORITHM_UNSPECIFIED(0), /** *
       * RSA with a 2048-bit key size. Default value.
       * 
* * RSA_2048 = 1; */ RSA_2048(1), /** *
       * RSA with a 4096-bit key size.
       * 
* * RSA_4096 = 2; */ RSA_4096(2), UNRECOGNIZED(-1), ; /** * ALGORITHM_UNSPECIFIED = 0; */ public static final int ALGORITHM_UNSPECIFIED_VALUE = 0; /** *
       * RSA with a 2048-bit key size. Default value.
       * 
* * RSA_2048 = 1; */ public static final int RSA_2048_VALUE = 1; /** *
       * RSA with a 4096-bit key size.
       * 
* * RSA_4096 = 2; */ public static final int RSA_4096_VALUE = 2; 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 Algorithm 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 Algorithm forNumber(int value) { switch (value) { case 0: return ALGORITHM_UNSPECIFIED; case 1: return RSA_2048; case 2: return RSA_4096; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Algorithm> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Algorithm findValueByNumber(int number) { return Algorithm.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.iam.v1.KeyOuterClass.Key.getDescriptor().getEnumTypes().get(0); } private static final Algorithm[] VALUES = values(); public static Algorithm 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 Algorithm(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.iam.v1.Key.Algorithm) } private int subjectCase_ = 0; private java.lang.Object subject_; public enum SubjectCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { USER_ACCOUNT_ID(2), SERVICE_ACCOUNT_ID(3), SUBJECT_NOT_SET(0); private final int value; private SubjectCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static SubjectCase valueOf(int value) { return forNumber(value); } public static SubjectCase forNumber(int value) { switch (value) { case 2: return USER_ACCOUNT_ID; case 3: return SERVICE_ACCOUNT_ID; case 0: return SUBJECT_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public SubjectCase getSubjectCase() { return SubjectCase.forNumber( subjectCase_); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** *
     * ID of the Key resource.
     * 
* * 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 Key resource.
     * 
* * 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 USER_ACCOUNT_ID_FIELD_NUMBER = 2; /** *
     * ID of the user account that the Key resource belongs to.
     * 
* * string user_account_id = 2; * @return Whether the userAccountId field is set. */ public boolean hasUserAccountId() { return subjectCase_ == 2; } /** *
     * ID of the user account that the Key resource belongs to.
     * 
* * string user_account_id = 2; * @return The userAccountId. */ public java.lang.String getUserAccountId() { java.lang.Object ref = ""; if (subjectCase_ == 2) { ref = subject_; } 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(); if (subjectCase_ == 2) { subject_ = s; } return s; } } /** *
     * ID of the user account that the Key resource belongs to.
     * 
* * string user_account_id = 2; * @return The bytes for userAccountId. */ public com.google.protobuf.ByteString getUserAccountIdBytes() { java.lang.Object ref = ""; if (subjectCase_ == 2) { ref = subject_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (subjectCase_ == 2) { subject_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SERVICE_ACCOUNT_ID_FIELD_NUMBER = 3; /** *
     * ID of the service account that the Key resource belongs to.
     * 
* * string service_account_id = 3; * @return Whether the serviceAccountId field is set. */ public boolean hasServiceAccountId() { return subjectCase_ == 3; } /** *
     * ID of the service account that the Key resource belongs to.
     * 
* * string service_account_id = 3; * @return The serviceAccountId. */ public java.lang.String getServiceAccountId() { java.lang.Object ref = ""; if (subjectCase_ == 3) { ref = subject_; } 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(); if (subjectCase_ == 3) { subject_ = s; } return s; } } /** *
     * ID of the service account that the Key resource belongs to.
     * 
* * string service_account_id = 3; * @return The bytes for serviceAccountId. */ public com.google.protobuf.ByteString getServiceAccountIdBytes() { java.lang.Object ref = ""; if (subjectCase_ == 3) { ref = subject_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (subjectCase_ == 3) { subject_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CREATED_AT_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp createdAt_; /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 4; * @return Whether the createdAt field is set. */ @java.lang.Override public boolean hasCreatedAt() { return createdAt_ != null; } /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 4; * @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 = 4; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { return getCreatedAt(); } public static final int DESCRIPTION_FIELD_NUMBER = 5; private volatile java.lang.Object description_; /** *
     * Description of the Key resource. 0-256 characters long.
     * 
* * 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 Key resource. 0-256 characters long.
     * 
* * 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 KEY_ALGORITHM_FIELD_NUMBER = 6; private int keyAlgorithm_; /** *
     * An algorithm used to generate a key pair of the Key resource.
     * 
* * .yandex.cloud.iam.v1.Key.Algorithm key_algorithm = 6; * @return The enum numeric value on the wire for keyAlgorithm. */ @java.lang.Override public int getKeyAlgorithmValue() { return keyAlgorithm_; } /** *
     * An algorithm used to generate a key pair of the Key resource.
     * 
* * .yandex.cloud.iam.v1.Key.Algorithm key_algorithm = 6; * @return The keyAlgorithm. */ @java.lang.Override public yandex.cloud.api.iam.v1.KeyOuterClass.Key.Algorithm getKeyAlgorithm() { @SuppressWarnings("deprecation") yandex.cloud.api.iam.v1.KeyOuterClass.Key.Algorithm result = yandex.cloud.api.iam.v1.KeyOuterClass.Key.Algorithm.valueOf(keyAlgorithm_); return result == null ? yandex.cloud.api.iam.v1.KeyOuterClass.Key.Algorithm.UNRECOGNIZED : result; } public static final int PUBLIC_KEY_FIELD_NUMBER = 7; private volatile java.lang.Object publicKey_; /** *
     * A public key of the Key resource.
     * 
* * string public_key = 7; * @return The publicKey. */ @java.lang.Override public java.lang.String getPublicKey() { java.lang.Object ref = publicKey_; 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(); publicKey_ = s; return s; } } /** *
     * A public key of the Key resource.
     * 
* * string public_key = 7; * @return The bytes for publicKey. */ @java.lang.Override public com.google.protobuf.ByteString getPublicKeyBytes() { java.lang.Object ref = publicKey_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); publicKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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 (subjectCase_ == 2) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, subject_); } if (subjectCase_ == 3) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, subject_); } if (createdAt_ != null) { output.writeMessage(4, getCreatedAt()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_); } if (keyAlgorithm_ != yandex.cloud.api.iam.v1.KeyOuterClass.Key.Algorithm.ALGORITHM_UNSPECIFIED.getNumber()) { output.writeEnum(6, keyAlgorithm_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(publicKey_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, publicKey_); } 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 (subjectCase_ == 2) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, subject_); } if (subjectCase_ == 3) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, subject_); } if (createdAt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getCreatedAt()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); } if (keyAlgorithm_ != yandex.cloud.api.iam.v1.KeyOuterClass.Key.Algorithm.ALGORITHM_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(6, keyAlgorithm_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(publicKey_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, publicKey_); } 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.iam.v1.KeyOuterClass.Key)) { return super.equals(obj); } yandex.cloud.api.iam.v1.KeyOuterClass.Key other = (yandex.cloud.api.iam.v1.KeyOuterClass.Key) obj; if (!getId() .equals(other.getId())) return false; if (hasCreatedAt() != other.hasCreatedAt()) return false; if (hasCreatedAt()) { if (!getCreatedAt() .equals(other.getCreatedAt())) return false; } if (!getDescription() .equals(other.getDescription())) return false; if (keyAlgorithm_ != other.keyAlgorithm_) return false; if (!getPublicKey() .equals(other.getPublicKey())) return false; if (!getSubjectCase().equals(other.getSubjectCase())) return false; switch (subjectCase_) { case 2: if (!getUserAccountId() .equals(other.getUserAccountId())) return false; break; case 3: if (!getServiceAccountId() .equals(other.getServiceAccountId())) return false; break; case 0: default: } 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(); if (hasCreatedAt()) { hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; hash = (53 * hash) + getCreatedAt().hashCode(); } hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); hash = (37 * hash) + KEY_ALGORITHM_FIELD_NUMBER; hash = (53 * hash) + keyAlgorithm_; hash = (37 * hash) + PUBLIC_KEY_FIELD_NUMBER; hash = (53 * hash) + getPublicKey().hashCode(); switch (subjectCase_) { case 2: hash = (37 * hash) + USER_ACCOUNT_ID_FIELD_NUMBER; hash = (53 * hash) + getUserAccountId().hashCode(); break; case 3: hash = (37 * hash) + SERVICE_ACCOUNT_ID_FIELD_NUMBER; hash = (53 * hash) + getServiceAccountId().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.iam.v1.KeyOuterClass.Key parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iam.v1.KeyOuterClass.Key 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.iam.v1.KeyOuterClass.Key parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iam.v1.KeyOuterClass.Key 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.iam.v1.KeyOuterClass.Key parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iam.v1.KeyOuterClass.Key parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.iam.v1.KeyOuterClass.Key parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.iam.v1.KeyOuterClass.Key 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.iam.v1.KeyOuterClass.Key parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.iam.v1.KeyOuterClass.Key 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.iam.v1.KeyOuterClass.Key parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.iam.v1.KeyOuterClass.Key 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.iam.v1.KeyOuterClass.Key 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 Key resource. For more information, see [Authorized keys](/docs/iam/concepts/authorization/key).
     * 
* * Protobuf type {@code yandex.cloud.iam.v1.Key} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.iam.v1.Key) yandex.cloud.api.iam.v1.KeyOuterClass.KeyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.iam.v1.KeyOuterClass.internal_static_yandex_cloud_iam_v1_Key_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iam.v1.KeyOuterClass.internal_static_yandex_cloud_iam_v1_Key_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iam.v1.KeyOuterClass.Key.class, yandex.cloud.api.iam.v1.KeyOuterClass.Key.Builder.class); } // Construct using yandex.cloud.api.iam.v1.KeyOuterClass.Key.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_ = ""; if (createdAtBuilder_ == null) { createdAt_ = null; } else { createdAt_ = null; createdAtBuilder_ = null; } description_ = ""; keyAlgorithm_ = 0; publicKey_ = ""; subjectCase_ = 0; subject_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.iam.v1.KeyOuterClass.internal_static_yandex_cloud_iam_v1_Key_descriptor; } @java.lang.Override public yandex.cloud.api.iam.v1.KeyOuterClass.Key getDefaultInstanceForType() { return yandex.cloud.api.iam.v1.KeyOuterClass.Key.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.iam.v1.KeyOuterClass.Key build() { yandex.cloud.api.iam.v1.KeyOuterClass.Key result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.iam.v1.KeyOuterClass.Key buildPartial() { yandex.cloud.api.iam.v1.KeyOuterClass.Key result = new yandex.cloud.api.iam.v1.KeyOuterClass.Key(this); result.id_ = id_; if (subjectCase_ == 2) { result.subject_ = subject_; } if (subjectCase_ == 3) { result.subject_ = subject_; } if (createdAtBuilder_ == null) { result.createdAt_ = createdAt_; } else { result.createdAt_ = createdAtBuilder_.build(); } result.description_ = description_; result.keyAlgorithm_ = keyAlgorithm_; result.publicKey_ = publicKey_; result.subjectCase_ = subjectCase_; 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.iam.v1.KeyOuterClass.Key) { return mergeFrom((yandex.cloud.api.iam.v1.KeyOuterClass.Key)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.iam.v1.KeyOuterClass.Key other) { if (other == yandex.cloud.api.iam.v1.KeyOuterClass.Key.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (other.hasCreatedAt()) { mergeCreatedAt(other.getCreatedAt()); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } if (other.keyAlgorithm_ != 0) { setKeyAlgorithmValue(other.getKeyAlgorithmValue()); } if (!other.getPublicKey().isEmpty()) { publicKey_ = other.publicKey_; onChanged(); } switch (other.getSubjectCase()) { case USER_ACCOUNT_ID: { subjectCase_ = 2; subject_ = other.subject_; onChanged(); break; } case SERVICE_ACCOUNT_ID: { subjectCase_ = 3; subject_ = other.subject_; onChanged(); break; } case SUBJECT_NOT_SET: { break; } } 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.iam.v1.KeyOuterClass.Key parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.iam.v1.KeyOuterClass.Key) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int subjectCase_ = 0; private java.lang.Object subject_; public SubjectCase getSubjectCase() { return SubjectCase.forNumber( subjectCase_); } public Builder clearSubject() { subjectCase_ = 0; subject_ = null; onChanged(); return this; } private java.lang.Object id_ = ""; /** *
       * ID of the Key resource.
       * 
* * 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 Key resource.
       * 
* * 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 Key resource.
       * 
* * 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 Key resource.
       * 
* * string id = 1; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
       * ID of the Key resource.
       * 
* * 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; } /** *
       * ID of the user account that the Key resource belongs to.
       * 
* * string user_account_id = 2; * @return Whether the userAccountId field is set. */ @java.lang.Override public boolean hasUserAccountId() { return subjectCase_ == 2; } /** *
       * ID of the user account that the Key resource belongs to.
       * 
* * string user_account_id = 2; * @return The userAccountId. */ @java.lang.Override public java.lang.String getUserAccountId() { java.lang.Object ref = ""; if (subjectCase_ == 2) { ref = subject_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (subjectCase_ == 2) { subject_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the user account that the Key resource belongs to.
       * 
* * string user_account_id = 2; * @return The bytes for userAccountId. */ @java.lang.Override public com.google.protobuf.ByteString getUserAccountIdBytes() { java.lang.Object ref = ""; if (subjectCase_ == 2) { ref = subject_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (subjectCase_ == 2) { subject_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the user account that the Key resource belongs to.
       * 
* * string user_account_id = 2; * @param value The userAccountId to set. * @return This builder for chaining. */ public Builder setUserAccountId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } subjectCase_ = 2; subject_ = value; onChanged(); return this; } /** *
       * ID of the user account that the Key resource belongs to.
       * 
* * string user_account_id = 2; * @return This builder for chaining. */ public Builder clearUserAccountId() { if (subjectCase_ == 2) { subjectCase_ = 0; subject_ = null; onChanged(); } return this; } /** *
       * ID of the user account that the Key resource belongs to.
       * 
* * string user_account_id = 2; * @param value The bytes for userAccountId to set. * @return This builder for chaining. */ public Builder setUserAccountIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); subjectCase_ = 2; subject_ = value; onChanged(); return this; } /** *
       * ID of the service account that the Key resource belongs to.
       * 
* * string service_account_id = 3; * @return Whether the serviceAccountId field is set. */ @java.lang.Override public boolean hasServiceAccountId() { return subjectCase_ == 3; } /** *
       * ID of the service account that the Key resource belongs to.
       * 
* * string service_account_id = 3; * @return The serviceAccountId. */ @java.lang.Override public java.lang.String getServiceAccountId() { java.lang.Object ref = ""; if (subjectCase_ == 3) { ref = subject_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (subjectCase_ == 3) { subject_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the service account that the Key resource belongs to.
       * 
* * string service_account_id = 3; * @return The bytes for serviceAccountId. */ @java.lang.Override public com.google.protobuf.ByteString getServiceAccountIdBytes() { java.lang.Object ref = ""; if (subjectCase_ == 3) { ref = subject_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (subjectCase_ == 3) { subject_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the service account that the Key resource belongs to.
       * 
* * string service_account_id = 3; * @param value The serviceAccountId to set. * @return This builder for chaining. */ public Builder setServiceAccountId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } subjectCase_ = 3; subject_ = value; onChanged(); return this; } /** *
       * ID of the service account that the Key resource belongs to.
       * 
* * string service_account_id = 3; * @return This builder for chaining. */ public Builder clearServiceAccountId() { if (subjectCase_ == 3) { subjectCase_ = 0; subject_ = null; onChanged(); } return this; } /** *
       * ID of the service account that the Key resource belongs to.
       * 
* * string service_account_id = 3; * @param value The bytes for serviceAccountId to set. * @return This builder for chaining. */ public Builder setServiceAccountIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); subjectCase_ = 3; subject_ = 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 = 4; * @return Whether the createdAt field is set. */ public boolean hasCreatedAt() { return createdAtBuilder_ != null || createdAt_ != null; } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 4; * @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 = 4; */ 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 = 4; */ 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 = 4; */ 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 = 4; */ public Builder clearCreatedAt() { if (createdAtBuilder_ == null) { createdAt_ = null; onChanged(); } else { createdAt_ = null; createdAtBuilder_ = null; } return this; } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 4; */ public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { onChanged(); return getCreatedAtFieldBuilder().getBuilder(); } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 4; */ 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 = 4; */ 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 description_ = ""; /** *
       * Description of the Key resource. 0-256 characters long.
       * 
* * 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 Key resource. 0-256 characters long.
       * 
* * 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 Key resource. 0-256 characters long.
       * 
* * 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 Key resource. 0-256 characters long.
       * 
* * string description = 5; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** *
       * Description of the Key resource. 0-256 characters long.
       * 
* * 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 keyAlgorithm_ = 0; /** *
       * An algorithm used to generate a key pair of the Key resource.
       * 
* * .yandex.cloud.iam.v1.Key.Algorithm key_algorithm = 6; * @return The enum numeric value on the wire for keyAlgorithm. */ @java.lang.Override public int getKeyAlgorithmValue() { return keyAlgorithm_; } /** *
       * An algorithm used to generate a key pair of the Key resource.
       * 
* * .yandex.cloud.iam.v1.Key.Algorithm key_algorithm = 6; * @param value The enum numeric value on the wire for keyAlgorithm to set. * @return This builder for chaining. */ public Builder setKeyAlgorithmValue(int value) { keyAlgorithm_ = value; onChanged(); return this; } /** *
       * An algorithm used to generate a key pair of the Key resource.
       * 
* * .yandex.cloud.iam.v1.Key.Algorithm key_algorithm = 6; * @return The keyAlgorithm. */ @java.lang.Override public yandex.cloud.api.iam.v1.KeyOuterClass.Key.Algorithm getKeyAlgorithm() { @SuppressWarnings("deprecation") yandex.cloud.api.iam.v1.KeyOuterClass.Key.Algorithm result = yandex.cloud.api.iam.v1.KeyOuterClass.Key.Algorithm.valueOf(keyAlgorithm_); return result == null ? yandex.cloud.api.iam.v1.KeyOuterClass.Key.Algorithm.UNRECOGNIZED : result; } /** *
       * An algorithm used to generate a key pair of the Key resource.
       * 
* * .yandex.cloud.iam.v1.Key.Algorithm key_algorithm = 6; * @param value The keyAlgorithm to set. * @return This builder for chaining. */ public Builder setKeyAlgorithm(yandex.cloud.api.iam.v1.KeyOuterClass.Key.Algorithm value) { if (value == null) { throw new NullPointerException(); } keyAlgorithm_ = value.getNumber(); onChanged(); return this; } /** *
       * An algorithm used to generate a key pair of the Key resource.
       * 
* * .yandex.cloud.iam.v1.Key.Algorithm key_algorithm = 6; * @return This builder for chaining. */ public Builder clearKeyAlgorithm() { keyAlgorithm_ = 0; onChanged(); return this; } private java.lang.Object publicKey_ = ""; /** *
       * A public key of the Key resource.
       * 
* * string public_key = 7; * @return The publicKey. */ public java.lang.String getPublicKey() { java.lang.Object ref = publicKey_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); publicKey_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * A public key of the Key resource.
       * 
* * string public_key = 7; * @return The bytes for publicKey. */ public com.google.protobuf.ByteString getPublicKeyBytes() { java.lang.Object ref = publicKey_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); publicKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * A public key of the Key resource.
       * 
* * string public_key = 7; * @param value The publicKey to set. * @return This builder for chaining. */ public Builder setPublicKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } publicKey_ = value; onChanged(); return this; } /** *
       * A public key of the Key resource.
       * 
* * string public_key = 7; * @return This builder for chaining. */ public Builder clearPublicKey() { publicKey_ = getDefaultInstance().getPublicKey(); onChanged(); return this; } /** *
       * A public key of the Key resource.
       * 
* * string public_key = 7; * @param value The bytes for publicKey to set. * @return This builder for chaining. */ public Builder setPublicKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); publicKey_ = 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.iam.v1.Key) } // @@protoc_insertion_point(class_scope:yandex.cloud.iam.v1.Key) private static final yandex.cloud.api.iam.v1.KeyOuterClass.Key DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.iam.v1.KeyOuterClass.Key(); } public static yandex.cloud.api.iam.v1.KeyOuterClass.Key getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Key parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Key(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.iam.v1.KeyOuterClass.Key getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_iam_v1_Key_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_iam_v1_Key_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\035yandex/cloud/iam/v1/key.proto\022\023yandex." + "cloud.iam.v1\032\037google/protobuf/timestamp." + "proto\"\255\002\n\003Key\022\n\n\002id\030\001 \001(\t\022\031\n\017user_accoun" + "t_id\030\002 \001(\tH\000\022\034\n\022service_account_id\030\003 \001(\t" + "H\000\022.\n\ncreated_at\030\004 \001(\0132\032.google.protobuf" + ".Timestamp\022\023\n\013description\030\005 \001(\t\0229\n\rkey_a" + "lgorithm\030\006 \001(\0162\".yandex.cloud.iam.v1.Key" + ".Algorithm\022\022\n\npublic_key\030\007 \001(\t\"B\n\tAlgori" + "thm\022\031\n\025ALGORITHM_UNSPECIFIED\020\000\022\014\n\010RSA_20" + "48\020\001\022\014\n\010RSA_4096\020\002B\t\n\007subjectBV\n\027yandex." + "cloud.api.iam.v1Z;github.com/yandex-clou" + "d/go-genproto/yandex/cloud/iam/v1;iamb\006p" + "roto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_yandex_cloud_iam_v1_Key_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_yandex_cloud_iam_v1_Key_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_iam_v1_Key_descriptor, new java.lang.String[] { "Id", "UserAccountId", "ServiceAccountId", "CreatedAt", "Description", "KeyAlgorithm", "PublicKey", "Subject", }); com.google.protobuf.TimestampProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy