feat: regenerate #151
feat: regenerate #151
Conversation
There was a problem hiding this comment.
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.
# Setup Request | ||
knowledge_base = {} | ||
|
||
response = client.update_knowledge_base(knowledge_base) |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add enable_fuzzy_extraction
"""Accesses the google.cloud.dialogflow.v2 Agents API.""" | ||
|
||
import functools | ||
import pkg_resources | ||
import warnings | ||
|
||
from google.oauth2 import service_account | ||
import google.api_core.client_options |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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( |
There was a problem hiding this comment.
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.
@@ -111,6 +112,50 @@ class OutputAudioEncoding(enum.IntEnum): | |||
OUTPUT_AUDIO_ENCODING_OGG_OPUS = 3 | |||
|
|||
|
|||
class SpeechModelVariant(enum.IntEnum): |
There was a problem hiding this comment.
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
language. | ||
enable_word_info: |
There was a problem hiding this comment.
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)
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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add GcsSource to v2beta1
@@ -2575,6 +3204,266 @@ | |||
# @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Intent.Message.TelephonyTransferCall) | |||
)) | |||
, | |||
|
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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
dialogflow_v2/proto/session_pb2.py
Outdated
@@ -1218,8 +1135,10 @@ | |||
form of text, or 3. an event that specifies which intent to | |||
trigger. | |||
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 |
There was a problem hiding this comment.
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
@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: |
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
v2 and v2beta1
set_agent
anddelete_agent
methods toAgentsClient
api_version
andtier
toAgents
session_entity_types
toWebhookResponse
model_variant
andsingle_utterance
toInputAudioConfig
SpeechModelVariant
enumenable_fuzzy_extraction
toEntityType
KIND_REGEXP
toEntityType.Kind
enumclient_options
to clientscreate_channel
methodssingle_utterance
attribute inStreamingDetectIntentRequest
. Please useInputAudioConfig.single_utterance
v2
Message.Platform
enumv2beta1
get_validation_result
method toAgentsClient
gcs_source
andsource
toreload_document
method inDocumentsClient
table_card
, andmedia_content
to intent messagesenable_word_info
,speech_contexts
toInputAudioConfig
update_document
returns_OperationFuture
rather thanOperation
projects.agent.knowledgeBases
. Please useprojects.knowledgeBases
.stability
,speech_word_info
andspeech_end_offset
toStreamingRecognitionResult