/** * * * <pre> * Required. The resource name of the [CryptoKey][google.cloud.kms.v1.CryptoKey] to use for decryption. * The server will choose the appropriate version. * </pre> * * <code>string name = 1;</code> */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; }
/** * * * <pre> * Optional data that must match the data originally supplied in * [EncryptRequest.additional_authenticated_data][google.cloud.kms.v1.EncryptRequest.additional_authenticated_data]. * </pre> * * <code>bytes additional_authenticated_data = 3;</code> */ public Builder setAdditionalAuthenticatedData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } additionalAuthenticatedData_ = value; onChanged(); return this; } /**
/** * * * <pre> * Required. The encrypted data originally returned in * [EncryptResponse.ciphertext][google.cloud.kms.v1.EncryptResponse.ciphertext]. * </pre> * * <code>bytes ciphertext = 2;</code> */ public Builder setCiphertext(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ciphertext_ = value; onChanged(); return this; } /**
/** * * * <pre> * Optional data that must match the data originally supplied in * [EncryptRequest.additional_authenticated_data][google.cloud.kms.v1.EncryptRequest.additional_authenticated_data]. * </pre> * * <code>bytes additional_authenticated_data = 3;</code> */ public Builder setAdditionalAuthenticatedData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } additionalAuthenticatedData_ = value; onChanged(); return this; } /**
/** * * * <pre> * Required. The encrypted data originally returned in * [EncryptResponse.ciphertext][google.cloud.kms.v1.EncryptResponse.ciphertext]. * </pre> * * <code>bytes ciphertext = 2;</code> */ public Builder setCiphertext(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ciphertext_ = value; onChanged(); return this; } /**
/** * * * <pre> * Required. The resource name of the [CryptoKey][google.cloud.kms.v1.CryptoKey] to use for decryption. * The server will choose the appropriate version. * </pre> * * <code>string name = 1;</code> */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; }
/** * * * <pre> * Required. The resource name of the [CryptoKey][google.cloud.kms.v1.CryptoKey] to use for decryption. * The server will choose the appropriate version. * </pre> * * <code>string name = 1;</code> */ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /**
/** * * * <pre> * Required. The resource name of the [CryptoKey][google.cloud.kms.v1.CryptoKey] to use for decryption. * The server will choose the appropriate version. * </pre> * * <code>string name = 1;</code> */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /**
/** * * * <pre> * Required. The encrypted data originally returned in * [EncryptResponse.ciphertext][google.cloud.kms.v1.EncryptResponse.ciphertext]. * </pre> * * <code>bytes ciphertext = 2;</code> */ public Builder clearCiphertext() { ciphertext_ = getDefaultInstance().getCiphertext(); onChanged(); return this; }
/** * * * <pre> * Optional data that must match the data originally supplied in * [EncryptRequest.additional_authenticated_data][google.cloud.kms.v1.EncryptRequest.additional_authenticated_data]. * </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.DecryptRequest other) { if (other == com.google.cloud.kms.v1.DecryptRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.getCiphertext() != com.google.protobuf.ByteString.EMPTY) { setCiphertext(other.getCiphertext()); } if (other.getAdditionalAuthenticatedData() != com.google.protobuf.ByteString.EMPTY) { setAdditionalAuthenticatedData(other.getAdditionalAuthenticatedData()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * * * <pre> * Required. The resource name of the [CryptoKey][google.cloud.kms.v1.CryptoKey] to use for decryption. * The server will choose the appropriate version. * </pre> * * <code>string name = 1;</code> */ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /**
/** * * * <pre> * Required. The resource name of the [CryptoKey][google.cloud.kms.v1.CryptoKey] to use for decryption. * The server will choose the appropriate version. * </pre> * * <code>string name = 1;</code> */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /**
public Builder mergeFrom(com.google.cloud.kms.v1.DecryptRequest other) { if (other == com.google.cloud.kms.v1.DecryptRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.getCiphertext() != com.google.protobuf.ByteString.EMPTY) { setCiphertext(other.getCiphertext()); } if (other.getAdditionalAuthenticatedData() != com.google.protobuf.ByteString.EMPTY) { setAdditionalAuthenticatedData(other.getAdditionalAuthenticatedData()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * * * <pre> * Optional data that must match the data originally supplied in * [EncryptRequest.additional_authenticated_data][google.cloud.kms.v1.EncryptRequest.additional_authenticated_data]. * </pre> * * <code>bytes additional_authenticated_data = 3;</code> */ public Builder clearAdditionalAuthenticatedData() { additionalAuthenticatedData_ = getDefaultInstance().getAdditionalAuthenticatedData(); onChanged(); return this; }
/** * * * <pre> * Required. The encrypted data originally returned in * [EncryptResponse.ciphertext][google.cloud.kms.v1.EncryptResponse.ciphertext]. * </pre> * * <code>bytes ciphertext = 2;</code> */ public Builder clearCiphertext() { ciphertext_ = getDefaultInstance().getCiphertext(); onChanged(); return this; }