• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 CryptoKeyVersionTemplateOrBuilder
22     extends
23     // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.CryptoKeyVersionTemplate)
24     com.google.protobuf.MessageOrBuilder {
25 
26   /**
27    *
28    *
29    * <pre>
30    * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] to use when creating
31    * a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] based on this
32    * template. Immutable. Defaults to
33    * [SOFTWARE][google.cloud.kms.v1.ProtectionLevel.SOFTWARE].
34    * </pre>
35    *
36    * <code>.google.cloud.kms.v1.ProtectionLevel protection_level = 1;</code>
37    *
38    * @return The enum numeric value on the wire for protectionLevel.
39    */
getProtectionLevelValue()40   int getProtectionLevelValue();
41   /**
42    *
43    *
44    * <pre>
45    * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] to use when creating
46    * a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] based on this
47    * template. Immutable. Defaults to
48    * [SOFTWARE][google.cloud.kms.v1.ProtectionLevel.SOFTWARE].
49    * </pre>
50    *
51    * <code>.google.cloud.kms.v1.ProtectionLevel protection_level = 1;</code>
52    *
53    * @return The protectionLevel.
54    */
getProtectionLevel()55   com.google.cloud.kms.v1.ProtectionLevel getProtectionLevel();
56 
57   /**
58    *
59    *
60    * <pre>
61    * Required.
62    * [Algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm]
63    * to use when creating a
64    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] based on this
65    * template.
66    * For backwards compatibility, GOOGLE_SYMMETRIC_ENCRYPTION is implied if both
67    * this field is omitted and
68    * [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] is
69    * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].
70    * </pre>
71    *
72    * <code>
73    * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 3 [(.google.api.field_behavior) = REQUIRED];
74    * </code>
75    *
76    * @return The enum numeric value on the wire for algorithm.
77    */
getAlgorithmValue()78   int getAlgorithmValue();
79   /**
80    *
81    *
82    * <pre>
83    * Required.
84    * [Algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm]
85    * to use when creating a
86    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] based on this
87    * template.
88    * For backwards compatibility, GOOGLE_SYMMETRIC_ENCRYPTION is implied if both
89    * this field is omitted and
90    * [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] is
91    * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].
92    * </pre>
93    *
94    * <code>
95    * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 3 [(.google.api.field_behavior) = REQUIRED];
96    * </code>
97    *
98    * @return The algorithm.
99    */
getAlgorithm()100   com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm getAlgorithm();
101 }
102