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.translate.v3.stub; 18 19 import static com.google.cloud.translate.v3.TranslationServiceClient.ListGlossariesPagedResponse; 20 21 import com.google.api.gax.core.BackgroundResource; 22 import com.google.api.gax.rpc.OperationCallable; 23 import com.google.api.gax.rpc.UnaryCallable; 24 import com.google.cloud.translate.v3.BatchTranslateDocumentMetadata; 25 import com.google.cloud.translate.v3.BatchTranslateDocumentRequest; 26 import com.google.cloud.translate.v3.BatchTranslateDocumentResponse; 27 import com.google.cloud.translate.v3.BatchTranslateMetadata; 28 import com.google.cloud.translate.v3.BatchTranslateResponse; 29 import com.google.cloud.translate.v3.BatchTranslateTextRequest; 30 import com.google.cloud.translate.v3.CreateGlossaryMetadata; 31 import com.google.cloud.translate.v3.CreateGlossaryRequest; 32 import com.google.cloud.translate.v3.DeleteGlossaryMetadata; 33 import com.google.cloud.translate.v3.DeleteGlossaryRequest; 34 import com.google.cloud.translate.v3.DeleteGlossaryResponse; 35 import com.google.cloud.translate.v3.DetectLanguageRequest; 36 import com.google.cloud.translate.v3.DetectLanguageResponse; 37 import com.google.cloud.translate.v3.GetGlossaryRequest; 38 import com.google.cloud.translate.v3.GetSupportedLanguagesRequest; 39 import com.google.cloud.translate.v3.Glossary; 40 import com.google.cloud.translate.v3.ListGlossariesRequest; 41 import com.google.cloud.translate.v3.ListGlossariesResponse; 42 import com.google.cloud.translate.v3.SupportedLanguages; 43 import com.google.cloud.translate.v3.TranslateDocumentRequest; 44 import com.google.cloud.translate.v3.TranslateDocumentResponse; 45 import com.google.cloud.translate.v3.TranslateTextRequest; 46 import com.google.cloud.translate.v3.TranslateTextResponse; 47 import com.google.longrunning.Operation; 48 import com.google.longrunning.stub.OperationsStub; 49 import javax.annotation.Generated; 50 51 // AUTO-GENERATED DOCUMENTATION AND CLASS. 52 /** 53 * Base stub class for the TranslationService service API. 54 * 55 * <p>This class is for advanced usage and reflects the underlying API directly. 56 */ 57 @Generated("by gapic-generator-java") 58 public abstract class TranslationServiceStub implements BackgroundResource { 59 getOperationsStub()60 public OperationsStub getOperationsStub() { 61 return null; 62 } 63 getHttpJsonOperationsStub()64 public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { 65 return null; 66 } 67 translateTextCallable()68 public UnaryCallable<TranslateTextRequest, TranslateTextResponse> translateTextCallable() { 69 throw new UnsupportedOperationException("Not implemented: translateTextCallable()"); 70 } 71 detectLanguageCallable()72 public UnaryCallable<DetectLanguageRequest, DetectLanguageResponse> detectLanguageCallable() { 73 throw new UnsupportedOperationException("Not implemented: detectLanguageCallable()"); 74 } 75 76 public UnaryCallable<GetSupportedLanguagesRequest, SupportedLanguages> getSupportedLanguagesCallable()77 getSupportedLanguagesCallable() { 78 throw new UnsupportedOperationException("Not implemented: getSupportedLanguagesCallable()"); 79 } 80 81 public UnaryCallable<TranslateDocumentRequest, TranslateDocumentResponse> translateDocumentCallable()82 translateDocumentCallable() { 83 throw new UnsupportedOperationException("Not implemented: translateDocumentCallable()"); 84 } 85 86 public OperationCallable< 87 BatchTranslateTextRequest, BatchTranslateResponse, BatchTranslateMetadata> batchTranslateTextOperationCallable()88 batchTranslateTextOperationCallable() { 89 throw new UnsupportedOperationException( 90 "Not implemented: batchTranslateTextOperationCallable()"); 91 } 92 batchTranslateTextCallable()93 public UnaryCallable<BatchTranslateTextRequest, Operation> batchTranslateTextCallable() { 94 throw new UnsupportedOperationException("Not implemented: batchTranslateTextCallable()"); 95 } 96 97 public OperationCallable< 98 BatchTranslateDocumentRequest, 99 BatchTranslateDocumentResponse, 100 BatchTranslateDocumentMetadata> batchTranslateDocumentOperationCallable()101 batchTranslateDocumentOperationCallable() { 102 throw new UnsupportedOperationException( 103 "Not implemented: batchTranslateDocumentOperationCallable()"); 104 } 105 batchTranslateDocumentCallable()106 public UnaryCallable<BatchTranslateDocumentRequest, Operation> batchTranslateDocumentCallable() { 107 throw new UnsupportedOperationException("Not implemented: batchTranslateDocumentCallable()"); 108 } 109 110 public OperationCallable<CreateGlossaryRequest, Glossary, CreateGlossaryMetadata> createGlossaryOperationCallable()111 createGlossaryOperationCallable() { 112 throw new UnsupportedOperationException("Not implemented: createGlossaryOperationCallable()"); 113 } 114 createGlossaryCallable()115 public UnaryCallable<CreateGlossaryRequest, Operation> createGlossaryCallable() { 116 throw new UnsupportedOperationException("Not implemented: createGlossaryCallable()"); 117 } 118 119 public UnaryCallable<ListGlossariesRequest, ListGlossariesPagedResponse> listGlossariesPagedCallable()120 listGlossariesPagedCallable() { 121 throw new UnsupportedOperationException("Not implemented: listGlossariesPagedCallable()"); 122 } 123 listGlossariesCallable()124 public UnaryCallable<ListGlossariesRequest, ListGlossariesResponse> listGlossariesCallable() { 125 throw new UnsupportedOperationException("Not implemented: listGlossariesCallable()"); 126 } 127 getGlossaryCallable()128 public UnaryCallable<GetGlossaryRequest, Glossary> getGlossaryCallable() { 129 throw new UnsupportedOperationException("Not implemented: getGlossaryCallable()"); 130 } 131 132 public OperationCallable<DeleteGlossaryRequest, DeleteGlossaryResponse, DeleteGlossaryMetadata> deleteGlossaryOperationCallable()133 deleteGlossaryOperationCallable() { 134 throw new UnsupportedOperationException("Not implemented: deleteGlossaryOperationCallable()"); 135 } 136 deleteGlossaryCallable()137 public UnaryCallable<DeleteGlossaryRequest, Operation> deleteGlossaryCallable() { 138 throw new UnsupportedOperationException("Not implemented: deleteGlossaryCallable()"); 139 } 140 141 @Override close()142 public abstract void close(); 143 } 144