google-cloud-dialogflow-v2 0.4.1 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +6 -6
  3. data/README.md +1 -1
  4. data/lib/google/cloud/dialogflow/v2.rb +2 -1
  5. data/lib/google/cloud/dialogflow/v2/agents.rb +5 -5
  6. data/lib/google/cloud/dialogflow/v2/agents/client.rb +212 -207
  7. data/lib/google/cloud/dialogflow/v2/agents/credentials.rb +1 -1
  8. data/lib/google/cloud/dialogflow/v2/agents/operations.rb +109 -103
  9. data/lib/google/cloud/dialogflow/v2/agents/paths.rb +2 -2
  10. data/lib/google/cloud/dialogflow/v2/contexts.rb +3 -3
  11. data/lib/google/cloud/dialogflow/v2/contexts/client.rb +148 -143
  12. data/lib/google/cloud/dialogflow/v2/contexts/credentials.rb +1 -1
  13. data/lib/google/cloud/dialogflow/v2/contexts/paths.rb +14 -14
  14. data/lib/google/cloud/dialogflow/v2/entity_types.rb +2 -2
  15. data/lib/google/cloud/dialogflow/v2/entity_types/client.rb +238 -233
  16. data/lib/google/cloud/dialogflow/v2/entity_types/credentials.rb +1 -1
  17. data/lib/google/cloud/dialogflow/v2/entity_types/operations.rb +109 -103
  18. data/lib/google/cloud/dialogflow/v2/entity_types/paths.rb +3 -3
  19. data/lib/google/cloud/dialogflow/v2/environment_pb.rb +51 -0
  20. data/lib/google/cloud/dialogflow/v2/environment_services_pb.rb +45 -0
  21. data/lib/google/cloud/dialogflow/v2/environments.rb +49 -0
  22. data/lib/google/cloud/dialogflow/v2/environments/client.rb +384 -0
  23. data/lib/google/cloud/dialogflow/v2/environments/credentials.rb +52 -0
  24. data/lib/google/cloud/dialogflow/v2/environments/paths.rb +47 -0
  25. data/lib/google/cloud/dialogflow/v2/intents.rb +3 -3
  26. data/lib/google/cloud/dialogflow/v2/intents/client.rb +183 -178
  27. data/lib/google/cloud/dialogflow/v2/intents/credentials.rb +1 -1
  28. data/lib/google/cloud/dialogflow/v2/intents/operations.rb +109 -103
  29. data/lib/google/cloud/dialogflow/v2/intents/paths.rb +11 -11
  30. data/lib/google/cloud/dialogflow/v2/session_entity_types.rb +1 -1
  31. data/lib/google/cloud/dialogflow/v2/session_entity_types/client.rb +130 -125
  32. data/lib/google/cloud/dialogflow/v2/session_entity_types/credentials.rb +1 -1
  33. data/lib/google/cloud/dialogflow/v2/session_entity_types/paths.rb +14 -14
  34. data/lib/google/cloud/dialogflow/v2/sessions.rb +3 -3
  35. data/lib/google/cloud/dialogflow/v2/sessions/client.rb +86 -81
  36. data/lib/google/cloud/dialogflow/v2/sessions/credentials.rb +1 -1
  37. data/lib/google/cloud/dialogflow/v2/sessions/paths.rb +22 -22
  38. data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
  39. data/proto_docs/google/api/resource.rb +12 -12
  40. data/proto_docs/google/cloud/dialogflow/v2/agent.rb +69 -69
  41. data/proto_docs/google/cloud/dialogflow/v2/audio_config.rb +45 -44
  42. data/proto_docs/google/cloud/dialogflow/v2/context.rb +38 -38
  43. data/proto_docs/google/cloud/dialogflow/v2/entity_type.rb +86 -86
  44. data/proto_docs/google/cloud/dialogflow/v2/environment.rb +103 -0
  45. data/proto_docs/google/cloud/dialogflow/v2/intent.rb +251 -250
  46. data/proto_docs/google/cloud/dialogflow/v2/session.rb +114 -106
  47. data/proto_docs/google/cloud/dialogflow/v2/session_entity_type.rb +35 -35
  48. data/proto_docs/google/cloud/dialogflow/v2/validation_result.rb +8 -8
  49. data/proto_docs/google/cloud/dialogflow/v2/webhook.rb +43 -36
  50. data/proto_docs/google/longrunning/operations.rb +30 -30
  51. data/proto_docs/google/protobuf/any.rb +4 -4
  52. data/proto_docs/google/protobuf/duration.rb +4 -4
  53. data/proto_docs/google/protobuf/empty.rb +2 -2
  54. data/proto_docs/google/protobuf/field_mask.rb +3 -3
  55. data/proto_docs/google/protobuf/struct.rb +18 -18
  56. data/proto_docs/google/protobuf/timestamp.rb +120 -0
  57. data/proto_docs/google/rpc/status.rb +6 -6
  58. data/proto_docs/google/type/latlng.rb +4 -4
  59. metadata +41 -6
  60. data/lib/google/cloud/common_resources_pb.rb +0 -15
