Skip to content

Commit

Permalink
feat: [dialogflow-cx] A new field opt_out_conformer_model_migration
Browse files Browse the repository at this point in the history
… is added to message `.google.cloud.dialogflow.cx.v3.InputAudioConfig` (#10354)

* feat: Public preview the  Dialogflow LLM based agent
docs: A comment for field `start_flow` in message `.google.cloud.dialogflow.cx.v3beta1.Agent` is changed
docs: A comment for enum value `USE_BEST_AVAILABLE` in enum `SpeechModelVariant` is changed
docs: A comment for enum value `USE_ENHANCED` in enum `SpeechModelVariant` is changed
docs: A comment for field `model` in message `.google.cloud.dialogflow.cx.v3beta1.InputAudioConfig` is changed
docs: A comment for enum value `END_OF_SINGLE_UTTERANCE` in enum `MessageType` is changed
docs: A comment for field `session_ttl` in message `.google.cloud.dialogflow.cx.v3beta1.QueryParameters` is changed
docs: A comment for message `QueryInput` is changed
docs: A comment for field `text` in message `.google.cloud.dialogflow.cx.v3beta1.TextInput` is changed

PiperOrigin-RevId: 605368061

Source-Link: googleapis/googleapis@ed81d4e

Source-Link: https://github.com/googleapis/googleapis-gen/commit/9932768751ae9e9ba92cabe1312e451301962a1d
Copy-Tag: eyJwIjoiamF2YS1kaWFsb2dmbG93LWN4Ly5Pd2xCb3QueWFtbCIsImgiOiI5OTMyNzY4NzUxYWU5ZTliYTkyY2FiZTEzMTJlNDUxMzAxOTYyYTFkIn0=

* 🦉 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

* feat: A new field `opt_out_conformer_model_migration` is added to message `.google.cloud.dialogflow.cx.v3.InputAudioConfig`
feat: A new field `language_code` is added to message `.google.cloud.dialogflow.cx.v3.Changelog`
feat: A new method `ExportEntityTypes` is added to service `EntityTypes`
feat: A new method `ImportEntityTypes` is added to service `EntityTypes`
feat: A new message `ExportEntityTypesRequest` is added
feat: A new message `ExportEntityTypesResponse` is added
feat: A new message `ExportEntityTypesMetadata` is added
feat: A new message `ImportEntityTypesRequest` is added
feat: A new message `ImportEntityTypesResponse` is added
feat: A new message `ImportEntityTypesMetadata` is added
feat: A new field `disable_data_store_fallback` is added to message `.google.cloud.dialogflow.cx.v3.GenerativeSettings`
feat: A new field `description` is added to message `.google.cloud.dialogflow.cx.v3.Page`
feat: A new method `ServerStreamingDetectIntent` is added to service `Sessions`
feat: A new field `webhook_ids` is added to message `.google.cloud.dialogflow.cx.v3.QueryResult`
feat: A new field `webhook_display_names` is added to message `.google.cloud.dialogflow.cx.v3.QueryResult`
feat: A new field `webhook_latencies` is added to message `.google.cloud.dialogflow.cx.v3.QueryResult`
feat: A new field `webhook_tags` is added to message `.google.cloud.dialogflow.cx.v3.QueryResult`
feat: A new field `current_flow` is added to message `.google.cloud.dialogflow.cx.v3.QueryResult`
docs: A comment for field `start_flow` in message `.google.cloud.dialogflow.cx.v3.Agent` is changed
docs: A comment for enum value `USE_BEST_AVAILABLE` in enum `SpeechModelVariant` is changed
docs: A comment for enum value `USE_ENHANCED` in enum `SpeechModelVariant` is changed
docs: A comment for field `model` in message `.google.cloud.dialogflow.cx.v3.InputAudioConfig` is changed
docs: A comment for enum value `END_OF_SINGLE_UTTERANCE` in enum `MessageType` is changed
docs: A comment for field `session_ttl` in message `.google.cloud.dialogflow.cx.v3.QueryParameters` is changed
docs: A comment for message `QueryInput` is changed
docs: A comment for field `text` in message `.google.cloud.dialogflow.cx.v3.TextInput` is changed

PiperOrigin-RevId: 605402250

Source-Link: googleapis/googleapis@802bb2c

Source-Link: https://github.com/googleapis/googleapis-gen/commit/bf877cc5e78c72120b29e38b3246fb8b72533955
Copy-Tag: eyJwIjoiamF2YS1kaWFsb2dmbG93LWN4Ly5Pd2xCb3QueWFtbCIsImgiOiJiZjg3N2NjNWU3OGM3MjEyMGIyOWUzOGIzMjQ2ZmI4YjcyNTMzOTU1In0=

* 🦉 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

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Feb 9, 2024
1 parent e9c48d9 commit 8e0fb1b
Show file tree
Hide file tree
Showing 414 changed files with 138,642 additions and 2,857 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,14 @@

import com.google.api.core.ApiFuture;
import com.google.api.core.ApiFutures;
import com.google.api.core.BetaApi;
import com.google.api.gax.core.BackgroundResource;
import com.google.api.gax.httpjson.longrunning.OperationsClient;
import com.google.api.gax.longrunning.OperationFuture;
import com.google.api.gax.paging.AbstractFixedSizeCollection;
import com.google.api.gax.paging.AbstractPage;
import com.google.api.gax.paging.AbstractPagedListResponse;
import com.google.api.gax.rpc.OperationCallable;
import com.google.api.gax.rpc.PageContext;
import com.google.api.gax.rpc.UnaryCallable;
import com.google.cloud.dialogflow.cx.v3.stub.EntityTypesStub;
Expand All @@ -31,6 +35,7 @@
import com.google.cloud.location.ListLocationsResponse;
import com.google.cloud.location.Location;
import com.google.common.util.concurrent.MoreExecutors;
import com.google.longrunning.Operation;
import com.google.protobuf.Empty;
import com.google.protobuf.FieldMask;
import java.io.IOException;
Expand Down Expand Up @@ -168,6 +173,36 @@
* </td>
* </tr>
* <tr>
* <td><p> ExportEntityTypes</td>
* <td><p> Exports the selected entity types.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li><p> exportEntityTypesAsync(ExportEntityTypesRequest request)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li><p> exportEntityTypesOperationCallable()
* <li><p> exportEntityTypesCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td><p> ImportEntityTypes</td>
* <td><p> Imports the specified entitytypes into the agent.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li><p> importEntityTypesAsync(ImportEntityTypesRequest request)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li><p> importEntityTypesOperationCallable()
* <li><p> importEntityTypesCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td><p> ListLocations</td>
* <td><p> Lists information about the supported locations for this service.</td>
* <td>
Expand Down Expand Up @@ -254,6 +289,8 @@
public class EntityTypesClient implements BackgroundResource {
private final EntityTypesSettings settings;
private final EntityTypesStub stub;
private final OperationsClient httpJsonOperationsClient;
private final com.google.longrunning.OperationsClient operationsClient;

/** Constructs an instance of EntityTypesClient with default settings. */
public static final EntityTypesClient create() throws IOException {
Expand Down Expand Up @@ -284,11 +321,17 @@ public static final EntityTypesClient create(EntityTypesStub stub) {
protected EntityTypesClient(EntityTypesSettings settings) throws IOException {
this.settings = settings;
this.stub = ((EntityTypesStubSettings) settings.getStubSettings()).createStub();
this.operationsClient =
com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub());
this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub());
}

protected EntityTypesClient(EntityTypesStub stub) {
this.settings = null;
this.stub = stub;
this.operationsClient =
com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub());
this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub());
}

