• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2022 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 
17 package com.google.cloud.kms.v1.stub;
18 
19 import static com.google.cloud.kms.v1.KeyManagementServiceClient.ListCryptoKeyVersionsPagedResponse;
20 import static com.google.cloud.kms.v1.KeyManagementServiceClient.ListCryptoKeysPagedResponse;
21 import static com.google.cloud.kms.v1.KeyManagementServiceClient.ListImportJobsPagedResponse;
22 import static com.google.cloud.kms.v1.KeyManagementServiceClient.ListKeyRingsPagedResponse;
23 import static com.google.cloud.kms.v1.KeyManagementServiceClient.ListLocationsPagedResponse;
24 
25 import com.google.api.gax.core.BackgroundResource;
26 import com.google.api.gax.rpc.UnaryCallable;
27 import com.google.cloud.kms.v1.AsymmetricDecryptRequest;
28 import com.google.cloud.kms.v1.AsymmetricDecryptResponse;
29 import com.google.cloud.kms.v1.AsymmetricSignRequest;
30 import com.google.cloud.kms.v1.AsymmetricSignResponse;
31 import com.google.cloud.kms.v1.CreateCryptoKeyRequest;
32 import com.google.cloud.kms.v1.CreateCryptoKeyVersionRequest;
33 import com.google.cloud.kms.v1.CreateImportJobRequest;
34 import com.google.cloud.kms.v1.CreateKeyRingRequest;
35 import com.google.cloud.kms.v1.CryptoKey;
36 import com.google.cloud.kms.v1.CryptoKeyVersion;
37 import com.google.cloud.kms.v1.DecryptRequest;
38 import com.google.cloud.kms.v1.DecryptResponse;
39 import com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest;
40 import com.google.cloud.kms.v1.EncryptRequest;
41 import com.google.cloud.kms.v1.EncryptResponse;
42 import com.google.cloud.kms.v1.GenerateRandomBytesRequest;
43 import com.google.cloud.kms.v1.GenerateRandomBytesResponse;
44 import com.google.cloud.kms.v1.GetCryptoKeyRequest;
45 import com.google.cloud.kms.v1.GetCryptoKeyVersionRequest;
46 import com.google.cloud.kms.v1.GetImportJobRequest;
47 import com.google.cloud.kms.v1.GetKeyRingRequest;
48 import com.google.cloud.kms.v1.GetPublicKeyRequest;
49 import com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest;
50 import com.google.cloud.kms.v1.ImportJob;
51 import com.google.cloud.kms.v1.KeyRing;
52 import com.google.cloud.kms.v1.ListCryptoKeyVersionsRequest;
53 import com.google.cloud.kms.v1.ListCryptoKeyVersionsResponse;
54 import com.google.cloud.kms.v1.ListCryptoKeysRequest;
55 import com.google.cloud.kms.v1.ListCryptoKeysResponse;
56 import com.google.cloud.kms.v1.ListImportJobsRequest;
57 import com.google.cloud.kms.v1.ListImportJobsResponse;
58 import com.google.cloud.kms.v1.ListKeyRingsRequest;
59 import com.google.cloud.kms.v1.ListKeyRingsResponse;
60 import com.google.cloud.kms.v1.MacSignRequest;
61 import com.google.cloud.kms.v1.MacSignResponse;
62 import com.google.cloud.kms.v1.MacVerifyRequest;
63 import com.google.cloud.kms.v1.MacVerifyResponse;
64 import com.google.cloud.kms.v1.PublicKey;
65 import com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest;
66 import com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest;
67 import com.google.cloud.kms.v1.UpdateCryptoKeyRequest;
68 import com.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest;
69 import com.google.cloud.location.GetLocationRequest;
70 import com.google.cloud.location.ListLocationsRequest;
71 import com.google.cloud.location.ListLocationsResponse;
72 import com.google.cloud.location.Location;
73 import com.google.iam.v1.GetIamPolicyRequest;
74 import com.google.iam.v1.Policy;
75 import com.google.iam.v1.SetIamPolicyRequest;
76 import com.google.iam.v1.TestIamPermissionsRequest;
77 import com.google.iam.v1.TestIamPermissionsResponse;
78 import javax.annotation.Generated;
79 
80 // AUTO-GENERATED DOCUMENTATION AND CLASS.
81 /**
82  * Base stub class for the KeyManagementService service API.
83  *
84  * <p>This class is for advanced usage and reflects the underlying API directly.
85  */
86 @Generated("by gapic-generator-java")
87 public abstract class KeyManagementServiceStub implements BackgroundResource {
88 
listKeyRingsPagedCallable()89   public UnaryCallable<ListKeyRingsRequest, ListKeyRingsPagedResponse> listKeyRingsPagedCallable() {
90     throw new UnsupportedOperationException("Not implemented: listKeyRingsPagedCallable()");
91   }
92 
listKeyRingsCallable()93   public UnaryCallable<ListKeyRingsRequest, ListKeyRingsResponse> listKeyRingsCallable() {
94     throw new UnsupportedOperationException("Not implemented: listKeyRingsCallable()");
95   }
96 
97   public UnaryCallable<ListCryptoKeysRequest, ListCryptoKeysPagedResponse>
listCryptoKeysPagedCallable()98       listCryptoKeysPagedCallable() {
99     throw new UnsupportedOperationException("Not implemented: listCryptoKeysPagedCallable()");
100   }
101 
listCryptoKeysCallable()102   public UnaryCallable<ListCryptoKeysRequest, ListCryptoKeysResponse> listCryptoKeysCallable() {
103     throw new UnsupportedOperationException("Not implemented: listCryptoKeysCallable()");
104   }
105 
106   public UnaryCallable<ListCryptoKeyVersionsRequest, ListCryptoKeyVersionsPagedResponse>
listCryptoKeyVersionsPagedCallable()107       listCryptoKeyVersionsPagedCallable() {
108     throw new UnsupportedOperationException(
109         "Not implemented: listCryptoKeyVersionsPagedCallable()");
110   }
111 
112   public UnaryCallable<ListCryptoKeyVersionsRequest, ListCryptoKeyVersionsResponse>
listCryptoKeyVersionsCallable()113       listCryptoKeyVersionsCallable() {
114     throw new UnsupportedOperationException("Not implemented: listCryptoKeyVersionsCallable()");
115   }
116 
117   public UnaryCallable<ListImportJobsRequest, ListImportJobsPagedResponse>
listImportJobsPagedCallable()118       listImportJobsPagedCallable() {
119     throw new UnsupportedOperationException("Not implemented: listImportJobsPagedCallable()");
120   }
121 
listImportJobsCallable()122   public UnaryCallable<ListImportJobsRequest, ListImportJobsResponse> listImportJobsCallable() {
123     throw new UnsupportedOperationException("Not implemented: listImportJobsCallable()");
124   }
125 
getKeyRingCallable()126   public UnaryCallable<GetKeyRingRequest, KeyRing> getKeyRingCallable() {
127     throw new UnsupportedOperationException("Not implemented: getKeyRingCallable()");
128   }
129 
getCryptoKeyCallable()130   public UnaryCallable<GetCryptoKeyRequest, CryptoKey> getCryptoKeyCallable() {
131     throw new UnsupportedOperationException("Not implemented: getCryptoKeyCallable()");
132   }
133 
getCryptoKeyVersionCallable()134   public UnaryCallable<GetCryptoKeyVersionRequest, CryptoKeyVersion> getCryptoKeyVersionCallable() {
135     throw new UnsupportedOperationException("Not implemented: getCryptoKeyVersionCallable()");
136   }
137 
getPublicKeyCallable()138   public UnaryCallable<GetPublicKeyRequest, PublicKey> getPublicKeyCallable() {
139     throw new UnsupportedOperationException("Not implemented: getPublicKeyCallable()");
140   }
141 
getImportJobCallable()142   public UnaryCallable<GetImportJobRequest, ImportJob> getImportJobCallable() {
143     throw new UnsupportedOperationException("Not implemented: getImportJobCallable()");
144   }
145 
createKeyRingCallable()146   public UnaryCallable<CreateKeyRingRequest, KeyRing> createKeyRingCallable() {
147     throw new UnsupportedOperationException("Not implemented: createKeyRingCallable()");
148   }
149 
createCryptoKeyCallable()150   public UnaryCallable<CreateCryptoKeyRequest, CryptoKey> createCryptoKeyCallable() {
151     throw new UnsupportedOperationException("Not implemented: createCryptoKeyCallable()");
152   }
153 
154   public UnaryCallable<CreateCryptoKeyVersionRequest, CryptoKeyVersion>
createCryptoKeyVersionCallable()155       createCryptoKeyVersionCallable() {
156     throw new UnsupportedOperationException("Not implemented: createCryptoKeyVersionCallable()");
157   }
158 
159   public UnaryCallable<ImportCryptoKeyVersionRequest, CryptoKeyVersion>
importCryptoKeyVersionCallable()160       importCryptoKeyVersionCallable() {
161     throw new UnsupportedOperationException("Not implemented: importCryptoKeyVersionCallable()");
162   }
163 
createImportJobCallable()164   public UnaryCallable<CreateImportJobRequest, ImportJob> createImportJobCallable() {
165     throw new UnsupportedOperationException("Not implemented: createImportJobCallable()");
166   }
167 
updateCryptoKeyCallable()168   public UnaryCallable<UpdateCryptoKeyRequest, CryptoKey> updateCryptoKeyCallable() {
169     throw new UnsupportedOperationException("Not implemented: updateCryptoKeyCallable()");
170   }
171 
172   public UnaryCallable<UpdateCryptoKeyVersionRequest, CryptoKeyVersion>
updateCryptoKeyVersionCallable()173       updateCryptoKeyVersionCallable() {
174     throw new UnsupportedOperationException("Not implemented: updateCryptoKeyVersionCallable()");
175   }
176 
177   public UnaryCallable<UpdateCryptoKeyPrimaryVersionRequest, CryptoKey>
updateCryptoKeyPrimaryVersionCallable()178       updateCryptoKeyPrimaryVersionCallable() {
179     throw new UnsupportedOperationException(
180         "Not implemented: updateCryptoKeyPrimaryVersionCallable()");
181   }
182 
183   public UnaryCallable<DestroyCryptoKeyVersionRequest, CryptoKeyVersion>
destroyCryptoKeyVersionCallable()184       destroyCryptoKeyVersionCallable() {
185     throw new UnsupportedOperationException("Not implemented: destroyCryptoKeyVersionCallable()");
186   }
187 
188   public UnaryCallable<RestoreCryptoKeyVersionRequest, CryptoKeyVersion>
restoreCryptoKeyVersionCallable()189       restoreCryptoKeyVersionCallable() {
190     throw new UnsupportedOperationException("Not implemented: restoreCryptoKeyVersionCallable()");
191   }
192 
encryptCallable()193   public UnaryCallable<EncryptRequest, EncryptResponse> encryptCallable() {
194     throw new UnsupportedOperationException("Not implemented: encryptCallable()");
195   }
196 
decryptCallable()197   public UnaryCallable<DecryptRequest, DecryptResponse> decryptCallable() {
198     throw new UnsupportedOperationException("Not implemented: decryptCallable()");
199   }
200 
asymmetricSignCallable()201   public UnaryCallable<AsymmetricSignRequest, AsymmetricSignResponse> asymmetricSignCallable() {
202     throw new UnsupportedOperationException("Not implemented: asymmetricSignCallable()");
203   }
204 
205   public UnaryCallable<AsymmetricDecryptRequest, AsymmetricDecryptResponse>
asymmetricDecryptCallable()206       asymmetricDecryptCallable() {
207     throw new UnsupportedOperationException("Not implemented: asymmetricDecryptCallable()");
208   }
209 
macSignCallable()210   public UnaryCallable<MacSignRequest, MacSignResponse> macSignCallable() {
211     throw new UnsupportedOperationException("Not implemented: macSignCallable()");
212   }
213 
macVerifyCallable()214   public UnaryCallable<MacVerifyRequest, MacVerifyResponse> macVerifyCallable() {
215     throw new UnsupportedOperationException("Not implemented: macVerifyCallable()");
216   }
217 
218   public UnaryCallable<GenerateRandomBytesRequest, GenerateRandomBytesResponse>
generateRandomBytesCallable()219       generateRandomBytesCallable() {
220     throw new UnsupportedOperationException("Not implemented: generateRandomBytesCallable()");
221   }
222 
223   public UnaryCallable<ListLocationsRequest, ListLocationsPagedResponse>
listLocationsPagedCallable()224       listLocationsPagedCallable() {
225     throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()");
226   }
227 
listLocationsCallable()228   public UnaryCallable<ListLocationsRequest, ListLocationsResponse> listLocationsCallable() {
229     throw new UnsupportedOperationException("Not implemented: listLocationsCallable()");
230   }
231 
getLocationCallable()232   public UnaryCallable<GetLocationRequest, Location> getLocationCallable() {
233     throw new UnsupportedOperationException("Not implemented: getLocationCallable()");
234   }
235 
setIamPolicyCallable()236   public UnaryCallable<SetIamPolicyRequest, Policy> setIamPolicyCallable() {
237     throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()");
238   }
239 
getIamPolicyCallable()240   public UnaryCallable<GetIamPolicyRequest, Policy> getIamPolicyCallable() {
241     throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()");
242   }
243 
244   public UnaryCallable<TestIamPermissionsRequest, TestIamPermissionsResponse>
testIamPermissionsCallable()245       testIamPermissionsCallable() {
246     throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()");
247   }
248 
249   @Override
close()250   public abstract void close();
251 }
252