@@ -29,7 +29,7 @@ module Google
29
29
  #
30
30
  # Note: session entity types apply to all queries, regardless of the language.
31
31
  # @!attribute [rw] name
32
- # @return [String]
32
+ # @return [::String]
33
33
  # Required. The unique identifier of this session entity type. Format:
34
34
  # `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
35
35
  # Display Name>`, or `projects/<Project ID>/agent/environments/<Environment
@@ -41,16 +41,16 @@ module Google
41
41
  # `<Entity Type Display Name>` must be the display name of an existing entity
42
42
  # type in the same agent that will be overridden or supplemented.
43
43
  # @!attribute [rw] entity_override_mode
44
- # @return [Google::Cloud::Dialogflow::V2::SessionEntityType::EntityOverrideMode]
44
+ # @return [::Google::Cloud::Dialogflow::V2::SessionEntityType::EntityOverrideMode]
45
45
  # Required. Indicates whether the additional data should override or
46
46
  # supplement the custom entity type definition.
47
47
  # @!attribute [rw] entities
48
- # @return [Array<Google::Cloud::Dialogflow::V2::EntityType::Entity>]
48
+ # @return [::Array<::Google::Cloud::Dialogflow::V2::EntityType::Entity>]
49
49
  # Required. The collection of entities associated with this session entity
50
50
  # type.
51
51
  class SessionEntityType
52
- include Google::Protobuf::MessageExts
53
- extend Google::Protobuf::MessageExts::ClassMethods
52
+ include ::Google::Protobuf::MessageExts
53
+ extend ::Google::Protobuf::MessageExts::ClassMethods
54
54
 
55
55
  # The types of modifications for a session entity type.
56
56
  module EntityOverrideMode
@@ -68,15 +68,15 @@ module Google
68
68
  # `GetSessionEntityType`, `CreateSessionEntityType` and
69
69
  # `UpdateSessionEntityType` only return the additional entities added in
70
70
  # this session entity type. If you want to get the supplemented list,
71
- # please call {Google::Cloud::Dialogflow::V2::EntityTypes::Client#get_entity_type EntityTypes.GetEntityType} on the custom entity type
71
+ # please call {::Google::Cloud::Dialogflow::V2::EntityTypes::Client#get_entity_type EntityTypes.GetEntityType} on the custom entity type
72
72
  # and merge.
73
73
  ENTITY_OVERRIDE_MODE_SUPPLEMENT = 2
74
74
  end
75
75
  end
76
76
 
77
- # The request message for {Google::Cloud::Dialogflow::V2::SessionEntityTypes::Client#list_session_entity_types SessionEntityTypes.ListSessionEntityTypes}.
77
+ # The request message for {::Google::Cloud::Dialogflow::V2::SessionEntityTypes::Client#list_session_entity_types SessionEntityTypes.ListSessionEntityTypes}.
78
78
  # @!attribute [rw] parent
79
- # @return [String]
79
+ # @return [::String]
80
80
  # Required. The session to list all session entity types from.
81
81
  # Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
82
82
  # `projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/
@@ -84,34 +84,34 @@ module Google
84
84
  # If `Environment ID` is not specified, we assume default 'draft'
85
85
  # environment. If `User ID` is not specified, we assume default '-' user.
86
86
  # @!attribute [rw] page_size
87
- # @return [Integer]
87
+ # @return [::Integer]
88
88
  # Optional. The maximum number of items to return in a single page. By
89
89
  # default 100 and at most 1000.
90
90
  # @!attribute [rw] page_token
91
- # @return [String]
91
+ # @return [::String]
92
92
  # Optional. The next_page_token value returned from a previous list request.
93
93
  class ListSessionEntityTypesRequest
94
- include Google::Protobuf::MessageExts
95
- extend Google::Protobuf::MessageExts::ClassMethods
94
+ include ::Google::Protobuf::MessageExts
95
+ extend ::Google::Protobuf::MessageExts::ClassMethods
96
96
  end
97
97
 
98
- # The response message for {Google::Cloud::Dialogflow::V2::SessionEntityTypes::Client#list_session_entity_types SessionEntityTypes.ListSessionEntityTypes}.
98
+ # The response message for {::Google::Cloud::Dialogflow::V2::SessionEntityTypes::Client#list_session_entity_types SessionEntityTypes.ListSessionEntityTypes}.
99
99
  # @!attribute [rw] session_entity_types
100
- # @return [Array<Google::Cloud::Dialogflow::V2::SessionEntityType>]
100
+ # @return [::Array<::Google::Cloud::Dialogflow::V2::SessionEntityType>]
101
101
  # The list of session entity types. There will be a maximum number of items
102
102
  # returned based on the page_size field in the request.
103
103
  # @!attribute [rw] next_page_token
104
- # @return [String]
104
+ # @return [::String]
105
105
  # Token to retrieve the next page of results, or empty if there are no
106
106
  # more results in the list.
107
107
  class ListSessionEntityTypesResponse
108
- include Google::Protobuf::MessageExts
109
- extend Google::Protobuf::MessageExts::ClassMethods
108
+ include ::Google::Protobuf::MessageExts
109
+ extend ::Google::Protobuf::MessageExts::ClassMethods
110
110
  end
111
111
 
112
- # The request message for {Google::Cloud::Dialogflow::V2::SessionEntityTypes::Client#get_session_entity_type SessionEntityTypes.GetSessionEntityType}.
112
+ # The request message for {::Google::Cloud::Dialogflow::V2::SessionEntityTypes::Client#get_session_entity_type SessionEntityTypes.GetSessionEntityType}.
113
113
  # @!attribute [rw] name
114
- # @return [String]
114
+ # @return [::String]
115
115
  # Required. The name of the session entity type. Format:
116
116
  # `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
117
117
  # Display Name>` or `projects/<Project ID>/agent/environments/<Environment
@@ -120,13 +120,13 @@ module Google
120
120
  # If `Environment ID` is not specified, we assume default 'draft'
121
121
  # environment. If `User ID` is not specified, we assume default '-' user.
122
122
  class GetSessionEntityTypeRequest
123
- include Google::Protobuf::MessageExts
124
- extend Google::Protobuf::MessageExts::ClassMethods
123
+ include ::Google::Protobuf::MessageExts
124
+ extend ::Google::Protobuf::MessageExts::ClassMethods
125
125
  end
126
126
 
127
- # The request message for {Google::Cloud::Dialogflow::V2::SessionEntityTypes::Client#create_session_entity_type SessionEntityTypes.CreateSessionEntityType}.
127
+ # The request message for {::Google::Cloud::Dialogflow::V2::SessionEntityTypes::Client#create_session_entity_type SessionEntityTypes.CreateSessionEntityType}.
128
128
  # @!attribute [rw] parent
129
- # @return [String]
129
+ # @return [::String]
130
130
  # Required. The session to create a session entity type for.
131
131
  # Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
132
132
  # `projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/
@@ -134,28 +134,28 @@ module Google
134
134
  # If `Environment ID` is not specified, we assume default 'draft'
135
135
  # environment. If `User ID` is not specified, we assume default '-' user.
136
136
  # @!attribute [rw] session_entity_type
137
- # @return [Google::Cloud::Dialogflow::V2::SessionEntityType]
137
+ # @return [::Google::Cloud::Dialogflow::V2::SessionEntityType]
138
138
  # Required. The session entity type to create.
139
139
  class CreateSessionEntityTypeRequest
140
- include Google::Protobuf::MessageExts
141
- extend Google::Protobuf::MessageExts::ClassMethods
140
+ include ::Google::Protobuf::MessageExts
141
+ extend ::Google::Protobuf::MessageExts::ClassMethods
142
142
  end
143
143
 
144
- # The request message for {Google::Cloud::Dialogflow::V2::SessionEntityTypes::Client#update_session_entity_type SessionEntityTypes.UpdateSessionEntityType}.
144
+ # The request message for {::Google::Cloud::Dialogflow::V2::SessionEntityTypes::Client#update_session_entity_type SessionEntityTypes.UpdateSessionEntityType}.
145
145
  # @!attribute [rw] session_entity_type
146
- # @return [Google::Cloud::Dialogflow::V2::SessionEntityType]
146
+ # @return [::Google::Cloud::Dialogflow::V2::SessionEntityType]
147
147
  # Required. The session entity type to update.
148
148
  # @!attribute [rw] update_mask
149
- # @return [Google::Protobuf::FieldMask]
149
+ # @return [::Google::Protobuf::FieldMask]
150
150
  # Optional. The mask to control which fields get updated.
151
151
  class UpdateSessionEntityTypeRequest
152
- include Google::Protobuf::MessageExts
153
- extend Google::Protobuf::MessageExts::ClassMethods
152
+ include ::Google::Protobuf::MessageExts
153
+ extend ::Google::Protobuf::MessageExts::ClassMethods
154
154
  end
155
155
 
156
- # The request message for {Google::Cloud::Dialogflow::V2::SessionEntityTypes::Client#delete_session_entity_type SessionEntityTypes.DeleteSessionEntityType}.
156
+ # The request message for {::Google::Cloud::Dialogflow::V2::SessionEntityTypes::Client#delete_session_entity_type SessionEntityTypes.DeleteSessionEntityType}.
157
157
  # @!attribute [rw] name
158
- # @return [String]
158
+ # @return [::String]
159
159
  # Required. The name of the entity type to delete. Format:
160
160
  # `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
161
161
  # Display Name>` or `projects/<Project ID>/agent/environments/<Environment
@@ -164,8 +164,8 @@ module Google
164
164
  # If `Environment ID` is not specified, we assume default 'draft'
165
165
  # environment. If `User ID` is not specified, we assume default '-' user.
166
166
  class DeleteSessionEntityTypeRequest
167
- include Google::Protobuf::MessageExts
168
- extend Google::Protobuf::MessageExts::ClassMethods
167
+ include ::Google::Protobuf::MessageExts
168
+ extend ::Google::Protobuf::MessageExts::ClassMethods
169
169
  end
170
170
  end
171
171
  end
@@ -23,10 +23,10 @@ module Google
23
23
  module V2
24
24
  # Represents a single validation error.
25
25
  # @!attribute [rw] severity
26
- # @return [Google::Cloud::Dialogflow::V2::ValidationError::Severity]
26
+ # @return [::Google::Cloud::Dialogflow::V2::ValidationError::Severity]
27
27
  # The severity of the error.
28
28
  # @!attribute [rw] entries
29
- # @return [Array<String>]
29
+ # @return [::Array<::String>]
30
30
  # The names of the entries that the error is associated with.
31
31
  # Format:
32
32
  #
@@ -42,11 +42,11 @@ module Google
42
42
  # - "projects/<Project ID>/agent/entities/<Entity ID>", if the error is
43
43
  # associated with certain entities.
44
44
  # @!attribute [rw] error_message
45
- # @return [String]
45
+ # @return [::String]
46
46
  # The detailed error messsage.
47
47
  class ValidationError
48
- include Google::Protobuf::MessageExts
49
- extend Google::Protobuf::MessageExts::ClassMethods
48
+ include ::Google::Protobuf::MessageExts
49
+ extend ::Google::Protobuf::MessageExts::ClassMethods
50
50
 
51
51
  # Represents a level of severity.
