/** * * * <pre> * The encrypted data. * </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> * The resource name of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used in encryption. * </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> * The resource name of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used in encryption. * </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> * The encrypted data. * </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> * The resource name of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used in encryption. * </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> * The resource name of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used in encryption. * </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> * The resource name of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used in encryption. * </pre> * * <code>string name = 1;</code> */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /**
/** * * * <pre> * The encrypted data. * </pre> * * <code>bytes ciphertext = 2;</code> */ public Builder clearCiphertext() { ciphertext_ = getDefaultInstance().getCiphertext(); onChanged(); return this; }
public Builder mergeFrom(com.google.cloud.kms.v1.EncryptResponse other) { if (other == com.google.cloud.kms.v1.EncryptResponse.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.getCiphertext() != com.google.protobuf.ByteString.EMPTY) { setCiphertext(other.getCiphertext()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * * * <pre> * The resource name of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used in encryption. * </pre> * * <code>string name = 1;</code> */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /**
/** * * * <pre> * The encrypted data. * </pre> * * <code>bytes ciphertext = 2;</code> */ public Builder clearCiphertext() { ciphertext_ = getDefaultInstance().getCiphertext(); onChanged(); return this; }
public Builder mergeFrom(com.google.cloud.kms.v1.EncryptResponse other) { if (other == com.google.cloud.kms.v1.EncryptResponse.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.getCiphertext() != com.google.protobuf.ByteString.EMPTY) { setCiphertext(other.getCiphertext()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }