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

Commit c9d9d2e

Browse files
chore: clean up gapic config, resource annotations (#238)
This PR was generated using Autosynth. 🌈 Synth log will be available here: https://source.cloud.google.com/results/invocations/1b8e3777-2a8a-43ca-858f-1e4587d9e4d1/targets - [ ] To automatically regenerate this PR, check this box. PiperOrigin-RevId: 318303567 Source-Link: googleapis/googleapis@dc3682a PiperOrigin-RevId: 318164649 Source-Link: googleapis/googleapis@b5549ea
1 parent e015e36 commit c9d9d2e

37 files changed

+2841
-2721
lines changed

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

Lines changed: 156 additions & 156 deletions
Large diffs are not rendered by default.

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

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,16 @@
5252
* <p>The builder of this class is recursive, so contained classes are themselves builders. When
5353
* build() is called, the tree of builders is called to create the complete settings object.
5454
*
55-
* <p>For example, to set the total timeout of setAgent to 30 seconds:
55+
* <p>For example, to set the total timeout of getAgent to 30 seconds:
5656
*
5757
* <pre>
5858
* <code>
5959
* AgentsSettings.Builder agentsSettingsBuilder =
6060
* AgentsSettings.newBuilder();
6161
* agentsSettingsBuilder
62-
* .setAgentSettings()
62+
* .getAgentSettings()
6363
* .setRetrySettings(
64-
* agentsSettingsBuilder.setAgentSettings().getRetrySettings().toBuilder()
64+
* agentsSettingsBuilder.getAgentSettings().getRetrySettings().toBuilder()
6565
* .setTotalTimeout(Duration.ofSeconds(30))
6666
* .build());
6767
* AgentsSettings agentsSettings = agentsSettingsBuilder.build();
@@ -71,6 +71,11 @@
7171
@Generated("by gapic-generator")
7272
@BetaApi
7373
public class AgentsSettings extends ClientSettings<AgentsSettings> {
74+
/** Returns the object with the settings used for calls to getAgent. */
75+
public UnaryCallSettings<GetAgentRequest, Agent> getAgentSettings() {
76+
return ((AgentsStubSettings) getStubSettings()).getAgentSettings();
77+
}
78+
7479
/** Returns the object with the settings used for calls to setAgent. */
7580
public UnaryCallSettings<SetAgentRequest, Agent> setAgentSettings() {
7681
return ((AgentsStubSettings) getStubSettings()).setAgentSettings();
@@ -112,23 +117,6 @@ public UnaryCallSettings<ExportAgentRequest, Operation> exportAgentSettings() {
112117
return ((AgentsStubSettings) getStubSettings()).exportAgentOperationSettings();
113118
}
114119

115-
/** Returns the object with the settings used for calls to restoreAgent. */
116-
public UnaryCallSettings<RestoreAgentRequest, Operation> restoreAgentSettings() {
117-
return ((AgentsStubSettings) getStubSettings()).restoreAgentSettings();
118-
}
119-
120-
/** Returns the object with the settings used for calls to restoreAgent. */
121-
@BetaApi(
122-
"The surface for long-running operations is not stable yet and may change in the future.")
123-
public OperationCallSettings<RestoreAgentRequest, Empty, Struct> restoreAgentOperationSettings() {
124-
return ((AgentsStubSettings) getStubSettings()).restoreAgentOperationSettings();
125-
}
126-
127-
/** Returns the object with the settings used for calls to getAgent. */
128-
public UnaryCallSettings<GetAgentRequest, Agent> getAgentSettings() {
129-
return ((AgentsStubSettings) getStubSettings()).getAgentSettings();
130-
}
131-
132120
/** Returns the object with the settings used for calls to importAgent. */
133121
public UnaryCallSettings<ImportAgentRequest, Operation> importAgentSettings() {
134122
return ((AgentsStubSettings) getStubSettings()).importAgentSettings();
@@ -141,6 +129,18 @@ public OperationCallSettings<ImportAgentRequest, Empty, Struct> importAgentOpera
141129
return ((AgentsStubSettings) getStubSettings()).importAgentOperationSettings();
142130
}
143131

132+
/** Returns the object with the settings used for calls to restoreAgent. */
133+
public UnaryCallSettings<RestoreAgentRequest, Operation> restoreAgentSettings() {
134+
return ((AgentsStubSettings) getStubSettings()).restoreAgentSettings();
135+
}
136+
137+
/** Returns the object with the settings used for calls to restoreAgent. */
138+
@BetaApi(
139+
"The surface for long-running operations is not stable yet and may change in the future.")
140+
public OperationCallSettings<RestoreAgentRequest, Empty, Struct> restoreAgentOperationSettings() {
141+
return ((AgentsStubSettings) getStubSettings()).restoreAgentOperationSettings();
142+
}
143+
144144
/** Returns the object with the settings used for calls to getValidationResult. */
145145
public UnaryCallSettings<GetValidationResultRequest, ValidationResult>
146146
getValidationResultSettings() {
@@ -243,6 +243,11 @@ public Builder applyToAllUnaryMethods(
243243
return this;
244244
}
245245

246+
/** Returns the builder for the settings used for calls to getAgent. */
247+
public UnaryCallSettings.Builder<GetAgentRequest, Agent> getAgentSettings() {
248+
return getStubSettingsBuilder().getAgentSettings();
249+
}
250+
246251
/** Returns the builder for the settings used for calls to setAgent. */
247252
public UnaryCallSettings.Builder<SetAgentRequest, Agent> setAgentSettings() {
248253
return getStubSettingsBuilder().setAgentSettings();
@@ -286,24 +291,6 @@ public UnaryCallSettings.Builder<ExportAgentRequest, Operation> exportAgentSetti
286291
return getStubSettingsBuilder().exportAgentOperationSettings();
287292
}
288293

289-
/** Returns the builder for the settings used for calls to restoreAgent. */
290-
public UnaryCallSettings.Builder<RestoreAgentRequest, Operation> restoreAgentSettings() {
291-
return getStubSettingsBuilder().restoreAgentSettings();
292-
}
293-
294-
/** Returns the builder for the settings used for calls to restoreAgent. */
295-
@BetaApi(
296-
"The surface for long-running operations is not stable yet and may change in the future.")
297-
public OperationCallSettings.Builder<RestoreAgentRequest, Empty, Struct>
298-
restoreAgentOperationSettings() {
299-
return getStubSettingsBuilder().restoreAgentOperationSettings();
300-
}
301-
302-
/** Returns the builder for the settings used for calls to getAgent. */
303-
public UnaryCallSettings.Builder<GetAgentRequest, Agent> getAgentSettings() {
304-
return getStubSettingsBuilder().getAgentSettings();
305-
}
306-
307294
/** Returns the builder for the settings used for calls to importAgent. */
308295
public UnaryCallSettings.Builder<ImportAgentRequest, Operation> importAgentSettings() {
309296
return getStubSettingsBuilder().importAgentSettings();
@@ -317,6 +304,19 @@ public UnaryCallSettings.Builder<ImportAgentRequest, Operation> importAgentSetti
317304
return getStubSettingsBuilder().importAgentOperationSettings();
318305
}
319306

307+
/** Returns the builder for the settings used for calls to restoreAgent. */
308+
public UnaryCallSettings.Builder<RestoreAgentRequest, Operation> restoreAgentSettings() {
309+
return getStubSettingsBuilder().restoreAgentSettings();
310+
}
311+
312+
/** Returns the builder for the settings used for calls to restoreAgent. */
313+
@BetaApi(
314+
"The surface for long-running operations is not stable yet and may change in the future.")
315+
public OperationCallSettings.Builder<RestoreAgentRequest, Empty, Struct>
316+
restoreAgentOperationSettings() {
317+
return getStubSettingsBuilder().restoreAgentOperationSettings();
318+
}
319+
320320
/** Returns the builder for the settings used for calls to getValidationResult. */
321321
public UnaryCallSettings.Builder<GetValidationResultRequest, ValidationResult>
322322
getValidationResultSettings() {

0 commit comments

Comments
 (0)