52
52
  module Severity
@@ -69,11 +69,11 @@ module Google
69
69
 
70
70
  # Represents the output of agent validation.
71
71
  # @!attribute [rw] validation_errors
72
- # @return [Array<Google::Cloud::Dialogflow::V2::ValidationError>]
72
+ # @return [::Array<::Google::Cloud::Dialogflow::V2::ValidationError>]
73
73
  # Contains all validation errors.
74
74
  class ValidationResult
75
- include Google::Protobuf::MessageExts
76
- extend Google::Protobuf::MessageExts::ClassMethods
75
+ include ::Google::Protobuf::MessageExts
76
+ extend ::Google::Protobuf::MessageExts::ClassMethods
77
77
  end
78
78
  end
79
79
  end
@@ -23,33 +23,33 @@ module Google
23
23
  module V2
24
24
  # The request message for a webhook call.
25
25
  # @!attribute [rw] session
26
- # @return [String]
26
+ # @return [::String]
27
27
  # The unique identifier of detectIntent request session.
28
28
  # Can be used to identify end-user inside webhook implementation.
29
29
  # Format: `projects/<Project ID>/agent/sessions/<Session ID>`, or
30
30
  # `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
31
31
  # ID>/sessions/<Session ID>`.
32
32
  # @!attribute [rw] response_id
33
- # @return [String]
33
+ # @return [::String]
34
34
  # The unique identifier of the response. Contains the same value as
35
35
  # `[Streaming]DetectIntentResponse.response_id`.
36
36
  # @!attribute [rw] query_result
37
- # @return [Google::Cloud::Dialogflow::V2::QueryResult]
37
+ # @return [::Google::Cloud::Dialogflow::V2::QueryResult]
38
38
  # The result of the conversational query or event processing. Contains the
39
39
  # same value as `[Streaming]DetectIntentResponse.query_result`.
40
40
  # @!attribute [rw] original_detect_intent_request
41
- # @return [Google::Cloud::Dialogflow::V2::OriginalDetectIntentRequest]
41
+ # @return [::Google::Cloud::Dialogflow::V2::OriginalDetectIntentRequest]
42
42
  # Optional. The contents of the original request that was passed to
43
43
  # `[Streaming]DetectIntent` call.
44
44
  class WebhookRequest
45
- include Google::Protobuf::MessageExts
46
- extend Google::Protobuf::MessageExts::ClassMethods
45
+ include ::Google::Protobuf::MessageExts
46
+ extend ::Google::Protobuf::MessageExts::ClassMethods
47
47
  end
48
48
 
49
49
  # The response message for a webhook call.
50
50
  #
51
51
  # This response is validated by the Dialogflow server. If validation fails,
52
- # an error will be returned in the {Google::Cloud::Dialogflow::V2::QueryResult#diagnostic_info QueryResult.diagnostic_info} field.
52
+ # an error will be returned in the {::Google::Cloud::Dialogflow::V2::QueryResult#diagnostic_info QueryResult.diagnostic_info} field.
53
53
  # Setting JSON fields to an empty value with the wrong type is a common error.
54
54
  # To avoid this error:
55
55
  #
@@ -61,22 +61,28 @@ module Google
61
61
  # [Protocol Buffers Language
62
62
  # Guide](https://developers.google.com/protocol-buffers/docs/proto3#json).
63
63
  # @!attribute [rw] fulfillment_text
64
- # @return [String]
65
- # Optional. The text to be shown on the screen. This value is passed directly
66
- # to `QueryResult.fulfillment_text`.
64
+ # @return [::String]
65
+ # Optional. The text response message intended for the end-user.
66
+ # It is recommended to use `fulfillment_messages.text.text[0]` instead.
67
+ # When provided, Dialogflow uses this field to populate
68
+ # {::Google::Cloud::Dialogflow::V2::QueryResult#fulfillment_text QueryResult.fulfillment_text} sent to the integration or API caller.
67
69
  # @!attribute [rw] fulfillment_messages
