• 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 package com.google.cloud.asset.v1;
17 
18 import static io.grpc.MethodDescriptor.generateFullMethodName;
19 
20 /**
21  *
22  *
23  * <pre>
24  * Asset service definition.
25  * </pre>
26  */
27 @javax.annotation.Generated(
28     value = "by gRPC proto compiler",
29     comments = "Source: google/cloud/asset/v1/asset_service.proto")
30 @io.grpc.stub.annotations.GrpcGenerated
31 public final class AssetServiceGrpc {
32 
AssetServiceGrpc()33   private AssetServiceGrpc() {}
34 
35   public static final String SERVICE_NAME = "google.cloud.asset.v1.AssetService";
36 
37   // Static method descriptors that strictly reflect the proto.
38   private static volatile io.grpc.MethodDescriptor<
39           com.google.cloud.asset.v1.ExportAssetsRequest, com.google.longrunning.Operation>
40       getExportAssetsMethod;
41 
42   @io.grpc.stub.annotations.RpcMethod(
43       fullMethodName = SERVICE_NAME + '/' + "ExportAssets",
44       requestType = com.google.cloud.asset.v1.ExportAssetsRequest.class,
45       responseType = com.google.longrunning.Operation.class,
46       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
47   public static io.grpc.MethodDescriptor<
48           com.google.cloud.asset.v1.ExportAssetsRequest, com.google.longrunning.Operation>
getExportAssetsMethod()49       getExportAssetsMethod() {
50     io.grpc.MethodDescriptor<
51             com.google.cloud.asset.v1.ExportAssetsRequest, com.google.longrunning.Operation>
52         getExportAssetsMethod;
53     if ((getExportAssetsMethod = AssetServiceGrpc.getExportAssetsMethod) == null) {
54       synchronized (AssetServiceGrpc.class) {
55         if ((getExportAssetsMethod = AssetServiceGrpc.getExportAssetsMethod) == null) {
56           AssetServiceGrpc.getExportAssetsMethod =
57               getExportAssetsMethod =
58                   io.grpc.MethodDescriptor
59                       .<com.google.cloud.asset.v1.ExportAssetsRequest,
60                           com.google.longrunning.Operation>
61                           newBuilder()
62                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
63                       .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportAssets"))
64                       .setSampledToLocalTracing(true)
65                       .setRequestMarshaller(
66                           io.grpc.protobuf.ProtoUtils.marshaller(
67                               com.google.cloud.asset.v1.ExportAssetsRequest.getDefaultInstance()))
68                       .setResponseMarshaller(
69                           io.grpc.protobuf.ProtoUtils.marshaller(
70                               com.google.longrunning.Operation.getDefaultInstance()))
71                       .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("ExportAssets"))
72                       .build();
73         }
74       }
75     }
76     return getExportAssetsMethod;
77   }
78 
79   private static volatile io.grpc.MethodDescriptor<
80           com.google.cloud.asset.v1.ListAssetsRequest, com.google.cloud.asset.v1.ListAssetsResponse>
81       getListAssetsMethod;
82 
83   @io.grpc.stub.annotations.RpcMethod(
84       fullMethodName = SERVICE_NAME + '/' + "ListAssets",
85       requestType = com.google.cloud.asset.v1.ListAssetsRequest.class,
86       responseType = com.google.cloud.asset.v1.ListAssetsResponse.class,
87       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
88   public static io.grpc.MethodDescriptor<
89           com.google.cloud.asset.v1.ListAssetsRequest, com.google.cloud.asset.v1.ListAssetsResponse>
getListAssetsMethod()90       getListAssetsMethod() {
91     io.grpc.MethodDescriptor<
92             com.google.cloud.asset.v1.ListAssetsRequest,
93             com.google.cloud.asset.v1.ListAssetsResponse>
94         getListAssetsMethod;
95     if ((getListAssetsMethod = AssetServiceGrpc.getListAssetsMethod) == null) {
96       synchronized (AssetServiceGrpc.class) {
97         if ((getListAssetsMethod = AssetServiceGrpc.getListAssetsMethod) == null) {
98           AssetServiceGrpc.getListAssetsMethod =
99               getListAssetsMethod =
100                   io.grpc.MethodDescriptor
101                       .<com.google.cloud.asset.v1.ListAssetsRequest,
102                           com.google.cloud.asset.v1.ListAssetsResponse>
103                           newBuilder()
104                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
105                       .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAssets"))
106                       .setSampledToLocalTracing(true)
107                       .setRequestMarshaller(
108                           io.grpc.protobuf.ProtoUtils.marshaller(
109                               com.google.cloud.asset.v1.ListAssetsRequest.getDefaultInstance()))
110                       .setResponseMarshaller(
111                           io.grpc.protobuf.ProtoUtils.marshaller(
112                               com.google.cloud.asset.v1.ListAssetsResponse.getDefaultInstance()))
113                       .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("ListAssets"))
114                       .build();
115         }
116       }
117     }
118     return getListAssetsMethod;
119   }
120 
121   private static volatile io.grpc.MethodDescriptor<
122           com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest,
123           com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse>
124       getBatchGetAssetsHistoryMethod;
125 
126   @io.grpc.stub.annotations.RpcMethod(
127       fullMethodName = SERVICE_NAME + '/' + "BatchGetAssetsHistory",
128       requestType = com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest.class,
129       responseType = com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse.class,
130       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
131   public static io.grpc.MethodDescriptor<
132           com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest,
133           com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse>
getBatchGetAssetsHistoryMethod()134       getBatchGetAssetsHistoryMethod() {
135     io.grpc.MethodDescriptor<
136             com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest,
137             com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse>
138         getBatchGetAssetsHistoryMethod;
139     if ((getBatchGetAssetsHistoryMethod = AssetServiceGrpc.getBatchGetAssetsHistoryMethod)
140         == null) {
141       synchronized (AssetServiceGrpc.class) {
142         if ((getBatchGetAssetsHistoryMethod = AssetServiceGrpc.getBatchGetAssetsHistoryMethod)
143             == null) {
144           AssetServiceGrpc.getBatchGetAssetsHistoryMethod =
145               getBatchGetAssetsHistoryMethod =
146                   io.grpc.MethodDescriptor
147                       .<com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest,
148                           com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse>
149                           newBuilder()
150                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
151                       .setFullMethodName(
152                           generateFullMethodName(SERVICE_NAME, "BatchGetAssetsHistory"))
153                       .setSampledToLocalTracing(true)
154                       .setRequestMarshaller(
155                           io.grpc.protobuf.ProtoUtils.marshaller(
156                               com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest
157                                   .getDefaultInstance()))
158                       .setResponseMarshaller(
159                           io.grpc.protobuf.ProtoUtils.marshaller(
160                               com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse
161                                   .getDefaultInstance()))
162                       .setSchemaDescriptor(
163                           new AssetServiceMethodDescriptorSupplier("BatchGetAssetsHistory"))
164                       .build();
165         }
166       }
167     }
168     return getBatchGetAssetsHistoryMethod;
169   }
170 
171   private static volatile io.grpc.MethodDescriptor<
172           com.google.cloud.asset.v1.CreateFeedRequest, com.google.cloud.asset.v1.Feed>
173       getCreateFeedMethod;
174 
175   @io.grpc.stub.annotations.RpcMethod(
176       fullMethodName = SERVICE_NAME + '/' + "CreateFeed",
177       requestType = com.google.cloud.asset.v1.CreateFeedRequest.class,
178       responseType = com.google.cloud.asset.v1.Feed.class,
179       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
180   public static io.grpc.MethodDescriptor<
181           com.google.cloud.asset.v1.CreateFeedRequest, com.google.cloud.asset.v1.Feed>
getCreateFeedMethod()182       getCreateFeedMethod() {
183     io.grpc.MethodDescriptor<
184             com.google.cloud.asset.v1.CreateFeedRequest, com.google.cloud.asset.v1.Feed>
185         getCreateFeedMethod;
186     if ((getCreateFeedMethod = AssetServiceGrpc.getCreateFeedMethod) == null) {
187       synchronized (AssetServiceGrpc.class) {
188         if ((getCreateFeedMethod = AssetServiceGrpc.getCreateFeedMethod) == null) {
189           AssetServiceGrpc.getCreateFeedMethod =
190               getCreateFeedMethod =
191                   io.grpc.MethodDescriptor
192                       .<com.google.cloud.asset.v1.CreateFeedRequest, com.google.cloud.asset.v1.Feed>
193                           newBuilder()
194                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
195                       .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateFeed"))
196                       .setSampledToLocalTracing(true)
197                       .setRequestMarshaller(
198                           io.grpc.protobuf.ProtoUtils.marshaller(
199                               com.google.cloud.asset.v1.CreateFeedRequest.getDefaultInstance()))
200                       .setResponseMarshaller(
201                           io.grpc.protobuf.ProtoUtils.marshaller(
202                               com.google.cloud.asset.v1.Feed.getDefaultInstance()))
203                       .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("CreateFeed"))
204                       .build();
205         }
206       }
207     }
208     return getCreateFeedMethod;
209   }
210 
211   private static volatile io.grpc.MethodDescriptor<
212           com.google.cloud.asset.v1.GetFeedRequest, com.google.cloud.asset.v1.Feed>
213       getGetFeedMethod;
214 
215   @io.grpc.stub.annotations.RpcMethod(
216       fullMethodName = SERVICE_NAME + '/' + "GetFeed",
217       requestType = com.google.cloud.asset.v1.GetFeedRequest.class,
218       responseType = com.google.cloud.asset.v1.Feed.class,
219       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
220   public static io.grpc.MethodDescriptor<
221           com.google.cloud.asset.v1.GetFeedRequest, com.google.cloud.asset.v1.Feed>
getGetFeedMethod()222       getGetFeedMethod() {
223     io.grpc.MethodDescriptor<
224             com.google.cloud.asset.v1.GetFeedRequest, com.google.cloud.asset.v1.Feed>
225         getGetFeedMethod;
226     if ((getGetFeedMethod = AssetServiceGrpc.getGetFeedMethod) == null) {
227       synchronized (AssetServiceGrpc.class) {
228         if ((getGetFeedMethod = AssetServiceGrpc.getGetFeedMethod) == null) {
229           AssetServiceGrpc.getGetFeedMethod =
230               getGetFeedMethod =
231                   io.grpc.MethodDescriptor
232                       .<com.google.cloud.asset.v1.GetFeedRequest, com.google.cloud.asset.v1.Feed>
233                           newBuilder()
234                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
235                       .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFeed"))
236                       .setSampledToLocalTracing(true)
237                       .setRequestMarshaller(
238                           io.grpc.protobuf.ProtoUtils.marshaller(
239                               com.google.cloud.asset.v1.GetFeedRequest.getDefaultInstance()))
240                       .setResponseMarshaller(
241                           io.grpc.protobuf.ProtoUtils.marshaller(
242                               com.google.cloud.asset.v1.Feed.getDefaultInstance()))
243                       .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("GetFeed"))
244                       .build();
245         }
246       }
247     }
248     return getGetFeedMethod;
249   }
250 
251   private static volatile io.grpc.MethodDescriptor<
252           com.google.cloud.asset.v1.ListFeedsRequest, com.google.cloud.asset.v1.ListFeedsResponse>
253       getListFeedsMethod;
254 
255   @io.grpc.stub.annotations.RpcMethod(
256       fullMethodName = SERVICE_NAME + '/' + "ListFeeds",
257       requestType = com.google.cloud.asset.v1.ListFeedsRequest.class,
258       responseType = com.google.cloud.asset.v1.ListFeedsResponse.class,
259       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
260   public static io.grpc.MethodDescriptor<
261           com.google.cloud.asset.v1.ListFeedsRequest, com.google.cloud.asset.v1.ListFeedsResponse>
getListFeedsMethod()262       getListFeedsMethod() {
263     io.grpc.MethodDescriptor<
264             com.google.cloud.asset.v1.ListFeedsRequest, com.google.cloud.asset.v1.ListFeedsResponse>
265         getListFeedsMethod;
266     if ((getListFeedsMethod = AssetServiceGrpc.getListFeedsMethod) == null) {
267       synchronized (AssetServiceGrpc.class) {
268         if ((getListFeedsMethod = AssetServiceGrpc.getListFeedsMethod) == null) {
269           AssetServiceGrpc.getListFeedsMethod =
270               getListFeedsMethod =
271                   io.grpc.MethodDescriptor
272                       .<com.google.cloud.asset.v1.ListFeedsRequest,
273                           com.google.cloud.asset.v1.ListFeedsResponse>
274                           newBuilder()
275                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
276                       .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFeeds"))
277                       .setSampledToLocalTracing(true)
278                       .setRequestMarshaller(
279                           io.grpc.protobuf.ProtoUtils.marshaller(
280                               com.google.cloud.asset.v1.ListFeedsRequest.getDefaultInstance()))
281                       .setResponseMarshaller(
282                           io.grpc.protobuf.ProtoUtils.marshaller(
283                               com.google.cloud.asset.v1.ListFeedsResponse.getDefaultInstance()))
284                       .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("ListFeeds"))
285                       .build();
286         }
287       }
288     }
289     return getListFeedsMethod;
290   }
291 
292   private static volatile io.grpc.MethodDescriptor<
293           com.google.cloud.asset.v1.UpdateFeedRequest, com.google.cloud.asset.v1.Feed>
294       getUpdateFeedMethod;
295 
296   @io.grpc.stub.annotations.RpcMethod(
297       fullMethodName = SERVICE_NAME + '/' + "UpdateFeed",
298       requestType = com.google.cloud.asset.v1.UpdateFeedRequest.class,
299       responseType = com.google.cloud.asset.v1.Feed.class,
300       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
301   public static io.grpc.MethodDescriptor<
302           com.google.cloud.asset.v1.UpdateFeedRequest, com.google.cloud.asset.v1.Feed>
getUpdateFeedMethod()303       getUpdateFeedMethod() {
304     io.grpc.MethodDescriptor<
305             com.google.cloud.asset.v1.UpdateFeedRequest, com.google.cloud.asset.v1.Feed>
306         getUpdateFeedMethod;
307     if ((getUpdateFeedMethod = AssetServiceGrpc.getUpdateFeedMethod) == null) {
308       synchronized (AssetServiceGrpc.class) {
309         if ((getUpdateFeedMethod = AssetServiceGrpc.getUpdateFeedMethod) == null) {
310           AssetServiceGrpc.getUpdateFeedMethod =
311               getUpdateFeedMethod =
312                   io.grpc.MethodDescriptor
313                       .<com.google.cloud.asset.v1.UpdateFeedRequest, com.google.cloud.asset.v1.Feed>
314                           newBuilder()
315                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
316                       .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateFeed"))
317                       .setSampledToLocalTracing(true)
318                       .setRequestMarshaller(
319                           io.grpc.protobuf.ProtoUtils.marshaller(
320                               com.google.cloud.asset.v1.UpdateFeedRequest.getDefaultInstance()))
321                       .setResponseMarshaller(
322                           io.grpc.protobuf.ProtoUtils.marshaller(
323                               com.google.cloud.asset.v1.Feed.getDefaultInstance()))
324                       .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("UpdateFeed"))
325                       .build();
326         }
327       }
328     }
329     return getUpdateFeedMethod;
330   }
331 
332   private static volatile io.grpc.MethodDescriptor<
333           com.google.cloud.asset.v1.DeleteFeedRequest, com.google.protobuf.Empty>
334       getDeleteFeedMethod;
335 
336   @io.grpc.stub.annotations.RpcMethod(
337       fullMethodName = SERVICE_NAME + '/' + "DeleteFeed",
338       requestType = com.google.cloud.asset.v1.DeleteFeedRequest.class,
339       responseType = com.google.protobuf.Empty.class,
340       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
341   public static io.grpc.MethodDescriptor<
342           com.google.cloud.asset.v1.DeleteFeedRequest, com.google.protobuf.Empty>
getDeleteFeedMethod()343       getDeleteFeedMethod() {
344     io.grpc.MethodDescriptor<com.google.cloud.asset.v1.DeleteFeedRequest, com.google.protobuf.Empty>
345         getDeleteFeedMethod;
346     if ((getDeleteFeedMethod = AssetServiceGrpc.getDeleteFeedMethod) == null) {
347       synchronized (AssetServiceGrpc.class) {
348         if ((getDeleteFeedMethod = AssetServiceGrpc.getDeleteFeedMethod) == null) {
349           AssetServiceGrpc.getDeleteFeedMethod =
350               getDeleteFeedMethod =
351                   io.grpc.MethodDescriptor
352                       .<com.google.cloud.asset.v1.DeleteFeedRequest, com.google.protobuf.Empty>
353                           newBuilder()
354                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
355                       .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteFeed"))
356                       .setSampledToLocalTracing(true)
357                       .setRequestMarshaller(
358                           io.grpc.protobuf.ProtoUtils.marshaller(
359                               com.google.cloud.asset.v1.DeleteFeedRequest.getDefaultInstance()))
360                       .setResponseMarshaller(
361                           io.grpc.protobuf.ProtoUtils.marshaller(
362                               com.google.protobuf.Empty.getDefaultInstance()))
363                       .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("DeleteFeed"))
364                       .build();
365         }
366       }
367     }
368     return getDeleteFeedMethod;
369   }
370 
371   private static volatile io.grpc.MethodDescriptor<
372           com.google.cloud.asset.v1.SearchAllResourcesRequest,
373           com.google.cloud.asset.v1.SearchAllResourcesResponse>
374       getSearchAllResourcesMethod;
375 
376   @io.grpc.stub.annotations.RpcMethod(
377       fullMethodName = SERVICE_NAME + '/' + "SearchAllResources",
378       requestType = com.google.cloud.asset.v1.SearchAllResourcesRequest.class,
379       responseType = com.google.cloud.asset.v1.SearchAllResourcesResponse.class,
380       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
381   public static io.grpc.MethodDescriptor<
382           com.google.cloud.asset.v1.SearchAllResourcesRequest,
383           com.google.cloud.asset.v1.SearchAllResourcesResponse>
getSearchAllResourcesMethod()384       getSearchAllResourcesMethod() {
385     io.grpc.MethodDescriptor<
386             com.google.cloud.asset.v1.SearchAllResourcesRequest,
387             com.google.cloud.asset.v1.SearchAllResourcesResponse>
388         getSearchAllResourcesMethod;
389     if ((getSearchAllResourcesMethod = AssetServiceGrpc.getSearchAllResourcesMethod) == null) {
390       synchronized (AssetServiceGrpc.class) {
391         if ((getSearchAllResourcesMethod = AssetServiceGrpc.getSearchAllResourcesMethod) == null) {
392           AssetServiceGrpc.getSearchAllResourcesMethod =
393               getSearchAllResourcesMethod =
394                   io.grpc.MethodDescriptor
395                       .<com.google.cloud.asset.v1.SearchAllResourcesRequest,
396                           com.google.cloud.asset.v1.SearchAllResourcesResponse>
397                           newBuilder()
398                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
399                       .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SearchAllResources"))
400                       .setSampledToLocalTracing(true)
401                       .setRequestMarshaller(
402                           io.grpc.protobuf.ProtoUtils.marshaller(
403                               com.google.cloud.asset.v1.SearchAllResourcesRequest
404                                   .getDefaultInstance()))
405                       .setResponseMarshaller(
406                           io.grpc.protobuf.ProtoUtils.marshaller(
407                               com.google.cloud.asset.v1.SearchAllResourcesResponse
408                                   .getDefaultInstance()))
409                       .setSchemaDescriptor(
410                           new AssetServiceMethodDescriptorSupplier("SearchAllResources"))
411                       .build();
412         }
413       }
414     }
415     return getSearchAllResourcesMethod;
416   }
417 
418   private static volatile io.grpc.MethodDescriptor<
419           com.google.cloud.asset.v1.SearchAllIamPoliciesRequest,
420           com.google.cloud.asset.v1.SearchAllIamPoliciesResponse>
421       getSearchAllIamPoliciesMethod;
422 
423   @io.grpc.stub.annotations.RpcMethod(
424       fullMethodName = SERVICE_NAME + '/' + "SearchAllIamPolicies",
425       requestType = com.google.cloud.asset.v1.SearchAllIamPoliciesRequest.class,
426       responseType = com.google.cloud.asset.v1.SearchAllIamPoliciesResponse.class,
427       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
428   public static io.grpc.MethodDescriptor<
429           com.google.cloud.asset.v1.SearchAllIamPoliciesRequest,
430           com.google.cloud.asset.v1.SearchAllIamPoliciesResponse>
getSearchAllIamPoliciesMethod()431       getSearchAllIamPoliciesMethod() {
432     io.grpc.MethodDescriptor<
433             com.google.cloud.asset.v1.SearchAllIamPoliciesRequest,
434             com.google.cloud.asset.v1.SearchAllIamPoliciesResponse>
435         getSearchAllIamPoliciesMethod;
436     if ((getSearchAllIamPoliciesMethod = AssetServiceGrpc.getSearchAllIamPoliciesMethod) == null) {
437       synchronized (AssetServiceGrpc.class) {
438         if ((getSearchAllIamPoliciesMethod = AssetServiceGrpc.getSearchAllIamPoliciesMethod)
439             == null) {
440           AssetServiceGrpc.getSearchAllIamPoliciesMethod =
441               getSearchAllIamPoliciesMethod =
442                   io.grpc.MethodDescriptor
443                       .<com.google.cloud.asset.v1.SearchAllIamPoliciesRequest,
444                           com.google.cloud.asset.v1.SearchAllIamPoliciesResponse>
445                           newBuilder()
446                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
447                       .setFullMethodName(
448                           generateFullMethodName(SERVICE_NAME, "SearchAllIamPolicies"))
449                       .setSampledToLocalTracing(true)
450                       .setRequestMarshaller(
451                           io.grpc.protobuf.ProtoUtils.marshaller(
452                               com.google.cloud.asset.v1.SearchAllIamPoliciesRequest
453                                   .getDefaultInstance()))
454                       .setResponseMarshaller(
455                           io.grpc.protobuf.ProtoUtils.marshaller(
456                               com.google.cloud.asset.v1.SearchAllIamPoliciesResponse
457                                   .getDefaultInstance()))
458                       .setSchemaDescriptor(
459                           new AssetServiceMethodDescriptorSupplier("SearchAllIamPolicies"))
460                       .build();
461         }
462       }
463     }
464     return getSearchAllIamPoliciesMethod;
465   }
466 
467   private static volatile io.grpc.MethodDescriptor<
468           com.google.cloud.asset.v1.AnalyzeIamPolicyRequest,
469           com.google.cloud.asset.v1.AnalyzeIamPolicyResponse>
470       getAnalyzeIamPolicyMethod;
471 
472   @io.grpc.stub.annotations.RpcMethod(
473       fullMethodName = SERVICE_NAME + '/' + "AnalyzeIamPolicy",
474       requestType = com.google.cloud.asset.v1.AnalyzeIamPolicyRequest.class,
475       responseType = com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.class,
476       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
477   public static io.grpc.MethodDescriptor<
478           com.google.cloud.asset.v1.AnalyzeIamPolicyRequest,
479           com.google.cloud.asset.v1.AnalyzeIamPolicyResponse>
getAnalyzeIamPolicyMethod()480       getAnalyzeIamPolicyMethod() {
481     io.grpc.MethodDescriptor<
482             com.google.cloud.asset.v1.AnalyzeIamPolicyRequest,
483             com.google.cloud.asset.v1.AnalyzeIamPolicyResponse>
484         getAnalyzeIamPolicyMethod;
485     if ((getAnalyzeIamPolicyMethod = AssetServiceGrpc.getAnalyzeIamPolicyMethod) == null) {
486       synchronized (AssetServiceGrpc.class) {
487         if ((getAnalyzeIamPolicyMethod = AssetServiceGrpc.getAnalyzeIamPolicyMethod) == null) {
488           AssetServiceGrpc.getAnalyzeIamPolicyMethod =
489               getAnalyzeIamPolicyMethod =
490                   io.grpc.MethodDescriptor
491                       .<com.google.cloud.asset.v1.AnalyzeIamPolicyRequest,
492                           com.google.cloud.asset.v1.AnalyzeIamPolicyResponse>
493                           newBuilder()
494                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
495                       .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AnalyzeIamPolicy"))
496                       .setSampledToLocalTracing(true)
497                       .setRequestMarshaller(
498                           io.grpc.protobuf.ProtoUtils.marshaller(
499                               com.google.cloud.asset.v1.AnalyzeIamPolicyRequest
500                                   .getDefaultInstance()))
501                       .setResponseMarshaller(
502                           io.grpc.protobuf.ProtoUtils.marshaller(
503                               com.google.cloud.asset.v1.AnalyzeIamPolicyResponse
504                                   .getDefaultInstance()))
505                       .setSchemaDescriptor(
506                           new AssetServiceMethodDescriptorSupplier("AnalyzeIamPolicy"))
507                       .build();
508         }
509       }
510     }
511     return getAnalyzeIamPolicyMethod;
512   }
513 
514   private static volatile io.grpc.MethodDescriptor<
515           com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest,
516           com.google.longrunning.Operation>
517       getAnalyzeIamPolicyLongrunningMethod;
518 
519   @io.grpc.stub.annotations.RpcMethod(
520       fullMethodName = SERVICE_NAME + '/' + "AnalyzeIamPolicyLongrunning",
521       requestType = com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest.class,
522       responseType = com.google.longrunning.Operation.class,
523       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
524   public static io.grpc.MethodDescriptor<
525           com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest,
526           com.google.longrunning.Operation>
getAnalyzeIamPolicyLongrunningMethod()527       getAnalyzeIamPolicyLongrunningMethod() {
528     io.grpc.MethodDescriptor<
529             com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest,
530             com.google.longrunning.Operation>
531         getAnalyzeIamPolicyLongrunningMethod;
532     if ((getAnalyzeIamPolicyLongrunningMethod =
533             AssetServiceGrpc.getAnalyzeIamPolicyLongrunningMethod)
534         == null) {
535       synchronized (AssetServiceGrpc.class) {
536         if ((getAnalyzeIamPolicyLongrunningMethod =
537                 AssetServiceGrpc.getAnalyzeIamPolicyLongrunningMethod)
538             == null) {
539           AssetServiceGrpc.getAnalyzeIamPolicyLongrunningMethod =
540               getAnalyzeIamPolicyLongrunningMethod =
541                   io.grpc.MethodDescriptor
542                       .<com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest,
543                           com.google.longrunning.Operation>
544                           newBuilder()
545                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
546                       .setFullMethodName(
547                           generateFullMethodName(SERVICE_NAME, "AnalyzeIamPolicyLongrunning"))
548                       .setSampledToLocalTracing(true)
549                       .setRequestMarshaller(
550                           io.grpc.protobuf.ProtoUtils.marshaller(
551                               com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest
552                                   .getDefaultInstance()))
553                       .setResponseMarshaller(
554                           io.grpc.protobuf.ProtoUtils.marshaller(
555                               com.google.longrunning.Operation.getDefaultInstance()))
556                       .setSchemaDescriptor(
557                           new AssetServiceMethodDescriptorSupplier("AnalyzeIamPolicyLongrunning"))
558                       .build();
559         }
560       }
561     }
562     return getAnalyzeIamPolicyLongrunningMethod;
563   }
564 
565   private static volatile io.grpc.MethodDescriptor<
566           com.google.cloud.asset.v1.AnalyzeMoveRequest,
567           com.google.cloud.asset.v1.AnalyzeMoveResponse>
568       getAnalyzeMoveMethod;
569 
570   @io.grpc.stub.annotations.RpcMethod(
571       fullMethodName = SERVICE_NAME + '/' + "AnalyzeMove",
572       requestType = com.google.cloud.asset.v1.AnalyzeMoveRequest.class,
573       responseType = com.google.cloud.asset.v1.AnalyzeMoveResponse.class,
574       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
575   public static io.grpc.MethodDescriptor<
576           com.google.cloud.asset.v1.AnalyzeMoveRequest,
577           com.google.cloud.asset.v1.AnalyzeMoveResponse>
getAnalyzeMoveMethod()578       getAnalyzeMoveMethod() {
579     io.grpc.MethodDescriptor<
580             com.google.cloud.asset.v1.AnalyzeMoveRequest,
581             com.google.cloud.asset.v1.AnalyzeMoveResponse>
582         getAnalyzeMoveMethod;
583     if ((getAnalyzeMoveMethod = AssetServiceGrpc.getAnalyzeMoveMethod) == null) {
584       synchronized (AssetServiceGrpc.class) {
585         if ((getAnalyzeMoveMethod = AssetServiceGrpc.getAnalyzeMoveMethod) == null) {
586           AssetServiceGrpc.getAnalyzeMoveMethod =
587               getAnalyzeMoveMethod =
588                   io.grpc.MethodDescriptor
589                       .<com.google.cloud.asset.v1.AnalyzeMoveRequest,
590                           com.google.cloud.asset.v1.AnalyzeMoveResponse>
591                           newBuilder()
592                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
593                       .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AnalyzeMove"))
594                       .setSampledToLocalTracing(true)
595                       .setRequestMarshaller(
596                           io.grpc.protobuf.ProtoUtils.marshaller(
597                               com.google.cloud.asset.v1.AnalyzeMoveRequest.getDefaultInstance()))
598                       .setResponseMarshaller(
599                           io.grpc.protobuf.ProtoUtils.marshaller(
600                               com.google.cloud.asset.v1.AnalyzeMoveResponse.getDefaultInstance()))
601                       .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("AnalyzeMove"))
602                       .build();
603         }
604       }
605     }
606     return getAnalyzeMoveMethod;
607   }
608 
609   private static volatile io.grpc.MethodDescriptor<
610           com.google.cloud.asset.v1.QueryAssetsRequest,
611           com.google.cloud.asset.v1.QueryAssetsResponse>
612       getQueryAssetsMethod;
613 
614   @io.grpc.stub.annotations.RpcMethod(
615       fullMethodName = SERVICE_NAME + '/' + "QueryAssets",
616       requestType = com.google.cloud.asset.v1.QueryAssetsRequest.class,
617       responseType = com.google.cloud.asset.v1.QueryAssetsResponse.class,
618       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
619   public static io.grpc.MethodDescriptor<
620           com.google.cloud.asset.v1.QueryAssetsRequest,
621           com.google.cloud.asset.v1.QueryAssetsResponse>
getQueryAssetsMethod()622       getQueryAssetsMethod() {
623     io.grpc.MethodDescriptor<
624             com.google.cloud.asset.v1.QueryAssetsRequest,
625             com.google.cloud.asset.v1.QueryAssetsResponse>
626         getQueryAssetsMethod;
627     if ((getQueryAssetsMethod = AssetServiceGrpc.getQueryAssetsMethod) == null) {
628       synchronized (AssetServiceGrpc.class) {
629         if ((getQueryAssetsMethod = AssetServiceGrpc.getQueryAssetsMethod) == null) {
630           AssetServiceGrpc.getQueryAssetsMethod =
631               getQueryAssetsMethod =
632                   io.grpc.MethodDescriptor
633                       .<com.google.cloud.asset.v1.QueryAssetsRequest,
634                           com.google.cloud.asset.v1.QueryAssetsResponse>
635                           newBuilder()
636                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
637                       .setFullMethodName(generateFullMethodName(SERVICE_NAME, "QueryAssets"))
638                       .setSampledToLocalTracing(true)
639                       .setRequestMarshaller(
640                           io.grpc.protobuf.ProtoUtils.marshaller(
641                               com.google.cloud.asset.v1.QueryAssetsRequest.getDefaultInstance()))
642                       .setResponseMarshaller(
643                           io.grpc.protobuf.ProtoUtils.marshaller(
644                               com.google.cloud.asset.v1.QueryAssetsResponse.getDefaultInstance()))
645                       .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("QueryAssets"))
646                       .build();
647         }
648       }
649     }
650     return getQueryAssetsMethod;
651   }
652 
653   private static volatile io.grpc.MethodDescriptor<
654           com.google.cloud.asset.v1.CreateSavedQueryRequest, com.google.cloud.asset.v1.SavedQuery>
655       getCreateSavedQueryMethod;
656 
657   @io.grpc.stub.annotations.RpcMethod(
658       fullMethodName = SERVICE_NAME + '/' + "CreateSavedQuery",
659       requestType = com.google.cloud.asset.v1.CreateSavedQueryRequest.class,
660       responseType = com.google.cloud.asset.v1.SavedQuery.class,
661       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
662   public static io.grpc.MethodDescriptor<
663           com.google.cloud.asset.v1.CreateSavedQueryRequest, com.google.cloud.asset.v1.SavedQuery>
getCreateSavedQueryMethod()664       getCreateSavedQueryMethod() {
665     io.grpc.MethodDescriptor<
666             com.google.cloud.asset.v1.CreateSavedQueryRequest, com.google.cloud.asset.v1.SavedQuery>
667         getCreateSavedQueryMethod;
668     if ((getCreateSavedQueryMethod = AssetServiceGrpc.getCreateSavedQueryMethod) == null) {
669       synchronized (AssetServiceGrpc.class) {
670         if ((getCreateSavedQueryMethod = AssetServiceGrpc.getCreateSavedQueryMethod) == null) {
671           AssetServiceGrpc.getCreateSavedQueryMethod =
672               getCreateSavedQueryMethod =
673                   io.grpc.MethodDescriptor
674                       .<com.google.cloud.asset.v1.CreateSavedQueryRequest,
675                           com.google.cloud.asset.v1.SavedQuery>
676                           newBuilder()
677                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
678                       .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSavedQuery"))
679                       .setSampledToLocalTracing(true)
680                       .setRequestMarshaller(
681                           io.grpc.protobuf.ProtoUtils.marshaller(
682                               com.google.cloud.asset.v1.CreateSavedQueryRequest
683                                   .getDefaultInstance()))
684                       .setResponseMarshaller(
685                           io.grpc.protobuf.ProtoUtils.marshaller(
686                               com.google.cloud.asset.v1.SavedQuery.getDefaultInstance()))
687                       .setSchemaDescriptor(
688                           new AssetServiceMethodDescriptorSupplier("CreateSavedQuery"))
689                       .build();
690         }
691       }
692     }
693     return getCreateSavedQueryMethod;
694   }
695 
696   private static volatile io.grpc.MethodDescriptor<
697           com.google.cloud.asset.v1.GetSavedQueryRequest, com.google.cloud.asset.v1.SavedQuery>
698       getGetSavedQueryMethod;
699 
700   @io.grpc.stub.annotations.RpcMethod(
701       fullMethodName = SERVICE_NAME + '/' + "GetSavedQuery",
702       requestType = com.google.cloud.asset.v1.GetSavedQueryRequest.class,
703       responseType = com.google.cloud.asset.v1.SavedQuery.class,
704       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
705   public static io.grpc.MethodDescriptor<
706           com.google.cloud.asset.v1.GetSavedQueryRequest, com.google.cloud.asset.v1.SavedQuery>
getGetSavedQueryMethod()707       getGetSavedQueryMethod() {
708     io.grpc.MethodDescriptor<
709             com.google.cloud.asset.v1.GetSavedQueryRequest, com.google.cloud.asset.v1.SavedQuery>
710         getGetSavedQueryMethod;
711     if ((getGetSavedQueryMethod = AssetServiceGrpc.getGetSavedQueryMethod) == null) {
712       synchronized (AssetServiceGrpc.class) {
713         if ((getGetSavedQueryMethod = AssetServiceGrpc.getGetSavedQueryMethod) == null) {
714           AssetServiceGrpc.getGetSavedQueryMethod =
715               getGetSavedQueryMethod =
716                   io.grpc.MethodDescriptor
717                       .<com.google.cloud.asset.v1.GetSavedQueryRequest,
718                           com.google.cloud.asset.v1.SavedQuery>
719                           newBuilder()
720                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
721                       .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSavedQuery"))
722                       .setSampledToLocalTracing(true)
723                       .setRequestMarshaller(
724                           io.grpc.protobuf.ProtoUtils.marshaller(
725                               com.google.cloud.asset.v1.GetSavedQueryRequest.getDefaultInstance()))
726                       .setResponseMarshaller(
727                           io.grpc.protobuf.ProtoUtils.marshaller(
728                               com.google.cloud.asset.v1.SavedQuery.getDefaultInstance()))
729                       .setSchemaDescriptor(
730                           new AssetServiceMethodDescriptorSupplier("GetSavedQuery"))
731                       .build();
732         }
733       }
734     }
735     return getGetSavedQueryMethod;
736   }
737 
738   private static volatile io.grpc.MethodDescriptor<
739           com.google.cloud.asset.v1.ListSavedQueriesRequest,
740           com.google.cloud.asset.v1.ListSavedQueriesResponse>
741       getListSavedQueriesMethod;
742 
743   @io.grpc.stub.annotations.RpcMethod(
744       fullMethodName = SERVICE_NAME + '/' + "ListSavedQueries",
745       requestType = com.google.cloud.asset.v1.ListSavedQueriesRequest.class,
746       responseType = com.google.cloud.asset.v1.ListSavedQueriesResponse.class,
747       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
748   public static io.grpc.MethodDescriptor<
749           com.google.cloud.asset.v1.ListSavedQueriesRequest,
750           com.google.cloud.asset.v1.ListSavedQueriesResponse>
getListSavedQueriesMethod()751       getListSavedQueriesMethod() {
752     io.grpc.MethodDescriptor<
753             com.google.cloud.asset.v1.ListSavedQueriesRequest,
754             com.google.cloud.asset.v1.ListSavedQueriesResponse>
755         getListSavedQueriesMethod;
756     if ((getListSavedQueriesMethod = AssetServiceGrpc.getListSavedQueriesMethod) == null) {
757       synchronized (AssetServiceGrpc.class) {
758         if ((getListSavedQueriesMethod = AssetServiceGrpc.getListSavedQueriesMethod) == null) {
759           AssetServiceGrpc.getListSavedQueriesMethod =
760               getListSavedQueriesMethod =
761                   io.grpc.MethodDescriptor
762                       .<com.google.cloud.asset.v1.ListSavedQueriesRequest,
763                           com.google.cloud.asset.v1.ListSavedQueriesResponse>
764                           newBuilder()
765                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
766                       .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSavedQueries"))
767                       .setSampledToLocalTracing(true)
768                       .setRequestMarshaller(
769                           io.grpc.protobuf.ProtoUtils.marshaller(
770                               com.google.cloud.asset.v1.ListSavedQueriesRequest
771                                   .getDefaultInstance()))
772                       .setResponseMarshaller(
773                           io.grpc.protobuf.ProtoUtils.marshaller(
774                               com.google.cloud.asset.v1.ListSavedQueriesResponse
775                                   .getDefaultInstance()))
776                       .setSchemaDescriptor(
777                           new AssetServiceMethodDescriptorSupplier("ListSavedQueries"))
778                       .build();
779         }
780       }
781     }
782     return getListSavedQueriesMethod;
783   }
784 
785   private static volatile io.grpc.MethodDescriptor<
786           com.google.cloud.asset.v1.UpdateSavedQueryRequest, com.google.cloud.asset.v1.SavedQuery>
787       getUpdateSavedQueryMethod;
788 
789   @io.grpc.stub.annotations.RpcMethod(
790       fullMethodName = SERVICE_NAME + '/' + "UpdateSavedQuery",
791       requestType = com.google.cloud.asset.v1.UpdateSavedQueryRequest.class,
792       responseType = com.google.cloud.asset.v1.SavedQuery.class,
793       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
794   public static io.grpc.MethodDescriptor<
795           com.google.cloud.asset.v1.UpdateSavedQueryRequest, com.google.cloud.asset.v1.SavedQuery>
getUpdateSavedQueryMethod()796       getUpdateSavedQueryMethod() {
797     io.grpc.MethodDescriptor<
798             com.google.cloud.asset.v1.UpdateSavedQueryRequest, com.google.cloud.asset.v1.SavedQuery>
799         getUpdateSavedQueryMethod;
800     if ((getUpdateSavedQueryMethod = AssetServiceGrpc.getUpdateSavedQueryMethod) == null) {
801       synchronized (AssetServiceGrpc.class) {
802         if ((getUpdateSavedQueryMethod = AssetServiceGrpc.getUpdateSavedQueryMethod) == null) {
803           AssetServiceGrpc.getUpdateSavedQueryMethod =
804               getUpdateSavedQueryMethod =
805                   io.grpc.MethodDescriptor
806                       .<com.google.cloud.asset.v1.UpdateSavedQueryRequest,
807                           com.google.cloud.asset.v1.SavedQuery>
808                           newBuilder()
809                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
810                       .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSavedQuery"))
811                       .setSampledToLocalTracing(true)
812                       .setRequestMarshaller(
813                           io.grpc.protobuf.ProtoUtils.marshaller(
814                               com.google.cloud.asset.v1.UpdateSavedQueryRequest
815                                   .getDefaultInstance()))
816                       .setResponseMarshaller(
817                           io.grpc.protobuf.ProtoUtils.marshaller(
818                               com.google.cloud.asset.v1.SavedQuery.getDefaultInstance()))
819                       .setSchemaDescriptor(
820                           new AssetServiceMethodDescriptorSupplier("UpdateSavedQuery"))
821                       .build();
822         }
823       }
824     }
825     return getUpdateSavedQueryMethod;
826   }
827 
828   private static volatile io.grpc.MethodDescriptor<
829           com.google.cloud.asset.v1.DeleteSavedQueryRequest, com.google.protobuf.Empty>
830       getDeleteSavedQueryMethod;
831 
832   @io.grpc.stub.annotations.RpcMethod(
833       fullMethodName = SERVICE_NAME + '/' + "DeleteSavedQuery",
834       requestType = com.google.cloud.asset.v1.DeleteSavedQueryRequest.class,
835       responseType = com.google.protobuf.Empty.class,
836       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
837   public static io.grpc.MethodDescriptor<
838           com.google.cloud.asset.v1.DeleteSavedQueryRequest, com.google.protobuf.Empty>
getDeleteSavedQueryMethod()839       getDeleteSavedQueryMethod() {
840     io.grpc.MethodDescriptor<
841             com.google.cloud.asset.v1.DeleteSavedQueryRequest, com.google.protobuf.Empty>
842         getDeleteSavedQueryMethod;
843     if ((getDeleteSavedQueryMethod = AssetServiceGrpc.getDeleteSavedQueryMethod) == null) {
844       synchronized (AssetServiceGrpc.class) {
845         if ((getDeleteSavedQueryMethod = AssetServiceGrpc.getDeleteSavedQueryMethod) == null) {
846           AssetServiceGrpc.getDeleteSavedQueryMethod =
847               getDeleteSavedQueryMethod =
848                   io.grpc.MethodDescriptor
849                       .<com.google.cloud.asset.v1.DeleteSavedQueryRequest,
850                           com.google.protobuf.Empty>
851                           newBuilder()
852                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
853                       .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSavedQuery"))
854                       .setSampledToLocalTracing(true)
855                       .setRequestMarshaller(
856                           io.grpc.protobuf.ProtoUtils.marshaller(
857                               com.google.cloud.asset.v1.DeleteSavedQueryRequest
858                                   .getDefaultInstance()))
859                       .setResponseMarshaller(
860                           io.grpc.protobuf.ProtoUtils.marshaller(
861                               com.google.protobuf.Empty.getDefaultInstance()))
862                       .setSchemaDescriptor(
863                           new AssetServiceMethodDescriptorSupplier("DeleteSavedQuery"))
864                       .build();
865         }
866       }
867     }
868     return getDeleteSavedQueryMethod;
869   }
870 
871   private static volatile io.grpc.MethodDescriptor<
872           com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest,
873           com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse>
874       getBatchGetEffectiveIamPoliciesMethod;
875 
876   @io.grpc.stub.annotations.RpcMethod(
877       fullMethodName = SERVICE_NAME + '/' + "BatchGetEffectiveIamPolicies",
878       requestType = com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.class,
879       responseType = com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.class,
880       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
881   public static io.grpc.MethodDescriptor<
882           com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest,
883           com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse>
getBatchGetEffectiveIamPoliciesMethod()884       getBatchGetEffectiveIamPoliciesMethod() {
885     io.grpc.MethodDescriptor<
886             com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest,
887             com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse>
888         getBatchGetEffectiveIamPoliciesMethod;
889     if ((getBatchGetEffectiveIamPoliciesMethod =
890             AssetServiceGrpc.getBatchGetEffectiveIamPoliciesMethod)
891         == null) {
892       synchronized (AssetServiceGrpc.class) {
893         if ((getBatchGetEffectiveIamPoliciesMethod =
894                 AssetServiceGrpc.getBatchGetEffectiveIamPoliciesMethod)
895             == null) {
896           AssetServiceGrpc.getBatchGetEffectiveIamPoliciesMethod =
897               getBatchGetEffectiveIamPoliciesMethod =
898                   io.grpc.MethodDescriptor
899                       .<com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest,
900                           com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse>
901                           newBuilder()
902                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
903                       .setFullMethodName(
904                           generateFullMethodName(SERVICE_NAME, "BatchGetEffectiveIamPolicies"))
905                       .setSampledToLocalTracing(true)
906                       .setRequestMarshaller(
907                           io.grpc.protobuf.ProtoUtils.marshaller(
908                               com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest
909                                   .getDefaultInstance()))
910                       .setResponseMarshaller(
911                           io.grpc.protobuf.ProtoUtils.marshaller(
912                               com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse
913                                   .getDefaultInstance()))
914                       .setSchemaDescriptor(
915                           new AssetServiceMethodDescriptorSupplier("BatchGetEffectiveIamPolicies"))
916                       .build();
917         }
918       }
919     }
920     return getBatchGetEffectiveIamPoliciesMethod;
921   }
922 
923   private static volatile io.grpc.MethodDescriptor<
924           com.google.cloud.asset.v1.AnalyzeOrgPoliciesRequest,
925           com.google.cloud.asset.v1.AnalyzeOrgPoliciesResponse>
926       getAnalyzeOrgPoliciesMethod;
927 
928   @io.grpc.stub.annotations.RpcMethod(
929       fullMethodName = SERVICE_NAME + '/' + "AnalyzeOrgPolicies",
930       requestType = com.google.cloud.asset.v1.AnalyzeOrgPoliciesRequest.class,
931       responseType = com.google.cloud.asset.v1.AnalyzeOrgPoliciesResponse.class,
932       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
933   public static io.grpc.MethodDescriptor<
934           com.google.cloud.asset.v1.AnalyzeOrgPoliciesRequest,
935           com.google.cloud.asset.v1.AnalyzeOrgPoliciesResponse>
getAnalyzeOrgPoliciesMethod()936       getAnalyzeOrgPoliciesMethod() {
937     io.grpc.MethodDescriptor<
938             com.google.cloud.asset.v1.AnalyzeOrgPoliciesRequest,
939             com.google.cloud.asset.v1.AnalyzeOrgPoliciesResponse>
940         getAnalyzeOrgPoliciesMethod;
941     if ((getAnalyzeOrgPoliciesMethod = AssetServiceGrpc.getAnalyzeOrgPoliciesMethod) == null) {
942       synchronized (AssetServiceGrpc.class) {
943         if ((getAnalyzeOrgPoliciesMethod = AssetServiceGrpc.getAnalyzeOrgPoliciesMethod) == null) {
944           AssetServiceGrpc.getAnalyzeOrgPoliciesMethod =
945               getAnalyzeOrgPoliciesMethod =
946                   io.grpc.MethodDescriptor
947                       .<com.google.cloud.asset.v1.AnalyzeOrgPoliciesRequest,
948                           com.google.cloud.asset.v1.AnalyzeOrgPoliciesResponse>
949                           newBuilder()
950                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
951                       .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AnalyzeOrgPolicies"))
952                       .setSampledToLocalTracing(true)
953                       .setRequestMarshaller(
954                           io.grpc.protobuf.ProtoUtils.marshaller(
955                               com.google.cloud.asset.v1.AnalyzeOrgPoliciesRequest
956                                   .getDefaultInstance()))
957                       .setResponseMarshaller(
958                           io.grpc.protobuf.ProtoUtils.marshaller(
959                               com.google.cloud.asset.v1.AnalyzeOrgPoliciesResponse
960                                   .getDefaultInstance()))
961                       .setSchemaDescriptor(
962                           new AssetServiceMethodDescriptorSupplier("AnalyzeOrgPolicies"))
963                       .build();
964         }
965       }
966     }
967     return getAnalyzeOrgPoliciesMethod;
968   }
969 
970   private static volatile io.grpc.MethodDescriptor<
971           com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersRequest,
972           com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse>
973       getAnalyzeOrgPolicyGovernedContainersMethod;
974 
975   @io.grpc.stub.annotations.RpcMethod(
976       fullMethodName = SERVICE_NAME + '/' + "AnalyzeOrgPolicyGovernedContainers",
977       requestType = com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersRequest.class,
978       responseType = com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.class,
979       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
980   public static io.grpc.MethodDescriptor<
981           com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersRequest,
982           com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse>
getAnalyzeOrgPolicyGovernedContainersMethod()983       getAnalyzeOrgPolicyGovernedContainersMethod() {
984     io.grpc.MethodDescriptor<
985             com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersRequest,
986             com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse>
987         getAnalyzeOrgPolicyGovernedContainersMethod;
988     if ((getAnalyzeOrgPolicyGovernedContainersMethod =
989             AssetServiceGrpc.getAnalyzeOrgPolicyGovernedContainersMethod)
990         == null) {
991       synchronized (AssetServiceGrpc.class) {
992         if ((getAnalyzeOrgPolicyGovernedContainersMethod =
993                 AssetServiceGrpc.getAnalyzeOrgPolicyGovernedContainersMethod)
994             == null) {
995           AssetServiceGrpc.getAnalyzeOrgPolicyGovernedContainersMethod =
996               getAnalyzeOrgPolicyGovernedContainersMethod =
997                   io.grpc.MethodDescriptor
998                       .<com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersRequest,
999                           com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse>
1000                           newBuilder()
1001                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
1002                       .setFullMethodName(
1003                           generateFullMethodName(
1004                               SERVICE_NAME, "AnalyzeOrgPolicyGovernedContainers"))
1005                       .setSampledToLocalTracing(true)
1006                       .setRequestMarshaller(
1007                           io.grpc.protobuf.ProtoUtils.marshaller(
1008                               com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersRequest
1009                                   .getDefaultInstance()))
1010                       .setResponseMarshaller(
1011                           io.grpc.protobuf.ProtoUtils.marshaller(
1012                               com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse
1013                                   .getDefaultInstance()))
1014                       .setSchemaDescriptor(
1015                           new AssetServiceMethodDescriptorSupplier(
1016                               "AnalyzeOrgPolicyGovernedContainers"))
1017                       .build();
1018         }
1019       }
1020     }
1021     return getAnalyzeOrgPolicyGovernedContainersMethod;
1022   }
1023 
1024   private static volatile io.grpc.MethodDescriptor<
1025           com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest,
1026           com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse>
1027       getAnalyzeOrgPolicyGovernedAssetsMethod;
1028 
1029   @io.grpc.stub.annotations.RpcMethod(
1030       fullMethodName = SERVICE_NAME + '/' + "AnalyzeOrgPolicyGovernedAssets",
1031       requestType = com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest.class,
1032       responseType = com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.class,
1033       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
1034   public static io.grpc.MethodDescriptor<
1035           com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest,
1036           com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse>
getAnalyzeOrgPolicyGovernedAssetsMethod()1037       getAnalyzeOrgPolicyGovernedAssetsMethod() {
1038     io.grpc.MethodDescriptor<
1039             com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest,
1040             com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse>
1041         getAnalyzeOrgPolicyGovernedAssetsMethod;
1042     if ((getAnalyzeOrgPolicyGovernedAssetsMethod =
1043             AssetServiceGrpc.getAnalyzeOrgPolicyGovernedAssetsMethod)
1044         == null) {
1045       synchronized (AssetServiceGrpc.class) {
1046         if ((getAnalyzeOrgPolicyGovernedAssetsMethod =
1047                 AssetServiceGrpc.getAnalyzeOrgPolicyGovernedAssetsMethod)
1048             == null) {
1049           AssetServiceGrpc.getAnalyzeOrgPolicyGovernedAssetsMethod =
1050               getAnalyzeOrgPolicyGovernedAssetsMethod =
1051                   io.grpc.MethodDescriptor
1052                       .<com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest,
1053                           com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse>
1054                           newBuilder()
1055                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
1056                       .setFullMethodName(
1057                           generateFullMethodName(SERVICE_NAME, "AnalyzeOrgPolicyGovernedAssets"))
1058                       .setSampledToLocalTracing(true)
1059                       .setRequestMarshaller(
1060                           io.grpc.protobuf.ProtoUtils.marshaller(
1061                               com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest
1062                                   .getDefaultInstance()))
1063                       .setResponseMarshaller(
1064                           io.grpc.protobuf.ProtoUtils.marshaller(
1065                               com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse
1066                                   .getDefaultInstance()))
1067                       .setSchemaDescriptor(
1068                           new AssetServiceMethodDescriptorSupplier(
1069                               "AnalyzeOrgPolicyGovernedAssets"))
1070                       .build();
1071         }
1072       }
1073     }
1074     return getAnalyzeOrgPolicyGovernedAssetsMethod;
1075   }
1076 
1077   /** Creates a new async stub that supports all call types for the service */
newStub(io.grpc.Channel channel)1078   public static AssetServiceStub newStub(io.grpc.Channel channel) {
1079     io.grpc.stub.AbstractStub.StubFactory<AssetServiceStub> factory =
1080         new io.grpc.stub.AbstractStub.StubFactory<AssetServiceStub>() {
1081           @java.lang.Override
1082           public AssetServiceStub newStub(
1083               io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
1084             return new AssetServiceStub(channel, callOptions);
1085           }
1086         };
1087     return AssetServiceStub.newStub(factory, channel);
1088   }
1089 
1090   /**
1091    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
1092    */
newBlockingStub(io.grpc.Channel channel)1093   public static AssetServiceBlockingStub newBlockingStub(io.grpc.Channel channel) {
1094     io.grpc.stub.AbstractStub.StubFactory<AssetServiceBlockingStub> factory =
1095         new io.grpc.stub.AbstractStub.StubFactory<AssetServiceBlockingStub>() {
1096           @java.lang.Override
1097           public AssetServiceBlockingStub newStub(
1098               io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
1099             return new AssetServiceBlockingStub(channel, callOptions);
1100           }
1101         };
1102     return AssetServiceBlockingStub.newStub(factory, channel);
1103   }
1104 
1105   /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
newFutureStub(io.grpc.Channel channel)1106   public static AssetServiceFutureStub newFutureStub(io.grpc.Channel channel) {
1107     io.grpc.stub.AbstractStub.StubFactory<AssetServiceFutureStub> factory =
1108         new io.grpc.stub.AbstractStub.StubFactory<AssetServiceFutureStub>() {
1109           @java.lang.Override
1110           public AssetServiceFutureStub newStub(
1111               io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
1112             return new AssetServiceFutureStub(channel, callOptions);
1113           }
1114         };
1115     return AssetServiceFutureStub.newStub(factory, channel);
1116   }
1117 
1118   /**
1119    *
1120    *
1121    * <pre>
1122    * Asset service definition.
1123    * </pre>
1124    */
1125   public interface AsyncService {
1126 
1127     /**
1128      *
1129      *
1130      * <pre>
1131      * Exports assets with time and resource types to a given Cloud Storage
1132      * location/BigQuery table. For Cloud Storage location destinations, the
1133      * output format is newline-delimited JSON. Each line represents a
1134      * [google.cloud.asset.v1.Asset][google.cloud.asset.v1.Asset] in the JSON
1135      * format; for BigQuery table destinations, the output table stores the fields
1136      * in asset Protobuf as columns. This API implements the
1137      * [google.longrunning.Operation][google.longrunning.Operation] API, which
1138      * allows you to keep track of the export. We recommend intervals of at least
1139      * 2 seconds with exponential retry to poll the export operation result. For
1140      * regular-size resource parent, the export operation usually finishes within
1141      * 5 minutes.
1142      * </pre>
1143      */
exportAssets( com.google.cloud.asset.v1.ExportAssetsRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)1144     default void exportAssets(
1145         com.google.cloud.asset.v1.ExportAssetsRequest request,
1146         io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {
1147       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
1148           getExportAssetsMethod(), responseObserver);
1149     }
1150 
1151     /**
1152      *
1153      *
1154      * <pre>
1155      * Lists assets with time and resource types and returns paged results in
1156      * response.
1157      * </pre>
1158      */
listAssets( com.google.cloud.asset.v1.ListAssetsRequest request, io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.ListAssetsResponse> responseObserver)1159     default void listAssets(
1160         com.google.cloud.asset.v1.ListAssetsRequest request,
1161         io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.ListAssetsResponse>
1162             responseObserver) {
1163       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListAssetsMethod(), responseObserver);
1164     }
1165 
1166     /**
1167      *
1168      *
1169      * <pre>
1170      * Batch gets the update history of assets that overlap a time window.
1171      * For IAM_POLICY content, this API outputs history when the asset and its
1172      * attached IAM POLICY both exist. This can create gaps in the output history.
1173      * Otherwise, this API outputs history with asset in both non-delete or
1174      * deleted status.
1175      * If a specified asset does not exist, this API returns an INVALID_ARGUMENT
1176      * error.
1177      * </pre>
1178      */
batchGetAssetsHistory( com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest request, io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse> responseObserver)1179     default void batchGetAssetsHistory(
1180         com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest request,
1181         io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse>
1182             responseObserver) {
1183       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
1184           getBatchGetAssetsHistoryMethod(), responseObserver);
1185     }
1186 
1187     /**
1188      *
1189      *
1190      * <pre>
1191      * Creates a feed in a parent project/folder/organization to listen to its
1192      * asset updates.
1193      * </pre>
1194      */
createFeed( com.google.cloud.asset.v1.CreateFeedRequest request, io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.Feed> responseObserver)1195     default void createFeed(
1196         com.google.cloud.asset.v1.CreateFeedRequest request,
1197         io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.Feed> responseObserver) {
1198       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateFeedMethod(), responseObserver);
1199     }
1200 
1201     /**
1202      *
1203      *
1204      * <pre>
1205      * Gets details about an asset feed.
1206      * </pre>
1207      */
getFeed( com.google.cloud.asset.v1.GetFeedRequest request, io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.Feed> responseObserver)1208     default void getFeed(
1209         com.google.cloud.asset.v1.GetFeedRequest request,
1210         io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.Feed> responseObserver) {
1211       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFeedMethod(), responseObserver);
1212     }
1213 
1214     /**
1215      *
1216      *
1217      * <pre>
1218      * Lists all asset feeds in a parent project/folder/organization.
1219      * </pre>
1220      */
listFeeds( com.google.cloud.asset.v1.ListFeedsRequest request, io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.ListFeedsResponse> responseObserver)1221     default void listFeeds(
1222         com.google.cloud.asset.v1.ListFeedsRequest request,
1223         io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.ListFeedsResponse> responseObserver) {
1224       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListFeedsMethod(), responseObserver);
1225     }
1226 
1227     /**
1228      *
1229      *
1230      * <pre>
1231      * Updates an asset feed configuration.
1232      * </pre>
1233      */
updateFeed( com.google.cloud.asset.v1.UpdateFeedRequest request, io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.Feed> responseObserver)1234     default void updateFeed(
1235         com.google.cloud.asset.v1.UpdateFeedRequest request,
1236         io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.Feed> responseObserver) {
1237       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateFeedMethod(), responseObserver);
1238     }
1239 
1240     /**
1241      *
1242      *
1243      * <pre>
1244      * Deletes an asset feed.
1245      * </pre>
1246      */
deleteFeed( com.google.cloud.asset.v1.DeleteFeedRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)1247     default void deleteFeed(
1248         com.google.cloud.asset.v1.DeleteFeedRequest request,
1249         io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) {
1250       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteFeedMethod(), responseObserver);
1251     }
1252 
1253     /**
1254      *
1255      *
1256      * <pre>
1257      * Searches all Google Cloud resources within the specified scope, such as a
1258      * project, folder, or organization. The caller must be granted the
1259      * `cloudasset.assets.searchAllResources` permission on the desired scope,
1260      * otherwise the request will be rejected.
1261      * </pre>
1262      */
searchAllResources( com.google.cloud.asset.v1.SearchAllResourcesRequest request, io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.SearchAllResourcesResponse> responseObserver)1263     default void searchAllResources(
1264         com.google.cloud.asset.v1.SearchAllResourcesRequest request,
1265         io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.SearchAllResourcesResponse>
1266             responseObserver) {
1267       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
1268           getSearchAllResourcesMethod(), responseObserver);
1269     }
1270 
1271     /**
1272      *
1273      *
1274      * <pre>
1275      * Searches all IAM policies within the specified scope, such as a project,
1276      * folder, or organization. The caller must be granted the
1277      * `cloudasset.assets.searchAllIamPolicies` permission on the desired scope,
1278      * otherwise the request will be rejected.
1279      * </pre>
1280      */
searchAllIamPolicies( com.google.cloud.asset.v1.SearchAllIamPoliciesRequest request, io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.SearchAllIamPoliciesResponse> responseObserver)1281     default void searchAllIamPolicies(
1282         com.google.cloud.asset.v1.SearchAllIamPoliciesRequest request,
1283         io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.SearchAllIamPoliciesResponse>
1284             responseObserver) {
1285       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
1286           getSearchAllIamPoliciesMethod(), responseObserver);
1287     }
1288 
1289     /**
1290      *
1291      *
1292      * <pre>
1293      * Analyzes IAM policies to answer which identities have what accesses on
1294      * which resources.
1295      * </pre>
1296      */
analyzeIamPolicy( com.google.cloud.asset.v1.AnalyzeIamPolicyRequest request, io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.AnalyzeIamPolicyResponse> responseObserver)1297     default void analyzeIamPolicy(
1298         com.google.cloud.asset.v1.AnalyzeIamPolicyRequest request,
1299         io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.AnalyzeIamPolicyResponse>
1300             responseObserver) {
1301       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
1302           getAnalyzeIamPolicyMethod(), responseObserver);
1303     }
1304 
1305     /**
1306      *
1307      *
1308      * <pre>
1309      * Analyzes IAM policies asynchronously to answer which identities have what
1310      * accesses on which resources, and writes the analysis results to a Google
1311      * Cloud Storage or a BigQuery destination. For Cloud Storage destination, the
1312      * output format is the JSON format that represents a
1313      * [AnalyzeIamPolicyResponse][google.cloud.asset.v1.AnalyzeIamPolicyResponse].
1314      * This method implements the
1315      * [google.longrunning.Operation][google.longrunning.Operation], which allows
1316      * you to track the operation status. We recommend intervals of at least 2
1317      * seconds with exponential backoff retry to poll the operation result. The
1318      * metadata contains the metadata for the long-running operation.
1319      * </pre>
1320      */
analyzeIamPolicyLongrunning( com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)1321     default void analyzeIamPolicyLongrunning(
1322         com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest request,
1323         io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {
1324       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
1325           getAnalyzeIamPolicyLongrunningMethod(), responseObserver);
1326     }
1327 
1328     /**
1329      *
1330      *
1331      * <pre>
1332      * Analyze moving a resource to a specified destination without kicking off
1333      * the actual move. The analysis is best effort depending on the user's
1334      * permissions of viewing different hierarchical policies and configurations.
1335      * The policies and configuration are subject to change before the actual
1336      * resource migration takes place.
1337      * </pre>
1338      */
analyzeMove( com.google.cloud.asset.v1.AnalyzeMoveRequest request, io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.AnalyzeMoveResponse> responseObserver)1339     default void analyzeMove(
1340         com.google.cloud.asset.v1.AnalyzeMoveRequest request,
1341         io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.AnalyzeMoveResponse>
1342             responseObserver) {
1343       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
1344           getAnalyzeMoveMethod(), responseObserver);
1345     }
1346 
1347     /**
1348      *
1349      *
1350      * <pre>
1351      * Issue a job that queries assets using a SQL statement compatible with
1352      * [BigQuery Standard
1353      * SQL](http://cloud/bigquery/docs/reference/standard-sql/enabling-standard-sql).
1354      * If the query execution finishes within timeout and there's no pagination,
1355      * the full query results will be returned in the `QueryAssetsResponse`.
1356      * Otherwise, full query results can be obtained by issuing extra requests
1357      * with the `job_reference` from the a previous `QueryAssets` call.
1358      * Note, the query result has approximately 10 GB limitation enforced by
1359      * BigQuery
1360      * https://cloud.google.com/bigquery/docs/best-practices-performance-output,
1361      * queries return larger results will result in errors.
1362      * </pre>
1363      */
queryAssets( com.google.cloud.asset.v1.QueryAssetsRequest request, io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.QueryAssetsResponse> responseObserver)1364     default void queryAssets(
1365         com.google.cloud.asset.v1.QueryAssetsRequest request,
1366         io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.QueryAssetsResponse>
1367             responseObserver) {
1368       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
1369           getQueryAssetsMethod(), responseObserver);
1370     }
1371 
1372     /**
1373      *
1374      *
1375      * <pre>
1376      * Creates a saved query in a parent project/folder/organization.
1377      * </pre>
1378      */
createSavedQuery( com.google.cloud.asset.v1.CreateSavedQueryRequest request, io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.SavedQuery> responseObserver)1379     default void createSavedQuery(
1380         com.google.cloud.asset.v1.CreateSavedQueryRequest request,
1381         io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.SavedQuery> responseObserver) {
1382       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
1383           getCreateSavedQueryMethod(), responseObserver);
1384     }
1385 
1386     /**
1387      *
1388      *
1389      * <pre>
1390      * Gets details about a saved query.
1391      * </pre>
1392      */
getSavedQuery( com.google.cloud.asset.v1.GetSavedQueryRequest request, io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.SavedQuery> responseObserver)1393     default void getSavedQuery(
1394         com.google.cloud.asset.v1.GetSavedQueryRequest request,
1395         io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.SavedQuery> responseObserver) {
1396       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
1397           getGetSavedQueryMethod(), responseObserver);
1398     }
1399 
1400     /**
1401      *
1402      *
1403      * <pre>
1404      * Lists all saved queries in a parent project/folder/organization.
1405      * </pre>
1406      */
listSavedQueries( com.google.cloud.asset.v1.ListSavedQueriesRequest request, io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.ListSavedQueriesResponse> responseObserver)1407     default void listSavedQueries(
1408         com.google.cloud.asset.v1.ListSavedQueriesRequest request,
1409         io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.ListSavedQueriesResponse>
1410             responseObserver) {
1411       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
1412           getListSavedQueriesMethod(), responseObserver);
1413     }
1414 
1415     /**
1416      *
1417      *
1418      * <pre>
1419      * Updates a saved query.
1420      * </pre>
1421      */
updateSavedQuery( com.google.cloud.asset.v1.UpdateSavedQueryRequest request, io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.SavedQuery> responseObserver)1422     default void updateSavedQuery(
1423         com.google.cloud.asset.v1.UpdateSavedQueryRequest request,
1424         io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.SavedQuery> responseObserver) {
1425       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
1426           getUpdateSavedQueryMethod(), responseObserver);
1427     }
1428 
1429     /**
1430      *
1431      *
1432      * <pre>
1433      * Deletes a saved query.
1434      * </pre>
1435      */
deleteSavedQuery( com.google.cloud.asset.v1.DeleteSavedQueryRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)1436     default void deleteSavedQuery(
1437         com.google.cloud.asset.v1.DeleteSavedQueryRequest request,
1438         io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) {
1439       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
1440           getDeleteSavedQueryMethod(), responseObserver);
1441     }
1442 
1443     /**
1444      *
1445      *
1446      * <pre>
1447      * Gets effective IAM policies for a batch of resources.
1448      * </pre>
1449      */
batchGetEffectiveIamPolicies( com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest request, io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse> responseObserver)1450     default void batchGetEffectiveIamPolicies(
1451         com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest request,
1452         io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse>
1453             responseObserver) {
1454       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
1455           getBatchGetEffectiveIamPoliciesMethod(), responseObserver);
1456     }
1457 
1458     /**
1459      *
1460      *
1461      * <pre>
1462      * Analyzes organization policies under a scope.
1463      * </pre>
1464      */
analyzeOrgPolicies( com.google.cloud.asset.v1.AnalyzeOrgPoliciesRequest request, io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.AnalyzeOrgPoliciesResponse> responseObserver)1465     default void analyzeOrgPolicies(
1466         com.google.cloud.asset.v1.AnalyzeOrgPoliciesRequest request,
1467         io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.AnalyzeOrgPoliciesResponse>
1468             responseObserver) {
1469       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
1470           getAnalyzeOrgPoliciesMethod(), responseObserver);
1471     }
1472 
1473     /**
1474      *
1475      *
1476      * <pre>
1477      * Analyzes organization policies governed containers (projects, folders or
1478      * organization) under a scope.
1479      * </pre>
1480      */
analyzeOrgPolicyGovernedContainers( com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersRequest request, io.grpc.stub.StreamObserver< com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse> responseObserver)1481     default void analyzeOrgPolicyGovernedContainers(
1482         com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersRequest request,
1483         io.grpc.stub.StreamObserver<
1484                 com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse>
1485             responseObserver) {
1486       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
1487           getAnalyzeOrgPolicyGovernedContainersMethod(), responseObserver);
1488     }
1489 
1490     /**
1491      *
1492      *
1493      * <pre>
1494      * Analyzes organization policies governed assets (Google Cloud resources or
1495      * policies) under a scope. This RPC supports custom constraints and the
1496      * following 10 canned constraints:
1497      * * storage.uniformBucketLevelAccess
1498      * * iam.disableServiceAccountKeyCreation
1499      * * iam.allowedPolicyMemberDomains
1500      * * compute.vmExternalIpAccess
1501      * * appengine.enforceServiceAccountActAsCheck
1502      * * gcp.resourceLocations
1503      * * compute.trustedImageProjects
1504      * * compute.skipDefaultNetworkCreation
1505      * * compute.requireOsLogin
1506      * * compute.disableNestedVirtualization
1507      * This RPC only returns either resources of types supported by [searchable
1508      * asset
1509      * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types),
1510      * or IAM policies.
1511      * </pre>
1512      */
analyzeOrgPolicyGovernedAssets( com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest request, io.grpc.stub.StreamObserver< com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse> responseObserver)1513     default void analyzeOrgPolicyGovernedAssets(
1514         com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest request,
1515         io.grpc.stub.StreamObserver<
1516                 com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse>
1517             responseObserver) {
1518       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
1519           getAnalyzeOrgPolicyGovernedAssetsMethod(), responseObserver);
1520     }
1521   }
1522 
1523   /**
1524    * Base class for the server implementation of the service AssetService.
1525    *
1526    * <pre>
1527    * Asset service definition.
1528    * </pre>
1529    */
1530   public abstract static class AssetServiceImplBase
1531       implements io.grpc.BindableService, AsyncService {
1532 
1533     @java.lang.Override
bindService()1534     public final io.grpc.ServerServiceDefinition bindService() {
1535       return AssetServiceGrpc.bindService(this);
1536     }
1537   }
1538 
1539   /**
1540    * A stub to allow clients to do asynchronous rpc calls to service AssetService.
1541    *
1542    * <pre>
1543    * Asset service definition.
1544    * </pre>
1545    */
1546   public static final class AssetServiceStub
1547       extends io.grpc.stub.AbstractAsyncStub<AssetServiceStub> {
AssetServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions)1548     private AssetServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
1549       super(channel, callOptions);
1550     }
1551 
1552     @java.lang.Override
build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)1553     protected AssetServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
1554       return new AssetServiceStub(channel, callOptions);
1555     }
1556 
1557     /**
1558      *
1559      *
1560      * <pre>
1561      * Exports assets with time and resource types to a given Cloud Storage
1562      * location/BigQuery table. For Cloud Storage location destinations, the
1563      * output format is newline-delimited JSON. Each line represents a
1564      * [google.cloud.asset.v1.Asset][google.cloud.asset.v1.Asset] in the JSON
1565      * format; for BigQuery table destinations, the output table stores the fields
1566      * in asset Protobuf as columns. This API implements the
1567      * [google.longrunning.Operation][google.longrunning.Operation] API, which
1568      * allows you to keep track of the export. We recommend intervals of at least
1569      * 2 seconds with exponential retry to poll the export operation result. For
1570      * regular-size resource parent, the export operation usually finishes within
1571      * 5 minutes.
1572      * </pre>
1573      */
exportAssets( com.google.cloud.asset.v1.ExportAssetsRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)1574     public void exportAssets(
1575         com.google.cloud.asset.v1.ExportAssetsRequest request,
1576         io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {
1577       io.grpc.stub.ClientCalls.asyncUnaryCall(
1578           getChannel().newCall(getExportAssetsMethod(), getCallOptions()),
1579           request,
1580           responseObserver);
1581     }
1582 
1583     /**
1584      *
1585      *
1586      * <pre>
1587      * Lists assets with time and resource types and returns paged results in
1588      * response.
1589      * </pre>
1590      */
listAssets( com.google.cloud.asset.v1.ListAssetsRequest request, io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.ListAssetsResponse> responseObserver)1591     public void listAssets(
1592         com.google.cloud.asset.v1.ListAssetsRequest request,
1593         io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.ListAssetsResponse>
1594             responseObserver) {
1595       io.grpc.stub.ClientCalls.asyncUnaryCall(
1596           getChannel().newCall(getListAssetsMethod(), getCallOptions()), request, responseObserver);
1597     }
1598 
1599     /**
1600      *
1601      *
1602      * <pre>
1603      * Batch gets the update history of assets that overlap a time window.
1604      * For IAM_POLICY content, this API outputs history when the asset and its
1605      * attached IAM POLICY both exist. This can create gaps in the output history.
1606      * Otherwise, this API outputs history with asset in both non-delete or
1607      * deleted status.
1608      * If a specified asset does not exist, this API returns an INVALID_ARGUMENT
1609      * error.
1610      * </pre>
1611      */
batchGetAssetsHistory( com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest request, io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse> responseObserver)1612     public void batchGetAssetsHistory(
1613         com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest request,
1614         io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse>
1615             responseObserver) {
1616       io.grpc.stub.ClientCalls.asyncUnaryCall(
1617           getChannel().newCall(getBatchGetAssetsHistoryMethod(), getCallOptions()),
1618           request,
1619           responseObserver);
1620     }
1621 
1622     /**
1623      *
1624      *
1625      * <pre>
1626      * Creates a feed in a parent project/folder/organization to listen to its
1627      * asset updates.
1628      * </pre>
1629      */
createFeed( com.google.cloud.asset.v1.CreateFeedRequest request, io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.Feed> responseObserver)1630     public void createFeed(
1631         com.google.cloud.asset.v1.CreateFeedRequest request,
1632         io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.Feed> responseObserver) {
1633       io.grpc.stub.ClientCalls.asyncUnaryCall(
1634           getChannel().newCall(getCreateFeedMethod(), getCallOptions()), request, responseObserver);
1635     }
1636 
1637     /**
1638      *
1639      *
1640      * <pre>
1641      * Gets details about an asset feed.
1642      * </pre>
1643      */
getFeed( com.google.cloud.asset.v1.GetFeedRequest request, io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.Feed> responseObserver)1644     public void getFeed(
1645         com.google.cloud.asset.v1.GetFeedRequest request,
1646         io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.Feed> responseObserver) {
1647       io.grpc.stub.ClientCalls.asyncUnaryCall(
1648           getChannel().newCall(getGetFeedMethod(), getCallOptions()), request, responseObserver);
1649     }
1650 
1651     /**
1652      *
1653      *
1654      * <pre>
1655      * Lists all asset feeds in a parent project/folder/organization.
1656      * </pre>
1657      */
listFeeds( com.google.cloud.asset.v1.ListFeedsRequest request, io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.ListFeedsResponse> responseObserver)1658     public void listFeeds(
1659         com.google.cloud.asset.v1.ListFeedsRequest request,
1660         io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.ListFeedsResponse> responseObserver) {
1661       io.grpc.stub.ClientCalls.asyncUnaryCall(
1662           getChannel().newCall(getListFeedsMethod(), getCallOptions()), request, responseObserver);
1663     }
1664 
1665     /**
1666      *
1667      *
1668      * <pre>
1669      * Updates an asset feed configuration.
1670      * </pre>
1671      */
updateFeed( com.google.cloud.asset.v1.UpdateFeedRequest request, io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.Feed> responseObserver)1672     public void updateFeed(
1673         com.google.cloud.asset.v1.UpdateFeedRequest request,
1674         io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.Feed> responseObserver) {
1675       io.grpc.stub.ClientCalls.asyncUnaryCall(
1676           getChannel().newCall(getUpdateFeedMethod(), getCallOptions()), request, responseObserver);
1677     }
1678 
1679     /**
1680      *
1681      *
1682      * <pre>
1683      * Deletes an asset feed.
1684      * </pre>
1685      */
deleteFeed( com.google.cloud.asset.v1.DeleteFeedRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)1686     public void deleteFeed(
1687         com.google.cloud.asset.v1.DeleteFeedRequest request,
1688         io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) {
1689       io.grpc.stub.ClientCalls.asyncUnaryCall(
1690           getChannel().newCall(getDeleteFeedMethod(), getCallOptions()), request, responseObserver);
1691     }
1692 
1693     /**
1694      *
1695      *
1696      * <pre>
1697      * Searches all Google Cloud resources within the specified scope, such as a
1698      * project, folder, or organization. The caller must be granted the
1699      * `cloudasset.assets.searchAllResources` permission on the desired scope,
1700      * otherwise the request will be rejected.
1701      * </pre>
1702      */
searchAllResources( com.google.cloud.asset.v1.SearchAllResourcesRequest request, io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.SearchAllResourcesResponse> responseObserver)1703     public void searchAllResources(
1704         com.google.cloud.asset.v1.SearchAllResourcesRequest request,
1705         io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.SearchAllResourcesResponse>
1706             responseObserver) {
1707       io.grpc.stub.ClientCalls.asyncUnaryCall(
1708           getChannel().newCall(getSearchAllResourcesMethod(), getCallOptions()),
1709           request,
1710           responseObserver);
1711     }
1712 
1713     /**
1714      *
1715      *
1716      * <pre>
1717      * Searches all IAM policies within the specified scope, such as a project,
1718      * folder, or organization. The caller must be granted the
1719      * `cloudasset.assets.searchAllIamPolicies` permission on the desired scope,
1720      * otherwise the request will be rejected.
1721      * </pre>
1722      */
searchAllIamPolicies( com.google.cloud.asset.v1.SearchAllIamPoliciesRequest request, io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.SearchAllIamPoliciesResponse> responseObserver)1723     public void searchAllIamPolicies(
1724         com.google.cloud.asset.v1.SearchAllIamPoliciesRequest request,
1725         io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.SearchAllIamPoliciesResponse>
1726             responseObserver) {
1727       io.grpc.stub.ClientCalls.asyncUnaryCall(
1728           getChannel().newCall(getSearchAllIamPoliciesMethod(), getCallOptions()),
1729           request,
1730           responseObserver);
1731     }
1732 
1733     /**
1734      *
1735      *
1736      * <pre>
1737      * Analyzes IAM policies to answer which identities have what accesses on
1738      * which resources.
1739      * </pre>
1740      */
analyzeIamPolicy( com.google.cloud.asset.v1.AnalyzeIamPolicyRequest request, io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.AnalyzeIamPolicyResponse> responseObserver)1741     public void analyzeIamPolicy(
1742         com.google.cloud.asset.v1.AnalyzeIamPolicyRequest request,
1743         io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.AnalyzeIamPolicyResponse>
1744             responseObserver) {
1745       io.grpc.stub.ClientCalls.asyncUnaryCall(
1746           getChannel().newCall(getAnalyzeIamPolicyMethod(), getCallOptions()),
1747           request,
1748           responseObserver);
1749     }
1750 
1751     /**
1752      *
1753      *
1754      * <pre>
1755      * Analyzes IAM policies asynchronously to answer which identities have what
1756      * accesses on which resources, and writes the analysis results to a Google
1757      * Cloud Storage or a BigQuery destination. For Cloud Storage destination, the
1758      * output format is the JSON format that represents a
1759      * [AnalyzeIamPolicyResponse][google.cloud.asset.v1.AnalyzeIamPolicyResponse].
1760      * This method implements the
1761      * [google.longrunning.Operation][google.longrunning.Operation], which allows
1762      * you to track the operation status. We recommend intervals of at least 2
1763      * seconds with exponential backoff retry to poll the operation result. The
1764      * metadata contains the metadata for the long-running operation.
1765      * </pre>
1766      */
analyzeIamPolicyLongrunning( com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)1767     public void analyzeIamPolicyLongrunning(
1768         com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest request,
1769         io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {
1770       io.grpc.stub.ClientCalls.asyncUnaryCall(
1771           getChannel().newCall(getAnalyzeIamPolicyLongrunningMethod(), getCallOptions()),
1772           request,
1773           responseObserver);
1774     }
1775 
1776     /**
1777      *
1778      *
1779      * <pre>
1780      * Analyze moving a resource to a specified destination without kicking off
1781      * the actual move. The analysis is best effort depending on the user's
1782      * permissions of viewing different hierarchical policies and configurations.
1783      * The policies and configuration are subject to change before the actual
1784      * resource migration takes place.
1785      * </pre>
1786      */
analyzeMove( com.google.cloud.asset.v1.AnalyzeMoveRequest request, io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.AnalyzeMoveResponse> responseObserver)1787     public void analyzeMove(
1788         com.google.cloud.asset.v1.AnalyzeMoveRequest request,
1789         io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.AnalyzeMoveResponse>
1790             responseObserver) {
1791       io.grpc.stub.ClientCalls.asyncUnaryCall(
1792           getChannel().newCall(getAnalyzeMoveMethod(), getCallOptions()),
1793           request,
1794           responseObserver);
1795     }
1796 
1797     /**
1798      *
1799      *
1800      * <pre>
1801      * Issue a job that queries assets using a SQL statement compatible with
1802      * [BigQuery Standard
1803      * SQL](http://cloud/bigquery/docs/reference/standard-sql/enabling-standard-sql).
1804      * If the query execution finishes within timeout and there's no pagination,
1805      * the full query results will be returned in the `QueryAssetsResponse`.
1806      * Otherwise, full query results can be obtained by issuing extra requests
1807      * with the `job_reference` from the a previous `QueryAssets` call.
1808      * Note, the query result has approximately 10 GB limitation enforced by
1809      * BigQuery
1810      * https://cloud.google.com/bigquery/docs/best-practices-performance-output,
1811      * queries return larger results will result in errors.
1812      * </pre>
1813      */
queryAssets( com.google.cloud.asset.v1.QueryAssetsRequest request, io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.QueryAssetsResponse> responseObserver)1814     public void queryAssets(
1815         com.google.cloud.asset.v1.QueryAssetsRequest request,
1816         io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.QueryAssetsResponse>
1817             responseObserver) {
1818       io.grpc.stub.ClientCalls.asyncUnaryCall(
1819           getChannel().newCall(getQueryAssetsMethod(), getCallOptions()),
1820           request,
1821           responseObserver);
1822     }
1823 
1824     /**
1825      *
1826      *
1827      * <pre>
1828      * Creates a saved query in a parent project/folder/organization.
1829      * </pre>
1830      */
createSavedQuery( com.google.cloud.asset.v1.CreateSavedQueryRequest request, io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.SavedQuery> responseObserver)1831     public void createSavedQuery(
1832         com.google.cloud.asset.v1.CreateSavedQueryRequest request,
1833         io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.SavedQuery> responseObserver) {
1834       io.grpc.stub.ClientCalls.asyncUnaryCall(
1835           getChannel().newCall(getCreateSavedQueryMethod(), getCallOptions()),
1836           request,
1837           responseObserver);
1838     }
1839 
1840     /**
1841      *
1842      *
1843      * <pre>
1844      * Gets details about a saved query.
1845      * </pre>
1846      */
getSavedQuery( com.google.cloud.asset.v1.GetSavedQueryRequest request, io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.SavedQuery> responseObserver)1847     public void getSavedQuery(
1848         com.google.cloud.asset.v1.GetSavedQueryRequest request,
1849         io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.SavedQuery> responseObserver) {
1850       io.grpc.stub.ClientCalls.asyncUnaryCall(
1851           getChannel().newCall(getGetSavedQueryMethod(), getCallOptions()),
1852           request,
1853           responseObserver);
1854     }
1855 
1856     /**
1857      *
1858      *
1859      * <pre>
1860      * Lists all saved queries in a parent project/folder/organization.
1861      * </pre>
1862      */
listSavedQueries( com.google.cloud.asset.v1.ListSavedQueriesRequest request, io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.ListSavedQueriesResponse> responseObserver)1863     public void listSavedQueries(
1864         com.google.cloud.asset.v1.ListSavedQueriesRequest request,
1865         io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.ListSavedQueriesResponse>
1866             responseObserver) {
1867       io.grpc.stub.ClientCalls.asyncUnaryCall(
1868           getChannel().newCall(getListSavedQueriesMethod(), getCallOptions()),
1869           request,
1870           responseObserver);
1871     }
1872 
1873     /**
1874      *
1875      *
1876      * <pre>
1877      * Updates a saved query.
1878      * </pre>
1879      */
updateSavedQuery( com.google.cloud.asset.v1.UpdateSavedQueryRequest request, io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.SavedQuery> responseObserver)1880     public void updateSavedQuery(
1881         com.google.cloud.asset.v1.UpdateSavedQueryRequest request,
1882         io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.SavedQuery> responseObserver) {
1883       io.grpc.stub.ClientCalls.asyncUnaryCall(
1884           getChannel().newCall(getUpdateSavedQueryMethod(), getCallOptions()),
1885           request,
1886           responseObserver);
1887     }
1888 
1889     /**
1890      *
1891      *
1892      * <pre>
1893      * Deletes a saved query.
1894      * </pre>
1895      */
deleteSavedQuery( com.google.cloud.asset.v1.DeleteSavedQueryRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)1896     public void deleteSavedQuery(
1897         com.google.cloud.asset.v1.DeleteSavedQueryRequest request,
1898         io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) {
1899       io.grpc.stub.ClientCalls.asyncUnaryCall(
1900           getChannel().newCall(getDeleteSavedQueryMethod(), getCallOptions()),
1901           request,
1902           responseObserver);
1903     }
1904 
1905     /**
1906      *
1907      *
1908      * <pre>
1909      * Gets effective IAM policies for a batch of resources.
1910      * </pre>
1911      */
batchGetEffectiveIamPolicies( com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest request, io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse> responseObserver)1912     public void batchGetEffectiveIamPolicies(
1913         com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest request,
1914         io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse>
1915             responseObserver) {
1916       io.grpc.stub.ClientCalls.asyncUnaryCall(
1917           getChannel().newCall(getBatchGetEffectiveIamPoliciesMethod(), getCallOptions()),
1918           request,
1919           responseObserver);
1920     }
1921 
1922     /**
1923      *
1924      *
1925      * <pre>
1926      * Analyzes organization policies under a scope.
1927      * </pre>
1928      */
analyzeOrgPolicies( com.google.cloud.asset.v1.AnalyzeOrgPoliciesRequest request, io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.AnalyzeOrgPoliciesResponse> responseObserver)1929     public void analyzeOrgPolicies(
1930         com.google.cloud.asset.v1.AnalyzeOrgPoliciesRequest request,
1931         io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.AnalyzeOrgPoliciesResponse>
1932             responseObserver) {
1933       io.grpc.stub.ClientCalls.asyncUnaryCall(
1934           getChannel().newCall(getAnalyzeOrgPoliciesMethod(), getCallOptions()),
1935           request,
1936           responseObserver);
1937     }
1938 
1939     /**
1940      *
1941      *
1942      * <pre>
1943      * Analyzes organization policies governed containers (projects, folders or
1944      * organization) under a scope.
1945      * </pre>
1946      */
analyzeOrgPolicyGovernedContainers( com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersRequest request, io.grpc.stub.StreamObserver< com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse> responseObserver)1947     public void analyzeOrgPolicyGovernedContainers(
1948         com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersRequest request,
1949         io.grpc.stub.StreamObserver<
1950                 com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse>
1951             responseObserver) {
1952       io.grpc.stub.ClientCalls.asyncUnaryCall(
1953           getChannel().newCall(getAnalyzeOrgPolicyGovernedContainersMethod(), getCallOptions()),
1954           request,
1955           responseObserver);
1956     }
1957 
1958     /**
1959      *
1960      *
1961      * <pre>
1962      * Analyzes organization policies governed assets (Google Cloud resources or
1963      * policies) under a scope. This RPC supports custom constraints and the
1964      * following 10 canned constraints:
1965      * * storage.uniformBucketLevelAccess
1966      * * iam.disableServiceAccountKeyCreation
1967      * * iam.allowedPolicyMemberDomains
1968      * * compute.vmExternalIpAccess
1969      * * appengine.enforceServiceAccountActAsCheck
1970      * * gcp.resourceLocations
1971      * * compute.trustedImageProjects
1972      * * compute.skipDefaultNetworkCreation
1973      * * compute.requireOsLogin
1974      * * compute.disableNestedVirtualization
1975      * This RPC only returns either resources of types supported by [searchable
1976      * asset
1977      * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types),
1978      * or IAM policies.
1979      * </pre>
1980      */
analyzeOrgPolicyGovernedAssets( com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest request, io.grpc.stub.StreamObserver< com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse> responseObserver)1981     public void analyzeOrgPolicyGovernedAssets(
1982         com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest request,
1983         io.grpc.stub.StreamObserver<
1984                 com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse>
1985             responseObserver) {
1986       io.grpc.stub.ClientCalls.asyncUnaryCall(
1987           getChannel().newCall(getAnalyzeOrgPolicyGovernedAssetsMethod(), getCallOptions()),
1988           request,
1989           responseObserver);
1990     }
1991   }
1992 
1993   /**
1994    * A stub to allow clients to do synchronous rpc calls to service AssetService.
1995    *
1996    * <pre>
1997    * Asset service definition.
1998    * </pre>
1999    */
2000   public static final class AssetServiceBlockingStub
2001       extends io.grpc.stub.AbstractBlockingStub<AssetServiceBlockingStub> {
AssetServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions)2002     private AssetServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
2003       super(channel, callOptions);
2004     }
2005 
2006     @java.lang.Override
build( io.grpc.Channel channel, io.grpc.CallOptions callOptions)2007     protected AssetServiceBlockingStub build(
2008         io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
2009       return new AssetServiceBlockingStub(channel, callOptions);
2010     }
2011 
2012     /**
2013      *
2014      *
2015      * <pre>
2016      * Exports assets with time and resource types to a given Cloud Storage
2017      * location/BigQuery table. For Cloud Storage location destinations, the
2018      * output format is newline-delimited JSON. Each line represents a
2019      * [google.cloud.asset.v1.Asset][google.cloud.asset.v1.Asset] in the JSON
2020      * format; for BigQuery table destinations, the output table stores the fields
2021      * in asset Protobuf as columns. This API implements the
2022      * [google.longrunning.Operation][google.longrunning.Operation] API, which
2023      * allows you to keep track of the export. We recommend intervals of at least
2024      * 2 seconds with exponential retry to poll the export operation result. For
2025      * regular-size resource parent, the export operation usually finishes within
2026      * 5 minutes.
2027      * </pre>
2028      */
exportAssets( com.google.cloud.asset.v1.ExportAssetsRequest request)2029     public com.google.longrunning.Operation exportAssets(
2030         com.google.cloud.asset.v1.ExportAssetsRequest request) {
2031       return io.grpc.stub.ClientCalls.blockingUnaryCall(
2032           getChannel(), getExportAssetsMethod(), getCallOptions(), request);
2033     }
2034 
2035     /**
2036      *
2037      *
2038      * <pre>
2039      * Lists assets with time and resource types and returns paged results in
2040      * response.
2041      * </pre>
2042      */
listAssets( com.google.cloud.asset.v1.ListAssetsRequest request)2043     public com.google.cloud.asset.v1.ListAssetsResponse listAssets(
2044         com.google.cloud.asset.v1.ListAssetsRequest request) {
2045       return io.grpc.stub.ClientCalls.blockingUnaryCall(
2046           getChannel(), getListAssetsMethod(), getCallOptions(), request);
2047     }
2048 
2049     /**
2050      *
2051      *
2052      * <pre>
2053      * Batch gets the update history of assets that overlap a time window.
2054      * For IAM_POLICY content, this API outputs history when the asset and its
2055      * attached IAM POLICY both exist. This can create gaps in the output history.
2056      * Otherwise, this API outputs history with asset in both non-delete or
2057      * deleted status.
2058      * If a specified asset does not exist, this API returns an INVALID_ARGUMENT
2059      * error.
2060      * </pre>
2061      */
batchGetAssetsHistory( com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest request)2062     public com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse batchGetAssetsHistory(
2063         com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest request) {
2064       return io.grpc.stub.ClientCalls.blockingUnaryCall(
2065           getChannel(), getBatchGetAssetsHistoryMethod(), getCallOptions(), request);
2066     }
2067 
2068     /**
2069      *
2070      *
2071      * <pre>
2072      * Creates a feed in a parent project/folder/organization to listen to its
2073      * asset updates.
2074      * </pre>
2075      */
createFeed( com.google.cloud.asset.v1.CreateFeedRequest request)2076     public com.google.cloud.asset.v1.Feed createFeed(
2077         com.google.cloud.asset.v1.CreateFeedRequest request) {
2078       return io.grpc.stub.ClientCalls.blockingUnaryCall(
2079           getChannel(), getCreateFeedMethod(), getCallOptions(), request);
2080     }
2081 
2082     /**
2083      *
2084      *
2085      * <pre>
2086      * Gets details about an asset feed.
2087      * </pre>
2088      */
getFeed( com.google.cloud.asset.v1.GetFeedRequest request)2089     public com.google.cloud.asset.v1.Feed getFeed(
2090         com.google.cloud.asset.v1.GetFeedRequest request) {
2091       return io.grpc.stub.ClientCalls.blockingUnaryCall(
2092           getChannel(), getGetFeedMethod(), getCallOptions(), request);
2093     }
2094 
2095     /**
2096      *
2097      *
2098      * <pre>
2099      * Lists all asset feeds in a parent project/folder/organization.
2100      * </pre>
2101      */
listFeeds( com.google.cloud.asset.v1.ListFeedsRequest request)2102     public com.google.cloud.asset.v1.ListFeedsResponse listFeeds(
2103         com.google.cloud.asset.v1.ListFeedsRequest request) {
2104       return io.grpc.stub.ClientCalls.blockingUnaryCall(
2105           getChannel(), getListFeedsMethod(), getCallOptions(), request);
2106     }
2107 
2108     /**
2109      *
2110      *
2111      * <pre>
2112      * Updates an asset feed configuration.
2113      * </pre>
2114      */
updateFeed( com.google.cloud.asset.v1.UpdateFeedRequest request)2115     public com.google.cloud.asset.v1.Feed updateFeed(
2116         com.google.cloud.asset.v1.UpdateFeedRequest request) {
2117       return io.grpc.stub.ClientCalls.blockingUnaryCall(
2118           getChannel(), getUpdateFeedMethod(), getCallOptions(), request);
2119     }
2120 
2121     /**
2122      *
2123      *
2124      * <pre>
2125      * Deletes an asset feed.
2126      * </pre>
2127      */
deleteFeed( com.google.cloud.asset.v1.DeleteFeedRequest request)2128     public com.google.protobuf.Empty deleteFeed(
2129         com.google.cloud.asset.v1.DeleteFeedRequest request) {
2130       return io.grpc.stub.ClientCalls.blockingUnaryCall(
2131           getChannel(), getDeleteFeedMethod(), getCallOptions(), request);
2132     }
2133 
2134     /**
2135      *
2136      *
2137      * <pre>
2138      * Searches all Google Cloud resources within the specified scope, such as a
2139      * project, folder, or organization. The caller must be granted the
2140      * `cloudasset.assets.searchAllResources` permission on the desired scope,
2141      * otherwise the request will be rejected.
2142      * </pre>
2143      */
searchAllResources( com.google.cloud.asset.v1.SearchAllResourcesRequest request)2144     public com.google.cloud.asset.v1.SearchAllResourcesResponse searchAllResources(
2145         com.google.cloud.asset.v1.SearchAllResourcesRequest request) {
2146       return io.grpc.stub.ClientCalls.blockingUnaryCall(
2147           getChannel(), getSearchAllResourcesMethod(), getCallOptions(), request);
2148     }
2149 
2150     /**
2151      *
2152      *
2153      * <pre>
2154      * Searches all IAM policies within the specified scope, such as a project,
2155      * folder, or organization. The caller must be granted the
2156      * `cloudasset.assets.searchAllIamPolicies` permission on the desired scope,
2157      * otherwise the request will be rejected.
2158      * </pre>
2159      */
searchAllIamPolicies( com.google.cloud.asset.v1.SearchAllIamPoliciesRequest request)2160     public com.google.cloud.asset.v1.SearchAllIamPoliciesResponse searchAllIamPolicies(
2161         com.google.cloud.asset.v1.SearchAllIamPoliciesRequest request) {
2162       return io.grpc.stub.ClientCalls.blockingUnaryCall(
2163           getChannel(), getSearchAllIamPoliciesMethod(), getCallOptions(), request);
2164     }
2165 
2166     /**
2167      *
2168      *
2169      * <pre>
2170      * Analyzes IAM policies to answer which identities have what accesses on
2171      * which resources.
2172      * </pre>
2173      */
analyzeIamPolicy( com.google.cloud.asset.v1.AnalyzeIamPolicyRequest request)2174     public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse analyzeIamPolicy(
2175         com.google.cloud.asset.v1.AnalyzeIamPolicyRequest request) {
2176       return io.grpc.stub.ClientCalls.blockingUnaryCall(
2177           getChannel(), getAnalyzeIamPolicyMethod(), getCallOptions(), request);
2178     }
2179 
2180     /**
2181      *
2182      *
2183      * <pre>
2184      * Analyzes IAM policies asynchronously to answer which identities have what
2185      * accesses on which resources, and writes the analysis results to a Google
2186      * Cloud Storage or a BigQuery destination. For Cloud Storage destination, the
2187      * output format is the JSON format that represents a
2188      * [AnalyzeIamPolicyResponse][google.cloud.asset.v1.AnalyzeIamPolicyResponse].
2189      * This method implements the
2190      * [google.longrunning.Operation][google.longrunning.Operation], which allows
2191      * you to track the operation status. We recommend intervals of at least 2
2192      * seconds with exponential backoff retry to poll the operation result. The
2193      * metadata contains the metadata for the long-running operation.
2194      * </pre>
2195      */
analyzeIamPolicyLongrunning( com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest request)2196     public com.google.longrunning.Operation analyzeIamPolicyLongrunning(
2197         com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest request) {
2198       return io.grpc.stub.ClientCalls.blockingUnaryCall(
2199           getChannel(), getAnalyzeIamPolicyLongrunningMethod(), getCallOptions(), request);
2200     }
2201 
2202     /**
2203      *
2204      *
2205      * <pre>
2206      * Analyze moving a resource to a specified destination without kicking off
2207      * the actual move. The analysis is best effort depending on the user's
2208      * permissions of viewing different hierarchical policies and configurations.
2209      * The policies and configuration are subject to change before the actual
2210      * resource migration takes place.
2211      * </pre>
2212      */
analyzeMove( com.google.cloud.asset.v1.AnalyzeMoveRequest request)2213     public com.google.cloud.asset.v1.AnalyzeMoveResponse analyzeMove(
2214         com.google.cloud.asset.v1.AnalyzeMoveRequest request) {
2215       return io.grpc.stub.ClientCalls.blockingUnaryCall(
2216           getChannel(), getAnalyzeMoveMethod(), getCallOptions(), request);
2217     }
2218 
2219     /**
2220      *
2221      *
2222      * <pre>
2223      * Issue a job that queries assets using a SQL statement compatible with
2224      * [BigQuery Standard
2225      * SQL](http://cloud/bigquery/docs/reference/standard-sql/enabling-standard-sql).
2226      * If the query execution finishes within timeout and there's no pagination,
2227      * the full query results will be returned in the `QueryAssetsResponse`.
2228      * Otherwise, full query results can be obtained by issuing extra requests
2229      * with the `job_reference` from the a previous `QueryAssets` call.
2230      * Note, the query result has approximately 10 GB limitation enforced by
2231      * BigQuery
2232      * https://cloud.google.com/bigquery/docs/best-practices-performance-output,
2233      * queries return larger results will result in errors.
2234      * </pre>
2235      */
queryAssets( com.google.cloud.asset.v1.QueryAssetsRequest request)2236     public com.google.cloud.asset.v1.QueryAssetsResponse queryAssets(
2237         com.google.cloud.asset.v1.QueryAssetsRequest request) {
2238       return io.grpc.stub.ClientCalls.blockingUnaryCall(
2239           getChannel(), getQueryAssetsMethod(), getCallOptions(), request);
2240     }
2241 
2242     /**
2243      *
2244      *
2245      * <pre>
2246      * Creates a saved query in a parent project/folder/organization.
2247      * </pre>
2248      */
createSavedQuery( com.google.cloud.asset.v1.CreateSavedQueryRequest request)2249     public com.google.cloud.asset.v1.SavedQuery createSavedQuery(
2250         com.google.cloud.asset.v1.CreateSavedQueryRequest request) {
2251       return io.grpc.stub.ClientCalls.blockingUnaryCall(
2252           getChannel(), getCreateSavedQueryMethod(), getCallOptions(), request);
2253     }
2254 
2255     /**
2256      *
2257      *
2258      * <pre>
2259      * Gets details about a saved query.
2260      * </pre>
2261      */
getSavedQuery( com.google.cloud.asset.v1.GetSavedQueryRequest request)2262     public com.google.cloud.asset.v1.SavedQuery getSavedQuery(
2263         com.google.cloud.asset.v1.GetSavedQueryRequest request) {
2264       return io.grpc.stub.ClientCalls.blockingUnaryCall(
2265           getChannel(), getGetSavedQueryMethod(), getCallOptions(), request);
2266     }
2267 
2268     /**
2269      *
2270      *
2271      * <pre>
2272      * Lists all saved queries in a parent project/folder/organization.
2273      * </pre>
2274      */
listSavedQueries( com.google.cloud.asset.v1.ListSavedQueriesRequest request)2275     public com.google.cloud.asset.v1.ListSavedQueriesResponse listSavedQueries(
2276         com.google.cloud.asset.v1.ListSavedQueriesRequest request) {
2277       return io.grpc.stub.ClientCalls.blockingUnaryCall(
2278           getChannel(), getListSavedQueriesMethod(), getCallOptions(), request);
2279     }
2280 
2281     /**
2282      *
2283      *
2284      * <pre>
2285      * Updates a saved query.
2286      * </pre>
2287      */
updateSavedQuery( com.google.cloud.asset.v1.UpdateSavedQueryRequest request)2288     public com.google.cloud.asset.v1.SavedQuery updateSavedQuery(
2289         com.google.cloud.asset.v1.UpdateSavedQueryRequest request) {
2290       return io.grpc.stub.ClientCalls.blockingUnaryCall(
2291           getChannel(), getUpdateSavedQueryMethod(), getCallOptions(), request);
2292     }
2293 
2294     /**
2295      *
2296      *
2297      * <pre>
2298      * Deletes a saved query.
2299      * </pre>
2300      */
deleteSavedQuery( com.google.cloud.asset.v1.DeleteSavedQueryRequest request)2301     public com.google.protobuf.Empty deleteSavedQuery(
2302         com.google.cloud.asset.v1.DeleteSavedQueryRequest request) {
2303       return io.grpc.stub.ClientCalls.blockingUnaryCall(
2304           getChannel(), getDeleteSavedQueryMethod(), getCallOptions(), request);
2305     }
2306 
2307     /**
2308      *
2309      *
2310      * <pre>
2311      * Gets effective IAM policies for a batch of resources.
2312      * </pre>
2313      */
2314     public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse
batchGetEffectiveIamPolicies( com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest request)2315         batchGetEffectiveIamPolicies(
2316             com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest request) {
2317       return io.grpc.stub.ClientCalls.blockingUnaryCall(
2318           getChannel(), getBatchGetEffectiveIamPoliciesMethod(), getCallOptions(), request);
2319     }
2320 
2321     /**
2322      *
2323      *
2324      * <pre>
2325      * Analyzes organization policies under a scope.
2326      * </pre>
2327      */
analyzeOrgPolicies( com.google.cloud.asset.v1.AnalyzeOrgPoliciesRequest request)2328     public com.google.cloud.asset.v1.AnalyzeOrgPoliciesResponse analyzeOrgPolicies(
2329         com.google.cloud.asset.v1.AnalyzeOrgPoliciesRequest request) {
2330       return io.grpc.stub.ClientCalls.blockingUnaryCall(
2331           getChannel(), getAnalyzeOrgPoliciesMethod(), getCallOptions(), request);
2332     }
2333 
2334     /**
2335      *
2336      *
2337      * <pre>
2338      * Analyzes organization policies governed containers (projects, folders or
2339      * organization) under a scope.
2340      * </pre>
2341      */
2342     public com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse
analyzeOrgPolicyGovernedContainers( com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersRequest request)2343         analyzeOrgPolicyGovernedContainers(
2344             com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersRequest request) {
2345       return io.grpc.stub.ClientCalls.blockingUnaryCall(
2346           getChannel(), getAnalyzeOrgPolicyGovernedContainersMethod(), getCallOptions(), request);
2347     }
2348 
2349     /**
2350      *
2351      *
2352      * <pre>
2353      * Analyzes organization policies governed assets (Google Cloud resources or
2354      * policies) under a scope. This RPC supports custom constraints and the
2355      * following 10 canned constraints:
2356      * * storage.uniformBucketLevelAccess
2357      * * iam.disableServiceAccountKeyCreation
2358      * * iam.allowedPolicyMemberDomains
2359      * * compute.vmExternalIpAccess
2360      * * appengine.enforceServiceAccountActAsCheck
2361      * * gcp.resourceLocations
2362      * * compute.trustedImageProjects
2363      * * compute.skipDefaultNetworkCreation
2364      * * compute.requireOsLogin
2365      * * compute.disableNestedVirtualization
2366      * This RPC only returns either resources of types supported by [searchable
2367      * asset
2368      * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types),
2369      * or IAM policies.
2370      * </pre>
2371      */
2372     public com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse
analyzeOrgPolicyGovernedAssets( com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest request)2373         analyzeOrgPolicyGovernedAssets(
2374             com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest request) {
2375       return io.grpc.stub.ClientCalls.blockingUnaryCall(
2376           getChannel(), getAnalyzeOrgPolicyGovernedAssetsMethod(), getCallOptions(), request);
2377     }
2378   }
2379 
2380   /**
2381    * A stub to allow clients to do ListenableFuture-style rpc calls to service AssetService.
2382    *
2383    * <pre>
2384    * Asset service definition.
2385    * </pre>
2386    */
2387   public static final class AssetServiceFutureStub
2388       extends io.grpc.stub.AbstractFutureStub<AssetServiceFutureStub> {
AssetServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions)2389     private AssetServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
2390       super(channel, callOptions);
2391     }
2392 
2393     @java.lang.Override
build( io.grpc.Channel channel, io.grpc.CallOptions callOptions)2394     protected AssetServiceFutureStub build(
2395         io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
2396       return new AssetServiceFutureStub(channel, callOptions);
2397     }
2398 
2399     /**
2400      *
2401      *
2402      * <pre>
2403      * Exports assets with time and resource types to a given Cloud Storage
2404      * location/BigQuery table. For Cloud Storage location destinations, the
2405      * output format is newline-delimited JSON. Each line represents a
2406      * [google.cloud.asset.v1.Asset][google.cloud.asset.v1.Asset] in the JSON
2407      * format; for BigQuery table destinations, the output table stores the fields
2408      * in asset Protobuf as columns. This API implements the
2409      * [google.longrunning.Operation][google.longrunning.Operation] API, which
2410      * allows you to keep track of the export. We recommend intervals of at least
2411      * 2 seconds with exponential retry to poll the export operation result. For
2412      * regular-size resource parent, the export operation usually finishes within
2413      * 5 minutes.
2414      * </pre>
2415      */
2416     public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation>
exportAssets(com.google.cloud.asset.v1.ExportAssetsRequest request)2417         exportAssets(com.google.cloud.asset.v1.ExportAssetsRequest request) {
2418       return io.grpc.stub.ClientCalls.futureUnaryCall(
2419           getChannel().newCall(getExportAssetsMethod(), getCallOptions()), request);
2420     }
2421 
2422     /**
2423      *
2424      *
2425      * <pre>
2426      * Lists assets with time and resource types and returns paged results in
2427      * response.
2428      * </pre>
2429      */
2430     public com.google.common.util.concurrent.ListenableFuture<
2431             com.google.cloud.asset.v1.ListAssetsResponse>
listAssets(com.google.cloud.asset.v1.ListAssetsRequest request)2432         listAssets(com.google.cloud.asset.v1.ListAssetsRequest request) {
2433       return io.grpc.stub.ClientCalls.futureUnaryCall(
2434           getChannel().newCall(getListAssetsMethod(), getCallOptions()), request);
2435     }
2436 
2437     /**
2438      *
2439      *
2440      * <pre>
2441      * Batch gets the update history of assets that overlap a time window.
2442      * For IAM_POLICY content, this API outputs history when the asset and its
2443      * attached IAM POLICY both exist. This can create gaps in the output history.
2444      * Otherwise, this API outputs history with asset in both non-delete or
2445      * deleted status.
2446      * If a specified asset does not exist, this API returns an INVALID_ARGUMENT
2447      * error.
2448      * </pre>
2449      */
2450     public com.google.common.util.concurrent.ListenableFuture<
2451             com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse>
batchGetAssetsHistory(com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest request)2452         batchGetAssetsHistory(com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest request) {
2453       return io.grpc.stub.ClientCalls.futureUnaryCall(
2454           getChannel().newCall(getBatchGetAssetsHistoryMethod(), getCallOptions()), request);
2455     }
2456 
2457     /**
2458      *
2459      *
2460      * <pre>
2461      * Creates a feed in a parent project/folder/organization to listen to its
2462      * asset updates.
2463      * </pre>
2464      */
2465     public com.google.common.util.concurrent.ListenableFuture<com.google.cloud.asset.v1.Feed>
createFeed(com.google.cloud.asset.v1.CreateFeedRequest request)2466         createFeed(com.google.cloud.asset.v1.CreateFeedRequest request) {
2467       return io.grpc.stub.ClientCalls.futureUnaryCall(
2468           getChannel().newCall(getCreateFeedMethod(), getCallOptions()), request);
2469     }
2470 
2471     /**
2472      *
2473      *
2474      * <pre>
2475      * Gets details about an asset feed.
2476      * </pre>
2477      */
2478     public com.google.common.util.concurrent.ListenableFuture<com.google.cloud.asset.v1.Feed>
getFeed(com.google.cloud.asset.v1.GetFeedRequest request)2479         getFeed(com.google.cloud.asset.v1.GetFeedRequest request) {
2480       return io.grpc.stub.ClientCalls.futureUnaryCall(
2481           getChannel().newCall(getGetFeedMethod(), getCallOptions()), request);
2482     }
2483 
2484     /**
2485      *
2486      *
2487      * <pre>
2488      * Lists all asset feeds in a parent project/folder/organization.
2489      * </pre>
2490      */
2491     public com.google.common.util.concurrent.ListenableFuture<
2492             com.google.cloud.asset.v1.ListFeedsResponse>
listFeeds(com.google.cloud.asset.v1.ListFeedsRequest request)2493         listFeeds(com.google.cloud.asset.v1.ListFeedsRequest request) {
2494       return io.grpc.stub.ClientCalls.futureUnaryCall(
2495           getChannel().newCall(getListFeedsMethod(), getCallOptions()), request);
2496     }
2497 
2498     /**
2499      *
2500      *
2501      * <pre>
2502      * Updates an asset feed configuration.
2503      * </pre>
2504      */
2505     public com.google.common.util.concurrent.ListenableFuture<com.google.cloud.asset.v1.Feed>
updateFeed(com.google.cloud.asset.v1.UpdateFeedRequest request)2506         updateFeed(com.google.cloud.asset.v1.UpdateFeedRequest request) {
2507       return io.grpc.stub.ClientCalls.futureUnaryCall(
2508           getChannel().newCall(getUpdateFeedMethod(), getCallOptions()), request);
2509     }
2510 
2511     /**
2512      *
2513      *
2514      * <pre>
2515      * Deletes an asset feed.
2516      * </pre>
2517      */
deleteFeed( com.google.cloud.asset.v1.DeleteFeedRequest request)2518     public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> deleteFeed(
2519         com.google.cloud.asset.v1.DeleteFeedRequest request) {
2520       return io.grpc.stub.ClientCalls.futureUnaryCall(
2521           getChannel().newCall(getDeleteFeedMethod(), getCallOptions()), request);
2522     }
2523 
2524     /**
2525      *
2526      *
2527      * <pre>
2528      * Searches all Google Cloud resources within the specified scope, such as a
2529      * project, folder, or organization. The caller must be granted the
2530      * `cloudasset.assets.searchAllResources` permission on the desired scope,
2531      * otherwise the request will be rejected.
2532      * </pre>
2533      */
2534     public com.google.common.util.concurrent.ListenableFuture<
2535             com.google.cloud.asset.v1.SearchAllResourcesResponse>
searchAllResources(com.google.cloud.asset.v1.SearchAllResourcesRequest request)2536         searchAllResources(com.google.cloud.asset.v1.SearchAllResourcesRequest request) {
2537       return io.grpc.stub.ClientCalls.futureUnaryCall(
2538           getChannel().newCall(getSearchAllResourcesMethod(), getCallOptions()), request);
2539     }
2540 
2541     /**
2542      *
2543      *
2544      * <pre>
2545      * Searches all IAM policies within the specified scope, such as a project,
2546      * folder, or organization. The caller must be granted the
2547      * `cloudasset.assets.searchAllIamPolicies` permission on the desired scope,
2548      * otherwise the request will be rejected.
2549      * </pre>
2550      */
2551     public com.google.common.util.concurrent.ListenableFuture<
2552             com.google.cloud.asset.v1.SearchAllIamPoliciesResponse>
searchAllIamPolicies(com.google.cloud.asset.v1.SearchAllIamPoliciesRequest request)2553         searchAllIamPolicies(com.google.cloud.asset.v1.SearchAllIamPoliciesRequest request) {
2554       return io.grpc.stub.ClientCalls.futureUnaryCall(
2555           getChannel().newCall(getSearchAllIamPoliciesMethod(), getCallOptions()), request);
2556     }
2557 
2558     /**
2559      *
2560      *
2561      * <pre>
2562      * Analyzes IAM policies to answer which identities have what accesses on
2563      * which resources.
2564      * </pre>
2565      */
2566     public com.google.common.util.concurrent.ListenableFuture<
2567             com.google.cloud.asset.v1.AnalyzeIamPolicyResponse>
analyzeIamPolicy(com.google.cloud.asset.v1.AnalyzeIamPolicyRequest request)2568         analyzeIamPolicy(com.google.cloud.asset.v1.AnalyzeIamPolicyRequest request) {
2569       return io.grpc.stub.ClientCalls.futureUnaryCall(
2570           getChannel().newCall(getAnalyzeIamPolicyMethod(), getCallOptions()), request);
2571     }
2572 
2573     /**
2574      *
2575      *
2576      * <pre>
2577      * Analyzes IAM policies asynchronously to answer which identities have what
2578      * accesses on which resources, and writes the analysis results to a Google
2579      * Cloud Storage or a BigQuery destination. For Cloud Storage destination, the
2580      * output format is the JSON format that represents a
2581      * [AnalyzeIamPolicyResponse][google.cloud.asset.v1.AnalyzeIamPolicyResponse].
2582      * This method implements the
2583      * [google.longrunning.Operation][google.longrunning.Operation], which allows
2584      * you to track the operation status. We recommend intervals of at least 2
2585      * seconds with exponential backoff retry to poll the operation result. The
2586      * metadata contains the metadata for the long-running operation.
2587      * </pre>
2588      */
2589     public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation>
analyzeIamPolicyLongrunning( com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest request)2590         analyzeIamPolicyLongrunning(
2591             com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest request) {
2592       return io.grpc.stub.ClientCalls.futureUnaryCall(
2593           getChannel().newCall(getAnalyzeIamPolicyLongrunningMethod(), getCallOptions()), request);
2594     }
2595 
2596     /**
2597      *
2598      *
2599      * <pre>
2600      * Analyze moving a resource to a specified destination without kicking off
2601      * the actual move. The analysis is best effort depending on the user's
2602      * permissions of viewing different hierarchical policies and configurations.
2603      * The policies and configuration are subject to change before the actual
2604      * resource migration takes place.
2605      * </pre>
2606      */
2607     public com.google.common.util.concurrent.ListenableFuture<
2608             com.google.cloud.asset.v1.AnalyzeMoveResponse>
analyzeMove(com.google.cloud.asset.v1.AnalyzeMoveRequest request)2609         analyzeMove(com.google.cloud.asset.v1.AnalyzeMoveRequest request) {
2610       return io.grpc.stub.ClientCalls.futureUnaryCall(
2611           getChannel().newCall(getAnalyzeMoveMethod(), getCallOptions()), request);
2612     }
2613 
2614     /**
2615      *
2616      *
2617      * <pre>
2618      * Issue a job that queries assets using a SQL statement compatible with
2619      * [BigQuery Standard
2620      * SQL](http://cloud/bigquery/docs/reference/standard-sql/enabling-standard-sql).
2621      * If the query execution finishes within timeout and there's no pagination,
2622      * the full query results will be returned in the `QueryAssetsResponse`.
2623      * Otherwise, full query results can be obtained by issuing extra requests
2624      * with the `job_reference` from the a previous `QueryAssets` call.
2625      * Note, the query result has approximately 10 GB limitation enforced by
2626      * BigQuery
2627      * https://cloud.google.com/bigquery/docs/best-practices-performance-output,
2628      * queries return larger results will result in errors.
2629      * </pre>
2630      */
2631     public com.google.common.util.concurrent.ListenableFuture<
2632             com.google.cloud.asset.v1.QueryAssetsResponse>
queryAssets(com.google.cloud.asset.v1.QueryAssetsRequest request)2633         queryAssets(com.google.cloud.asset.v1.QueryAssetsRequest request) {
2634       return io.grpc.stub.ClientCalls.futureUnaryCall(
2635           getChannel().newCall(getQueryAssetsMethod(), getCallOptions()), request);
2636     }
2637 
2638     /**
2639      *
2640      *
2641      * <pre>
2642      * Creates a saved query in a parent project/folder/organization.
2643      * </pre>
2644      */
2645     public com.google.common.util.concurrent.ListenableFuture<com.google.cloud.asset.v1.SavedQuery>
createSavedQuery(com.google.cloud.asset.v1.CreateSavedQueryRequest request)2646         createSavedQuery(com.google.cloud.asset.v1.CreateSavedQueryRequest request) {
2647       return io.grpc.stub.ClientCalls.futureUnaryCall(
2648           getChannel().newCall(getCreateSavedQueryMethod(), getCallOptions()), request);
2649     }
2650 
2651     /**
2652      *
2653      *
2654      * <pre>
2655      * Gets details about a saved query.
2656      * </pre>
2657      */
2658     public com.google.common.util.concurrent.ListenableFuture<com.google.cloud.asset.v1.SavedQuery>
getSavedQuery(com.google.cloud.asset.v1.GetSavedQueryRequest request)2659         getSavedQuery(com.google.cloud.asset.v1.GetSavedQueryRequest request) {
2660       return io.grpc.stub.ClientCalls.futureUnaryCall(
2661           getChannel().newCall(getGetSavedQueryMethod(), getCallOptions()), request);
2662     }
2663 
2664     /**
2665      *
2666      *
2667      * <pre>
2668      * Lists all saved queries in a parent project/folder/organization.
2669      * </pre>
2670      */
2671     public com.google.common.util.concurrent.ListenableFuture<
2672             com.google.cloud.asset.v1.ListSavedQueriesResponse>
listSavedQueries(com.google.cloud.asset.v1.ListSavedQueriesRequest request)2673         listSavedQueries(com.google.cloud.asset.v1.ListSavedQueriesRequest request) {
2674       return io.grpc.stub.ClientCalls.futureUnaryCall(
2675           getChannel().newCall(getListSavedQueriesMethod(), getCallOptions()), request);
2676     }
2677 
2678     /**
2679      *
2680      *
2681      * <pre>
2682      * Updates a saved query.
2683      * </pre>
2684      */
2685     public com.google.common.util.concurrent.ListenableFuture<com.google.cloud.asset.v1.SavedQuery>
updateSavedQuery(com.google.cloud.asset.v1.UpdateSavedQueryRequest request)2686         updateSavedQuery(com.google.cloud.asset.v1.UpdateSavedQueryRequest request) {
2687       return io.grpc.stub.ClientCalls.futureUnaryCall(
2688           getChannel().newCall(getUpdateSavedQueryMethod(), getCallOptions()), request);
2689     }
2690 
2691     /**
2692      *
2693      *
2694      * <pre>
2695      * Deletes a saved query.
2696      * </pre>
2697      */
2698     public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty>
deleteSavedQuery(com.google.cloud.asset.v1.DeleteSavedQueryRequest request)2699         deleteSavedQuery(com.google.cloud.asset.v1.DeleteSavedQueryRequest request) {
2700       return io.grpc.stub.ClientCalls.futureUnaryCall(
2701           getChannel().newCall(getDeleteSavedQueryMethod(), getCallOptions()), request);
2702     }
2703 
2704     /**
2705      *
2706      *
2707      * <pre>
2708      * Gets effective IAM policies for a batch of resources.
2709      * </pre>
2710      */
2711     public com.google.common.util.concurrent.ListenableFuture<
2712             com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse>
batchGetEffectiveIamPolicies( com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest request)2713         batchGetEffectiveIamPolicies(
2714             com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest request) {
2715       return io.grpc.stub.ClientCalls.futureUnaryCall(
2716           getChannel().newCall(getBatchGetEffectiveIamPoliciesMethod(), getCallOptions()), request);
2717     }
2718 
2719     /**
2720      *
2721      *
2722      * <pre>
2723      * Analyzes organization policies under a scope.
2724      * </pre>
2725      */
2726     public com.google.common.util.concurrent.ListenableFuture<
2727             com.google.cloud.asset.v1.AnalyzeOrgPoliciesResponse>
analyzeOrgPolicies(com.google.cloud.asset.v1.AnalyzeOrgPoliciesRequest request)2728         analyzeOrgPolicies(com.google.cloud.asset.v1.AnalyzeOrgPoliciesRequest request) {
2729       return io.grpc.stub.ClientCalls.futureUnaryCall(
2730           getChannel().newCall(getAnalyzeOrgPoliciesMethod(), getCallOptions()), request);
2731     }
2732 
2733     /**
2734      *
2735      *
2736      * <pre>
2737      * Analyzes organization policies governed containers (projects, folders or
2738      * organization) under a scope.
2739      * </pre>
2740      */
2741     public com.google.common.util.concurrent.ListenableFuture<
2742             com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse>
analyzeOrgPolicyGovernedContainers( com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersRequest request)2743         analyzeOrgPolicyGovernedContainers(
2744             com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersRequest request) {
2745       return io.grpc.stub.ClientCalls.futureUnaryCall(
2746           getChannel().newCall(getAnalyzeOrgPolicyGovernedContainersMethod(), getCallOptions()),
2747           request);
2748     }
2749 
2750     /**
2751      *
2752      *
2753      * <pre>
2754      * Analyzes organization policies governed assets (Google Cloud resources or
2755      * policies) under a scope. This RPC supports custom constraints and the
2756      * following 10 canned constraints:
2757      * * storage.uniformBucketLevelAccess
2758      * * iam.disableServiceAccountKeyCreation
2759      * * iam.allowedPolicyMemberDomains
2760      * * compute.vmExternalIpAccess
2761      * * appengine.enforceServiceAccountActAsCheck
2762      * * gcp.resourceLocations
2763      * * compute.trustedImageProjects
2764      * * compute.skipDefaultNetworkCreation
2765      * * compute.requireOsLogin
2766      * * compute.disableNestedVirtualization
2767      * This RPC only returns either resources of types supported by [searchable
2768      * asset
2769      * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types),
2770      * or IAM policies.
2771      * </pre>
2772      */
2773     public com.google.common.util.concurrent.ListenableFuture<
2774             com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse>
analyzeOrgPolicyGovernedAssets( com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest request)2775         analyzeOrgPolicyGovernedAssets(
2776             com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest request) {
2777       return io.grpc.stub.ClientCalls.futureUnaryCall(
2778           getChannel().newCall(getAnalyzeOrgPolicyGovernedAssetsMethod(), getCallOptions()),
2779           request);
2780     }
2781   }
2782 
2783   private static final int METHODID_EXPORT_ASSETS = 0;
2784   private static final int METHODID_LIST_ASSETS = 1;
2785   private static final int METHODID_BATCH_GET_ASSETS_HISTORY = 2;
2786   private static final int METHODID_CREATE_FEED = 3;
2787   private static final int METHODID_GET_FEED = 4;
2788   private static final int METHODID_LIST_FEEDS = 5;
2789   private static final int METHODID_UPDATE_FEED = 6;
2790   private static final int METHODID_DELETE_FEED = 7;
2791   private static final int METHODID_SEARCH_ALL_RESOURCES = 8;
2792   private static final int METHODID_SEARCH_ALL_IAM_POLICIES = 9;
2793   private static final int METHODID_ANALYZE_IAM_POLICY = 10;
2794   private static final int METHODID_ANALYZE_IAM_POLICY_LONGRUNNING = 11;
2795   private static final int METHODID_ANALYZE_MOVE = 12;
2796   private static final int METHODID_QUERY_ASSETS = 13;
2797   private static final int METHODID_CREATE_SAVED_QUERY = 14;
2798   private static final int METHODID_GET_SAVED_QUERY = 15;
2799   private static final int METHODID_LIST_SAVED_QUERIES = 16;
2800   private static final int METHODID_UPDATE_SAVED_QUERY = 17;
2801   private static final int METHODID_DELETE_SAVED_QUERY = 18;
2802   private static final int METHODID_BATCH_GET_EFFECTIVE_IAM_POLICIES = 19;
2803   private static final int METHODID_ANALYZE_ORG_POLICIES = 20;
2804   private static final int METHODID_ANALYZE_ORG_POLICY_GOVERNED_CONTAINERS = 21;
2805   private static final int METHODID_ANALYZE_ORG_POLICY_GOVERNED_ASSETS = 22;
2806 
2807   private static final class MethodHandlers<Req, Resp>
2808       implements io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
2809           io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>,
2810           io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>,
2811           io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> {
2812     private final AsyncService serviceImpl;
2813     private final int methodId;
2814 
MethodHandlers(AsyncService serviceImpl, int methodId)2815     MethodHandlers(AsyncService serviceImpl, int methodId) {
2816       this.serviceImpl = serviceImpl;
2817       this.methodId = methodId;
2818     }
2819 
2820     @java.lang.Override
2821     @java.lang.SuppressWarnings("unchecked")
invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver)2822     public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver) {
2823       switch (methodId) {
2824         case METHODID_EXPORT_ASSETS:
2825           serviceImpl.exportAssets(
2826               (com.google.cloud.asset.v1.ExportAssetsRequest) request,
2827               (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver);
2828           break;
2829         case METHODID_LIST_ASSETS:
2830           serviceImpl.listAssets(
2831               (com.google.cloud.asset.v1.ListAssetsRequest) request,
2832               (io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.ListAssetsResponse>)
2833                   responseObserver);
2834           break;
2835         case METHODID_BATCH_GET_ASSETS_HISTORY:
2836           serviceImpl.batchGetAssetsHistory(
2837               (com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest) request,
2838               (io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse>)
2839                   responseObserver);
2840           break;
2841         case METHODID_CREATE_FEED:
2842           serviceImpl.createFeed(
2843               (com.google.cloud.asset.v1.CreateFeedRequest) request,
2844               (io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.Feed>) responseObserver);
2845           break;
2846         case METHODID_GET_FEED:
2847           serviceImpl.getFeed(
2848               (com.google.cloud.asset.v1.GetFeedRequest) request,
2849               (io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.Feed>) responseObserver);
2850           break;
2851         case METHODID_LIST_FEEDS:
2852           serviceImpl.listFeeds(
2853               (com.google.cloud.asset.v1.ListFeedsRequest) request,
2854               (io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.ListFeedsResponse>)
2855                   responseObserver);
2856           break;
2857         case METHODID_UPDATE_FEED:
2858           serviceImpl.updateFeed(
2859               (com.google.cloud.asset.v1.UpdateFeedRequest) request,
2860               (io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.Feed>) responseObserver);
2861           break;
2862         case METHODID_DELETE_FEED:
2863           serviceImpl.deleteFeed(
2864               (com.google.cloud.asset.v1.DeleteFeedRequest) request,
2865               (io.grpc.stub.StreamObserver<com.google.protobuf.Empty>) responseObserver);
2866           break;
2867         case METHODID_SEARCH_ALL_RESOURCES:
2868           serviceImpl.searchAllResources(
2869               (com.google.cloud.asset.v1.SearchAllResourcesRequest) request,
2870               (io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.SearchAllResourcesResponse>)
2871                   responseObserver);
2872           break;
2873         case METHODID_SEARCH_ALL_IAM_POLICIES:
2874           serviceImpl.searchAllIamPolicies(
2875               (com.google.cloud.asset.v1.SearchAllIamPoliciesRequest) request,
2876               (io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.SearchAllIamPoliciesResponse>)
2877                   responseObserver);
2878           break;
2879         case METHODID_ANALYZE_IAM_POLICY:
2880           serviceImpl.analyzeIamPolicy(
2881               (com.google.cloud.asset.v1.AnalyzeIamPolicyRequest) request,
2882               (io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.AnalyzeIamPolicyResponse>)
2883                   responseObserver);
2884           break;
2885         case METHODID_ANALYZE_IAM_POLICY_LONGRUNNING:
2886           serviceImpl.analyzeIamPolicyLongrunning(
2887               (com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest) request,
2888               (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver);
2889           break;
2890         case METHODID_ANALYZE_MOVE:
2891           serviceImpl.analyzeMove(
2892               (com.google.cloud.asset.v1.AnalyzeMoveRequest) request,
2893               (io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.AnalyzeMoveResponse>)
2894                   responseObserver);
2895           break;
2896         case METHODID_QUERY_ASSETS:
2897           serviceImpl.queryAssets(
2898               (com.google.cloud.asset.v1.QueryAssetsRequest) request,
2899               (io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.QueryAssetsResponse>)
2900                   responseObserver);
2901           break;
2902         case METHODID_CREATE_SAVED_QUERY:
2903           serviceImpl.createSavedQuery(
2904               (com.google.cloud.asset.v1.CreateSavedQueryRequest) request,
2905               (io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.SavedQuery>) responseObserver);
2906           break;
2907         case METHODID_GET_SAVED_QUERY:
2908           serviceImpl.getSavedQuery(
2909               (com.google.cloud.asset.v1.GetSavedQueryRequest) request,
2910               (io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.SavedQuery>) responseObserver);
2911           break;
2912         case METHODID_LIST_SAVED_QUERIES:
2913           serviceImpl.listSavedQueries(
2914               (com.google.cloud.asset.v1.ListSavedQueriesRequest) request,
2915               (io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.ListSavedQueriesResponse>)
2916                   responseObserver);
2917           break;
2918         case METHODID_UPDATE_SAVED_QUERY:
2919           serviceImpl.updateSavedQuery(
2920               (com.google.cloud.asset.v1.UpdateSavedQueryRequest) request,
2921               (io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.SavedQuery>) responseObserver);
2922           break;
2923         case METHODID_DELETE_SAVED_QUERY:
2924           serviceImpl.deleteSavedQuery(
2925               (com.google.cloud.asset.v1.DeleteSavedQueryRequest) request,
2926               (io.grpc.stub.StreamObserver<com.google.protobuf.Empty>) responseObserver);
2927           break;
2928         case METHODID_BATCH_GET_EFFECTIVE_IAM_POLICIES:
2929           serviceImpl.batchGetEffectiveIamPolicies(
2930               (com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest) request,
2931               (io.grpc.stub.StreamObserver<
2932                       com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse>)
2933                   responseObserver);
2934           break;
2935         case METHODID_ANALYZE_ORG_POLICIES:
2936           serviceImpl.analyzeOrgPolicies(
2937               (com.google.cloud.asset.v1.AnalyzeOrgPoliciesRequest) request,
2938               (io.grpc.stub.StreamObserver<com.google.cloud.asset.v1.AnalyzeOrgPoliciesResponse>)
2939                   responseObserver);
2940           break;
2941         case METHODID_ANALYZE_ORG_POLICY_GOVERNED_CONTAINERS:
2942           serviceImpl.analyzeOrgPolicyGovernedContainers(
2943               (com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersRequest) request,
2944               (io.grpc.stub.StreamObserver<
2945                       com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse>)
2946                   responseObserver);
2947           break;
2948         case METHODID_ANALYZE_ORG_POLICY_GOVERNED_ASSETS:
2949           serviceImpl.analyzeOrgPolicyGovernedAssets(
2950               (com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest) request,
2951               (io.grpc.stub.StreamObserver<
2952                       com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse>)
2953                   responseObserver);
2954           break;
2955         default:
2956           throw new AssertionError();
2957       }
2958     }
2959 
2960     @java.lang.Override
2961     @java.lang.SuppressWarnings("unchecked")
invoke( io.grpc.stub.StreamObserver<Resp> responseObserver)2962     public io.grpc.stub.StreamObserver<Req> invoke(
2963         io.grpc.stub.StreamObserver<Resp> responseObserver) {
2964       switch (methodId) {
2965         default:
2966           throw new AssertionError();
2967       }
2968     }
2969   }
2970 
bindService(AsyncService service)2971   public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
2972     return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
2973         .addMethod(
2974             getExportAssetsMethod(),
2975             io.grpc.stub.ServerCalls.asyncUnaryCall(
2976                 new MethodHandlers<
2977                     com.google.cloud.asset.v1.ExportAssetsRequest,
2978                     com.google.longrunning.Operation>(service, METHODID_EXPORT_ASSETS)))
2979         .addMethod(
2980             getListAssetsMethod(),
2981             io.grpc.stub.ServerCalls.asyncUnaryCall(
2982                 new MethodHandlers<
2983                     com.google.cloud.asset.v1.ListAssetsRequest,
2984                     com.google.cloud.asset.v1.ListAssetsResponse>(service, METHODID_LIST_ASSETS)))
2985         .addMethod(
2986             getBatchGetAssetsHistoryMethod(),
2987             io.grpc.stub.ServerCalls.asyncUnaryCall(
2988                 new MethodHandlers<
2989                     com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest,
2990                     com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse>(
2991                     service, METHODID_BATCH_GET_ASSETS_HISTORY)))
2992         .addMethod(
2993             getCreateFeedMethod(),
2994             io.grpc.stub.ServerCalls.asyncUnaryCall(
2995                 new MethodHandlers<
2996                     com.google.cloud.asset.v1.CreateFeedRequest, com.google.cloud.asset.v1.Feed>(
2997                     service, METHODID_CREATE_FEED)))
2998         .addMethod(
2999             getGetFeedMethod(),
3000             io.grpc.stub.ServerCalls.asyncUnaryCall(
3001                 new MethodHandlers<
3002                     com.google.cloud.asset.v1.GetFeedRequest, com.google.cloud.asset.v1.Feed>(
3003                     service, METHODID_GET_FEED)))
3004         .addMethod(
3005             getListFeedsMethod(),
3006             io.grpc.stub.ServerCalls.asyncUnaryCall(
3007                 new MethodHandlers<
3008                     com.google.cloud.asset.v1.ListFeedsRequest,
3009                     com.google.cloud.asset.v1.ListFeedsResponse>(service, METHODID_LIST_FEEDS)))
3010         .addMethod(
3011             getUpdateFeedMethod(),
3012             io.grpc.stub.ServerCalls.asyncUnaryCall(
3013                 new MethodHandlers<
3014                     com.google.cloud.asset.v1.UpdateFeedRequest, com.google.cloud.asset.v1.Feed>(
3015                     service, METHODID_UPDATE_FEED)))
3016         .addMethod(
3017             getDeleteFeedMethod(),
3018             io.grpc.stub.ServerCalls.asyncUnaryCall(
3019                 new MethodHandlers<
3020                     com.google.cloud.asset.v1.DeleteFeedRequest, com.google.protobuf.Empty>(
3021                     service, METHODID_DELETE_FEED)))
3022         .addMethod(
3023             getSearchAllResourcesMethod(),
3024             io.grpc.stub.ServerCalls.asyncUnaryCall(
3025                 new MethodHandlers<
3026                     com.google.cloud.asset.v1.SearchAllResourcesRequest,
3027                     com.google.cloud.asset.v1.SearchAllResourcesResponse>(
3028                     service, METHODID_SEARCH_ALL_RESOURCES)))
3029         .addMethod(
3030             getSearchAllIamPoliciesMethod(),
3031             io.grpc.stub.ServerCalls.asyncUnaryCall(
3032                 new MethodHandlers<
3033                     com.google.cloud.asset.v1.SearchAllIamPoliciesRequest,
3034                     com.google.cloud.asset.v1.SearchAllIamPoliciesResponse>(
3035                     service, METHODID_SEARCH_ALL_IAM_POLICIES)))
3036         .addMethod(
3037             getAnalyzeIamPolicyMethod(),
3038             io.grpc.stub.ServerCalls.asyncUnaryCall(
3039                 new MethodHandlers<
3040                     com.google.cloud.asset.v1.AnalyzeIamPolicyRequest,
3041                     com.google.cloud.asset.v1.AnalyzeIamPolicyResponse>(
3042                     service, METHODID_ANALYZE_IAM_POLICY)))
3043         .addMethod(
3044             getAnalyzeIamPolicyLongrunningMethod(),
3045             io.grpc.stub.ServerCalls.asyncUnaryCall(
3046                 new MethodHandlers<
3047                     com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest,
3048                     com.google.longrunning.Operation>(
3049                     service, METHODID_ANALYZE_IAM_POLICY_LONGRUNNING)))
3050         .addMethod(
3051             getAnalyzeMoveMethod(),
3052             io.grpc.stub.ServerCalls.asyncUnaryCall(
3053                 new MethodHandlers<
3054                     com.google.cloud.asset.v1.AnalyzeMoveRequest,
3055                     com.google.cloud.asset.v1.AnalyzeMoveResponse>(service, METHODID_ANALYZE_MOVE)))
3056         .addMethod(
3057             getQueryAssetsMethod(),
3058             io.grpc.stub.ServerCalls.asyncUnaryCall(
3059                 new MethodHandlers<
3060                     com.google.cloud.asset.v1.QueryAssetsRequest,
3061                     com.google.cloud.asset.v1.QueryAssetsResponse>(service, METHODID_QUERY_ASSETS)))
3062         .addMethod(
3063             getCreateSavedQueryMethod(),
3064             io.grpc.stub.ServerCalls.asyncUnaryCall(
3065                 new MethodHandlers<
3066                     com.google.cloud.asset.v1.CreateSavedQueryRequest,
3067                     com.google.cloud.asset.v1.SavedQuery>(service, METHODID_CREATE_SAVED_QUERY)))
3068         .addMethod(
3069             getGetSavedQueryMethod(),
3070             io.grpc.stub.ServerCalls.asyncUnaryCall(
3071                 new MethodHandlers<
3072                     com.google.cloud.asset.v1.GetSavedQueryRequest,
3073                     com.google.cloud.asset.v1.SavedQuery>(service, METHODID_GET_SAVED_QUERY)))
3074         .addMethod(
3075             getListSavedQueriesMethod(),
3076             io.grpc.stub.ServerCalls.asyncUnaryCall(
3077                 new MethodHandlers<
3078                     com.google.cloud.asset.v1.ListSavedQueriesRequest,
3079                     com.google.cloud.asset.v1.ListSavedQueriesResponse>(
3080                     service, METHODID_LIST_SAVED_QUERIES)))
3081         .addMethod(
3082             getUpdateSavedQueryMethod(),
3083             io.grpc.stub.ServerCalls.asyncUnaryCall(
3084                 new MethodHandlers<
3085                     com.google.cloud.asset.v1.UpdateSavedQueryRequest,
3086                     com.google.cloud.asset.v1.SavedQuery>(service, METHODID_UPDATE_SAVED_QUERY)))
3087         .addMethod(
3088             getDeleteSavedQueryMethod(),
3089             io.grpc.stub.ServerCalls.asyncUnaryCall(
3090                 new MethodHandlers<
3091                     com.google.cloud.asset.v1.DeleteSavedQueryRequest, com.google.protobuf.Empty>(
3092                     service, METHODID_DELETE_SAVED_QUERY)))
3093         .addMethod(
3094             getBatchGetEffectiveIamPoliciesMethod(),
3095             io.grpc.stub.ServerCalls.asyncUnaryCall(
3096                 new MethodHandlers<
3097                     com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest,
3098                     com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse>(
3099                     service, METHODID_BATCH_GET_EFFECTIVE_IAM_POLICIES)))
3100         .addMethod(
3101             getAnalyzeOrgPoliciesMethod(),
3102             io.grpc.stub.ServerCalls.asyncUnaryCall(
3103                 new MethodHandlers<
3104                     com.google.cloud.asset.v1.AnalyzeOrgPoliciesRequest,
3105                     com.google.cloud.asset.v1.AnalyzeOrgPoliciesResponse>(
3106                     service, METHODID_ANALYZE_ORG_POLICIES)))
3107         .addMethod(
3108             getAnalyzeOrgPolicyGovernedContainersMethod(),
3109             io.grpc.stub.ServerCalls.asyncUnaryCall(
3110                 new MethodHandlers<
3111                     com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersRequest,
3112                     com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse>(
3113                     service, METHODID_ANALYZE_ORG_POLICY_GOVERNED_CONTAINERS)))
3114         .addMethod(
3115             getAnalyzeOrgPolicyGovernedAssetsMethod(),
3116             io.grpc.stub.ServerCalls.asyncUnaryCall(
3117                 new MethodHandlers<
3118                     com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest,
3119                     com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse>(
3120                     service, METHODID_ANALYZE_ORG_POLICY_GOVERNED_ASSETS)))
3121         .build();
3122   }
3123 
3124   private abstract static class AssetServiceBaseDescriptorSupplier
3125       implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
3126           io.grpc.protobuf.ProtoServiceDescriptorSupplier {
AssetServiceBaseDescriptorSupplier()3127     AssetServiceBaseDescriptorSupplier() {}
3128 
3129     @java.lang.Override
getFileDescriptor()3130     public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
3131       return com.google.cloud.asset.v1.AssetServiceProto.getDescriptor();
3132     }
3133 
3134     @java.lang.Override
getServiceDescriptor()3135     public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
3136       return getFileDescriptor().findServiceByName("AssetService");
3137     }
3138   }
3139 
3140   private static final class AssetServiceFileDescriptorSupplier
3141       extends AssetServiceBaseDescriptorSupplier {
AssetServiceFileDescriptorSupplier()3142     AssetServiceFileDescriptorSupplier() {}
3143   }
3144 
3145   private static final class AssetServiceMethodDescriptorSupplier
3146       extends AssetServiceBaseDescriptorSupplier
3147       implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
3148     private final String methodName;
3149 
AssetServiceMethodDescriptorSupplier(String methodName)3150     AssetServiceMethodDescriptorSupplier(String methodName) {
3151       this.methodName = methodName;
3152     }
3153 
3154     @java.lang.Override
getMethodDescriptor()3155     public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
3156       return getServiceDescriptor().findMethodByName(methodName);
3157     }
3158   }
3159 
3160   private static volatile io.grpc.ServiceDescriptor serviceDescriptor;
3161 
getServiceDescriptor()3162   public static io.grpc.ServiceDescriptor getServiceDescriptor() {
3163     io.grpc.ServiceDescriptor result = serviceDescriptor;
3164     if (result == null) {
3165       synchronized (AssetServiceGrpc.class) {
3166         result = serviceDescriptor;
3167         if (result == null) {
3168           serviceDescriptor =
3169               result =
3170                   io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
3171                       .setSchemaDescriptor(new AssetServiceFileDescriptorSupplier())
3172                       .addMethod(getExportAssetsMethod())
3173                       .addMethod(getListAssetsMethod())
3174                       .addMethod(getBatchGetAssetsHistoryMethod())
3175                       .addMethod(getCreateFeedMethod())
3176                       .addMethod(getGetFeedMethod())
3177                       .addMethod(getListFeedsMethod())
3178                       .addMethod(getUpdateFeedMethod())
3179                       .addMethod(getDeleteFeedMethod())
3180                       .addMethod(getSearchAllResourcesMethod())
3181                       .addMethod(getSearchAllIamPoliciesMethod())
3182                       .addMethod(getAnalyzeIamPolicyMethod())
3183                       .addMethod(getAnalyzeIamPolicyLongrunningMethod())
3184                       .addMethod(getAnalyzeMoveMethod())
3185                       .addMethod(getQueryAssetsMethod())
3186                       .addMethod(getCreateSavedQueryMethod())
3187                       .addMethod(getGetSavedQueryMethod())
3188                       .addMethod(getListSavedQueriesMethod())
3189                       .addMethod(getUpdateSavedQueryMethod())
3190                       .addMethod(getDeleteSavedQueryMethod())
3191                       .addMethod(getBatchGetEffectiveIamPoliciesMethod())
3192                       .addMethod(getAnalyzeOrgPoliciesMethod())
3193                       .addMethod(getAnalyzeOrgPolicyGovernedContainersMethod())
3194                       .addMethod(getAnalyzeOrgPolicyGovernedAssetsMethod())
3195                       .build();
3196         }
3197       }
3198     }
3199     return result;
3200   }
3201 }
3202