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; }
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; }
EncryptRequest.newBuilder() .setName(name == null ? null : name.toString()) .setPlaintext(plaintext) .build(); return encrypt(request);
EncryptRequest.newBuilder().setName(name).setPlaintext(plaintext).build(); return encrypt(request);
EncryptRequest.newBuilder() .setName(name == null ? null : name.toString()) .setPlaintext(plaintext) .build(); return encrypt(request);
EncryptRequest.newBuilder().setName(name).setPlaintext(plaintext).build(); return encrypt(request);