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/resources.proto 18 19 package com.google.cloud.kms.v1; 20 21 public interface PublicKeyOrBuilder 22 extends 23 // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.PublicKey) 24 com.google.protobuf.MessageOrBuilder { 25 26 /** 27 * 28 * 29 * <pre> 30 * The public key, encoded in PEM format. For more information, see the 31 * [RFC 7468](https://tools.ietf.org/html/rfc7468) sections for 32 * [General Considerations](https://tools.ietf.org/html/rfc7468#section-2) and 33 * [Textual Encoding of Subject Public Key Info] 34 * (https://tools.ietf.org/html/rfc7468#section-13). 35 * </pre> 36 * 37 * <code>string pem = 1;</code> 38 * 39 * @return The pem. 40 */ getPem()41 java.lang.String getPem(); 42 /** 43 * 44 * 45 * <pre> 46 * The public key, encoded in PEM format. For more information, see the 47 * [RFC 7468](https://tools.ietf.org/html/rfc7468) sections for 48 * [General Considerations](https://tools.ietf.org/html/rfc7468#section-2) and 49 * [Textual Encoding of Subject Public Key Info] 50 * (https://tools.ietf.org/html/rfc7468#section-13). 51 * </pre> 52 * 53 * <code>string pem = 1;</code> 54 * 55 * @return The bytes for pem. 56 */ getPemBytes()57 com.google.protobuf.ByteString getPemBytes(); 58 59 /** 60 * 61 * 62 * <pre> 63 * The 64 * [Algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm] 65 * associated with this key. 66 * </pre> 67 * 68 * <code>.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 2;</code> 69 * 70 * @return The enum numeric value on the wire for algorithm. 71 */ getAlgorithmValue()72 int getAlgorithmValue(); 73 /** 74 * 75 * 76 * <pre> 77 * The 78 * [Algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm] 79 * associated with this key. 80 * </pre> 81 * 82 * <code>.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 2;</code> 83 * 84 * @return The algorithm. 85 */ getAlgorithm()86 com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm getAlgorithm(); 87 88 /** 89 * 90 * 91 * <pre> 92 * Integrity verification field. A CRC32C checksum of the returned 93 * [PublicKey.pem][google.cloud.kms.v1.PublicKey.pem]. An integrity check of 94 * [PublicKey.pem][google.cloud.kms.v1.PublicKey.pem] can be performed by 95 * computing the CRC32C checksum of 96 * [PublicKey.pem][google.cloud.kms.v1.PublicKey.pem] and comparing your 97 * results to this field. Discard the response in case of non-matching 98 * checksum values, and perform a limited number of retries. A persistent 99 * mismatch may indicate an issue in your computation of the CRC32C checksum. 100 * Note: This field is defined as int64 for reasons of compatibility across 101 * different languages. However, it is a non-negative integer, which will 102 * never exceed 2^32-1, and can be safely downconverted to uint32 in languages 103 * that support this type. 104 * NOTE: This field is in Beta. 105 * </pre> 106 * 107 * <code>.google.protobuf.Int64Value pem_crc32c = 3;</code> 108 * 109 * @return Whether the pemCrc32c field is set. 110 */ hasPemCrc32C()111 boolean hasPemCrc32C(); 112 /** 113 * 114 * 115 * <pre> 116 * Integrity verification field. A CRC32C checksum of the returned 117 * [PublicKey.pem][google.cloud.kms.v1.PublicKey.pem]. An integrity check of 118 * [PublicKey.pem][google.cloud.kms.v1.PublicKey.pem] can be performed by 119 * computing the CRC32C checksum of 120 * [PublicKey.pem][google.cloud.kms.v1.PublicKey.pem] and comparing your 121 * results to this field. Discard the response in case of non-matching 122 * checksum values, and perform a limited number of retries. A persistent 123 * mismatch may indicate an issue in your computation of the CRC32C checksum. 124 * Note: This field is defined as int64 for reasons of compatibility across 125 * different languages. However, it is a non-negative integer, which will 126 * never exceed 2^32-1, and can be safely downconverted to uint32 in languages 127 * that support this type. 128 * NOTE: This field is in Beta. 129 * </pre> 130 * 131 * <code>.google.protobuf.Int64Value pem_crc32c = 3;</code> 132 * 133 * @return The pemCrc32c. 134 */ getPemCrc32C()135 com.google.protobuf.Int64Value getPemCrc32C(); 136 /** 137 * 138 * 139 * <pre> 140 * Integrity verification field. A CRC32C checksum of the returned 141 * [PublicKey.pem][google.cloud.kms.v1.PublicKey.pem]. An integrity check of 142 * [PublicKey.pem][google.cloud.kms.v1.PublicKey.pem] can be performed by 143 * computing the CRC32C checksum of 144 * [PublicKey.pem][google.cloud.kms.v1.PublicKey.pem] and comparing your 145 * results to this field. Discard the response in case of non-matching 146 * checksum values, and perform a limited number of retries. A persistent 147 * mismatch may indicate an issue in your computation of the CRC32C checksum. 148 * Note: This field is defined as int64 for reasons of compatibility across 149 * different languages. However, it is a non-negative integer, which will 150 * never exceed 2^32-1, and can be safely downconverted to uint32 in languages 151 * that support this type. 152 * NOTE: This field is in Beta. 153 * </pre> 154 * 155 * <code>.google.protobuf.Int64Value pem_crc32c = 3;</code> 156 */ getPemCrc32COrBuilder()157 com.google.protobuf.Int64ValueOrBuilder getPemCrc32COrBuilder(); 158 159 /** 160 * 161 * 162 * <pre> 163 * The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the 164 * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key. 165 * Provided here for verification. 166 * NOTE: This field is in Beta. 167 * </pre> 168 * 169 * <code>string name = 4;</code> 170 * 171 * @return The name. 172 */ getName()173 java.lang.String getName(); 174 /** 175 * 176 * 177 * <pre> 178 * The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the 179 * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key. 180 * Provided here for verification. 181 * NOTE: This field is in Beta. 182 * </pre> 183 * 184 * <code>string name = 4;</code> 185 * 186 * @return The bytes for name. 187 */ getNameBytes()188 com.google.protobuf.ByteString getNameBytes(); 189 190 /** 191 * 192 * 193 * <pre> 194 * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the 195 * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key. 196 * </pre> 197 * 198 * <code>.google.cloud.kms.v1.ProtectionLevel protection_level = 5;</code> 199 * 200 * @return The enum numeric value on the wire for protectionLevel. 201 */ getProtectionLevelValue()202 int getProtectionLevelValue(); 203 /** 204 * 205 * 206 * <pre> 207 * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the 208 * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key. 209 * </pre> 210 * 211 * <code>.google.cloud.kms.v1.ProtectionLevel protection_level = 5;</code> 212 * 213 * @return The protectionLevel. 214 */ getProtectionLevel()215 com.google.cloud.kms.v1.ProtectionLevel getProtectionLevel(); 216 } 217