1 /* 2 * Copyright 2022 Google LLC 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * https://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package com.google.cloud.asset.v1.stub; 18 19 import static com.google.cloud.asset.v1.AssetServiceClient.AnalyzeOrgPoliciesPagedResponse; 20 import static com.google.cloud.asset.v1.AssetServiceClient.AnalyzeOrgPolicyGovernedAssetsPagedResponse; 21 import static com.google.cloud.asset.v1.AssetServiceClient.AnalyzeOrgPolicyGovernedContainersPagedResponse; 22 import static com.google.cloud.asset.v1.AssetServiceClient.ListAssetsPagedResponse; 23 import static com.google.cloud.asset.v1.AssetServiceClient.ListSavedQueriesPagedResponse; 24 import static com.google.cloud.asset.v1.AssetServiceClient.SearchAllIamPoliciesPagedResponse; 25 import static com.google.cloud.asset.v1.AssetServiceClient.SearchAllResourcesPagedResponse; 26 27 import com.google.api.gax.core.BackgroundResource; 28 import com.google.api.gax.rpc.OperationCallable; 29 import com.google.api.gax.rpc.UnaryCallable; 30 import com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata; 31 import com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest; 32 import com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse; 33 import com.google.cloud.asset.v1.AnalyzeIamPolicyRequest; 34 import com.google.cloud.asset.v1.AnalyzeIamPolicyResponse; 35 import com.google.cloud.asset.v1.AnalyzeMoveRequest; 36 import com.google.cloud.asset.v1.AnalyzeMoveResponse; 37 import com.google.cloud.asset.v1.AnalyzeOrgPoliciesRequest; 38 import com.google.cloud.asset.v1.AnalyzeOrgPoliciesResponse; 39 import com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest; 40 import com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse; 41 import com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersRequest; 42 import com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse; 43 import com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest; 44 import com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse; 45 import com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest; 46 import com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse; 47 import com.google.cloud.asset.v1.CreateFeedRequest; 48 import com.google.cloud.asset.v1.CreateSavedQueryRequest; 49 import com.google.cloud.asset.v1.DeleteFeedRequest; 50 import com.google.cloud.asset.v1.DeleteSavedQueryRequest; 51 import com.google.cloud.asset.v1.ExportAssetsRequest; 52 import com.google.cloud.asset.v1.ExportAssetsResponse; 53 import com.google.cloud.asset.v1.Feed; 54 import com.google.cloud.asset.v1.GetFeedRequest; 55 import com.google.cloud.asset.v1.GetSavedQueryRequest; 56 import com.google.cloud.asset.v1.ListAssetsRequest; 57 import com.google.cloud.asset.v1.ListAssetsResponse; 58 import com.google.cloud.asset.v1.ListFeedsRequest; 59 import com.google.cloud.asset.v1.ListFeedsResponse; 60 import com.google.cloud.asset.v1.ListSavedQueriesRequest; 61 import com.google.cloud.asset.v1.ListSavedQueriesResponse; 62 import com.google.cloud.asset.v1.QueryAssetsRequest; 63 import com.google.cloud.asset.v1.QueryAssetsResponse; 64 import com.google.cloud.asset.v1.SavedQuery; 65 import com.google.cloud.asset.v1.SearchAllIamPoliciesRequest; 66 import com.google.cloud.asset.v1.SearchAllIamPoliciesResponse; 67 import com.google.cloud.asset.v1.SearchAllResourcesRequest; 68 import com.google.cloud.asset.v1.SearchAllResourcesResponse; 69 import com.google.cloud.asset.v1.UpdateFeedRequest; 70 import com.google.cloud.asset.v1.UpdateSavedQueryRequest; 71 import com.google.longrunning.Operation; 72 import com.google.longrunning.stub.OperationsStub; 73 import com.google.protobuf.Empty; 74 import javax.annotation.Generated; 75 76 // AUTO-GENERATED DOCUMENTATION AND CLASS. 77 /** 78 * Base stub class for the AssetService service API. 79 * 80 * <p>This class is for advanced usage and reflects the underlying API directly. 81 */ 82 @Generated("by gapic-generator-java") 83 public abstract class AssetServiceStub implements BackgroundResource { 84 getOperationsStub()85 public OperationsStub getOperationsStub() { 86 return null; 87 } 88 getHttpJsonOperationsStub()89 public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { 90 return null; 91 } 92 93 public OperationCallable<ExportAssetsRequest, ExportAssetsResponse, ExportAssetsRequest> exportAssetsOperationCallable()94 exportAssetsOperationCallable() { 95 throw new UnsupportedOperationException("Not implemented: exportAssetsOperationCallable()"); 96 } 97 exportAssetsCallable()98 public UnaryCallable<ExportAssetsRequest, Operation> exportAssetsCallable() { 99 throw new UnsupportedOperationException("Not implemented: exportAssetsCallable()"); 100 } 101 listAssetsPagedCallable()102 public UnaryCallable<ListAssetsRequest, ListAssetsPagedResponse> listAssetsPagedCallable() { 103 throw new UnsupportedOperationException("Not implemented: listAssetsPagedCallable()"); 104 } 105 listAssetsCallable()106 public UnaryCallable<ListAssetsRequest, ListAssetsResponse> listAssetsCallable() { 107 throw new UnsupportedOperationException("Not implemented: listAssetsCallable()"); 108 } 109 110 public UnaryCallable<BatchGetAssetsHistoryRequest, BatchGetAssetsHistoryResponse> batchGetAssetsHistoryCallable()111 batchGetAssetsHistoryCallable() { 112 throw new UnsupportedOperationException("Not implemented: batchGetAssetsHistoryCallable()"); 113 } 114 createFeedCallable()115 public UnaryCallable<CreateFeedRequest, Feed> createFeedCallable() { 116 throw new UnsupportedOperationException("Not implemented: createFeedCallable()"); 117 } 118 getFeedCallable()119 public UnaryCallable<GetFeedRequest, Feed> getFeedCallable() { 120 throw new UnsupportedOperationException("Not implemented: getFeedCallable()"); 121 } 122 listFeedsCallable()123 public UnaryCallable<ListFeedsRequest, ListFeedsResponse> listFeedsCallable() { 124 throw new UnsupportedOperationException("Not implemented: listFeedsCallable()"); 125 } 126 updateFeedCallable()127 public UnaryCallable<UpdateFeedRequest, Feed> updateFeedCallable() { 128 throw new UnsupportedOperationException("Not implemented: updateFeedCallable()"); 129 } 130 deleteFeedCallable()131 public UnaryCallable<DeleteFeedRequest, Empty> deleteFeedCallable() { 132 throw new UnsupportedOperationException("Not implemented: deleteFeedCallable()"); 133 } 134 135 public UnaryCallable<SearchAllResourcesRequest, SearchAllResourcesPagedResponse> searchAllResourcesPagedCallable()136 searchAllResourcesPagedCallable() { 137 throw new UnsupportedOperationException("Not implemented: searchAllResourcesPagedCallable()"); 138 } 139 140 public UnaryCallable<SearchAllResourcesRequest, SearchAllResourcesResponse> searchAllResourcesCallable()141 searchAllResourcesCallable() { 142 throw new UnsupportedOperationException("Not implemented: searchAllResourcesCallable()"); 143 } 144 145 public UnaryCallable<SearchAllIamPoliciesRequest, SearchAllIamPoliciesPagedResponse> searchAllIamPoliciesPagedCallable()146 searchAllIamPoliciesPagedCallable() { 147 throw new UnsupportedOperationException("Not implemented: searchAllIamPoliciesPagedCallable()"); 148 } 149 150 public UnaryCallable<SearchAllIamPoliciesRequest, SearchAllIamPoliciesResponse> searchAllIamPoliciesCallable()151 searchAllIamPoliciesCallable() { 152 throw new UnsupportedOperationException("Not implemented: searchAllIamPoliciesCallable()"); 153 } 154 155 public UnaryCallable<AnalyzeIamPolicyRequest, AnalyzeIamPolicyResponse> analyzeIamPolicyCallable()156 analyzeIamPolicyCallable() { 157 throw new UnsupportedOperationException("Not implemented: analyzeIamPolicyCallable()"); 158 } 159 160 public OperationCallable< 161 AnalyzeIamPolicyLongrunningRequest, 162 AnalyzeIamPolicyLongrunningResponse, 163 AnalyzeIamPolicyLongrunningMetadata> analyzeIamPolicyLongrunningOperationCallable()164 analyzeIamPolicyLongrunningOperationCallable() { 165 throw new UnsupportedOperationException( 166 "Not implemented: analyzeIamPolicyLongrunningOperationCallable()"); 167 } 168 169 public UnaryCallable<AnalyzeIamPolicyLongrunningRequest, Operation> analyzeIamPolicyLongrunningCallable()170 analyzeIamPolicyLongrunningCallable() { 171 throw new UnsupportedOperationException( 172 "Not implemented: analyzeIamPolicyLongrunningCallable()"); 173 } 174 analyzeMoveCallable()175 public UnaryCallable<AnalyzeMoveRequest, AnalyzeMoveResponse> analyzeMoveCallable() { 176 throw new UnsupportedOperationException("Not implemented: analyzeMoveCallable()"); 177 } 178 queryAssetsCallable()179 public UnaryCallable<QueryAssetsRequest, QueryAssetsResponse> queryAssetsCallable() { 180 throw new UnsupportedOperationException("Not implemented: queryAssetsCallable()"); 181 } 182 createSavedQueryCallable()183 public UnaryCallable<CreateSavedQueryRequest, SavedQuery> createSavedQueryCallable() { 184 throw new UnsupportedOperationException("Not implemented: createSavedQueryCallable()"); 185 } 186 getSavedQueryCallable()187 public UnaryCallable<GetSavedQueryRequest, SavedQuery> getSavedQueryCallable() { 188 throw new UnsupportedOperationException("Not implemented: getSavedQueryCallable()"); 189 } 190 191 public UnaryCallable<ListSavedQueriesRequest, ListSavedQueriesPagedResponse> listSavedQueriesPagedCallable()192 listSavedQueriesPagedCallable() { 193 throw new UnsupportedOperationException("Not implemented: listSavedQueriesPagedCallable()"); 194 } 195 196 public UnaryCallable<ListSavedQueriesRequest, ListSavedQueriesResponse> listSavedQueriesCallable()197 listSavedQueriesCallable() { 198 throw new UnsupportedOperationException("Not implemented: listSavedQueriesCallable()"); 199 } 200 updateSavedQueryCallable()201 public UnaryCallable<UpdateSavedQueryRequest, SavedQuery> updateSavedQueryCallable() { 202 throw new UnsupportedOperationException("Not implemented: updateSavedQueryCallable()"); 203 } 204 deleteSavedQueryCallable()205 public UnaryCallable<DeleteSavedQueryRequest, Empty> deleteSavedQueryCallable() { 206 throw new UnsupportedOperationException("Not implemented: deleteSavedQueryCallable()"); 207 } 208 209 public UnaryCallable<BatchGetEffectiveIamPoliciesRequest, BatchGetEffectiveIamPoliciesResponse> batchGetEffectiveIamPoliciesCallable()210 batchGetEffectiveIamPoliciesCallable() { 211 throw new UnsupportedOperationException( 212 "Not implemented: batchGetEffectiveIamPoliciesCallable()"); 213 } 214 215 public UnaryCallable<AnalyzeOrgPoliciesRequest, AnalyzeOrgPoliciesPagedResponse> analyzeOrgPoliciesPagedCallable()216 analyzeOrgPoliciesPagedCallable() { 217 throw new UnsupportedOperationException("Not implemented: analyzeOrgPoliciesPagedCallable()"); 218 } 219 220 public UnaryCallable<AnalyzeOrgPoliciesRequest, AnalyzeOrgPoliciesResponse> analyzeOrgPoliciesCallable()221 analyzeOrgPoliciesCallable() { 222 throw new UnsupportedOperationException("Not implemented: analyzeOrgPoliciesCallable()"); 223 } 224 225 public UnaryCallable< 226 AnalyzeOrgPolicyGovernedContainersRequest, 227 AnalyzeOrgPolicyGovernedContainersPagedResponse> analyzeOrgPolicyGovernedContainersPagedCallable()228 analyzeOrgPolicyGovernedContainersPagedCallable() { 229 throw new UnsupportedOperationException( 230 "Not implemented: analyzeOrgPolicyGovernedContainersPagedCallable()"); 231 } 232 233 public UnaryCallable< 234 AnalyzeOrgPolicyGovernedContainersRequest, AnalyzeOrgPolicyGovernedContainersResponse> analyzeOrgPolicyGovernedContainersCallable()235 analyzeOrgPolicyGovernedContainersCallable() { 236 throw new UnsupportedOperationException( 237 "Not implemented: analyzeOrgPolicyGovernedContainersCallable()"); 238 } 239 240 public UnaryCallable< 241 AnalyzeOrgPolicyGovernedAssetsRequest, AnalyzeOrgPolicyGovernedAssetsPagedResponse> analyzeOrgPolicyGovernedAssetsPagedCallable()242 analyzeOrgPolicyGovernedAssetsPagedCallable() { 243 throw new UnsupportedOperationException( 244 "Not implemented: analyzeOrgPolicyGovernedAssetsPagedCallable()"); 245 } 246 247 public UnaryCallable< 248 AnalyzeOrgPolicyGovernedAssetsRequest, AnalyzeOrgPolicyGovernedAssetsResponse> analyzeOrgPolicyGovernedAssetsCallable()249 analyzeOrgPolicyGovernedAssetsCallable() { 250 throw new UnsupportedOperationException( 251 "Not implemented: analyzeOrgPolicyGovernedAssetsCallable()"); 252 } 253 254 @Override close()255 public abstract void close(); 256 } 257