public final EntityTypesSettings getSettings() {
Expand All @@ -299,6 +342,23 @@ public EntityTypesStub getStub() {
return stub;
}

/**
* Returns the OperationsClient that can be used to query the status of a long-running operation
* returned by another API method call.
*/
public final com.google.longrunning.OperationsClient getOperationsClient() {
return operationsClient;
}

/**
* Returns the OperationsClient that can be used to query the status of a long-running operation
* returned by another API method call.
*/
@BetaApi
public final OperationsClient getHttpJsonOperationsClient() {
return httpJsonOperationsClient;
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Retrieves the specified entity type.
Expand Down Expand Up @@ -956,6 +1016,195 @@ public final ListEntityTypesPagedResponse listEntityTypes(ListEntityTypesRequest
return stub.listEntityTypesCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Exports the selected entity types.
*
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) {
* ExportEntityTypesRequest request =
* ExportEntityTypesRequest.newBuilder()
* .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
* .addAllEntityTypes(new ArrayList<String>())
* .setLanguageCode("languageCode-2092349083")
* .build();
* ExportEntityTypesResponse response = entityTypesClient.exportEntityTypesAsync(request).get();
* }
* }</pre>
*
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture<ExportEntityTypesResponse, ExportEntityTypesMetadata>
exportEntityTypesAsync(ExportEntityTypesRequest request) {
return exportEntityTypesOperationCallable().futureCall(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Exports the selected entity types.
*
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) {
* ExportEntityTypesRequest request =
* ExportEntityTypesRequest.newBuilder()
* .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
* .addAllEntityTypes(new ArrayList<String>())
* .setLanguageCode("languageCode-2092349083")
* .build();
* OperationFuture<ExportEntityTypesResponse, ExportEntityTypesMetadata> future =
* entityTypesClient.exportEntityTypesOperationCallable().futureCall(request);
* // Do something.
* ExportEntityTypesResponse response = future.get();
* }
* }</pre>
*/
public final OperationCallable<
ExportEntityTypesRequest, ExportEntityTypesResponse, ExportEntityTypesMetadata>
exportEntityTypesOperationCallable() {
return stub.exportEntityTypesOperationCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Exports the selected entity types.
*
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) {
* ExportEntityTypesRequest request =
* ExportEntityTypesRequest.newBuilder()
* .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
* .addAllEntityTypes(new ArrayList<String>())
* .setLanguageCode("languageCode-2092349083")
* .build();
* ApiFuture<Operation> future =
* entityTypesClient.exportEntityTypesCallable().futureCall(request);
* // Do something.
* Operation response = future.get();
* }
* }</pre>
*/
public final UnaryCallable<ExportEntityTypesRequest, Operation> exportEntityTypesCallable() {
return stub.exportEntityTypesCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Imports the specified entitytypes into the agent.
*
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) {
* ImportEntityTypesRequest request =
* ImportEntityTypesRequest.newBuilder()
* .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
* .setTargetEntityType(
* EntityTypeName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENTITY_TYPE]")
* .toString())
* .build();
* ImportEntityTypesResponse response = entityTypesClient.importEntityTypesAsync(request).get();
* }
* }</pre>
*
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture<ImportEntityTypesResponse, ImportEntityTypesMetadata>
importEntityTypesAsync(ImportEntityTypesRequest request) {
return importEntityTypesOperationCallable().futureCall(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Imports the specified entitytypes into the agent.
*
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) {
* ImportEntityTypesRequest request =
* ImportEntityTypesRequest.newBuilder()
* .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
* .setTargetEntityType(
* EntityTypeName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENTITY_TYPE]")
* .toString())
* .build();
* OperationFuture<ImportEntityTypesResponse, ImportEntityTypesMetadata> future =
* entityTypesClient.importEntityTypesOperationCallable().futureCall(request);
* // Do something.
* ImportEntityTypesResponse response = future.get();
* }
* }</pre>
*/
public final OperationCallable<
ImportEntityTypesRequest, ImportEntityTypesResponse, ImportEntityTypesMetadata>
importEntityTypesOperationCallable() {
return stub.importEntityTypesOperationCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Imports the specified entitytypes into the agent.
*
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) {
* ImportEntityTypesRequest request =
* ImportEntityTypesRequest.newBuilder()
* .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
* .setTargetEntityType(
* EntityTypeName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENTITY_TYPE]")
* .toString())
* .build();
* ApiFuture<Operation> future =
* entityTypesClient.importEntityTypesCallable().futureCall(request);
* // Do something.
* Operation response = future.get();
* }
* }</pre>
*/
public final UnaryCallable<ImportEntityTypesRequest, Operation> importEntityTypesCallable() {
return stub.importEntityTypesCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Lists information about the supported locations for this service.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import com.google.api.gax.rpc.ApiClientHeaderProvider;
import com.google.api.gax.rpc.ClientContext;
import com.google.api.gax.rpc.ClientSettings;
import com.google.api.gax.rpc.OperationCallSettings;
import com.google.api.gax.rpc.PagedCallSettings;
import com.google.api.gax.rpc.TransportChannelProvider;
import com.google.api.gax.rpc.UnaryCallSettings;
Expand All @@ -36,6 +37,7 @@
import com.google.cloud.location.ListLocationsRequest;
import com.google.cloud.location.ListLocationsResponse;
import com.google.cloud.location.Location;
import com.google.longrunning.Operation;
import com.google.protobuf.Empty;
import java.io.IOException;
import java.util.List;
Expand Down Expand Up @@ -107,6 +109,30 @@ public UnaryCallSettings<DeleteEntityTypeRequest, Empty> deleteEntityTypeSetting
return ((EntityTypesStubSettings) getStubSettings()).listEntityTypesSettings();
}