68
- # @return [Array<Google::Cloud::Dialogflow::V2::Intent::Message>]
69
- # Optional. The collection of rich messages to present to the user. This
70
- # value is passed directly to `QueryResult.fulfillment_messages`.
70
+ # @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message>]
71
+ # Optional. The rich response messages intended for the end-user.
72
+ # When provided, Dialogflow uses this field to populate
73
+ # {::Google::Cloud::Dialogflow::V2::QueryResult#fulfillment_messages QueryResult.fulfillment_messages} sent to the integration or API caller.
71
74
  # @!attribute [rw] source
72
- # @return [String]
73
- # Optional. This value is passed directly to `QueryResult.webhook_source`.
75
+ # @return [::String]
76
+ # Optional. A custom field used to identify the webhook source.
77
+ # Arbitrary strings are supported.
78
+ # When provided, Dialogflow uses this field to populate
79
+ # {::Google::Cloud::Dialogflow::V2::QueryResult#webhook_source QueryResult.webhook_source} sent to the integration or API caller.
74
80
  # @!attribute [rw] payload
75
- # @return [Google::Protobuf::Struct]
76
- # Optional. This field can be used to pass custom data from your webhook to the API
77
- # caller. Arbitrary JSON objects are supported.
81
+ # @return [::Google::Protobuf::Struct]
82
+ # Optional. This field can be used to pass custom data from your webhook to the
83
+ # integration or API caller. Arbitrary JSON objects are supported.
78
84
  # When provided, Dialogflow uses this field to populate
79
- # `QueryResult.webhook_payload` sent to the API caller.
85
+ # {::Google::Cloud::Dialogflow::V2::QueryResult#webhook_payload QueryResult.webhook_payload} sent to the integration or API caller.
80
86
  # This field is also used by the
81
87
  # [Google Assistant
82
88
  # integration](https://cloud.google.com/dialogflow/docs/integrations/aog)
@@ -84,39 +90,40 @@ module Google
84
90
  # See the format definition at [Google Assistant Dialogflow webhook
85
91
  # format](https://developers.google.com/assistant/actions/build/json/dialogflow-webhook-json)
86
92
  # @!attribute [rw] output_contexts
87
- # @return [Array<Google::Cloud::Dialogflow::V2::Context>]
88
- # Optional. The collection of output contexts. This value is passed directly
89
- # to `QueryResult.output_contexts`.
93
+ # @return [::Array<::Google::Cloud::Dialogflow::V2::Context>]
94
+ # Optional. The collection of output contexts that will overwrite currently
95
+ # active contexts for the session and reset their lifespans.
96
+ # When provided, Dialogflow uses this field to populate
97
+ # {::Google::Cloud::Dialogflow::V2::QueryResult#output_contexts QueryResult.output_contexts} sent to the integration or API caller.
90
98
  # @!attribute [rw] followup_event_input
91
- # @return [Google::Cloud::Dialogflow::V2::EventInput]
92
- # Optional. Makes the platform immediately invoke another `DetectIntent` call
93
- # internally with the specified event as input.
99
+ # @return [::Google::Cloud::Dialogflow::V2::EventInput]
100
+ # Optional. Invokes the supplied events.
94
101
  # When this field is set, Dialogflow ignores the `fulfillment_text`,
95
102
  # `fulfillment_messages`, and `payload` fields.
96
103
  # @!attribute [rw] session_entity_types
97
- # @return [Array<Google::Cloud::Dialogflow::V2::SessionEntityType>]
104
+ # @return [::Array<::Google::Cloud::Dialogflow::V2::SessionEntityType>]
98
105
  # Optional. Additional session entity types to replace or extend developer
99
106
  # entity types with. The entity synonyms apply to all languages and persist
100
- # for the session of this query. Setting the session entity types inside
101
- # webhook overwrites the session entity types that have been set through
102
- # `DetectIntentRequest.query_params.session_entity_types`.
107
+ # for the session. Setting this data from a webhook overwrites
108
+ # the session entity types that have been set using `detectIntent`,
109
+ # `streamingDetectIntent` or {::Google::Cloud::Dialogflow::V2::SessionEntityType SessionEntityType} management methods.
103
110
  class WebhookResponse
104
- include Google::Protobuf::MessageExts
105
- extend Google::Protobuf::MessageExts::ClassMethods
111
+ include ::Google::Protobuf::MessageExts
112
+ extend ::Google::Protobuf::MessageExts::ClassMethods
106
113
  end
107
114
 
108
115
  # Represents the contents of the original request that was passed to
109
116
  # the `[Streaming]DetectIntent` call.
110
117
  # @!attribute [rw] source
111
- # @return [String]
118
+ # @return [::String]
112
119
  # The source of this request, e.g., `google`, `facebook`, `slack`. It is set
113
120
  # by Dialogflow-owned servers.
114
121
  # @!attribute [rw] version
115
- # @return [String]
122
+ # @return [::String]
116
123
  # Optional. The version of the protocol used for this request.
117
124
  # This field is AoG-specific.
118
125
  # @!attribute [rw] payload
119
- # @return [Google::Protobuf::Struct]
126
+ # @return [::Google::Protobuf::Struct]
120
127
  # Optional. This field is set to the value of the `QueryParameters.payload`
121
128
  # field passed in the request. Some integrations that query a Dialogflow
122
129
  # agent may provide additional information in the payload.
@@ -132,8 +139,8 @@ module Google
132
139
  # Edition agents and populated with the caller ID in [E.164
133
140
  # format](https://en.wikipedia.org/wiki/E.164) for Enterprise Edition agents.
134
141
  class OriginalDetectIntentRequest
135
- include Google::Protobuf::MessageExts
136
- extend Google::Protobuf::MessageExts::ClassMethods
142
+ include ::Google::Protobuf::MessageExts
143
+ extend ::Google::Protobuf::MessageExts::ClassMethods
137
144
  end
138
145
  end
139
146
  end
@@ -22,26 +22,26 @@ module Google
22
22
  # This resource represents a long-running operation that is the result of a
23
23
  # network API call.
24
24
  # @!attribute [rw] name
25
- # @return [String]
25
+ # @return [::String]
26
26
  # The server-assigned name, which is only unique within the same service that
27
27
  # originally returns it. If you use the default HTTP mapping, the
28
28
  # `name` should have the format of `operations/some/unique/name`.
29
29
  # @!attribute [rw] metadata
30
- # @return [Google::Protobuf::Any]
30
+ # @return [::Google::Protobuf::Any]
31
31
  # Service-specific metadata associated with the operation. It typically
32
32
  # contains progress information and common metadata such as create time.
33
33
  # Some services might not provide such metadata. Any method that returns a
34
34
  # long-running operation should document the metadata type, if any.
35
35
  # @!attribute [rw] done
36
- # @return [Boolean]
36
+ # @return [::Boolean]
37
37
  # If the value is `false`, it means the operation is still in progress.
38
38
  # If true, the operation is completed, and either `error` or `response` is
39
39
  # available.
40
40
  # @!attribute [rw] error
41
- # @return [Google::Rpc::Status]
41
+ # @return [::Google::Rpc::Status]
42
42
  # The error result of the operation in case of failure or cancellation.
43
43
  # @!attribute [rw] response
44
- # @return [Google::Protobuf::Any]
44
+ # @return [::Google::Protobuf::Any]
45
45
  # The normal response of the operation in case of success. If the original
46
46
  # method returns no data on success, such as `Delete`, the response is
47
47
  # `google.protobuf.Empty`. If the original method is standard
@@ -51,65 +51,65 @@ module Google
51
51
  # is `TakeSnapshot()`, the inferred response type is
52
52
  # `TakeSnapshotResponse`.
53
53
  class Operation
54
- include Google::Protobuf::MessageExts
55
- extend Google::Protobuf::MessageExts::ClassMethods
54
+ include ::Google::Protobuf::MessageExts
55
+ extend ::Google::Protobuf::MessageExts::ClassMethods
56
56
  end
57
57
 
58
58
  # The request message for Operations.GetOperation.
59
59
  # @!attribute [rw] name
60
- # @return [String]
60
+ # @return [::String]
61
61
  # The name of the operation resource.
62
62
  class GetOperationRequest
63
- include Google::Protobuf::MessageExts
64
- extend Google::Protobuf::MessageExts::ClassMethods
63
+ include ::Google::Protobuf::MessageExts
64
+ extend ::Google::Protobuf::MessageExts::ClassMethods
65
65
  end
66
66
 
67
67
  # The request message for Operations.ListOperations.
68
68
  # @!attribute [rw] name
69
- # @return [String]
69
+ # @return [::String]
70
70
  # The name of the operation collection.
71
71
  # @!attribute [rw] filter
72
- # @return [String]
72
+ # @return [::String]
73
73
  # The standard list filter.
74
74
  # @!attribute [rw] page_size
75
- # @return [Integer]
75
+ # @return [::Integer]
76
76
  # The standard list page size.
77
77
  # @!attribute [rw] page_token
78
- # @return [String]
78
+ # @return [::String]
79
79
  # The standard list page token.
80
80
  class ListOperationsRequest
81
- include Google::Protobuf::MessageExts
82
- extend Google::Protobuf::MessageExts::ClassMethods
81
+ include ::Google::Protobuf::MessageExts
82
+ extend ::Google::Protobuf::MessageExts::ClassMethods
83
83
  end
84
84
 
85
85
  # The response message for Operations.ListOperations.
86
86
  # @!attribute [rw] operations
87
- # @return [Array<Google::Longrunning::Operation>]
87
+ # @return [::Array<::Google::Longrunning::Operation>]
88
88
  # A list of operations that matches the specified filter in the request.
89
89
  # @!attribute [rw] next_page_token
90
- # @return [String]
90
+ # @return [::String]
91
91
  # The standard List next-page token.
92
92
  class ListOperationsResponse
93
- include Google::Protobuf::MessageExts
94
- extend Google::Protobuf::MessageExts::ClassMethods
93
+ include ::Google::Protobuf::MessageExts
94
+ extend ::Google::Protobuf::MessageExts::ClassMethods
95
95
  end
96
96
 
97
97
  # The request message for Operations.CancelOperation.
98
98
  # @!attribute [rw] name
99
- # @return [String]
99
+ # @return [::String]
100
100
  # The name of the operation resource to be cancelled.
101
101
  class CancelOperationRequest
102
- include Google::Protobuf::MessageExts
103
- extend Google::Protobuf::MessageExts::ClassMethods
102
+ include ::Google::Protobuf::MessageExts
103
+ extend ::Google::Protobuf::MessageExts::ClassMethods
104
104
  end
105
105
 
106
106
  # The request message for Operations.DeleteOperation.
107
107
  # @!attribute [rw] name
108
- # @return [String]
108
+ # @return [::String]
109
109
  # The name of the operation resource to be deleted.
110
110
  class DeleteOperationRequest
111
- include Google::Protobuf::MessageExts
112
- extend Google::Protobuf::MessageExts::ClassMethods
111
+ include ::Google::Protobuf::MessageExts
112
+ extend ::Google::Protobuf::MessageExts::ClassMethods
113
113
  end
114
114
 
115
115
  # A message representing the message types used by a long-running operation.
@@ -124,7 +124,7 @@ module Google
124
124
  # };
125
125
  # }
126
126
  # @!attribute [rw] response_type
127
- # @return [String]
127
+ # @return [::String]
128
128
  # Required. The message name of the primary return type for this
129
129
  # long-running operation.
130
130
  # This type will be used to deserialize the LRO's response.
@@ -134,7 +134,7 @@ module Google
134
134
  #
135
135
  # Note: Altering this value constitutes a breaking change.
136
136
  # @!attribute [rw] metadata_type
137
- # @return [String]
137
+ # @return [::String]
138
138
  # Required. The message name of the metadata type for this long-running
139
139
  # operation.
140
140
  #
@@ -143,8 +143,8 @@ module Google
143
143
  #
144
144
  # Note: Altering this value constitutes a breaking change.
145
145
  class OperationInfo
146
- include Google::Protobuf::MessageExts
147
- extend Google::Protobuf::MessageExts::ClassMethods
146
+ include ::Google::Protobuf::MessageExts
147
+ extend ::Google::Protobuf::MessageExts::ClassMethods
148
148
  end
149
149
  end
150
150
  end