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

feat: allowed custom to specify webhook headers through query parameters #109

Merged
merged 9 commits into from
Dec 14, 2020

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