/** Returns the object with the settings used for calls to exportEntityTypes. */
public UnaryCallSettings<ExportEntityTypesRequest, Operation> exportEntityTypesSettings() {
return ((EntityTypesStubSettings) getStubSettings()).exportEntityTypesSettings();
}

/** Returns the object with the settings used for calls to exportEntityTypes. */
public OperationCallSettings<
ExportEntityTypesRequest, ExportEntityTypesResponse, ExportEntityTypesMetadata>
exportEntityTypesOperationSettings() {
return ((EntityTypesStubSettings) getStubSettings()).exportEntityTypesOperationSettings();
}

/** Returns the object with the settings used for calls to importEntityTypes. */
public UnaryCallSettings<ImportEntityTypesRequest, Operation> importEntityTypesSettings() {
return ((EntityTypesStubSettings) getStubSettings()).importEntityTypesSettings();
}

/** Returns the object with the settings used for calls to importEntityTypes. */
public OperationCallSettings<
ImportEntityTypesRequest, ImportEntityTypesResponse, ImportEntityTypesMetadata>
importEntityTypesOperationSettings() {
return ((EntityTypesStubSettings) getStubSettings()).importEntityTypesOperationSettings();
}

/** Returns the object with the settings used for calls to listLocations. */
public PagedCallSettings<ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
listLocationsSettings() {
Expand Down Expand Up @@ -261,6 +287,32 @@ public UnaryCallSettings.Builder<DeleteEntityTypeRequest, Empty> deleteEntityTyp
return getStubSettingsBuilder().listEntityTypesSettings();
}

/** Returns the builder for the settings used for calls to exportEntityTypes. */
public UnaryCallSettings.Builder<ExportEntityTypesRequest, Operation>
exportEntityTypesSettings() {
return getStubSettingsBuilder().exportEntityTypesSettings();
}

/** Returns the builder for the settings used for calls to exportEntityTypes. */
public OperationCallSettings.Builder<
ExportEntityTypesRequest, ExportEntityTypesResponse, ExportEntityTypesMetadata>
exportEntityTypesOperationSettings() {
return getStubSettingsBuilder().exportEntityTypesOperationSettings();
}

/** Returns the builder for the settings used for calls to importEntityTypes. */
public UnaryCallSettings.Builder<ImportEntityTypesRequest, Operation>
importEntityTypesSettings() {
return getStubSettingsBuilder().importEntityTypesSettings();
}

/** Returns the builder for the settings used for calls to importEntityTypes. */
public OperationCallSettings.Builder<
ImportEntityTypesRequest, ImportEntityTypesResponse, ImportEntityTypesMetadata>
importEntityTypesOperationSettings() {
return getStubSettingsBuilder().importEntityTypesOperationSettings();
}

/** Returns the builder for the settings used for calls to listLocations. */
public PagedCallSettings.Builder<
ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
Expand Down
Loading

0 comments on commit 8e0fb1b

Please sign in to comment.