Skip to content
This repository was archived by the owner on Jan 6, 2024. It is now read-only.

Commit 01b0f8f

Browse files
docs(v3beta1): added explanation for uri fields in resources (#273)
- [ ] Regenerate this pull request now. docs(v3beta1): improved docs format PiperOrigin-RevId: 435479428 Source-Link: googleapis/googleapis@4dd75c2 Source-Link: https://github.com/googleapis/googleapis-gen/commit/0f3e9df388b2f84a3d6812826d20a950447c6ebb Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMGYzZTlkZjM4OGIyZjg0YTNkNjgxMjgyNmQyMGE5NTA0NDdjNmViYiJ9
1 parent 01b709c commit 01b0f8f

File tree

7 files changed

+108
-89
lines changed

7 files changed

+108
-89
lines changed

google/cloud/dialogflowcx_v3beta1/services/sessions/async_client.py

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -380,32 +380,31 @@ def request_generator():
380380
method.
381381
Multiple request messages should be sent in order:
382382
383-
1. The first message must contain
383+
1. The first message must contain
384384
[session][google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.session],
385385
[query_input][google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.query_input]
386386
plus optionally
387387
[query_params][google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.query_params].
388-
If the client wants to receive an audio response, it
388+
If the client wants to receive an audio response, it
389389
should also contain
390390
[output_audio_config][google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.output_audio_config].
391391
2. If
392392
[query_input][google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.query_input]
393393
was set to
394394
[query_input.audio.config][google.cloud.dialogflow.cx.v3beta1.AudioInput.config],
395-
all subsequent messages must contain
395+
all subsequent messages must contain
396396
[query_input.audio.audio][google.cloud.dialogflow.cx.v3beta1.AudioInput.audio]
397-
to continue with Speech recognition.
398-
If you decide to rather detect an intent from text
397+
to continue with Speech recognition.
398+
If you decide to rather detect an intent from text
399399
input after you already started Speech recognition,
400-
please send a message with
400+
please send a message with
401401
[query_input.text][google.cloud.dialogflow.cx.v3beta1.QueryInput.text].
402-
However, note that:
403-
404-
* Dialogflow will bill you for the audio duration so
405-
far. * Dialogflow discards all Speech recognition
406-
results in favor of the input text.
407-
* Dialogflow will use the language code from the
408-
first message.
402+
However, note that:
403+
* Dialogflow will bill you for the audio duration so
404+
far. * Dialogflow discards all Speech recognition
405+
results in favor of the input text.
406+
* Dialogflow will use the language code from the first
407+
message.
409408
After you sent all input, you must half-close or abort
410409
the request stream.
411410
retry (google.api_core.retry.Retry): Designation of what errors, if any,

google/cloud/dialogflowcx_v3beta1/services/sessions/client.py

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -689,32 +689,31 @@ def request_generator():
689689
method.
690690
Multiple request messages should be sent in order:
691691
692-
1. The first message must contain
692+
1. The first message must contain
693693
[session][google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.session],
694694
[query_input][google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.query_input]
695695
plus optionally
696696
[query_params][google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.query_params].
697-
If the client wants to receive an audio response, it
697+
If the client wants to receive an audio response, it
698698
should also contain
699699
[output_audio_config][google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.output_audio_config].
700700
2. If
701701
[query_input][google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.query_input]
702702
was set to
703703
[query_input.audio.config][google.cloud.dialogflow.cx.v3beta1.AudioInput.config],
704-
all subsequent messages must contain
704+
all subsequent messages must contain
705705
[query_input.audio.audio][google.cloud.dialogflow.cx.v3beta1.AudioInput.audio]
706-
to continue with Speech recognition.
707-
If you decide to rather detect an intent from text
706+
to continue with Speech recognition.
707+
If you decide to rather detect an intent from text
708708
input after you already started Speech recognition,
709-
please send a message with
709+
please send a message with
710710
[query_input.text][google.cloud.dialogflow.cx.v3beta1.QueryInput.text].
711-
However, note that:
712-
713-
* Dialogflow will bill you for the audio duration so
714-
far. * Dialogflow discards all Speech recognition
715-
results in favor of the input text.
716-
* Dialogflow will use the language code from the
717-
first message.
711+
However, note that:
712+
* Dialogflow will bill you for the audio duration so
713+
far. * Dialogflow discards all Speech recognition
714+
results in favor of the input text.
715+
* Dialogflow will use the language code from the first
716+
message.
718717
After you sent all input, you must half-close or abort
719718
the request stream.
720719
retry (google.api_core.retry.Retry): Designation of what errors, if any,

google/cloud/dialogflowcx_v3beta1/types/agent.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,12 @@ class ExportAgentRequest(proto.Message):
269269
export the agent to. The format of this URI must be
270270
``gs://<bucket-name>/<object-name>``. If left unspecified,
271271
the serialized agent is returned inline.
272+
273+
Dialogflow performs a write operation for the Cloud Storage
274+
object on the caller's behalf, so your request
275+
authentication must have write permissions for the object.
276+
For more information, see `Dialogflow access
277+
control <https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage>`__.
272278
environment (str):
273279
Optional. Environment name. If not set, draft environment is
274280
assumed. Format:
@@ -329,6 +335,12 @@ class RestoreAgentRequest(proto.Message):
329335
restore agent from. The format of this URI must be
330336
``gs://<bucket-name>/<object-name>``.
331337
338+
Dialogflow performs a read operation for the Cloud Storage
339+
object on the caller's behalf, so your request
340+
authentication must have read permissions for the object.
341+
For more information, see `Dialogflow access
342+
control <https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage>`__.
343+
332344
This field is a member of `oneof`_ ``agent``.
333345
agent_content (bytes):
334346
Uncompressed raw byte content for agent.

google/cloud/dialogflowcx_v3beta1/types/flow.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,12 @@ class ImportFlowRequest(proto.Message):
437437
import flow from. The format of this URI must be
438438
``gs://<bucket-name>/<object-name>``.
439439
440+
Dialogflow performs a read operation for the Cloud Storage
441+
object on the caller's behalf, so your request
442+
authentication must have read permissions for the object.
443+
For more information, see `Dialogflow access
444+
control <https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage>`__.
445+
440446
This field is a member of `oneof`_ ``flow``.
441447
flow_content (bytes):
442448
Uncompressed raw byte content for flow.
@@ -485,6 +491,12 @@ class ExportFlowRequest(proto.Message):
485491
export the flow to. The format of this URI must be
486492
``gs://<bucket-name>/<object-name>``. If left unspecified,
487493
the serialized flow is returned inline.
494+
495+
Dialogflow performs a write operation for the Cloud Storage
496+
object on the caller's behalf, so your request
497+
authentication must have write permissions for the object.
498+
For more information, see `Dialogflow access
499+
control <https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage>`__.
488500
include_referenced_flows (bool):
489501
Optional. Whether to export flows referenced
490502
by the specified flow.

google/cloud/dialogflowcx_v3beta1/types/session.py

Lines changed: 34 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -170,12 +170,12 @@ class StreamingDetectIntentRequest(proto.Message):
170170
recognition, please send a message with
171171
[query_input.text][google.cloud.dialogflow.cx.v3beta1.QueryInput.text].
172172
173-
However, note that:
173+
However, note that:
174174
175-
- Dialogflow will bill you for the audio duration so far.
176-
- Dialogflow discards all Speech recognition results in favor of
177-
the input text.
178-
- Dialogflow will use the language code from the first message.
175+
- Dialogflow will bill you for the audio duration so far.
176+
- Dialogflow discards all Speech recognition results in favor of
177+
the input text.
178+
- Dialogflow will use the language code from the first message.
179179
180180
After you sent all input, you must half-close or abort the request
181181
stream.
@@ -435,18 +435,13 @@ class QueryParameters(proto.Message):
435435
436436
- MapKey type: string
437437
- MapKey value: parameter name
438-
- MapValue type:
439-
440-
- If parameter's entity type is a composite entity: map
441-
- Else: depending on parameter value type, could be one
442-
of string, number, boolean, null, list or map
443-
444-
- MapValue value:
445-
446-
- If parameter's entity type is a composite entity: map
447-
from composite entity property names to property
448-
values
449-
- Else: parameter value
438+
- MapValue type: If parameter's entity type is a composite
439+
entity then use map, otherwise, depending on the
440+
parameter value type, it could be one of string, number,
441+
boolean, null, list or map.
442+
- MapValue value: If parameter's entity type is a composite
443+
entity then use map from composite entity property names
444+
to property values, otherwise, use parameter value.
450445
current_page (str):
451446
The unique identifier of the
452447
[page][google.cloud.dialogflow.cx.v3beta1.Page] to override
@@ -622,18 +617,13 @@ class QueryResult(proto.Message):
622617
623618
- MapKey type: string
624619
- MapKey value: parameter name
625-
- MapValue type:
626-
627-
- If parameter's entity type is a composite entity: map
628-
- Else: depending on parameter value type, could be one
629-
of string, number, boolean, null, list or map
630-
631-
- MapValue value:
632-
633-
- If parameter's entity type is a composite entity: map
634-
from composite entity property names to property
635-
values
636-
- Else: parameter value
620+
- MapValue type: If parameter's entity type is a composite
621+
entity then use map, otherwise, depending on the
622+
parameter value type, it could be one of string, number,
623+
boolean, null, list or map.
624+
- MapValue value: If parameter's entity type is a composite
625+
entity then use map from composite entity property names
626+
to property values, otherwise, use parameter value.
637627
response_messages (Sequence[google.cloud.dialogflowcx_v3beta1.types.ResponseMessage]):
638628
The list of rich messages returned to the
639629
client. Responses vary from simple text messages
@@ -807,25 +797,22 @@ class Match(proto.Message):
807797
[``NO_INPUT``][google.cloud.dialogflow.cx.v3beta1.Match.MatchType]
808798
match types.
809799
parameters (google.protobuf.struct_pb2.Struct):
810-
The collection of parameters extracted from
811-
the query.
812-
Depending on your protocol or client library
813-
language, this is a map, associative array,
814-
symbol table, dictionary, or JSON object
815-
composed of a collection of (MapKey, MapValue)
800+
The collection of parameters extracted from the query.
801+
802+
Depending on your protocol or client library language, this
803+
is a map, associative array, symbol table, dictionary, or
804+
JSON object composed of a collection of (MapKey, MapValue)
816805
pairs:
817-
- MapKey type: string
818-
- MapKey value: parameter name
819-
- MapValue type:
820-
- If parameter's entity type is a
821-
composite entity: map - Else: depending on
822-
parameter value type, could be one of string,
823-
number, boolean, null, list or map
824-
- MapValue value:
825-
- If parameter's entity type is a
826-
composite entity: map from composite
827-
entity property names to property values -
828-
Else: parameter value
806+
807+
- MapKey type: string
808+
- MapKey value: parameter name
809+
- MapValue type: If parameter's entity type is a composite
810+
entity then use map, otherwise, depending on the
811+
parameter value type, it could be one of string, number,
812+
boolean, null, list or map.
813+
- MapValue value: If parameter's entity type is a composite
814+
entity then use map from composite entity property names
815+
to property values, otherwise, use parameter value.
829816
resolved_input (str):
830817
Final text input which was matched during
831818
MatchIntent. This value can be different from

google/cloud/dialogflowcx_v3beta1/types/test_case.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -818,6 +818,12 @@ class ImportTestCasesRequest(proto.Message):
818818
import test cases from. The format of this URI must be
819819
``gs://<bucket-name>/<object-name>``.
820820
821+
Dialogflow performs a read operation for the Cloud Storage
822+
object on the caller's behalf, so your request
823+
authentication must have read permissions for the object.
824+
For more information, see `Dialogflow access
825+
control <https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage>`__.
826+
821827
This field is a member of `oneof`_ ``source``.
822828
content (bytes):
823829
Uncompressed raw byte content for test cases.
@@ -888,6 +894,12 @@ class ExportTestCasesRequest(proto.Message):
888894
``gs://<bucket-name>/<object-name>``. If unspecified, the
889895
serialized test cases is returned inline.
890896
897+
Dialogflow performs a write operation for the Cloud Storage
898+
object on the caller's behalf, so your request
899+
authentication must have write permissions for the object.
900+
For more information, see `Dialogflow access
901+
control <https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage>`__.
902+
891903
This field is a member of `oneof`_ ``destination``.
892904
data_format (google.cloud.dialogflowcx_v3beta1.types.ExportTestCasesRequest.DataFormat):
893905
The data format of the exported test cases. If not

google/cloud/dialogflowcx_v3beta1/types/webhook.py

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -99,22 +99,20 @@ class GenericWebService(proto.Message):
9999
The HTTP request headers to send together
100100
with webhook requests.
101101
allowed_ca_certs (Sequence[bytes]):
102-
Optional. Specifies a list of allowed custom
103-
CA certificates (in DER format) for HTTPS
104-
verification. This overrides the default SSL
105-
trust store. If this is empty or unspecified,
106-
Dialogflow will use Google's default trust store
107-
to verify certificates.
108-
N.B. Make sure the HTTPS server certificates are
109-
signed with "subject alt name". For instance a
110-
certificate can be self-signed using the
111-
following command,
112-
openssl x509 -req -days 200 -in
113-
example.com.csr \ -signkey example.com.key
114-
\
115-
-out example.com.crt \
116-
-extfile <(printf
117-
"\nsubjectAltName='DNS:www.example.com'")
102+
Optional. Specifies a list of allowed custom CA certificates
103+
(in DER format) for HTTPS verification. This overrides the
104+
default SSL trust store. If this is empty or unspecified,
105+
Dialogflow will use Google's default trust store to verify
106+
certificates. N.B. Make sure the HTTPS server certificates
107+
are signed with "subject alt name". For instance a
108+
certificate can be self-signed using the following command,
109+
110+
::
111+
112+
openssl x509 -req -days 200 -in example.com.csr \
113+
-signkey example.com.key \
114+
-out example.com.crt \
115+
-extfile <(printf "\nsubjectAltName='DNS:www.example.com'")
118116
"""
119117

120118
uri = proto.Field(proto.STRING, number=1,)

0 commit comments

Comments
 (0)