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

Commit

Permalink
feat: added more Environment RPCs (#540)
Browse files Browse the repository at this point in the history
This PR was generated using Autosynth. 🌈

Synth log will be available here:
https://source.cloud.google.com/results/invocations/4d67a5a1-abab-4644-93fd-993084fdbdb4/targets

- [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.)

PiperOrigin-RevId: 371848474
Source-Link: googleapis/googleapis@5efeb79

feat: added Versions service
feat: added Fulfillment service
feat: added TextToSpeechSettings
feat: added location in some resource patterns
build(java): switch to release-please for release tagging
  • Loading branch information
yoshi-automation committed May 5, 2021
1 parent 5f38490 commit b6b4391
Show file tree
Hide file tree
Showing 119 changed files with 36,762 additions and 1,160 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Expand Up @@ -16,6 +16,7 @@

package com.google.cloud.dialogflow.v2;

import static com.google.cloud.dialogflow.v2.EnvironmentsClient.GetEnvironmentHistoryPagedResponse;
import static com.google.cloud.dialogflow.v2.EnvironmentsClient.ListEnvironmentsPagedResponse;

import com.google.api.core.ApiFunction;
Expand All @@ -30,6 +31,7 @@
import com.google.api.gax.rpc.TransportChannelProvider;
import com.google.api.gax.rpc.UnaryCallSettings;
import com.google.cloud.dialogflow.v2.stub.EnvironmentsStubSettings;
import com.google.protobuf.Empty;
import java.io.IOException;
import java.util.List;
import javax.annotation.Generated;
Expand All @@ -49,15 +51,15 @@
* <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 listEnvironments to 30 seconds:
* <p>For example, to set the total timeout of getEnvironment to 30 seconds:
*
* <pre>{@code
* EnvironmentsSettings.Builder environmentsSettingsBuilder = EnvironmentsSettings.newBuilder();
* environmentsSettingsBuilder
* .listEnvironmentsSettings()
* .getEnvironmentSettings()
* .setRetrySettings(
* environmentsSettingsBuilder
* .listEnvironmentsSettings()
* .getEnvironmentSettings()
* .getRetrySettings()
* .toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
Expand All @@ -75,6 +77,33 @@ public class EnvironmentsSettings extends ClientSettings<EnvironmentsSettings> {
return ((EnvironmentsStubSettings) getStubSettings()).listEnvironmentsSettings();
}

/** Returns the object with the settings used for calls to getEnvironment. */
public UnaryCallSettings<GetEnvironmentRequest, Environment> getEnvironmentSettings() {
return ((EnvironmentsStubSettings) getStubSettings()).getEnvironmentSettings();
}

/** Returns the object with the settings used for calls to createEnvironment. */
public UnaryCallSettings<CreateEnvironmentRequest, Environment> createEnvironmentSettings() {
return ((EnvironmentsStubSettings) getStubSettings()).createEnvironmentSettings();
}

/** Returns the object with the settings used for calls to updateEnvironment. */
public UnaryCallSettings<UpdateEnvironmentRequest, Environment> updateEnvironmentSettings() {
return ((EnvironmentsStubSettings) getStubSettings()).updateEnvironmentSettings();
}

/** Returns the object with the settings used for calls to deleteEnvironment. */
public UnaryCallSettings<DeleteEnvironmentRequest, Empty> deleteEnvironmentSettings() {
return ((EnvironmentsStubSettings) getStubSettings()).deleteEnvironmentSettings();
}

/** Returns the object with the settings used for calls to getEnvironmentHistory. */
public PagedCallSettings<
GetEnvironmentHistoryRequest, EnvironmentHistory, GetEnvironmentHistoryPagedResponse>
getEnvironmentHistorySettings() {
return ((EnvironmentsStubSettings) getStubSettings()).getEnvironmentHistorySettings();
}

public static final EnvironmentsSettings create(EnvironmentsStubSettings stub)
throws IOException {
return new EnvironmentsSettings.Builder(stub.toBuilder()).build();
Expand Down Expand Up @@ -180,6 +209,35 @@ public Builder applyToAllUnaryMethods(
return getStubSettingsBuilder().listEnvironmentsSettings();
}

/** Returns the builder for the settings used for calls to getEnvironment. */
public UnaryCallSettings.Builder<GetEnvironmentRequest, Environment> getEnvironmentSettings() {
return getStubSettingsBuilder().getEnvironmentSettings();
}

/** Returns the builder for the settings used for calls to createEnvironment. */
public UnaryCallSettings.Builder<CreateEnvironmentRequest, Environment>
createEnvironmentSettings() {
return getStubSettingsBuilder().createEnvironmentSettings();
}

/** Returns the builder for the settings used for calls to updateEnvironment. */
public UnaryCallSettings.Builder<UpdateEnvironmentRequest, Environment>
updateEnvironmentSettings() {
return getStubSettingsBuilder().updateEnvironmentSettings();
}

/** Returns the builder for the settings used for calls to deleteEnvironment. */
public UnaryCallSettings.Builder<DeleteEnvironmentRequest, Empty> deleteEnvironmentSettings() {
return getStubSettingsBuilder().deleteEnvironmentSettings();
}

/** Returns the builder for the settings used for calls to getEnvironmentHistory. */
public PagedCallSettings.Builder<
GetEnvironmentHistoryRequest, EnvironmentHistory, GetEnvironmentHistoryPagedResponse>
getEnvironmentHistorySettings() {
return getStubSettingsBuilder().getEnvironmentHistorySettings();
}

@Override
public EnvironmentsSettings build() throws IOException {
return new EnvironmentsSettings(this);
Expand Down

0 comments on commit b6b4391

Please sign in to comment.