1 /* 2 * Copyright 2020 Google LLC 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * https://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 // Generated by the protocol buffer compiler. DO NOT EDIT! 17 // source: google/cloud/kms/v1/service.proto 18 19 package com.google.cloud.kms.v1; 20 21 public interface DecryptResponseOrBuilder 22 extends 23 // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.DecryptResponse) 24 com.google.protobuf.MessageOrBuilder { 25 26 /** 27 * 28 * 29 * <pre> 30 * The decrypted data originally supplied in 31 * [EncryptRequest.plaintext][google.cloud.kms.v1.EncryptRequest.plaintext]. 32 * </pre> 33 * 34 * <code>bytes plaintext = 1;</code> 35 * 36 * @return The plaintext. 37 */ getPlaintext()38 com.google.protobuf.ByteString getPlaintext(); 39 40 /** 41 * 42 * 43 * <pre> 44 * Integrity verification field. A CRC32C checksum of the returned 45 * [DecryptResponse.plaintext][google.cloud.kms.v1.DecryptResponse.plaintext]. 46 * An integrity check of 47 * [DecryptResponse.plaintext][google.cloud.kms.v1.DecryptResponse.plaintext] 48 * can be performed by computing the CRC32C checksum of 49 * [DecryptResponse.plaintext][google.cloud.kms.v1.DecryptResponse.plaintext] 50 * and comparing your results to this field. Discard the response in case of 51 * non-matching checksum values, and perform a limited number of retries. A 52 * persistent mismatch may indicate an issue in your computation of the CRC32C 53 * checksum. Note: receiving this response message indicates that 54 * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] is able to 55 * successfully decrypt the 56 * [ciphertext][google.cloud.kms.v1.DecryptRequest.ciphertext]. Note: This 57 * field is defined as int64 for reasons of compatibility across different 58 * languages. However, it is a non-negative integer, which will never exceed 59 * 2^32-1, and can be safely downconverted to uint32 in languages that support 60 * this type. 61 * </pre> 62 * 63 * <code>.google.protobuf.Int64Value plaintext_crc32c = 2;</code> 64 * 65 * @return Whether the plaintextCrc32c field is set. 66 */ hasPlaintextCrc32C()67 boolean hasPlaintextCrc32C(); 68 /** 69 * 70 * 71 * <pre> 72 * Integrity verification field. A CRC32C checksum of the returned 73 * [DecryptResponse.plaintext][google.cloud.kms.v1.DecryptResponse.plaintext]. 74 * An integrity check of 75 * [DecryptResponse.plaintext][google.cloud.kms.v1.DecryptResponse.plaintext] 76 * can be performed by computing the CRC32C checksum of 77 * [DecryptResponse.plaintext][google.cloud.kms.v1.DecryptResponse.plaintext] 78 * and comparing your results to this field. Discard the response in case of 79 * non-matching checksum values, and perform a limited number of retries. A 80 * persistent mismatch may indicate an issue in your computation of the CRC32C 81 * checksum. Note: receiving this response message indicates that 82 * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] is able to 83 * successfully decrypt the 84 * [ciphertext][google.cloud.kms.v1.DecryptRequest.ciphertext]. Note: This 85 * field is defined as int64 for reasons of compatibility across different 86 * languages. However, it is a non-negative integer, which will never exceed 87 * 2^32-1, and can be safely downconverted to uint32 in languages that support 88 * this type. 89 * </pre> 90 * 91 * <code>.google.protobuf.Int64Value plaintext_crc32c = 2;</code> 92 * 93 * @return The plaintextCrc32c. 94 */ getPlaintextCrc32C()95 com.google.protobuf.Int64Value getPlaintextCrc32C(); 96 /** 97 * 98 * 99 * <pre> 100 * Integrity verification field. A CRC32C checksum of the returned 101 * [DecryptResponse.plaintext][google.cloud.kms.v1.DecryptResponse.plaintext]. 102 * An integrity check of 103 * [DecryptResponse.plaintext][google.cloud.kms.v1.DecryptResponse.plaintext] 104 * can be performed by computing the CRC32C checksum of 105 * [DecryptResponse.plaintext][google.cloud.kms.v1.DecryptResponse.plaintext] 106 * and comparing your results to this field. Discard the response in case of 107 * non-matching checksum values, and perform a limited number of retries. A 108 * persistent mismatch may indicate an issue in your computation of the CRC32C 109 * checksum. Note: receiving this response message indicates that 110 * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] is able to 111 * successfully decrypt the 112 * [ciphertext][google.cloud.kms.v1.DecryptRequest.ciphertext]. Note: This 113 * field is defined as int64 for reasons of compatibility across different 114 * languages. However, it is a non-negative integer, which will never exceed 115 * 2^32-1, and can be safely downconverted to uint32 in languages that support 116 * this type. 117 * </pre> 118 * 119 * <code>.google.protobuf.Int64Value plaintext_crc32c = 2;</code> 120 */ getPlaintextCrc32COrBuilder()121 com.google.protobuf.Int64ValueOrBuilder getPlaintextCrc32COrBuilder(); 122 123 /** 124 * 125 * 126 * <pre> 127 * Whether the Decryption was performed using the primary key version. 128 * </pre> 129 * 130 * <code>bool used_primary = 3;</code> 131 * 132 * @return The usedPrimary. 133 */ getUsedPrimary()134 boolean getUsedPrimary(); 135 136 /** 137 * 138 * 139 * <pre> 140 * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the 141 * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used in 142 * decryption. 143 * </pre> 144 * 145 * <code>.google.cloud.kms.v1.ProtectionLevel protection_level = 4;</code> 146 * 147 * @return The enum numeric value on the wire for protectionLevel. 148 */ getProtectionLevelValue()149 int getProtectionLevelValue(); 150 /** 151 * 152 * 153 * <pre> 154 * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the 155 * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used in 156 * decryption. 157 * </pre> 158 * 159 * <code>.google.cloud.kms.v1.ProtectionLevel protection_level = 4;</code> 160 * 161 * @return The protectionLevel. 162 */ getProtectionLevel()163 com.google.cloud.kms.v1.ProtectionLevel getProtectionLevel(); 164 } 165