@@ -100,9 +100,12 @@ message DetectIntentRequest {
100
100
//
101
101
// For more information, see the [API interactions
102
102
// guide](https://cloud.google.com/dialogflow/docs/api-overview).
103
- string session = 1 [(google.api.resource_reference ) = {
104
- type : "dialogflow.googleapis.com/Session"
105
- }];
103
+ string session = 1 [
104
+ (google.api.field_behavior ) = REQUIRED ,
105
+ (google.api.resource_reference ) = {
106
+ type : "dialogflow.googleapis.com/Session"
107
+ }
108
+ ];
106
109
107
110
// The parameters of this query.
108
111
QueryParameters query_params = 2 ;
@@ -115,7 +118,7 @@ message DetectIntentRequest {
115
118
// 2. a conversational query in the form of text, or
116
119
//
117
120
// 3. an event that specifies which intent to trigger.
118
- QueryInput query_input = 3 ;
121
+ QueryInput query_input = 3 [ (google.api .field_behavior ) = REQUIRED ] ;
119
122
120
123
// Instructs the speech synthesizer how to generate the output
121
124
// audio. If this field is not set and agent-level speech synthesizer is not
@@ -470,7 +473,7 @@ message StreamingDetectIntentRequest {
470
473
//
471
474
// For more information, see the [API interactions
472
475
// guide](https://cloud.google.com/dialogflow/docs/api-overview).
473
- string session = 1 ;
476
+ string session = 1 [ (google.api .field_behavior ) = REQUIRED ] ;
474
477
475
478
// The parameters of this query.
476
479
QueryParameters query_params = 2 ;
@@ -483,7 +486,7 @@ message StreamingDetectIntentRequest {
483
486
// 2. a conversational query in the form of text, or
484
487
//
485
488
// 3. an event that specifies which intent to trigger.
486
- QueryInput query_input = 3 ;
489
+ QueryInput query_input = 3 [ (google.api .field_behavior ) = REQUIRED ] ;
487
490
488
491
// DEPRECATED. Please use [InputAudioConfig.single_utterance][google.cloud.dialogflow.v2beta1.InputAudioConfig.single_utterance] instead.
489
492
// If `false` (default), recognition does not cease until the
0 commit comments