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.dialogflow.v2beta1.stub; 18 19 import static com.google.cloud.dialogflow.v2beta1.DocumentsClient.ListDocumentsPagedResponse; 20 import static com.google.cloud.dialogflow.v2beta1.DocumentsClient.ListLocationsPagedResponse; 21 22 import com.google.api.core.BetaApi; 23 import com.google.api.gax.core.BackgroundResource; 24 import com.google.api.gax.rpc.OperationCallable; 25 import com.google.api.gax.rpc.UnaryCallable; 26 import com.google.cloud.dialogflow.v2beta1.CreateDocumentRequest; 27 import com.google.cloud.dialogflow.v2beta1.DeleteDocumentRequest; 28 import com.google.cloud.dialogflow.v2beta1.Document; 29 import com.google.cloud.dialogflow.v2beta1.GetDocumentRequest; 30 import com.google.cloud.dialogflow.v2beta1.ImportDocumentsRequest; 31 import com.google.cloud.dialogflow.v2beta1.ImportDocumentsResponse; 32 import com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata; 33 import com.google.cloud.dialogflow.v2beta1.ListDocumentsRequest; 34 import com.google.cloud.dialogflow.v2beta1.ListDocumentsResponse; 35 import com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest; 36 import com.google.cloud.dialogflow.v2beta1.UpdateDocumentRequest; 37 import com.google.cloud.location.GetLocationRequest; 38 import com.google.cloud.location.ListLocationsRequest; 39 import com.google.cloud.location.ListLocationsResponse; 40 import com.google.cloud.location.Location; 41 import com.google.longrunning.Operation; 42 import com.google.longrunning.stub.OperationsStub; 43 import com.google.protobuf.Empty; 44 import javax.annotation.Generated; 45 46 // AUTO-GENERATED DOCUMENTATION AND CLASS. 47 /** 48 * Base stub class for the Documents service API. 49 * 50 * <p>This class is for advanced usage and reflects the underlying API directly. 51 */ 52 @BetaApi 53 @Generated("by gapic-generator-java") 54 public abstract class DocumentsStub implements BackgroundResource { 55 getOperationsStub()56 public OperationsStub getOperationsStub() { 57 return null; 58 } 59 getHttpJsonOperationsStub()60 public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { 61 return null; 62 } 63 64 public UnaryCallable<ListDocumentsRequest, ListDocumentsPagedResponse> listDocumentsPagedCallable()65 listDocumentsPagedCallable() { 66 throw new UnsupportedOperationException("Not implemented: listDocumentsPagedCallable()"); 67 } 68 listDocumentsCallable()69 public UnaryCallable<ListDocumentsRequest, ListDocumentsResponse> listDocumentsCallable() { 70 throw new UnsupportedOperationException("Not implemented: listDocumentsCallable()"); 71 } 72 getDocumentCallable()73 public UnaryCallable<GetDocumentRequest, Document> getDocumentCallable() { 74 throw new UnsupportedOperationException("Not implemented: getDocumentCallable()"); 75 } 76 77 public OperationCallable<CreateDocumentRequest, Document, KnowledgeOperationMetadata> createDocumentOperationCallable()78 createDocumentOperationCallable() { 79 throw new UnsupportedOperationException("Not implemented: createDocumentOperationCallable()"); 80 } 81 createDocumentCallable()82 public UnaryCallable<CreateDocumentRequest, Operation> createDocumentCallable() { 83 throw new UnsupportedOperationException("Not implemented: createDocumentCallable()"); 84 } 85 86 public OperationCallable< 87 ImportDocumentsRequest, ImportDocumentsResponse, KnowledgeOperationMetadata> importDocumentsOperationCallable()88 importDocumentsOperationCallable() { 89 throw new UnsupportedOperationException("Not implemented: importDocumentsOperationCallable()"); 90 } 91 importDocumentsCallable()92 public UnaryCallable<ImportDocumentsRequest, Operation> importDocumentsCallable() { 93 throw new UnsupportedOperationException("Not implemented: importDocumentsCallable()"); 94 } 95 96 public OperationCallable<DeleteDocumentRequest, Empty, KnowledgeOperationMetadata> deleteDocumentOperationCallable()97 deleteDocumentOperationCallable() { 98 throw new UnsupportedOperationException("Not implemented: deleteDocumentOperationCallable()"); 99 } 100 deleteDocumentCallable()101 public UnaryCallable<DeleteDocumentRequest, Operation> deleteDocumentCallable() { 102 throw new UnsupportedOperationException("Not implemented: deleteDocumentCallable()"); 103 } 104 105 public OperationCallable<UpdateDocumentRequest, Document, KnowledgeOperationMetadata> updateDocumentOperationCallable()106 updateDocumentOperationCallable() { 107 throw new UnsupportedOperationException("Not implemented: updateDocumentOperationCallable()"); 108 } 109 updateDocumentCallable()110 public UnaryCallable<UpdateDocumentRequest, Operation> updateDocumentCallable() { 111 throw new UnsupportedOperationException("Not implemented: updateDocumentCallable()"); 112 } 113 114 public OperationCallable<ReloadDocumentRequest, Document, KnowledgeOperationMetadata> reloadDocumentOperationCallable()115 reloadDocumentOperationCallable() { 116 throw new UnsupportedOperationException("Not implemented: reloadDocumentOperationCallable()"); 117 } 118 reloadDocumentCallable()119 public UnaryCallable<ReloadDocumentRequest, Operation> reloadDocumentCallable() { 120 throw new UnsupportedOperationException("Not implemented: reloadDocumentCallable()"); 121 } 122 123 public UnaryCallable<ListLocationsRequest, ListLocationsPagedResponse> listLocationsPagedCallable()124 listLocationsPagedCallable() { 125 throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); 126 } 127 listLocationsCallable()128 public UnaryCallable<ListLocationsRequest, ListLocationsResponse> listLocationsCallable() { 129 throw new UnsupportedOperationException("Not implemented: listLocationsCallable()"); 130 } 131 getLocationCallable()132 public UnaryCallable<GetLocationRequest, Location> getLocationCallable() { 133 throw new UnsupportedOperationException("Not implemented: getLocationCallable()"); 134 } 135 136 @Override close()137 public abstract void close(); 138 } 139