Regenerate dialogflow client by yoshi-automation · Pull Request #4845 · googleapis/google-cloud-java · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,16 @@ public UnaryCallSettings<DeleteDocumentRequest, Operation> deleteDocumentSetting
return ((DocumentsStubSettings) getStubSettings()).deleteDocumentOperationSettings();
}

/** Returns the object with the settings used for calls to updateDocument. */
public UnaryCallSettings<UpdateDocumentRequest, Operation> updateDocumentSettings() {
return ((DocumentsStubSettings) getStubSettings()).updateDocumentSettings();
}

/** Returns the object with the settings used for calls to reloadDocument. */
public UnaryCallSettings<ReloadDocumentRequest, Operation> reloadDocumentSettings() {
return ((DocumentsStubSettings) getStubSettings()).reloadDocumentSettings();
}

public static final DocumentsSettings create(DocumentsStubSettings stub) throws IOException {
return new DocumentsSettings.Builder(stub.toBuilder()).build();
}
Expand Down Expand Up @@ -237,6 +247,16 @@ public UnaryCallSettings.Builder<DeleteDocumentRequest, Operation> deleteDocumen
return getStubSettingsBuilder().deleteDocumentOperationSettings();
}

/** Returns the builder for the settings used for calls to updateDocument. */
public UnaryCallSettings.Builder<UpdateDocumentRequest, Operation> updateDocumentSettings() {
return getStubSettingsBuilder().updateDocumentSettings();
}

/** Returns the builder for the settings used for calls to reloadDocument. */
public UnaryCallSettings.Builder<ReloadDocumentRequest, Operation> reloadDocumentSettings() {
return getStubSettingsBuilder().reloadDocumentSettings();
}

@Override
public DocumentsSettings build() throws IOException {
return new DocumentsSettings(this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,46 @@ public final UnaryCallable<DeleteKnowledgeBaseRequest, Empty> deleteKnowledgeBas
return stub.deleteKnowledgeBaseCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Updates the specified knowledge base.
*
* <p>Sample code:
*
* <pre><code>
* try (KnowledgeBasesClient knowledgeBasesClient = KnowledgeBasesClient.create()) {
* UpdateKnowledgeBaseRequest request = UpdateKnowledgeBaseRequest.newBuilder().build();
* KnowledgeBase response = knowledgeBasesClient.updateKnowledgeBase(request);
* }
* </code></pre>
*
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final KnowledgeBase updateKnowledgeBase(UpdateKnowledgeBaseRequest request) {
return updateKnowledgeBaseCallable().call(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Updates the specified knowledge base.
*
* <p>Sample code:
*
* <pre><code>
* try (KnowledgeBasesClient knowledgeBasesClient = KnowledgeBasesClient.create()) {
* UpdateKnowledgeBaseRequest request = UpdateKnowledgeBaseRequest.newBuilder().build();
* ApiFuture&lt;KnowledgeBase&gt; future = knowledgeBasesClient.updateKnowledgeBaseCallable().futureCall(request);
* // Do something
* KnowledgeBase response = future.get();
* }
* </code></pre>
*/
public final UnaryCallable<UpdateKnowledgeBaseRequest, KnowledgeBase>
updateKnowledgeBaseCallable() {
return stub.updateKnowledgeBaseCallable();
}

@Override
public final void close() {
stub.close();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@ public UnaryCallSettings<DeleteKnowledgeBaseRequest, Empty> deleteKnowledgeBaseS
return ((KnowledgeBasesStubSettings) getStubSettings()).deleteKnowledgeBaseSettings();
}

/** Returns the object with the settings used for calls to updateKnowledgeBase. */
public UnaryCallSettings<UpdateKnowledgeBaseRequest, KnowledgeBase>
updateKnowledgeBaseSettings() {
return ((KnowledgeBasesStubSettings) getStubSettings()).updateKnowledgeBaseSettings();
}

public static final KnowledgeBasesSettings create(KnowledgeBasesStubSettings stub)
throws IOException {
return new KnowledgeBasesSettings.Builder(stub.toBuilder()).build();
Expand Down Expand Up @@ -208,6 +214,12 @@ public Builder applyToAllUnaryMethods(
return getStubSettingsBuilder().deleteKnowledgeBaseSettings();
}

/** Returns the builder for the settings used for calls to updateKnowledgeBase. */
public UnaryCallSettings.Builder<UpdateKnowledgeBaseRequest, KnowledgeBase>
updateKnowledgeBaseSettings() {
return getStubSettingsBuilder().updateKnowledgeBaseSettings();
}

@Override
public KnowledgeBasesSettings build() throws IOException {
return new KnowledgeBasesSettings(this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
import com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata;
import com.google.cloud.dialogflow.v2beta1.ListDocumentsRequest;
import com.google.cloud.dialogflow.v2beta1.ListDocumentsResponse;
import com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest;
import com.google.cloud.dialogflow.v2beta1.UpdateDocumentRequest;
import com.google.longrunning.Operation;
import com.google.longrunning.stub.OperationsStub;
import com.google.protobuf.Empty;
Expand Down Expand Up @@ -81,6 +83,14 @@ public UnaryCallable<DeleteDocumentRequest, Operation> deleteDocumentCallable()
throw new UnsupportedOperationException("Not implemented: deleteDocumentCallable()");
}

public UnaryCallable<UpdateDocumentRequest, Operation> updateDocumentCallable() {
throw new UnsupportedOperationException("Not implemented: updateDocumentCallable()");
}

public UnaryCallable<ReloadDocumentRequest, Operation> reloadDocumentCallable() {
throw new UnsupportedOperationException("Not implemented: reloadDocumentCallable()");
}

@Override
public abstract void close();
}
Loading