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

Commit

Permalink
docs(samples): add region tags to update intent sample (#382)
Browse files Browse the repository at this point in the history
* Update update_intent.py

* Update update_intent.py
  • Loading branch information
galz10 committed Sep 3, 2021
1 parent b85d095 commit 8497101
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions samples/snippets/update_intent.py
Expand Up @@ -12,6 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# [START dialogflow_es_update_intent]

from google.cloud.dialogflow_v2 import IntentsClient
from google.protobuf import field_mask_pb2

Expand All @@ -26,3 +28,4 @@ def update_intent(project_id, intent_id, display_name):
update_mask = field_mask_pb2.FieldMask(paths=["display_name"])
response = intents_client.update_intent(intent=intent, update_mask=update_mask)
return response
# [END dialogflow_es_update_intent]

0 comments on commit 8497101

Please sign in to comment.