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

feat: regenerate - #151

Merged
nnegrey merged 6 commits into
masterfrom
fix-synth
Oct 16, 2019
Merged

nnegrey merged 6 commits into
masterfrom
fix-synth

Conversation

@busunkim96

@busunkim96 busunkim96 commented Oct 10, 2019 •

Copy link
Copy Markdown
Contributor

v2 and v2beta1

  • Add set_agent and delete_agent methods to AgentsClient
  • Add api_version and tier to Agents
  • Add session_entity_types to WebhookResponse
  • Add model_variant and single_utterance to InputAudioConfig
  • Add SpeechModelVariant enum
  • Add enable_fuzzy_extraction to EntityType
  • Add KIND_REGEXP to EntityType.Kind enum
  • Add client_options to clients
  • Allow kwargs to be passed to transport create_channel methods
  • Deprecate single_utterance attribute in StreamingDetectIntentRequest. Please use InputAudioConfig.single_utterance

v2

  • Add Google Hangouts to Message.Platform enum

v2beta1

  • Add get_validation_result method to AgentsClient
  • Add gcs_source and source to reload_document method in DocumentsClient
  • Add Rich Business Messaging (RBM) support, table_card, and media_content to intent messages
  • Add enable_word_info, speech_contexts to InputAudioConfig
  • update_document returns _OperationFuture rather than Operation
  • Deprecate projects.agent.knowledgeBases. Please use projects.knowledgeBases.
  • Add stability, speech_word_info and speech_end_offset to StreamingRecognitionResult

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Oct 10, 2019

@busunkim96 busunkim96 left a comment •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are notes I took for myself as I went through the diff.

Comment on lines +233 to +236
# Setup Request
knowledge_base = {}

response = client.update_knowledge_base(knowledge_base)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Passes empty knowledge_base in UpdateKnowledgeBaseRequest.

@@ -118,11 +112,12 @@ def test_get_entity_type(self):
# Setup Expected Response
name_2 = 'name2-1052831874'
display_name = 'displayName1615086568'
expected_response = {'name': name_2, 'display_name': display_name}
enable_fuzzy_extraction = True

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add enable_fuzzy_extraction

import warnings

from google.oauth2 import service_account
import google.api_core.client_options

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add client_options to v2

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So client_options are basically a way to set the endpoint directly?

retry=google.api_core.gapic_v1.method.DEFAULT,
timeout=google.api_core.gapic_v1.method.DEFAULT,
metadata=None):
def set_agent(

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add set_agent and delete_agent to v2.

OUTPUT_AUDIO_ENCODING_OGG_OPUS = 3


class SpeechModelVariant(enum.IntEnum):

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add SpeechModelVariant enum to v2

the currently supported language codes. Note that queries in
the same session do not necessarily need to specify the same
language.
enable_word_info:

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add enable_word_info, speech_contexts, model_variant, single_utterance to InputAudioConfig (v2beta1)

Comment thread dialogflow_v2beta1/proto/gcs_pb2.py Outdated
is of the form: gs://bucket/object-prefix-or-name Whether a
prefix or name is used depends on the use case.
""",
# @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.GcsSource)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add GcsSource to v2beta1

Comment thread dialogflow_v2beta1/proto/intent_pb2.py Outdated
@@ -2575,6 +3204,266 @@
# @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall)
))
,

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add Rich Business Messaging support to intent message (v2beta1)

@@ -2615,6 +3504,14 @@
Synthesizes speech in Telephony Gateway.
telephony_transfer_call:
Transfers the call in Telephony Gateway.
rbm_text:

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add rbm_text, rbm_standalone_rich_card, rbm_standalone_rich_card to Intent.Message (v2beta1)

error_message:
The detailed error messsage.
""",
# @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.ValidationError)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add ValidationError, ValidationResult to v2beta1

Comment thread dialogflow_v2/proto/session_pb2.py Outdated
single_utterance:
Optional. If ``false`` (default), recognition does not cease
until the client closes the stream. If ``true``, the
DEPRECATED. Please use [InputAudioConfig.single\_utterance][go

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deprecate single_utterance in StreamingDetectIntentrequest

@busunkim96

Copy link
Copy Markdown
Contributor Author

@nnegrey Please review/merge when you are ready.

input. When this field is set, Dialogflow ignores the
``fulfillment_text``, ``fulfillment_messages``, and
``payload`` fields.
session_entity_types:

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add session_entity_types to WebhookResponse

@@ -1488,6 +1545,24 @@
was not set. This field is typically only provided if
``is_final`` is true and you should not rely on it being
accurate or even set.
stability:

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add stability, speech_word_info and speech_end_offset to StreamingRecognitionResult

@@ -821,6 +834,9 @@
entities:
Optional. The collection of entity entries associated with the
entity type.
enable_fuzzy_extraction:

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add enable_fuzzy_extraction to EntityType


syntax = "proto3";

package google.cloud.dialogflow.v2;

@nnegrey nnegrey Oct 16, 2019 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing .proto files, because they exist in googleapis, yes?

@nnegrey nnegrey left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nnegrey
nnegrey merged commit 6222277 into master Oct 16, 2019
@busunkim96
busunkim96 deleted the fix-synth branch October 17, 2019 16:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants