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

Commit

Permalink
fix: allow passing gax instance to client constructor (#971)
Browse files Browse the repository at this point in the history
- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 470911839

Source-Link: googleapis/googleapis@3527566

Source-Link: https://github.com/googleapis/googleapis-gen/commit/f16a1d224f00a630ea43d6a9a1a31f566f45cdea
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZjE2YTFkMjI0ZjAwYTYzMGVhNDNkNmE5YTFhMzFmNTY2ZjQ1Y2RlYSJ9

feat: accept google-gax instance as a parameter
Please see the documentation of the client constructor for details.

PiperOrigin-RevId: 470332808

Source-Link: googleapis/googleapis@d4a2367

Source-Link: https://github.com/googleapis/googleapis-gen/commit/e97a1ac204ead4fe7341f91e72db7c6ac6016341
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZTk3YTFhYzIwNGVhZDRmZTczNDFmOTFlNzJkYjdjNmFjNjAxNjM0MSJ9

fix: better support for fallback mode
PiperOrigin-RevId: 468790263

Source-Link: googleapis/googleapis@873ab45

Source-Link: https://github.com/googleapis/googleapis-gen/commit/cb6f37aeff2a3472e40a7bbace8c67d75e24bee5
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiY2I2ZjM3YWVmZjJhMzQ3MmU0MGE3YmJhY2U4YzY3ZDc1ZTI0YmVlNSJ9

docs: updated some method comments and added an explicit note that DetectIntentRequest's text input is limited by 256 characters
PiperOrigin-RevId: 463362184

Source-Link: googleapis/googleapis@1805fc2

Source-Link: https://github.com/googleapis/googleapis-gen/commit/c47083a7b829c85e3423250f7cf431f07238ad04
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYzQ3MDgzYTdiODI5Yzg1ZTM0MjMyNTBmN2NmNDMxZjA3MjM4YWQwNCJ9

docs: added an explicit note that DetectIntentRequest's text input is limited by 256 characters
PiperOrigin-RevId: 463252698

Source-Link: googleapis/googleapis@eeacaab

Source-Link: https://github.com/googleapis/googleapis-gen/commit/da3bfa08ba77d14ba66e6eeee5ad159ef365df0f
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZGEzYmZhMDhiYTc3ZDE0YmE2NmU2ZWVlZTVhZDE1OWVmMzY1ZGYwZiJ9
  • Loading branch information
gcf-owl-bot[bot] authored Sep 1, 2022
1 parent 33fe037 commit f4ee343
Show file tree
Hide file tree
Showing 263 changed files with 4,876 additions and 3,777 deletions.
5 changes: 3 additions & 2 deletions protos/google/cloud/dialogflow/v2/session.proto
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,8 @@ message QueryInput {
// Instructs the speech recognizer how to process the speech audio.
InputAudioConfig audio_config = 1;

// The natural language text to be processed.
// The natural language text to be processed. Text length must not exceed
// 256 character for virtual agent interactions.
TextInput text = 2;

// The event to be processed.
Expand Down Expand Up @@ -615,7 +616,7 @@ message StreamingRecognitionResult {
// Represents the natural language text to be processed.
message TextInput {
// Required. The UTF-8 encoded natural language text to be processed.
// Text length must not exceed 256 characters.
// Text length must not exceed 256 characters for virtual agent interactions.
string text = 1 [(google.api.field_behavior) = REQUIRED];

// Required. The language of this conversational query. See [Language
Expand Down
2 changes: 0 additions & 2 deletions protos/google/cloud/dialogflow/v2beta1/answer_record.proto
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,6 @@ message ListAnswerRecordsRequest {

// Optional. Filters to restrict results to specific answer records.
//
// Marked deprecated as it hasn't been, and isn't currently, supported.
//
// For more information about filtering, see
// [API Filtering](https://aip.dev/160).
string filter = 2 [
Expand Down
8 changes: 5 additions & 3 deletions protos/google/cloud/dialogflow/v2beta1/participant.proto
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ service Participants {
}
};
option (google.api.method_signature) = "participant,text_input";
option (google.api.method_signature) = "participant,event_input";
option (google.api.method_signature) = "participant,audio_input";
option (google.api.method_signature) = "participant,event_input";
}

// Adds a text (e.g., chat) or audio (e.g., phone recording) message from a
Expand Down Expand Up @@ -416,7 +416,8 @@ message AudioInput {

// Required. The natural language speech audio to be processed.
// A single request can contain up to 1 minute of speech audio data.
// The transcribed text cannot contain more than 256 bytes.
// The transcribed text cannot contain more than 256 bytes for virtual agent
// interactions.
bytes audio = 2;
}

Expand Down Expand Up @@ -760,7 +761,8 @@ message StreamingAnalyzeContentRequest {

// The UTF-8 encoded natural language text to be processed. Must be sent if
// `text_config` is set in the first message. Text length must not exceed
// 256 bytes. The `input_text` field can be only sent once.
// 256 bytes for virtual agent interactions. The `input_text` field can be
// only sent once.
string input_text = 6;

// The DTMF digits used to invoke intent and fill in parameter value.
Expand Down
2 changes: 1 addition & 1 deletion protos/google/cloud/dialogflow/v2beta1/session.proto
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ message StreamingRecognitionResult {
// Represents the natural language text to be processed.
message TextInput {
// Required. The UTF-8 encoded natural language text to be processed.
// Text length must not exceed 256 characters.
// Text length must not exceed 256 characters for virtual agent interactions.
string text = 1;

// Required. The language of this conversational query. See [Language
Expand Down
6 changes: 3 additions & 3 deletions protos/protos.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions samples/generated/v2/agents.delete_agent.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(parent) {
// [START dialogflow_v2_generated_Agents_DeleteAgent_async]
/**
* 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.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand Down
3 changes: 3 additions & 0 deletions samples/generated/v2/agents.export_agent.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(parent, agentUri) {
// [START dialogflow_v2_generated_Agents_ExportAgent_async]
/**
* 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.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand Down
3 changes: 3 additions & 0 deletions samples/generated/v2/agents.get_agent.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(parent) {
// [START dialogflow_v2_generated_Agents_GetAgent_async]
/**
* 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.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand Down
3 changes: 3 additions & 0 deletions samples/generated/v2/agents.get_validation_result.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(parent) {
// [START dialogflow_v2_generated_Agents_GetValidationResult_async]
/**
* 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.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand Down
3 changes: 3 additions & 0 deletions samples/generated/v2/agents.import_agent.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(parent) {
// [START dialogflow_v2_generated_Agents_ImportAgent_async]
/**
* 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.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand Down
3 changes: 3 additions & 0 deletions samples/generated/v2/agents.restore_agent.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(parent) {
// [START dialogflow_v2_generated_Agents_RestoreAgent_async]
/**
* 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.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand Down
3 changes: 3 additions & 0 deletions samples/generated/v2/agents.search_agents.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(parent) {
// [START dialogflow_v2_generated_Agents_SearchAgents_async]
/**
* 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.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand Down
3 changes: 3 additions & 0 deletions samples/generated/v2/agents.set_agent.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(agent) {
// [START dialogflow_v2_generated_Agents_SetAgent_async]
/**
* 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.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand Down
3 changes: 3 additions & 0 deletions samples/generated/v2/agents.train_agent.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(parent) {
// [START dialogflow_v2_generated_Agents_TrainAgent_async]
/**
* 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.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand Down
3 changes: 3 additions & 0 deletions samples/generated/v2/answer_records.list_answer_records.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(parent) {
// [START dialogflow_v2_generated_AnswerRecords_ListAnswerRecords_async]
/**
* 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.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand Down
3 changes: 3 additions & 0 deletions samples/generated/v2/answer_records.update_answer_record.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(answerRecord, updateMask) {
// [START dialogflow_v2_generated_AnswerRecords_UpdateAnswerRecord_async]
/**
* 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.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand Down
3 changes: 3 additions & 0 deletions samples/generated/v2/contexts.create_context.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(parent, context) {
// [START dialogflow_v2_generated_Contexts_CreateContext_async]
/**
* 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.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand Down
3 changes: 3 additions & 0 deletions samples/generated/v2/contexts.delete_all_contexts.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(parent) {
// [START dialogflow_v2_generated_Contexts_DeleteAllContexts_async]
/**
* 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.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand Down
3 changes: 3 additions & 0 deletions samples/generated/v2/contexts.delete_context.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(name) {
// [START dialogflow_v2_generated_Contexts_DeleteContext_async]
/**
* 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.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand Down
3 changes: 3 additions & 0 deletions samples/generated/v2/contexts.get_context.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(name) {
// [START dialogflow_v2_generated_Contexts_GetContext_async]
/**
* 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.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand Down
3 changes: 3 additions & 0 deletions samples/generated/v2/contexts.list_contexts.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(parent) {
// [START dialogflow_v2_generated_Contexts_ListContexts_async]
/**
* 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.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand Down
3 changes: 3 additions & 0 deletions samples/generated/v2/contexts.update_context.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(context) {
// [START dialogflow_v2_generated_Contexts_UpdateContext_async]
/**
* 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.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(parent, conversationDataset) {
// [START dialogflow_v2_generated_ConversationDatasets_CreateConversationDataset_async]
/**
* 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.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(name) {
// [START dialogflow_v2_generated_ConversationDatasets_DeleteConversationDataset_async]
/**
* 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.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(name) {
// [START dialogflow_v2_generated_ConversationDatasets_GetConversationDataset_async]
/**
* 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.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(name, inputConfig) {
// [START dialogflow_v2_generated_ConversationDatasets_ImportConversationData_async]
/**
* 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.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(parent) {
// [START dialogflow_v2_generated_ConversationDatasets_ListConversationDatasets_async]
/**
* 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.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(conversationModel) {
// [START dialogflow_v2_generated_ConversationModels_CreateConversationModel_async]
/**
* 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.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(parent, conversationModelEvaluation) {
// [START dialogflow_v2_generated_ConversationModels_CreateConversationModelEvaluation_async]
/**
* 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.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(name) {
// [START dialogflow_v2_generated_ConversationModels_DeleteConversationModel_async]
/**
* 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.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(name) {
// [START dialogflow_v2_generated_ConversationModels_DeployConversationModel_async]
/**
* 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.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(name) {
// [START dialogflow_v2_generated_ConversationModels_GetConversationModel_async]
/**
* 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.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(name) {
// [START dialogflow_v2_generated_ConversationModels_GetConversationModelEvaluation_async]
/**
* 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.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(parent) {
// [START dialogflow_v2_generated_ConversationModels_ListConversationModelEvaluations_async]
/**
* 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.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(parent) {
// [START dialogflow_v2_generated_ConversationModels_ListConversationModels_async]
/**
* 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.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(name) {
// [START dialogflow_v2_generated_ConversationModels_UndeployConversationModel_async]
/**
* 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.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand Down
Loading

0 comments on commit f4ee343

Please sign in to comment.