This repository has been archived by the owner on Dec 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: added explanation for SuggestionResult (#861)
* feat: added ConversationModel resource and its APIs feat: added ConversationDataset resource and its APIs feat: added SetSuggestionFeatureConfig and ClearSuggestionFeatureConfig APIs for ConversationProfile feat: added new knowledge type of Document content feat: added states of Document feat: added metadata for the Knowledge operation docs: updated copyright PiperOrigin-RevId: 430829291 Source-Link: googleapis/googleapis@83795dd Source-Link: https://github.com/googleapis/googleapis-gen/commit/b6b58a4d9b2cd6657bb6d6406c901f16d1d5213f Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYjZiNThhNGQ5YjJjZDY2NTdiYjZkNjQwNmM5MDFmMTZkMWQ1MjEzZiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * docs: clarified the behavior of language_code in EventInput in the context of a followup event input docs: clarified wording around Cloud Storage usage docs: added a new resource name pattern for ConversationModel PiperOrigin-RevId: 432962774 Source-Link: googleapis/googleapis@5556688 Source-Link: https://github.com/googleapis/googleapis-gen/commit/ca6f30a2233469ff7da361fe9fb78784dcbc6c7e Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiY2E2ZjMwYTIyMzM0NjlmZjdkYTM2MWZlOWZiNzg3ODRkY2JjNmM3ZSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: added HUMAN_INTERVENTION_NEEDED type in ConversationEvent feat: added SetSuggestionFeatureConfig and ClearSuggestionFeatureConfig apis feat: added AGENT_FACING_SMART_REPLY type in KnowledgeType feat: added GcsDestination. docs: added explanation for uri fields in resources docs: added explanation for SuggestionResult docs: added explanation for language code in session PiperOrigin-RevId: 435479473 Source-Link: googleapis/googleapis@d9ca515 Source-Link: https://github.com/googleapis/googleapis-gen/commit/358c4b9b1df149bc50620bc3811004f913d43236 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMzU4YzRiOWIxZGYxNDliYzUwNjIwYmMzODExMDA0ZjkxM2Q0MzIzNiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * docs: added explanation for SuggestionResult PiperOrigin-RevId: 435670355 Source-Link: googleapis/googleapis@5d85995 Source-Link: https://github.com/googleapis/googleapis-gen/commit/1b913e4484a66b3f4d01c55be174704272466264 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMWI5MTNlNDQ4NGE2NmIzZjRkMDFjNTViZTE3NDcwNDI3MjQ2NjI2NCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Neenu Shaji <Neenu1995@users.noreply.github.com>
- Loading branch information
1 parent
b76764a
commit e443fcd
Showing
241 changed files
with
77,443 additions
and
3,034 deletions.
There are no files selected for viewing
1,011 changes: 1,011 additions & 0 deletions
1,011
...d-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationDatasetsClient.java
Large diffs are not rendered by default.
Oops, something went wrong.
301 changes: 301 additions & 0 deletions
301
...dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationDatasetsSettings.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,301 @@ | ||
/* | ||
* Copyright 2021 Google LLC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package com.google.cloud.dialogflow.v2; | ||
|
||
import static com.google.cloud.dialogflow.v2.ConversationDatasetsClient.ListConversationDatasetsPagedResponse; | ||
|
||
import com.google.api.core.ApiFunction; | ||
import com.google.api.core.BetaApi; | ||
import com.google.api.gax.core.GoogleCredentialsProvider; | ||
import com.google.api.gax.core.InstantiatingExecutorProvider; | ||
import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; | ||
import com.google.api.gax.rpc.ApiClientHeaderProvider; | ||
import com.google.api.gax.rpc.ClientContext; | ||
import com.google.api.gax.rpc.ClientSettings; | ||
import com.google.api.gax.rpc.OperationCallSettings; | ||
import com.google.api.gax.rpc.PagedCallSettings; | ||
import com.google.api.gax.rpc.TransportChannelProvider; | ||
import com.google.api.gax.rpc.UnaryCallSettings; | ||
import com.google.cloud.dialogflow.v2.stub.ConversationDatasetsStubSettings; | ||
import com.google.longrunning.Operation; | ||
import com.google.protobuf.Empty; | ||
import java.io.IOException; | ||
import java.util.List; | ||
import javax.annotation.Generated; | ||
|
||
// AUTO-GENERATED DOCUMENTATION AND CLASS. | ||
/** | ||
* Settings class to configure an instance of {@link ConversationDatasetsClient}. | ||
* | ||
* <p>The default instance has everything set to sensible defaults: | ||
* | ||
* <ul> | ||
* <li>The default service address (dialogflow.googleapis.com) and default port (443) are used. | ||
* <li>Credentials are acquired automatically through Application Default Credentials. | ||
* <li>Retries are configured for idempotent methods but not for non-idempotent methods. | ||
* </ul> | ||
* | ||
* <p>The builder of this class is recursive, so contained classes are themselves builders. When | ||
* build() is called, the tree of builders is called to create the complete settings object. | ||
* | ||
* <p>For example, to set the total timeout of getConversationDataset to 30 seconds: | ||
* | ||
* <pre>{@code | ||
* ConversationDatasetsSettings.Builder conversationDatasetsSettingsBuilder = | ||
* ConversationDatasetsSettings.newBuilder(); | ||
* conversationDatasetsSettingsBuilder | ||
* .getConversationDatasetSettings() | ||
* .setRetrySettings( | ||
* conversationDatasetsSettingsBuilder | ||
* .getConversationDatasetSettings() | ||
* .getRetrySettings() | ||
* .toBuilder() | ||
* .setTotalTimeout(Duration.ofSeconds(30)) | ||
* .build()); | ||
* ConversationDatasetsSettings conversationDatasetsSettings = | ||
* conversationDatasetsSettingsBuilder.build(); | ||
* }</pre> | ||
*/ | ||
@Generated("by gapic-generator-java") | ||
public class ConversationDatasetsSettings extends ClientSettings<ConversationDatasetsSettings> { | ||
|
||
/** Returns the object with the settings used for calls to createConversationDataset. */ | ||
public UnaryCallSettings<CreateConversationDatasetRequest, Operation> | ||
createConversationDatasetSettings() { | ||
return ((ConversationDatasetsStubSettings) getStubSettings()) | ||
.createConversationDatasetSettings(); | ||
} | ||
|
||
/** Returns the object with the settings used for calls to createConversationDataset. */ | ||
public OperationCallSettings< | ||
CreateConversationDatasetRequest, | ||
ConversationDataset, | ||
CreateConversationDatasetOperationMetadata> | ||
createConversationDatasetOperationSettings() { | ||
return ((ConversationDatasetsStubSettings) getStubSettings()) | ||
.createConversationDatasetOperationSettings(); | ||
} | ||
|
||
/** Returns the object with the settings used for calls to getConversationDataset. */ | ||
public UnaryCallSettings<GetConversationDatasetRequest, ConversationDataset> | ||
getConversationDatasetSettings() { | ||
return ((ConversationDatasetsStubSettings) getStubSettings()).getConversationDatasetSettings(); | ||
} | ||
|
||
/** Returns the object with the settings used for calls to listConversationDatasets. */ | ||
public PagedCallSettings< | ||
ListConversationDatasetsRequest, | ||
ListConversationDatasetsResponse, | ||
ListConversationDatasetsPagedResponse> | ||
listConversationDatasetsSettings() { | ||
return ((ConversationDatasetsStubSettings) getStubSettings()) | ||
.listConversationDatasetsSettings(); | ||
} | ||
|
||
/** Returns the object with the settings used for calls to deleteConversationDataset. */ | ||
public UnaryCallSettings<DeleteConversationDatasetRequest, Operation> | ||
deleteConversationDatasetSettings() { | ||
return ((ConversationDatasetsStubSettings) getStubSettings()) | ||
.deleteConversationDatasetSettings(); | ||
} | ||
|
||
/** Returns the object with the settings used for calls to deleteConversationDataset. */ | ||
public OperationCallSettings< | ||
DeleteConversationDatasetRequest, Empty, DeleteConversationDatasetOperationMetadata> | ||
deleteConversationDatasetOperationSettings() { | ||
return ((ConversationDatasetsStubSettings) getStubSettings()) | ||
.deleteConversationDatasetOperationSettings(); | ||
} | ||
|
||
/** Returns the object with the settings used for calls to importConversationData. */ | ||
public UnaryCallSettings<ImportConversationDataRequest, Operation> | ||
importConversationDataSettings() { | ||
return ((ConversationDatasetsStubSettings) getStubSettings()).importConversationDataSettings(); | ||
} | ||
|
||
/** Returns the object with the settings used for calls to importConversationData. */ | ||
public OperationCallSettings< | ||
ImportConversationDataRequest, | ||
ImportConversationDataOperationResponse, | ||
ImportConversationDataOperationMetadata> | ||
importConversationDataOperationSettings() { | ||
return ((ConversationDatasetsStubSettings) getStubSettings()) | ||
.importConversationDataOperationSettings(); | ||
} | ||
|
||
public static final ConversationDatasetsSettings create(ConversationDatasetsStubSettings stub) | ||
throws IOException { | ||
return new ConversationDatasetsSettings.Builder(stub.toBuilder()).build(); | ||
} | ||
|
||
/** Returns a builder for the default ExecutorProvider for this service. */ | ||
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { | ||
return ConversationDatasetsStubSettings.defaultExecutorProviderBuilder(); | ||
} | ||
|
||
/** Returns the default service endpoint. */ | ||
public static String getDefaultEndpoint() { | ||
return ConversationDatasetsStubSettings.getDefaultEndpoint(); | ||
} | ||
|
||
/** Returns the default service scopes. */ | ||
public static List<String> getDefaultServiceScopes() { | ||
return ConversationDatasetsStubSettings.getDefaultServiceScopes(); | ||
} | ||
|
||
/** Returns a builder for the default credentials for this service. */ | ||
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { | ||
return ConversationDatasetsStubSettings.defaultCredentialsProviderBuilder(); | ||
} | ||
|
||
/** Returns a builder for the default ChannelProvider for this service. */ | ||
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { | ||
return ConversationDatasetsStubSettings.defaultGrpcTransportProviderBuilder(); | ||
} | ||
|
||
public static TransportChannelProvider defaultTransportChannelProvider() { | ||
return ConversationDatasetsStubSettings.defaultTransportChannelProvider(); | ||
} | ||
|
||
@BetaApi("The surface for customizing headers is not stable yet and may change in the future.") | ||
public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { | ||
return ConversationDatasetsStubSettings.defaultApiClientHeaderProviderBuilder(); | ||
} | ||
|
||
/** Returns a new builder for this class. */ | ||
public static Builder newBuilder() { | ||
return Builder.createDefault(); | ||
} | ||
|
||
/** Returns a new builder for this class. */ | ||
public static Builder newBuilder(ClientContext clientContext) { | ||
return new Builder(clientContext); | ||
} | ||
|
||
/** Returns a builder containing all the values of this settings class. */ | ||
public Builder toBuilder() { | ||
return new Builder(this); | ||
} | ||
|
||
protected ConversationDatasetsSettings(Builder settingsBuilder) throws IOException { | ||
super(settingsBuilder); | ||
} | ||
|
||
/** Builder for ConversationDatasetsSettings. */ | ||
public static class Builder | ||
extends ClientSettings.Builder<ConversationDatasetsSettings, Builder> { | ||
|
||
protected Builder() throws IOException { | ||
this(((ClientContext) null)); | ||
} | ||
|
||
protected Builder(ClientContext clientContext) { | ||
super(ConversationDatasetsStubSettings.newBuilder(clientContext)); | ||
} | ||
|
||
protected Builder(ConversationDatasetsSettings settings) { | ||
super(settings.getStubSettings().toBuilder()); | ||
} | ||
|
||
protected Builder(ConversationDatasetsStubSettings.Builder stubSettings) { | ||
super(stubSettings); | ||
} | ||
|
||
private static Builder createDefault() { | ||
return new Builder(ConversationDatasetsStubSettings.newBuilder()); | ||
} | ||
|
||
public ConversationDatasetsStubSettings.Builder getStubSettingsBuilder() { | ||
return ((ConversationDatasetsStubSettings.Builder) getStubSettings()); | ||
} | ||
|
||
/** | ||
* Applies the given settings updater function to all of the unary API methods in this service. | ||
* | ||
* <p>Note: This method does not support applying settings to streaming methods. | ||
*/ | ||
public Builder applyToAllUnaryMethods( | ||
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) { | ||
super.applyToAllUnaryMethods( | ||
getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); | ||
return this; | ||
} | ||
|
||
/** Returns the builder for the settings used for calls to createConversationDataset. */ | ||
public UnaryCallSettings.Builder<CreateConversationDatasetRequest, Operation> | ||
createConversationDatasetSettings() { | ||
return getStubSettingsBuilder().createConversationDatasetSettings(); | ||
} | ||
|
||
/** Returns the builder for the settings used for calls to createConversationDataset. */ | ||
public OperationCallSettings.Builder< | ||
CreateConversationDatasetRequest, | ||
ConversationDataset, | ||
CreateConversationDatasetOperationMetadata> | ||
createConversationDatasetOperationSettings() { | ||
return getStubSettingsBuilder().createConversationDatasetOperationSettings(); | ||
} | ||
|
||
/** Returns the builder for the settings used for calls to getConversationDataset. */ | ||
public UnaryCallSettings.Builder<GetConversationDatasetRequest, ConversationDataset> | ||
getConversationDatasetSettings() { | ||
return getStubSettingsBuilder().getConversationDatasetSettings(); | ||
} | ||
|
||
/** Returns the builder for the settings used for calls to listConversationDatasets. */ | ||
public PagedCallSettings.Builder< | ||
ListConversationDatasetsRequest, | ||
ListConversationDatasetsResponse, | ||
ListConversationDatasetsPagedResponse> | ||
listConversationDatasetsSettings() { | ||
return getStubSettingsBuilder().listConversationDatasetsSettings(); | ||
} | ||
|
||
/** Returns the builder for the settings used for calls to deleteConversationDataset. */ | ||
public UnaryCallSettings.Builder<DeleteConversationDatasetRequest, Operation> | ||
deleteConversationDatasetSettings() { | ||
return getStubSettingsBuilder().deleteConversationDatasetSettings(); | ||
} | ||
|
||
/** Returns the builder for the settings used for calls to deleteConversationDataset. */ | ||
public OperationCallSettings.Builder< | ||
DeleteConversationDatasetRequest, Empty, DeleteConversationDatasetOperationMetadata> | ||
deleteConversationDatasetOperationSettings() { | ||
return getStubSettingsBuilder().deleteConversationDatasetOperationSettings(); | ||
} | ||
|
||
/** Returns the builder for the settings used for calls to importConversationData. */ | ||
public UnaryCallSettings.Builder<ImportConversationDataRequest, Operation> | ||
importConversationDataSettings() { | ||
return getStubSettingsBuilder().importConversationDataSettings(); | ||
} | ||
|
||
/** Returns the builder for the settings used for calls to importConversationData. */ | ||
public OperationCallSettings.Builder< | ||
ImportConversationDataRequest, | ||
ImportConversationDataOperationResponse, | ||
ImportConversationDataOperationMetadata> | ||
importConversationDataOperationSettings() { | ||
return getStubSettingsBuilder().importConversationDataOperationSettings(); | ||
} | ||
|
||
@Override | ||
public ConversationDatasetsSettings build() throws IOException { | ||
return new ConversationDatasetsSettings(this); | ||
} | ||
} | ||
} |
Oops, something went wrong.