@java.lang.Override public com.google.cloud.kms.v1.EncryptRequest getDefaultInstanceForType() { return com.google.cloud.kms.v1.EncryptRequest.getDefaultInstance(); }
/** * * * <pre> * Required. The resource name of the [CryptoKey][google.cloud.kms.v1.CryptoKey] or [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] * to use for encryption. * If a [CryptoKey][google.cloud.kms.v1.CryptoKey] is specified, the server will use its * [primary version][google.cloud.kms.v1.CryptoKey.primary]. * </pre> * * <code>string name = 1;</code> */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /**
/** * * * <pre> * Required. The data to encrypt. Must be no larger than 64KiB. * The maximum size depends on the key version's * [protection_level][google.cloud.kms.v1.CryptoKeyVersionTemplate.protection_level]. For * [SOFTWARE][google.cloud.kms.v1.ProtectionLevel.SOFTWARE] keys, the plaintext must be no larger * than 64KiB. For [HSM][google.cloud.kms.v1.ProtectionLevel.HSM] keys, the combined length of the * plaintext and additional_authenticated_data fields must be no larger than * 8KiB. * </pre> * * <code>bytes plaintext = 2;</code> */ public Builder clearPlaintext() { plaintext_ = getDefaultInstance().getPlaintext(); onChanged(); return this; }
/** * * * <pre> * Optional data that, if specified, must also be provided during decryption * through [DecryptRequest.additional_authenticated_data][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data]. * The maximum size depends on the key version's * [protection_level][google.cloud.kms.v1.CryptoKeyVersionTemplate.protection_level]. For * [SOFTWARE][google.cloud.kms.v1.ProtectionLevel.SOFTWARE] keys, the AAD must be no larger than * 64KiB. For [HSM][google.cloud.kms.v1.ProtectionLevel.HSM] keys, the combined length of the * plaintext and additional_authenticated_data fields must be no larger than * 8KiB. * </pre> * * <code>bytes additional_authenticated_data = 3;</code> */ public Builder clearAdditionalAuthenticatedData() { additionalAuthenticatedData_ = getDefaultInstance().getAdditionalAuthenticatedData(); onChanged(); return this; }
public Builder mergeFrom(com.google.cloud.kms.v1.EncryptRequest other) { if (other == com.google.cloud.kms.v1.EncryptRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.getPlaintext() != com.google.protobuf.ByteString.EMPTY) { setPlaintext(other.getPlaintext()); } if (other.getAdditionalAuthenticatedData() != com.google.protobuf.ByteString.EMPTY) { setAdditionalAuthenticatedData(other.getAdditionalAuthenticatedData()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
.setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.kms.v1.EncryptRequest.getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller(
@java.lang.Override public com.google.cloud.kms.v1.EncryptRequest getDefaultInstanceForType() { return com.google.cloud.kms.v1.EncryptRequest.getDefaultInstance(); }
/** * * * <pre> * Required. The resource name of the [CryptoKey][google.cloud.kms.v1.CryptoKey] or [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] * to use for encryption. * If a [CryptoKey][google.cloud.kms.v1.CryptoKey] is specified, the server will use its * [primary version][google.cloud.kms.v1.CryptoKey.primary]. * </pre> * * <code>string name = 1;</code> */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /**
/** * * * <pre> * Optional data that, if specified, must also be provided during decryption * through [DecryptRequest.additional_authenticated_data][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data]. * The maximum size depends on the key version's * [protection_level][google.cloud.kms.v1.CryptoKeyVersionTemplate.protection_level]. For * [SOFTWARE][google.cloud.kms.v1.ProtectionLevel.SOFTWARE] keys, the AAD must be no larger than * 64KiB. For [HSM][google.cloud.kms.v1.ProtectionLevel.HSM] keys, the combined length of the * plaintext and additional_authenticated_data fields must be no larger than * 8KiB. * </pre> * * <code>bytes additional_authenticated_data = 3;</code> */ public Builder clearAdditionalAuthenticatedData() { additionalAuthenticatedData_ = getDefaultInstance().getAdditionalAuthenticatedData(); onChanged(); return this; }
/** * * * <pre> * Required. The data to encrypt. Must be no larger than 64KiB. * The maximum size depends on the key version's * [protection_level][google.cloud.kms.v1.CryptoKeyVersionTemplate.protection_level]. For * [SOFTWARE][google.cloud.kms.v1.ProtectionLevel.SOFTWARE] keys, the plaintext must be no larger * than 64KiB. For [HSM][google.cloud.kms.v1.ProtectionLevel.HSM] keys, the combined length of the * plaintext and additional_authenticated_data fields must be no larger than * 8KiB. * </pre> * * <code>bytes plaintext = 2;</code> */ public Builder clearPlaintext() { plaintext_ = getDefaultInstance().getPlaintext(); onChanged(); return this; }
public Builder mergeFrom(com.google.cloud.kms.v1.EncryptRequest other) { if (other == com.google.cloud.kms.v1.EncryptRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.getPlaintext() != com.google.protobuf.ByteString.EMPTY) { setPlaintext(other.getPlaintext()); } if (other.getAdditionalAuthenticatedData() != com.google.protobuf.ByteString.EMPTY) { setAdditionalAuthenticatedData(other.getAdditionalAuthenticatedData()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
.setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.kms.v1.EncryptRequest.getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller(