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

docs(samples): add region tags to update intent sample #382

Merged
merged 3 commits into from Sep 3, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions samples/snippets/update_intent.py
Expand Up @@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# 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 +27,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]