yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: yandex/cloud/kms/v1/asymmetricencryption/asymmetric_encryption_crypto_service.proto
package yandex.cloud.api.kms.v1;
public final class AsymmetricEncryptionCryptoServiceOuterClass {
private AsymmetricEncryptionCryptoServiceOuterClass() {}
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 AsymmetricDecryptRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.kms.v1.asymmetricencryption.AsymmetricDecryptRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the asymmetric KMS key to use for decryption.
*
*
* string key_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The keyId.
*/
java.lang.String getKeyId();
/**
*
* ID of the asymmetric KMS key to use for decryption.
*
*
* string key_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for keyId.
*/
com.google.protobuf.ByteString
getKeyIdBytes();
/**
*
* Ciphertext to be decrypted.
* Should be encoded with base64.
*
*
* bytes ciphertext = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=32768"];
* @return The ciphertext.
*/
com.google.protobuf.ByteString getCiphertext();
}
/**
* Protobuf type {@code yandex.cloud.kms.v1.asymmetricencryption.AsymmetricDecryptRequest}
*/
public static final class AsymmetricDecryptRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.kms.v1.asymmetricencryption.AsymmetricDecryptRequest)
AsymmetricDecryptRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use AsymmetricDecryptRequest.newBuilder() to construct.
private AsymmetricDecryptRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AsymmetricDecryptRequest() {
keyId_ = "";
ciphertext_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AsymmetricDecryptRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AsymmetricDecryptRequest(
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();
keyId_ = s;
break;
}
case 18: {
ciphertext_ = input.readBytes();
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.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.internal_static_yandex_cloud_kms_v1_asymmetricencryption_AsymmetricDecryptRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.internal_static_yandex_cloud_kms_v1_asymmetricencryption_AsymmetricDecryptRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptRequest.class, yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptRequest.Builder.class);
}
public static final int KEY_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object keyId_;
/**
*
* ID of the asymmetric KMS key to use for decryption.
*
*
* string key_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The keyId.
*/
@java.lang.Override
public java.lang.String getKeyId() {
java.lang.Object ref = keyId_;
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();
keyId_ = s;
return s;
}
}
/**
*
* ID of the asymmetric KMS key to use for decryption.
*
*
* string key_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for keyId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getKeyIdBytes() {
java.lang.Object ref = keyId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
keyId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CIPHERTEXT_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString ciphertext_;
/**
*
* Ciphertext to be decrypted.
* Should be encoded with base64.
*
*
* bytes ciphertext = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=32768"];
* @return The ciphertext.
*/
@java.lang.Override
public com.google.protobuf.ByteString getCiphertext() {
return ciphertext_;
}
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(keyId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, keyId_);
}
if (!ciphertext_.isEmpty()) {
output.writeBytes(2, ciphertext_);
}
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(keyId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, keyId_);
}
if (!ciphertext_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, ciphertext_);
}
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.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptRequest)) {
return super.equals(obj);
}
yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptRequest other = (yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptRequest) obj;
if (!getKeyId()
.equals(other.getKeyId())) return false;
if (!getCiphertext()
.equals(other.getCiphertext())) 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) + KEY_ID_FIELD_NUMBER;
hash = (53 * hash) + getKeyId().hashCode();
hash = (37 * hash) + CIPHERTEXT_FIELD_NUMBER;
hash = (53 * hash) + getCiphertext().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptRequest 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.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptRequest 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.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptRequest 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.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptRequest 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.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptRequest 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.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptRequest 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.kms.v1.asymmetricencryption.AsymmetricDecryptRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.kms.v1.asymmetricencryption.AsymmetricDecryptRequest)
yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.internal_static_yandex_cloud_kms_v1_asymmetricencryption_AsymmetricDecryptRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.internal_static_yandex_cloud_kms_v1_asymmetricencryption_AsymmetricDecryptRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptRequest.class, yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptRequest.Builder.class);
}
// Construct using yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptRequest.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();
keyId_ = "";
ciphertext_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.internal_static_yandex_cloud_kms_v1_asymmetricencryption_AsymmetricDecryptRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptRequest getDefaultInstanceForType() {
return yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptRequest build() {
yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptRequest buildPartial() {
yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptRequest result = new yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptRequest(this);
result.keyId_ = keyId_;
result.ciphertext_ = ciphertext_;
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.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptRequest) {
return mergeFrom((yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptRequest other) {
if (other == yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptRequest.getDefaultInstance()) return this;
if (!other.getKeyId().isEmpty()) {
keyId_ = other.keyId_;
onChanged();
}
if (other.getCiphertext() != com.google.protobuf.ByteString.EMPTY) {
setCiphertext(other.getCiphertext());
}
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.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object keyId_ = "";
/**
*
* ID of the asymmetric KMS key to use for decryption.
*
*
* string key_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The keyId.
*/
public java.lang.String getKeyId() {
java.lang.Object ref = keyId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
keyId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the asymmetric KMS key to use for decryption.
*
*
* string key_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for keyId.
*/
public com.google.protobuf.ByteString
getKeyIdBytes() {
java.lang.Object ref = keyId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
keyId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the asymmetric KMS key to use for decryption.
*
*
* string key_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The keyId to set.
* @return This builder for chaining.
*/
public Builder setKeyId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
keyId_ = value;
onChanged();
return this;
}
/**
*
* ID of the asymmetric KMS key to use for decryption.
*
*
* string key_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearKeyId() {
keyId_ = getDefaultInstance().getKeyId();
onChanged();
return this;
}
/**
*
* ID of the asymmetric KMS key to use for decryption.
*
*
* string key_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for keyId to set.
* @return This builder for chaining.
*/
public Builder setKeyIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
keyId_ = value;
onChanged();
return this;
}
private com.google.protobuf.ByteString ciphertext_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Ciphertext to be decrypted.
* Should be encoded with base64.
*
*
* bytes ciphertext = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=32768"];
* @return The ciphertext.
*/
@java.lang.Override
public com.google.protobuf.ByteString getCiphertext() {
return ciphertext_;
}
/**
*
* Ciphertext to be decrypted.
* Should be encoded with base64.
*
*
* bytes ciphertext = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=32768"];
* @param value The ciphertext to set.
* @return This builder for chaining.
*/
public Builder setCiphertext(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ciphertext_ = value;
onChanged();
return this;
}
/**
*
* Ciphertext to be decrypted.
* Should be encoded with base64.
*
*
* bytes ciphertext = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=32768"];
* @return This builder for chaining.
*/
public Builder clearCiphertext() {
ciphertext_ = getDefaultInstance().getCiphertext();
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.kms.v1.asymmetricencryption.AsymmetricDecryptRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.kms.v1.asymmetricencryption.AsymmetricDecryptRequest)
private static final yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptRequest();
}
public static yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AsymmetricDecryptRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AsymmetricDecryptRequest(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.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AsymmetricDecryptResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.kms.v1.asymmetricencryption.AsymmetricDecryptResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the asymmetric KMS key that was used for decryption.
*
*
* string key_id = 1;
* @return The keyId.
*/
java.lang.String getKeyId();
/**
*
* ID of the asymmetric KMS key that was used for decryption.
*
*
* string key_id = 1;
* @return The bytes for keyId.
*/
com.google.protobuf.ByteString
getKeyIdBytes();
/**
*
* Decrypted plaintext.
*
*
* bytes plaintext = 2;
* @return The plaintext.
*/
com.google.protobuf.ByteString getPlaintext();
}
/**
* Protobuf type {@code yandex.cloud.kms.v1.asymmetricencryption.AsymmetricDecryptResponse}
*/
public static final class AsymmetricDecryptResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.kms.v1.asymmetricencryption.AsymmetricDecryptResponse)
AsymmetricDecryptResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use AsymmetricDecryptResponse.newBuilder() to construct.
private AsymmetricDecryptResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AsymmetricDecryptResponse() {
keyId_ = "";
plaintext_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AsymmetricDecryptResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AsymmetricDecryptResponse(
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();
keyId_ = s;
break;
}
case 18: {
plaintext_ = input.readBytes();
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.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.internal_static_yandex_cloud_kms_v1_asymmetricencryption_AsymmetricDecryptResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.internal_static_yandex_cloud_kms_v1_asymmetricencryption_AsymmetricDecryptResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptResponse.class, yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptResponse.Builder.class);
}
public static final int KEY_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object keyId_;
/**
*
* ID of the asymmetric KMS key that was used for decryption.
*
*
* string key_id = 1;
* @return The keyId.
*/
@java.lang.Override
public java.lang.String getKeyId() {
java.lang.Object ref = keyId_;
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();
keyId_ = s;
return s;
}
}
/**
*
* ID of the asymmetric KMS key that was used for decryption.
*
*
* string key_id = 1;
* @return The bytes for keyId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getKeyIdBytes() {
java.lang.Object ref = keyId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
keyId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PLAINTEXT_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString plaintext_;
/**
*
* Decrypted plaintext.
*
*
* bytes plaintext = 2;
* @return The plaintext.
*/
@java.lang.Override
public com.google.protobuf.ByteString getPlaintext() {
return plaintext_;
}
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(keyId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, keyId_);
}
if (!plaintext_.isEmpty()) {
output.writeBytes(2, plaintext_);
}
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(keyId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, keyId_);
}
if (!plaintext_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, plaintext_);
}
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.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptResponse)) {
return super.equals(obj);
}
yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptResponse other = (yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptResponse) obj;
if (!getKeyId()
.equals(other.getKeyId())) return false;
if (!getPlaintext()
.equals(other.getPlaintext())) 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) + KEY_ID_FIELD_NUMBER;
hash = (53 * hash) + getKeyId().hashCode();
hash = (37 * hash) + PLAINTEXT_FIELD_NUMBER;
hash = (53 * hash) + getPlaintext().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptResponse 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.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptResponse 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.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptResponse 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.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptResponse 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.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptResponse 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.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptResponse 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.kms.v1.asymmetricencryption.AsymmetricDecryptResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.kms.v1.asymmetricencryption.AsymmetricDecryptResponse)
yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.internal_static_yandex_cloud_kms_v1_asymmetricencryption_AsymmetricDecryptResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.internal_static_yandex_cloud_kms_v1_asymmetricencryption_AsymmetricDecryptResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptResponse.class, yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptResponse.Builder.class);
}
// Construct using yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptResponse.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();
keyId_ = "";
plaintext_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.internal_static_yandex_cloud_kms_v1_asymmetricencryption_AsymmetricDecryptResponse_descriptor;
}
@java.lang.Override
public yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptResponse getDefaultInstanceForType() {
return yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptResponse.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptResponse build() {
yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptResponse buildPartial() {
yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptResponse result = new yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptResponse(this);
result.keyId_ = keyId_;
result.plaintext_ = plaintext_;
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.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptResponse) {
return mergeFrom((yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptResponse other) {
if (other == yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptResponse.getDefaultInstance()) return this;
if (!other.getKeyId().isEmpty()) {
keyId_ = other.keyId_;
onChanged();
}
if (other.getPlaintext() != com.google.protobuf.ByteString.EMPTY) {
setPlaintext(other.getPlaintext());
}
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.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object keyId_ = "";
/**
*
* ID of the asymmetric KMS key that was used for decryption.
*
*
* string key_id = 1;
* @return The keyId.
*/
public java.lang.String getKeyId() {
java.lang.Object ref = keyId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
keyId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the asymmetric KMS key that was used for decryption.
*
*
* string key_id = 1;
* @return The bytes for keyId.
*/
public com.google.protobuf.ByteString
getKeyIdBytes() {
java.lang.Object ref = keyId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
keyId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the asymmetric KMS key that was used for decryption.
*
*
* string key_id = 1;
* @param value The keyId to set.
* @return This builder for chaining.
*/
public Builder setKeyId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
keyId_ = value;
onChanged();
return this;
}
/**
*
* ID of the asymmetric KMS key that was used for decryption.
*
*
* string key_id = 1;
* @return This builder for chaining.
*/
public Builder clearKeyId() {
keyId_ = getDefaultInstance().getKeyId();
onChanged();
return this;
}
/**
*
* ID of the asymmetric KMS key that was used for decryption.
*
*
* string key_id = 1;
* @param value The bytes for keyId to set.
* @return This builder for chaining.
*/
public Builder setKeyIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
keyId_ = value;
onChanged();
return this;
}
private com.google.protobuf.ByteString plaintext_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Decrypted plaintext.
*
*
* bytes plaintext = 2;
* @return The plaintext.
*/
@java.lang.Override
public com.google.protobuf.ByteString getPlaintext() {
return plaintext_;
}
/**
*
* Decrypted plaintext.
*
*
* bytes plaintext = 2;
* @param value The plaintext to set.
* @return This builder for chaining.
*/
public Builder setPlaintext(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
plaintext_ = value;
onChanged();
return this;
}
/**
*
* Decrypted plaintext.
*
*
* bytes plaintext = 2;
* @return This builder for chaining.
*/
public Builder clearPlaintext() {
plaintext_ = getDefaultInstance().getPlaintext();
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.kms.v1.asymmetricencryption.AsymmetricDecryptResponse)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.kms.v1.asymmetricencryption.AsymmetricDecryptResponse)
private static final yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptResponse();
}
public static yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AsymmetricDecryptResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AsymmetricDecryptResponse(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.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricDecryptResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AsymmetricGetPublicKeyRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.kms.v1.asymmetricencryption.AsymmetricGetPublicKeyRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the asymmetric KMS key to be used for public key retrieval.
*
*
* string key_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The keyId.
*/
java.lang.String getKeyId();
/**
*
* ID of the asymmetric KMS key to be used for public key retrieval.
*
*
* string key_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for keyId.
*/
com.google.protobuf.ByteString
getKeyIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.kms.v1.asymmetricencryption.AsymmetricGetPublicKeyRequest}
*/
public static final class AsymmetricGetPublicKeyRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.kms.v1.asymmetricencryption.AsymmetricGetPublicKeyRequest)
AsymmetricGetPublicKeyRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use AsymmetricGetPublicKeyRequest.newBuilder() to construct.
private AsymmetricGetPublicKeyRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AsymmetricGetPublicKeyRequest() {
keyId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AsymmetricGetPublicKeyRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AsymmetricGetPublicKeyRequest(
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();
keyId_ = 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.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.internal_static_yandex_cloud_kms_v1_asymmetricencryption_AsymmetricGetPublicKeyRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.internal_static_yandex_cloud_kms_v1_asymmetricencryption_AsymmetricGetPublicKeyRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyRequest.class, yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyRequest.Builder.class);
}
public static final int KEY_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object keyId_;
/**
*
* ID of the asymmetric KMS key to be used for public key retrieval.
*
*
* string key_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The keyId.
*/
@java.lang.Override
public java.lang.String getKeyId() {
java.lang.Object ref = keyId_;
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();
keyId_ = s;
return s;
}
}
/**
*
* ID of the asymmetric KMS key to be used for public key retrieval.
*
*
* string key_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for keyId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getKeyIdBytes() {
java.lang.Object ref = keyId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
keyId_ = 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(keyId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, keyId_);
}
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(keyId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, keyId_);
}
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.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyRequest)) {
return super.equals(obj);
}
yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyRequest other = (yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyRequest) obj;
if (!getKeyId()
.equals(other.getKeyId())) 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) + KEY_ID_FIELD_NUMBER;
hash = (53 * hash) + getKeyId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyRequest 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.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyRequest 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.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyRequest 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.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyRequest 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.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyRequest 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.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyRequest 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.kms.v1.asymmetricencryption.AsymmetricGetPublicKeyRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.kms.v1.asymmetricencryption.AsymmetricGetPublicKeyRequest)
yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.internal_static_yandex_cloud_kms_v1_asymmetricencryption_AsymmetricGetPublicKeyRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.internal_static_yandex_cloud_kms_v1_asymmetricencryption_AsymmetricGetPublicKeyRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyRequest.class, yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyRequest.Builder.class);
}
// Construct using yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyRequest.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();
keyId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.internal_static_yandex_cloud_kms_v1_asymmetricencryption_AsymmetricGetPublicKeyRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyRequest getDefaultInstanceForType() {
return yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyRequest build() {
yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyRequest buildPartial() {
yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyRequest result = new yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyRequest(this);
result.keyId_ = keyId_;
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.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyRequest) {
return mergeFrom((yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyRequest other) {
if (other == yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyRequest.getDefaultInstance()) return this;
if (!other.getKeyId().isEmpty()) {
keyId_ = other.keyId_;
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.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object keyId_ = "";
/**
*
* ID of the asymmetric KMS key to be used for public key retrieval.
*
*
* string key_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The keyId.
*/
public java.lang.String getKeyId() {
java.lang.Object ref = keyId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
keyId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the asymmetric KMS key to be used for public key retrieval.
*
*
* string key_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for keyId.
*/
public com.google.protobuf.ByteString
getKeyIdBytes() {
java.lang.Object ref = keyId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
keyId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the asymmetric KMS key to be used for public key retrieval.
*
*
* string key_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The keyId to set.
* @return This builder for chaining.
*/
public Builder setKeyId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
keyId_ = value;
onChanged();
return this;
}
/**
*
* ID of the asymmetric KMS key to be used for public key retrieval.
*
*
* string key_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearKeyId() {
keyId_ = getDefaultInstance().getKeyId();
onChanged();
return this;
}
/**
*
* ID of the asymmetric KMS key to be used for public key retrieval.
*
*
* string key_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for keyId to set.
* @return This builder for chaining.
*/
public Builder setKeyIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
keyId_ = 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.kms.v1.asymmetricencryption.AsymmetricGetPublicKeyRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.kms.v1.asymmetricencryption.AsymmetricGetPublicKeyRequest)
private static final yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyRequest();
}
public static yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AsymmetricGetPublicKeyRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AsymmetricGetPublicKeyRequest(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.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AsymmetricGetPublicKeyResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.kms.v1.asymmetricencryption.AsymmetricGetPublicKeyResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the asymmetric KMS key to get public key of.
*
*
* string key_id = 1;
* @return The keyId.
*/
java.lang.String getKeyId();
/**
*
* ID of the asymmetric KMS key to get public key of.
*
*
* string key_id = 1;
* @return The bytes for keyId.
*/
com.google.protobuf.ByteString
getKeyIdBytes();
/**
*
* Public key value.
* The value is a PEM-encoded X.509 public key, also known as SubjectPublicKeyInfo (SPKI),
* as defined in RFC 5280.
*
*
* string public_key = 2;
* @return The publicKey.
*/
java.lang.String getPublicKey();
/**
*
* Public key value.
* The value is a PEM-encoded X.509 public key, also known as SubjectPublicKeyInfo (SPKI),
* as defined in RFC 5280.
*
*
* string public_key = 2;
* @return The bytes for publicKey.
*/
com.google.protobuf.ByteString
getPublicKeyBytes();
}
/**
* Protobuf type {@code yandex.cloud.kms.v1.asymmetricencryption.AsymmetricGetPublicKeyResponse}
*/
public static final class AsymmetricGetPublicKeyResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.kms.v1.asymmetricencryption.AsymmetricGetPublicKeyResponse)
AsymmetricGetPublicKeyResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use AsymmetricGetPublicKeyResponse.newBuilder() to construct.
private AsymmetricGetPublicKeyResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AsymmetricGetPublicKeyResponse() {
keyId_ = "";
publicKey_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AsymmetricGetPublicKeyResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AsymmetricGetPublicKeyResponse(
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();
keyId_ = s;
break;
}
case 18: {
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.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.internal_static_yandex_cloud_kms_v1_asymmetricencryption_AsymmetricGetPublicKeyResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.internal_static_yandex_cloud_kms_v1_asymmetricencryption_AsymmetricGetPublicKeyResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyResponse.class, yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyResponse.Builder.class);
}
public static final int KEY_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object keyId_;
/**
*
* ID of the asymmetric KMS key to get public key of.
*
*
* string key_id = 1;
* @return The keyId.
*/
@java.lang.Override
public java.lang.String getKeyId() {
java.lang.Object ref = keyId_;
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();
keyId_ = s;
return s;
}
}
/**
*
* ID of the asymmetric KMS key to get public key of.
*
*
* string key_id = 1;
* @return The bytes for keyId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getKeyIdBytes() {
java.lang.Object ref = keyId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
keyId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PUBLIC_KEY_FIELD_NUMBER = 2;
private volatile java.lang.Object publicKey_;
/**
*
* Public key value.
* The value is a PEM-encoded X.509 public key, also known as SubjectPublicKeyInfo (SPKI),
* as defined in RFC 5280.
*
*
* string public_key = 2;
* @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;
}
}
/**
*
* Public key value.
* The value is a PEM-encoded X.509 public key, also known as SubjectPublicKeyInfo (SPKI),
* as defined in RFC 5280.
*
*
* string public_key = 2;
* @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(keyId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, keyId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(publicKey_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, 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(keyId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, keyId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(publicKey_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, 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.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyResponse)) {
return super.equals(obj);
}
yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyResponse other = (yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyResponse) obj;
if (!getKeyId()
.equals(other.getKeyId())) return false;
if (!getPublicKey()
.equals(other.getPublicKey())) 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) + KEY_ID_FIELD_NUMBER;
hash = (53 * hash) + getKeyId().hashCode();
hash = (37 * hash) + PUBLIC_KEY_FIELD_NUMBER;
hash = (53 * hash) + getPublicKey().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyResponse 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.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyResponse 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.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyResponse 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.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyResponse 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.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyResponse 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.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyResponse 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.kms.v1.asymmetricencryption.AsymmetricGetPublicKeyResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.kms.v1.asymmetricencryption.AsymmetricGetPublicKeyResponse)
yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.internal_static_yandex_cloud_kms_v1_asymmetricencryption_AsymmetricGetPublicKeyResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.internal_static_yandex_cloud_kms_v1_asymmetricencryption_AsymmetricGetPublicKeyResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyResponse.class, yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyResponse.Builder.class);
}
// Construct using yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyResponse.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();
keyId_ = "";
publicKey_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.internal_static_yandex_cloud_kms_v1_asymmetricencryption_AsymmetricGetPublicKeyResponse_descriptor;
}
@java.lang.Override
public yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyResponse getDefaultInstanceForType() {
return yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyResponse.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyResponse build() {
yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyResponse buildPartial() {
yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyResponse result = new yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyResponse(this);
result.keyId_ = keyId_;
result.publicKey_ = publicKey_;
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.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyResponse) {
return mergeFrom((yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyResponse other) {
if (other == yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyResponse.getDefaultInstance()) return this;
if (!other.getKeyId().isEmpty()) {
keyId_ = other.keyId_;
onChanged();
}
if (!other.getPublicKey().isEmpty()) {
publicKey_ = other.publicKey_;
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.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object keyId_ = "";
/**
*
* ID of the asymmetric KMS key to get public key of.
*
*
* string key_id = 1;
* @return The keyId.
*/
public java.lang.String getKeyId() {
java.lang.Object ref = keyId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
keyId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the asymmetric KMS key to get public key of.
*
*
* string key_id = 1;
* @return The bytes for keyId.
*/
public com.google.protobuf.ByteString
getKeyIdBytes() {
java.lang.Object ref = keyId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
keyId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the asymmetric KMS key to get public key of.
*
*
* string key_id = 1;
* @param value The keyId to set.
* @return This builder for chaining.
*/
public Builder setKeyId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
keyId_ = value;
onChanged();
return this;
}
/**
*
* ID of the asymmetric KMS key to get public key of.
*
*
* string key_id = 1;
* @return This builder for chaining.
*/
public Builder clearKeyId() {
keyId_ = getDefaultInstance().getKeyId();
onChanged();
return this;
}
/**
*
* ID of the asymmetric KMS key to get public key of.
*
*
* string key_id = 1;
* @param value The bytes for keyId to set.
* @return This builder for chaining.
*/
public Builder setKeyIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
keyId_ = value;
onChanged();
return this;
}
private java.lang.Object publicKey_ = "";
/**
*
* Public key value.
* The value is a PEM-encoded X.509 public key, also known as SubjectPublicKeyInfo (SPKI),
* as defined in RFC 5280.
*
*
* string public_key = 2;
* @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;
}
}
/**
*
* Public key value.
* The value is a PEM-encoded X.509 public key, also known as SubjectPublicKeyInfo (SPKI),
* as defined in RFC 5280.
*
*
* string public_key = 2;
* @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;
}
}
/**
*
* Public key value.
* The value is a PEM-encoded X.509 public key, also known as SubjectPublicKeyInfo (SPKI),
* as defined in RFC 5280.
*
*
* string public_key = 2;
* @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;
}
/**
*
* Public key value.
* The value is a PEM-encoded X.509 public key, also known as SubjectPublicKeyInfo (SPKI),
* as defined in RFC 5280.
*
*
* string public_key = 2;
* @return This builder for chaining.
*/
public Builder clearPublicKey() {
publicKey_ = getDefaultInstance().getPublicKey();
onChanged();
return this;
}
/**
*
* Public key value.
* The value is a PEM-encoded X.509 public key, also known as SubjectPublicKeyInfo (SPKI),
* as defined in RFC 5280.
*
*
* string public_key = 2;
* @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.kms.v1.asymmetricencryption.AsymmetricGetPublicKeyResponse)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.kms.v1.asymmetricencryption.AsymmetricGetPublicKeyResponse)
private static final yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyResponse();
}
public static yandex.cloud.api.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AsymmetricGetPublicKeyResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AsymmetricGetPublicKeyResponse(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.kms.v1.AsymmetricEncryptionCryptoServiceOuterClass.AsymmetricGetPublicKeyResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_kms_v1_asymmetricencryption_AsymmetricDecryptRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_kms_v1_asymmetricencryption_AsymmetricDecryptRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_kms_v1_asymmetricencryption_AsymmetricDecryptResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_kms_v1_asymmetricencryption_AsymmetricDecryptResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_kms_v1_asymmetricencryption_AsymmetricGetPublicKeyRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_kms_v1_asymmetricencryption_AsymmetricGetPublicKeyRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_kms_v1_asymmetricencryption_AsymmetricGetPublicKeyResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_kms_v1_asymmetricencryption_AsymmetricGetPublicKeyResponse_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\nSyandex/cloud/kms/v1/asymmetricencrypti" +
"on/asymmetric_encryption_crypto_service." +
"proto\022(yandex.cloud.kms.v1.asymmetricenc" +
"ryption\032\034google/api/annotations.proto\032\035y" +
"andex/cloud/validation.proto\"]\n\030Asymmetr" +
"icDecryptRequest\022\034\n\006key_id\030\001 \001(\tB\014\350\3071\001\212\310" +
"1\004<=50\022#\n\nciphertext\030\002 \001(\014B\017\350\3071\001\212\3101\007<=32" +
"768\">\n\031AsymmetricDecryptResponse\022\016\n\006key_" +
"id\030\001 \001(\t\022\021\n\tplaintext\030\002 \001(\014\"=\n\035Asymmetri" +
"cGetPublicKeyRequest\022\034\n\006key_id\030\001 \001(\tB\014\350\307" +
"1\001\212\3101\004<=50\"D\n\036AsymmetricGetPublicKeyResp" +
"onse\022\016\n\006key_id\030\001 \001(\t\022\022\n\npublic_key\030\002 \001(\t" +
"2\327\003\n!AsymmetricEncryptionCryptoService\022\320" +
"\001\n\007Decrypt\022B.yandex.cloud.kms.v1.asymmet" +
"ricencryption.AsymmetricDecryptRequest\032C" +
".yandex.cloud.kms.v1.asymmetricencryptio" +
"n.AsymmetricDecryptResponse\"<\202\323\344\223\0026\"1/km" +
"s/v1/asymmetricEncryptionKeys/{key_id}:d" +
"ecrypt:\001*\022\336\001\n\014GetPublicKey\022G.yandex.clou" +
"d.kms.v1.asymmetricencryption.Asymmetric" +
"GetPublicKeyRequest\032H.yandex.cloud.kms.v" +
"1.asymmetricencryption.AsymmetricGetPubl" +
"icKeyResponse\";\202\323\344\223\0025\0223/kms/v1/asymmetri" +
"cEncryptionKeys/{key_id}/publicKeyBk\n\027ya" +
"ndex.cloud.api.kms.v1ZPgithub.com/yandex" +
"-cloud/go-genproto/yandex/cloud/kms/v1/a" +
"symmetricencryption;kmsb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.api.AnnotationsProto.getDescriptor(),
yandex.cloud.api.Validation.getDescriptor(),
});
internal_static_yandex_cloud_kms_v1_asymmetricencryption_AsymmetricDecryptRequest_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_yandex_cloud_kms_v1_asymmetricencryption_AsymmetricDecryptRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_kms_v1_asymmetricencryption_AsymmetricDecryptRequest_descriptor,
new java.lang.String[] { "KeyId", "Ciphertext", });
internal_static_yandex_cloud_kms_v1_asymmetricencryption_AsymmetricDecryptResponse_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_yandex_cloud_kms_v1_asymmetricencryption_AsymmetricDecryptResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_kms_v1_asymmetricencryption_AsymmetricDecryptResponse_descriptor,
new java.lang.String[] { "KeyId", "Plaintext", });
internal_static_yandex_cloud_kms_v1_asymmetricencryption_AsymmetricGetPublicKeyRequest_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_yandex_cloud_kms_v1_asymmetricencryption_AsymmetricGetPublicKeyRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_kms_v1_asymmetricencryption_AsymmetricGetPublicKeyRequest_descriptor,
new java.lang.String[] { "KeyId", });
internal_static_yandex_cloud_kms_v1_asymmetricencryption_AsymmetricGetPublicKeyResponse_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_yandex_cloud_kms_v1_asymmetricencryption_AsymmetricGetPublicKeyResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_kms_v1_asymmetricencryption_AsymmetricGetPublicKeyResponse_descriptor,
new java.lang.String[] { "KeyId", "PublicKey", });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.api.AnnotationsProto.http);
registry.add(yandex.cloud.api.Validation.length);
registry.add(yandex.cloud.api.Validation.required);
com.google.protobuf.Descriptors.FileDescriptor
.internalUpdateFileDescriptor(descriptor, registry);
com.google.api.AnnotationsProto.getDescriptor();
yandex.cloud.api.Validation.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy