Skip to content
This repository was archived by the owner on Dec 3, 2023. It is now read-only.

Commit e443fcd

Browse files
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>
1 parent b76764a commit e443fcd

File tree

241 files changed

+77443
-3034
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

241 files changed

+77443
-3034
lines changed

google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationDatasetsClient.java

Lines changed: 1011 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 301 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,301 @@
1+
/*
2+
* Copyright 2021 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.v2;
18+
19+
import static com.google.cloud.dialogflow.v2.ConversationDatasetsClient.ListConversationDatasetsPagedResponse;
20+
21+
import com.google.api.core.ApiFunction;
22+
import com.google.api.core.BetaApi;
23+
import com.google.api.gax.core.GoogleCredentialsProvider;
24+
import com.google.api.gax.core.InstantiatingExecutorProvider;
25+
import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider;
26+
import com.google.api.gax.rpc.ApiClientHeaderProvider;
27+
import com.google.api.gax.rpc.ClientContext;
28+
import com.google.api.gax.rpc.ClientSettings;
29+
import com.google.api.gax.rpc.OperationCallSettings;
30+
import com.google.api.gax.rpc.PagedCallSettings;
31+
import com.google.api.gax.rpc.TransportChannelProvider;
32+
import com.google.api.gax.rpc.UnaryCallSettings;
33+
import com.google.cloud.dialogflow.v2.stub.ConversationDatasetsStubSettings;
34+
import com.google.longrunning.Operation;
35+
import com.google.protobuf.Empty;
36+
import java.io.IOException;
37+
import java.util.List;
38+
import javax.annotation.Generated;
39+
40+
// AUTO-GENERATED DOCUMENTATION AND CLASS.
41+
/**
42+
* Settings class to configure an instance of {@link ConversationDatasetsClient}.
43+
*
44+
* <p>The default instance has everything set to sensible defaults:
45+
*
46+
* <ul>
47+
* <li>The default service address (dialogflow.googleapis.com) and default port (443) are used.
48+
* <li>Credentials are acquired automatically through Application Default Credentials.
49+
* <li>Retries are configured for idempotent methods but not for non-idempotent methods.
50+
* </ul>
51+
*
52+
* <p>The builder of this class is recursive, so contained classes are themselves builders. When
53+
* build() is called, the tree of builders is called to create the complete settings object.
54+
*
55+
* <p>For example, to set the total timeout of getConversationDataset to 30 seconds:
56+
*
57+
* <pre>{@code
58+
* ConversationDatasetsSettings.Builder conversationDatasetsSettingsBuilder =
59+
* ConversationDatasetsSettings.newBuilder();
60+
* conversationDatasetsSettingsBuilder
61+
* .getConversationDatasetSettings()
62+
* .setRetrySettings(
63+
* conversationDatasetsSettingsBuilder
64+
* .getConversationDatasetSettings()
65+
* .getRetrySettings()
66+
* .toBuilder()
67+
* .setTotalTimeout(Duration.ofSeconds(30))
68+
* .build());
69+
* ConversationDatasetsSettings conversationDatasetsSettings =
70+
* conversationDatasetsSettingsBuilder.build();
71+
* }</pre>
72+
*/
73+
@Generated("by gapic-generator-java")
74+
public class ConversationDatasetsSettings extends ClientSettings<ConversationDatasetsSettings> {
75+
76+
/** Returns the object with the settings used for calls to createConversationDataset. */
77+
public UnaryCallSettings<CreateConversationDatasetRequest, Operation>
78+
createConversationDatasetSettings() {
79+
return ((ConversationDatasetsStubSettings) getStubSettings())
80+
.createConversationDatasetSettings();
81+
}
82+
83+
/** Returns the object with the settings used for calls to createConversationDataset. */
84+
public OperationCallSettings<
85+
CreateConversationDatasetRequest,
86+
ConversationDataset,
87+
CreateConversationDatasetOperationMetadata>
88+
createConversationDatasetOperationSettings() {
89+
return ((ConversationDatasetsStubSettings) getStubSettings())
90+
.createConversationDatasetOperationSettings();
91+
}
92+
93+
/** Returns the object with the settings used for calls to getConversationDataset. */
94+
public UnaryCallSettings<GetConversationDatasetRequest, ConversationDataset>
95+
getConversationDatasetSettings() {
96+
return ((ConversationDatasetsStubSettings) getStubSettings()).getConversationDatasetSettings();
97+
}
98+
99+
/** Returns the object with the settings used for calls to listConversationDatasets. */
100+
public PagedCallSettings<
101+
ListConversationDatasetsRequest,
102+
ListConversationDatasetsResponse,
103+
ListConversationDatasetsPagedResponse>
104+
listConversationDatasetsSettings() {
105+
return ((ConversationDatasetsStubSettings) getStubSettings())
106+
.listConversationDatasetsSettings();
107+
}
108+
109+
/** Returns the object with the settings used for calls to deleteConversationDataset. */
110+
public UnaryCallSettings<DeleteConversationDatasetRequest, Operation>
111+
deleteConversationDatasetSettings() {
112+
return ((ConversationDatasetsStubSettings) getStubSettings())
113+
.deleteConversationDatasetSettings();
114+
}
115+
116+
/** Returns the object with the settings used for calls to deleteConversationDataset. */
117+
public OperationCallSettings<
118+
DeleteConversationDatasetRequest, Empty, DeleteConversationDatasetOperationMetadata>
119+
deleteConversationDatasetOperationSettings() {
120+
return ((ConversationDatasetsStubSettings) getStubSettings())
121+
.deleteConversationDatasetOperationSettings();
122+
}
123+
124+
/** Returns the object with the settings used for calls to importConversationData. */
125+
public UnaryCallSettings<ImportConversationDataRequest, Operation>
126+
importConversationDataSettings() {
127+
return ((ConversationDatasetsStubSettings) getStubSettings()).importConversationDataSettings();
128+
}
129+
130+
/** Returns the object with the settings used for calls to importConversationData. */
131+
public OperationCallSettings<
132+
ImportConversationDataRequest,
133+
ImportConversationDataOperationResponse,
134+
ImportConversationDataOperationMetadata>
135+
importConversationDataOperationSettings() {
136+
return ((ConversationDatasetsStubSettings) getStubSettings())
137+
.importConversationDataOperationSettings();
138+
}
139+
140+
public static final ConversationDatasetsSettings create(ConversationDatasetsStubSettings stub)
141+
throws IOException {
142+
return new ConversationDatasetsSettings.Builder(stub.toBuilder()).build();
143+
}
144+
145+
/** Returns a builder for the default ExecutorProvider for this service. */
146+
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {
147+
return ConversationDatasetsStubSettings.defaultExecutorProviderBuilder();
148+
}
149+
150+
/** Returns the default service endpoint. */
151+
public static String getDefaultEndpoint() {
152+
return ConversationDatasetsStubSettings.getDefaultEndpoint();
153+
}
154+
155+
/** Returns the default service scopes. */
156+
public static List<String> getDefaultServiceScopes() {
157+
return ConversationDatasetsStubSettings.getDefaultServiceScopes();
158+
}
159+
160+
/** Returns a builder for the default credentials for this service. */
161+
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() {
162+
return ConversationDatasetsStubSettings.defaultCredentialsProviderBuilder();
163+
}
164+
165+
/** Returns a builder for the default ChannelProvider for this service. */
166+
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
167+
return ConversationDatasetsStubSettings.defaultGrpcTransportProviderBuilder();
168+
}
169+
170+
public static TransportChannelProvider defaultTransportChannelProvider() {
171+
return ConversationDatasetsStubSettings.defaultTransportChannelProvider();
172+
}
173+
174+
@BetaApi("The surface for customizing headers is not stable yet and may change in the future.")
175+
public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() {
176+
return ConversationDatasetsStubSettings.defaultApiClientHeaderProviderBuilder();
177+
}
178+
179+
/** Returns a new builder for this class. */
180+
public static Builder newBuilder() {
181+
return Builder.createDefault();
182+
}
183+
184+
/** Returns a new builder for this class. */
185+
public static Builder newBuilder(ClientContext clientContext) {
186+
return new Builder(clientContext);
187+
}
188+
189+
/** Returns a builder containing all the values of this settings class. */
190+
public Builder toBuilder() {
191+
return new Builder(this);
192+
}
193+
194+
protected ConversationDatasetsSettings(Builder settingsBuilder) throws IOException {
195+
super(settingsBuilder);
196+
}
197+
198+
/** Builder for ConversationDatasetsSettings. */
199+
public static class Builder
200+
extends ClientSettings.Builder<ConversationDatasetsSettings, Builder> {
201+
202+
protected Builder() throws IOException {
203+
this(((ClientContext) null));
204+
}
205+
206+
protected Builder(ClientContext clientContext) {
207+
super(ConversationDatasetsStubSettings.newBuilder(clientContext));
208+
}
209+
210+
protected Builder(ConversationDatasetsSettings settings) {
211+
super(settings.getStubSettings().toBuilder());
212+
}
213+
214+
protected Builder(ConversationDatasetsStubSettings.Builder stubSettings) {
215+
super(stubSettings);
216+
}
217+
218+
private static Builder createDefault() {
219+
return new Builder(ConversationDatasetsStubSettings.newBuilder());
220+
}
221+
222+
public ConversationDatasetsStubSettings.Builder getStubSettingsBuilder() {
223+
return ((ConversationDatasetsStubSettings.Builder) getStubSettings());
224+
}
225+
226+
/**
227+
* Applies the given settings updater function to all of the unary API methods in this service.
228+
*
229+
* <p>Note: This method does not support applying settings to streaming methods.
230+
*/
231+
public Builder applyToAllUnaryMethods(
232+
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
233+
super.applyToAllUnaryMethods(
234+
getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
235+
return this;
236+
}
237+
238+
/** Returns the builder for the settings used for calls to createConversationDataset. */
239+
public UnaryCallSettings.Builder<CreateConversationDatasetRequest, Operation>
240+
createConversationDatasetSettings() {
241+
return getStubSettingsBuilder().createConversationDatasetSettings();
242+
}
243+
244+
/** Returns the builder for the settings used for calls to createConversationDataset. */
245+
public OperationCallSettings.Builder<
246+
CreateConversationDatasetRequest,
247+
ConversationDataset,
248+
CreateConversationDatasetOperationMetadata>
249+
createConversationDatasetOperationSettings() {
250+
return getStubSettingsBuilder().createConversationDatasetOperationSettings();
251+
}
252+
253+
/** Returns the builder for the settings used for calls to getConversationDataset. */
254+
public UnaryCallSettings.Builder<GetConversationDatasetRequest, ConversationDataset>
255+
getConversationDatasetSettings() {
256+
return getStubSettingsBuilder().getConversationDatasetSettings();
257+
}
258+
259+
/** Returns the builder for the settings used for calls to listConversationDatasets. */
260+
public PagedCallSettings.Builder<
261+
ListConversationDatasetsRequest,
262+
ListConversationDatasetsResponse,
263+
ListConversationDatasetsPagedResponse>
264+
listConversationDatasetsSettings() {
265+
return getStubSettingsBuilder().listConversationDatasetsSettings();
266+
}
267+
268+
/** Returns the builder for the settings used for calls to deleteConversationDataset. */
269+
public UnaryCallSettings.Builder<DeleteConversationDatasetRequest, Operation>
270+
deleteConversationDatasetSettings() {
271+
return getStubSettingsBuilder().deleteConversationDatasetSettings();
272+
}
273+
274+
/** Returns the builder for the settings used for calls to deleteConversationDataset. */
275+
public OperationCallSettings.Builder<
276+
DeleteConversationDatasetRequest, Empty, DeleteConversationDatasetOperationMetadata>
277+
deleteConversationDatasetOperationSettings() {
278+
return getStubSettingsBuilder().deleteConversationDatasetOperationSettings();
279+
}
280+
281+
/** Returns the builder for the settings used for calls to importConversationData. */
282+
public UnaryCallSettings.Builder<ImportConversationDataRequest, Operation>
283+
importConversationDataSettings() {
284+
return getStubSettingsBuilder().importConversationDataSettings();
285+
}
286+
287+
/** Returns the builder for the settings used for calls to importConversationData. */
288+
public OperationCallSettings.Builder<
289+
ImportConversationDataRequest,
290+
ImportConversationDataOperationResponse,
291+
ImportConversationDataOperationMetadata>
292+
importConversationDataOperationSettings() {
293+
return getStubSettingsBuilder().importConversationDataOperationSettings();
294+
}
295+
296+
@Override
297+
public ConversationDatasetsSettings build() throws IOException {
298+
return new ConversationDatasetsSettings(this);
299+
}
300+
}
301+
}

0 commit comments

Comments
 (0)