Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

Commit

Permalink
feat: allowed custom to specify webhook headers through query paramet…
Browse files Browse the repository at this point in the history
…ers (#109)

This PR was generated using Autosynth. 🌈

Synth log will be available here:
https://source.cloud.google.com/results/invocations/a0fa0bb5-ad7e-435c-ac39-17051adf64ae/targets

- [ ] To automatically regenerate this PR, check this box.

PiperOrigin-RevId: 346434847
Source-Link: googleapis/googleapis@e4d0155
PiperOrigin-RevId: 346372957
Source-Link: googleapis/googleapis@857f70d
PiperOrigin-RevId: 346126713
Source-Link: googleapis/googleapis@b8b2f8c
PiperOrigin-RevId: 345476969
Source-Link: googleapis/googleapis@7be2c82
PiperOrigin-RevId: 345067549
Source-Link: googleapis/googleapis@8cfc6c8
PiperOrigin-RevId: 345049577
Source-Link: googleapis/googleapis@ca7389d
PiperOrigin-RevId: 344134135
Source-Link: googleapis/googleapis@b11a87f
PiperOrigin-RevId: 342188199
Source-Link: googleapis/googleapis@836f0ea
  • Loading branch information
yoshi-automation authored Dec 14, 2020
1 parent d5edca3 commit 329b306
Show file tree
Hide file tree
Showing 247 changed files with 15,941 additions and 19,046 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@
* 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
* 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.cx.v3;

import static com.google.cloud.dialogflow.cx.v3.AgentsClient.ListAgentsPagedResponse;
Expand All @@ -37,7 +38,7 @@
import java.util.List;
import javax.annotation.Generated;

// AUTO-GENERATED DOCUMENTATION AND CLASS
// AUTO-GENERATED DOCUMENTATION AND CLASS.
/**
* Settings class to configure an instance of {@link AgentsClient}.
*
Expand All @@ -54,22 +55,23 @@
*
* <p>For example, to set the total timeout of getAgent to 30 seconds:
*
* <pre>
* <code>
* AgentsSettings.Builder agentsSettingsBuilder =
* AgentsSettings.newBuilder();
* <pre>{@code
* AgentsSettings.Builder agentsSettingsBuilder = AgentsSettings.newBuilder();
* agentsSettingsBuilder
* .getAgentSettings()
* .setRetrySettings(
* agentsSettingsBuilder.getAgentSettings().getRetrySettings().toBuilder()
* agentsSettingsBuilder
* .getAgentSettings()
* .getRetrySettings()
* .toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* AgentsSettings agentsSettings = agentsSettingsBuilder.build();
* </code>
* </pre>
* }</pre>
*/
@Generated("by gapic-generator")
@Generated("by gapic-generator-java")
public class AgentsSettings extends ClientSettings<AgentsSettings> {

/** Returns the object with the settings used for calls to listAgents. */
public PagedCallSettings<ListAgentsRequest, ListAgentsResponse, ListAgentsPagedResponse>
listAgentsSettings() {
Expand Down Expand Up @@ -102,8 +104,6 @@ public UnaryCallSettings<ExportAgentRequest, Operation> exportAgentSettings() {
}

/** Returns the object with the settings used for calls to exportAgent. */
@BetaApi(
"The surface for long-running operations is not stable yet and may change in the future.")
public OperationCallSettings<ExportAgentRequest, ExportAgentResponse, Struct>
exportAgentOperationSettings() {
return ((AgentsStubSettings) getStubSettings()).exportAgentOperationSettings();
Expand All @@ -115,8 +115,6 @@ public UnaryCallSettings<RestoreAgentRequest, Operation> restoreAgentSettings()
}

/** Returns the object with the settings used for calls to restoreAgent. */
@BetaApi(
"The surface for long-running operations is not stable yet and may change in the future.")
public OperationCallSettings<RestoreAgentRequest, Empty, Struct> restoreAgentOperationSettings() {
return ((AgentsStubSettings) getStubSettings()).restoreAgentOperationSettings();
}
Expand Down Expand Up @@ -180,18 +178,15 @@ protected AgentsSettings(Builder settingsBuilder) throws IOException {

/** Builder for AgentsSettings. */
public static class Builder extends ClientSettings.Builder<AgentsSettings, Builder> {

protected Builder() throws IOException {
this((ClientContext) null);
this(((ClientContext) null));
}

protected Builder(ClientContext clientContext) {
super(AgentsStubSettings.newBuilder(clientContext));
}

private static Builder createDefault() {
return new Builder(AgentsStubSettings.newBuilder());
}

protected Builder(AgentsSettings settings) {
super(settings.getStubSettings().toBuilder());
}
Expand All @@ -200,11 +195,15 @@ protected Builder(AgentsStubSettings.Builder stubSettings) {
super(stubSettings);
}

private static Builder createDefault() {
return new Builder(AgentsStubSettings.newBuilder());
}

public AgentsStubSettings.Builder getStubSettingsBuilder() {
return ((AgentsStubSettings.Builder) getStubSettings());
}

// NEXT_MAJOR_VER: remove 'throws Exception'
// NEXT_MAJOR_VER: remove 'throws Exception'.
/**
* Applies the given settings updater function to all of the unary API methods in this service.
*
Expand Down Expand Up @@ -249,8 +248,6 @@ public UnaryCallSettings.Builder<ExportAgentRequest, Operation> exportAgentSetti
}

/** Returns the builder for the settings used for calls to exportAgent. */
@BetaApi(
"The surface for long-running operations is not stable yet and may change in the future.")
public OperationCallSettings.Builder<ExportAgentRequest, ExportAgentResponse, Struct>
exportAgentOperationSettings() {
return getStubSettingsBuilder().exportAgentOperationSettings();
Expand All @@ -262,8 +259,6 @@ public UnaryCallSettings.Builder<RestoreAgentRequest, Operation> restoreAgentSet
}

/** Returns the builder for the settings used for calls to restoreAgent. */
@BetaApi(
"The surface for long-running operations is not stable yet and may change in the future.")
public OperationCallSettings.Builder<RestoreAgentRequest, Empty, Struct>
restoreAgentOperationSettings() {
return getStubSettingsBuilder().restoreAgentOperationSettings();
Expand Down
Loading

0 comments on commit 329b306

Please sign in to comment.