google-cloud-discovery_engine-v1 0.a → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +149 -0
  4. data/README.md +144 -8
  5. data/lib/google/cloud/discovery_engine/v1/completion_service/client.rb +451 -0
  6. data/lib/google/cloud/discovery_engine/v1/completion_service/credentials.rb +47 -0
  7. data/lib/google/cloud/discovery_engine/v1/completion_service/paths.rb +78 -0
  8. data/lib/google/cloud/discovery_engine/v1/completion_service/rest/client.rb +408 -0
  9. data/lib/google/cloud/discovery_engine/v1/completion_service/rest/service_stub.rb +114 -0
  10. data/lib/google/cloud/discovery_engine/v1/completion_service/rest.rb +52 -0
  11. data/lib/google/cloud/discovery_engine/v1/completion_service.rb +55 -0
  12. data/lib/google/cloud/discovery_engine/v1/conversational_search_service/client.rb +959 -0
  13. data/lib/google/cloud/discovery_engine/v1/conversational_search_service/credentials.rb +47 -0
  14. data/lib/google/cloud/discovery_engine/v1/conversational_search_service/paths.rb +176 -0
  15. data/lib/google/cloud/discovery_engine/v1/conversational_search_service/rest/client.rb +797 -0
  16. data/lib/google/cloud/discovery_engine/v1/conversational_search_service/rest/service_stub.rb +450 -0
  17. data/lib/google/cloud/discovery_engine/v1/conversational_search_service/rest.rb +52 -0
  18. data/lib/google/cloud/discovery_engine/v1/conversational_search_service.rb +55 -0
  19. data/lib/google/cloud/discovery_engine/v1/document_service/client.rb +1170 -0
  20. data/lib/google/cloud/discovery_engine/v1/document_service/credentials.rb +47 -0
  21. data/lib/google/cloud/discovery_engine/v1/document_service/operations.rb +770 -0
  22. data/lib/google/cloud/discovery_engine/v1/document_service/paths.rb +135 -0
  23. data/lib/google/cloud/discovery_engine/v1/document_service/rest/client.rb +971 -0
  24. data/lib/google/cloud/discovery_engine/v1/document_service/rest/operations.rb +977 -0
  25. data/lib/google/cloud/discovery_engine/v1/document_service/rest/service_stub.rb +518 -0
  26. data/lib/google/cloud/discovery_engine/v1/document_service/rest.rb +54 -0
  27. data/lib/google/cloud/discovery_engine/v1/document_service.rb +57 -0
  28. data/lib/google/cloud/discovery_engine/v1/rest.rb +42 -0
  29. data/lib/google/cloud/discovery_engine/v1/schema_service/client.rb +853 -0
  30. data/lib/google/cloud/discovery_engine/v1/schema_service/credentials.rb +47 -0
  31. data/lib/google/cloud/discovery_engine/v1/schema_service/operations.rb +770 -0
  32. data/lib/google/cloud/discovery_engine/v1/schema_service/paths.rb +127 -0
  33. data/lib/google/cloud/discovery_engine/v1/schema_service/rest/client.rb +693 -0
  34. data/lib/google/cloud/discovery_engine/v1/schema_service/rest/operations.rb +977 -0
  35. data/lib/google/cloud/discovery_engine/v1/schema_service/rest/service_stub.rb +382 -0
  36. data/lib/google/cloud/discovery_engine/v1/schema_service/rest.rb +53 -0
  37. data/lib/google/cloud/discovery_engine/v1/schema_service.rb +56 -0
  38. data/lib/google/cloud/discovery_engine/v1/search_service/client.rb +529 -0
  39. data/lib/google/cloud/discovery_engine/v1/search_service/credentials.rb +47 -0
  40. data/lib/google/cloud/discovery_engine/v1/search_service/paths.rb +131 -0
  41. data/lib/google/cloud/discovery_engine/v1/search_service/rest/client.rb +481 -0
  42. data/lib/google/cloud/discovery_engine/v1/search_service/rest/service_stub.rb +116 -0
  43. data/lib/google/cloud/discovery_engine/v1/search_service/rest.rb +52 -0
  44. data/lib/google/cloud/discovery_engine/v1/search_service.rb +55 -0
  45. data/lib/google/cloud/discovery_engine/v1/user_event_service/client.rb +654 -0
  46. data/lib/google/cloud/discovery_engine/v1/user_event_service/credentials.rb +47 -0
  47. data/lib/google/cloud/discovery_engine/v1/user_event_service/operations.rb +770 -0
  48. data/lib/google/cloud/discovery_engine/v1/user_event_service/paths.rb +131 -0
  49. data/lib/google/cloud/discovery_engine/v1/user_event_service/rest/client.rb +558 -0
  50. data/lib/google/cloud/discovery_engine/v1/user_event_service/rest/operations.rb +977 -0
  51. data/lib/google/cloud/discovery_engine/v1/user_event_service/rest/service_stub.rb +250 -0
  52. data/lib/google/cloud/discovery_engine/v1/user_event_service/rest.rb +53 -0
  53. data/lib/google/cloud/discovery_engine/v1/user_event_service.rb +56 -0
  54. data/lib/google/cloud/discovery_engine/v1/version.rb +7 -2
  55. data/lib/google/cloud/discovery_engine/v1.rb +50 -0
  56. data/lib/google/cloud/discoveryengine/v1/common_pb.rb +46 -0
  57. data/lib/google/cloud/discoveryengine/v1/completion_service_pb.rb +49 -0
  58. data/lib/google/cloud/discoveryengine/v1/completion_service_services_pb.rb +45 -0
  59. data/lib/google/cloud/discoveryengine/v1/conversation_pb.rb +54 -0
  60. data/lib/google/cloud/discoveryengine/v1/conversational_search_service_pb.rb +61 -0
  61. data/lib/google/cloud/discoveryengine/v1/conversational_search_service_services_pb.rb +67 -0
  62. data/lib/google/cloud/discoveryengine/v1/document_pb.rb +48 -0
  63. data/lib/google/cloud/discoveryengine/v1/document_service_pb.rb +58 -0
  64. data/lib/google/cloud/discoveryengine/v1/document_service_services_pb.rb +79 -0
  65. data/lib/google/cloud/discoveryengine/v1/import_config_pb.rb +66 -0
  66. data/lib/google/cloud/discoveryengine/v1/purge_config_pb.rb +49 -0
  67. data/lib/google/cloud/discoveryengine/v1/schema_pb.rb +47 -0
  68. data/lib/google/cloud/discoveryengine/v1/schema_service_pb.rb +61 -0
  69. data/lib/google/cloud/discoveryengine/v1/schema_service_services_pb.rb +53 -0
  70. data/lib/google/cloud/discoveryengine/v1/search_service_pb.rb +73 -0
  71. data/lib/google/cloud/discoveryengine/v1/search_service_services_pb.rb +45 -0
  72. data/lib/google/cloud/discoveryengine/v1/user_event_pb.rb +58 -0
  73. data/lib/google/cloud/discoveryengine/v1/user_event_service_pb.rb +53 -0
  74. data/lib/google/cloud/discoveryengine/v1/user_event_service_services_pb.rb +59 -0
  75. data/lib/google-cloud-discovery_engine-v1.rb +21 -0
  76. data/proto_docs/README.md +4 -0
  77. data/proto_docs/google/api/client.rb +381 -0
  78. data/proto_docs/google/api/field_behavior.rb +85 -0
  79. data/proto_docs/google/api/httpbody.rb +80 -0
  80. data/proto_docs/google/api/launch_stage.rb +71 -0
  81. data/proto_docs/google/api/resource.rb +222 -0
  82. data/proto_docs/google/cloud/discoveryengine/v1/common.rb +106 -0
  83. data/proto_docs/google/cloud/discoveryengine/v1/completion_service.rb +111 -0
  84. data/proto_docs/google/cloud/discoveryengine/v1/conversation.rb +113 -0
  85. data/proto_docs/google/cloud/discoveryengine/v1/conversational_search_service.rb +206 -0
  86. data/proto_docs/google/cloud/discoveryengine/v1/document.rb +108 -0
  87. data/proto_docs/google/cloud/discoveryengine/v1/document_service.rb +181 -0
  88. data/proto_docs/google/cloud/discoveryengine/v1/import_config.rb +340 -0
  89. data/proto_docs/google/cloud/discoveryengine/v1/purge_config.rb +84 -0
  90. data/proto_docs/google/cloud/discoveryengine/v1/schema.rb +45 -0
  91. data/proto_docs/google/cloud/discoveryengine/v1/schema_service.rb +177 -0
  92. data/proto_docs/google/cloud/discoveryengine/v1/search_service.rb +730 -0
  93. data/proto_docs/google/cloud/discoveryengine/v1/user_event.rb +478 -0
  94. data/proto_docs/google/cloud/discoveryengine/v1/user_event_service.rb +64 -0
  95. data/proto_docs/google/longrunning/operations.rb +164 -0
  96. data/proto_docs/google/protobuf/any.rb +144 -0
  97. data/proto_docs/google/protobuf/duration.rb +98 -0
  98. data/proto_docs/google/protobuf/empty.rb +34 -0
  99. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  100. data/proto_docs/google/protobuf/struct.rb +96 -0
  101. data/proto_docs/google/protobuf/timestamp.rb +127 -0
  102. data/proto_docs/google/rpc/status.rb +48 -0
  103. data/proto_docs/google/type/date.rb +53 -0
  104. metadata +277 -13
@@ -0,0 +1,206 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module DiscoveryEngine
23
+ module V1
24
+ # Request message for
25
+ # {::Google::Cloud::DiscoveryEngine::V1::ConversationalSearchService::Client#converse_conversation ConversationalSearchService.ConverseConversation}
26
+ # method.
27
+ # @!attribute [rw] name
28
+ # @return [::String]
29
+ # Required. The resource name of the Conversation to get. Format:
30
+ # `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`.
31
+ # Use
32
+ # `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/-`
33
+ # to activate auto session mode, which automatically creates a new
34
+ # conversation inside a ConverseConversation session.
35
+ # @!attribute [rw] query
36
+ # @return [::Google::Cloud::DiscoveryEngine::V1::TextInput]
37
+ # Required. Current user input.
38
+ # @!attribute [rw] serving_config
39
+ # @return [::String]
40
+ # The resource name of the Serving Config to use. Format:
41
+ # `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`
42
+ # If this is not set, the default serving config will be used.
43
+ # @!attribute [rw] conversation
44
+ # @return [::Google::Cloud::DiscoveryEngine::V1::Conversation]
45
+ # The conversation to be used by auto session only. The name field will be
46
+ # ignored as we automatically assign new name for the conversation in auto
47
+ # session.
48
+ # @!attribute [rw] safe_search
49
+ # @return [::Boolean]
50
+ # Whether to turn on safe search.
51
+ # @!attribute [rw] user_labels
52
+ # @return [::Google::Protobuf::Map{::String => ::String}]
53
+ # The user labels applied to a resource must meet the following requirements:
54
+ #
55
+ # * Each resource can have multiple labels, up to a maximum of 64.
56
+ # * Each label must be a key-value pair.
57
+ # * Keys have a minimum length of 1 character and a maximum length of 63
58
+ # characters and cannot be empty. Values can be empty and have a maximum
59
+ # length of 63 characters.
60
+ # * Keys and values can contain only lowercase letters, numeric characters,
61
+ # underscores, and dashes. All characters must use UTF-8 encoding, and
62
+ # international characters are allowed.
63
+ # * The key portion of a label must be unique. However, you can use the same
64
+ # key with multiple resources.
65
+ # * Keys must start with a lowercase letter or international character.
66
+ #
67
+ # See [Google Cloud
68
+ # Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
69
+ # for more details.
70
+ # @!attribute [rw] summary_spec
71
+ # @return [::Google::Cloud::DiscoveryEngine::V1::SearchRequest::ContentSearchSpec::SummarySpec]
72
+ # A specification for configuring the summary returned in the response.
73
+ class ConverseConversationRequest
74
+ include ::Google::Protobuf::MessageExts
75
+ extend ::Google::Protobuf::MessageExts::ClassMethods
76
+
77
+ # @!attribute [rw] key
78
+ # @return [::String]
79
+ # @!attribute [rw] value
80
+ # @return [::String]
81
+ class UserLabelsEntry
82
+ include ::Google::Protobuf::MessageExts
83
+ extend ::Google::Protobuf::MessageExts::ClassMethods
84
+ end
85
+ end
86
+
87
+ # Response message for
88
+ # {::Google::Cloud::DiscoveryEngine::V1::ConversationalSearchService::Client#converse_conversation ConversationalSearchService.ConverseConversation}
89
+ # method.
90
+ # @!attribute [rw] reply
91
+ # @return [::Google::Cloud::DiscoveryEngine::V1::Reply]
92
+ # Answer to the current query.
93
+ # @!attribute [rw] conversation
94
+ # @return [::Google::Cloud::DiscoveryEngine::V1::Conversation]
95
+ # Updated conversation including the answer.
96
+ # @!attribute [rw] search_results
97
+ # @return [::Array<::Google::Cloud::DiscoveryEngine::V1::SearchResponse::SearchResult>]
98
+ # Search Results.
99
+ class ConverseConversationResponse
100
+ include ::Google::Protobuf::MessageExts
101
+ extend ::Google::Protobuf::MessageExts::ClassMethods
102
+ end
103
+
104
+ # Request for CreateConversation method.
105
+ # @!attribute [rw] parent
106
+ # @return [::String]
107
+ # Required. Full resource name of parent data store. Format:
108
+ # `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
109
+ # @!attribute [rw] conversation
110
+ # @return [::Google::Cloud::DiscoveryEngine::V1::Conversation]
111
+ # Required. The conversation to create.
112
+ class CreateConversationRequest
113
+ include ::Google::Protobuf::MessageExts
114
+ extend ::Google::Protobuf::MessageExts::ClassMethods
115
+ end
116
+
117
+ # Request for UpdateConversation method.
118
+ # @!attribute [rw] conversation
119
+ # @return [::Google::Cloud::DiscoveryEngine::V1::Conversation]
120
+ # Required. The Conversation to update.
121
+ # @!attribute [rw] update_mask
122
+ # @return [::Google::Protobuf::FieldMask]
123
+ # Indicates which fields in the provided
124
+ # {::Google::Cloud::DiscoveryEngine::V1::Conversation Conversation} to update. The
125
+ # following are NOT supported:
126
+ #
127
+ # * [conversation.name][]
128
+ #
129
+ # If not set or empty, all supported fields are updated.
130
+ class UpdateConversationRequest
131
+ include ::Google::Protobuf::MessageExts
132
+ extend ::Google::Protobuf::MessageExts::ClassMethods
133
+ end
134
+
135
+ # Request for DeleteConversation method.
136
+ # @!attribute [rw] name
137
+ # @return [::String]
138
+ # Required. The resource name of the Conversation to delete. Format:
139
+ # `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
140
+ class DeleteConversationRequest
141
+ include ::Google::Protobuf::MessageExts
142
+ extend ::Google::Protobuf::MessageExts::ClassMethods
143
+ end
144
+
145
+ # Request for GetConversation method.
146
+ # @!attribute [rw] name
147
+ # @return [::String]
148
+ # Required. The resource name of the Conversation to get. Format:
149
+ # `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`
150
+ class GetConversationRequest
151
+ include ::Google::Protobuf::MessageExts
152
+ extend ::Google::Protobuf::MessageExts::ClassMethods
153
+ end
154
+
155
+ # Request for ListConversations method.
156
+ # @!attribute [rw] parent
157
+ # @return [::String]
158
+ # Required. The data store resource name. Format:
159
+ # `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
160
+ # @!attribute [rw] page_size
161
+ # @return [::Integer]
162
+ # Maximum number of results to return. If unspecified, defaults
163
+ # to 50. Max allowed value is 1000.
164
+ # @!attribute [rw] page_token
165
+ # @return [::String]
166
+ # A page token, received from a previous `ListConversations` call.
167
+ # Provide this to retrieve the subsequent page.
168
+ # @!attribute [rw] filter
169
+ # @return [::String]
170
+ # A filter to apply on the list results. The supported features are:
171
+ # user_pseudo_id, state.
172
+ #
173
+ # Example:
174
+ # "user_pseudo_id = some_id"
175
+ # @!attribute [rw] order_by
176
+ # @return [::String]
177
+ # A comma-separated list of fields to order by, sorted in ascending order.
178
+ # Use "desc" after a field name for descending.
179
+ # Supported fields:
180
+ # * `update_time`
181
+ # * `create_time`
182
+ # * `conversation_name`
183
+ #
184
+ # Example:
185
+ # "update_time desc"
186
+ # "create_time"
187
+ class ListConversationsRequest
188
+ include ::Google::Protobuf::MessageExts
189
+ extend ::Google::Protobuf::MessageExts::ClassMethods
190
+ end
191
+
192
+ # Response for ListConversations method.
193
+ # @!attribute [rw] conversations
194
+ # @return [::Array<::Google::Cloud::DiscoveryEngine::V1::Conversation>]
195
+ # All the Conversations for a given data store.
196
+ # @!attribute [rw] next_page_token
197
+ # @return [::String]
198
+ # Pagination token, if not returned indicates the last page.
199
+ class ListConversationsResponse
200
+ include ::Google::Protobuf::MessageExts
201
+ extend ::Google::Protobuf::MessageExts::ClassMethods
202
+ end
203
+ end
204
+ end
205
+ end
206
+ end
@@ -0,0 +1,108 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module DiscoveryEngine
23
+ module V1
24
+ # Document captures all raw metadata information of items to be recommended or
25
+ # searched.
26
+ # @!attribute [rw] struct_data
27
+ # @return [::Google::Protobuf::Struct]
28
+ # The structured JSON data for the document. It should conform to the
29
+ # registered {::Google::Cloud::DiscoveryEngine::V1::Schema Schema} or an
30
+ # `INVALID_ARGUMENT` error is thrown.
31
+ # @!attribute [rw] json_data
32
+ # @return [::String]
33
+ # The JSON string representation of the document. It should conform to the
34
+ # registered {::Google::Cloud::DiscoveryEngine::V1::Schema Schema} or an
35
+ # `INVALID_ARGUMENT` error is thrown.
36
+ # @!attribute [rw] name
37
+ # @return [::String]
38
+ # Immutable. The full resource name of the document.
39
+ # Format:
40
+ # `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}`.
41
+ #
42
+ # This field must be a UTF-8 encoded string with a length limit of 1024
43
+ # characters.
44
+ # @!attribute [rw] id
45
+ # @return [::String]
46
+ # Immutable. The identifier of the document.
47
+ #
48
+ # Id should conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
49
+ # standard with a length limit of 63 characters.
50
+ # @!attribute [rw] schema_id
51
+ # @return [::String]
52
+ # The identifier of the schema located in the same data store.
53
+ # @!attribute [rw] content
54
+ # @return [::Google::Cloud::DiscoveryEngine::V1::Document::Content]
55
+ # The unstructured data linked to this document. Content must be set if this
56
+ # document is under a
57
+ # `CONTENT_REQUIRED` data store.
58
+ # @!attribute [rw] parent_document_id
59
+ # @return [::String]
60
+ # The identifier of the parent document. Currently supports at most two level
61
+ # document hierarchy.
62
+ #
63
+ # Id should conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
64
+ # standard with a length limit of 63 characters.
65
+ # @!attribute [r] derived_struct_data
66
+ # @return [::Google::Protobuf::Struct]
67
+ # Output only. This field is OUTPUT_ONLY.
68
+ # It contains derived data that are not in the original input document.
69
+ class Document
70
+ include ::Google::Protobuf::MessageExts
71
+ extend ::Google::Protobuf::MessageExts::ClassMethods
72
+
73
+ # Unstructured data linked to this document.
74
+ # @!attribute [rw] raw_bytes
75
+ # @return [::String]
76
+ # The content represented as a stream of bytes. The maximum length is
77
+ # 1,000,000 bytes (1 MB / ~0.95 MiB).
78
+ #
79
+ # Note: As with all `bytes` fields, this field is represented as pure
80
+ # binary in Protocol Buffers and base64-encoded string in JSON. For
81
+ # example, `abc123!?$*&()'-=@~` should be represented as
82
+ # `YWJjMTIzIT8kKiYoKSctPUB+` in JSON. See
83
+ # https://developers.google.com/protocol-buffers/docs/proto3#json.
84
+ # @!attribute [rw] uri
85
+ # @return [::String]
86
+ # The URI of the content. Only Cloud Storage URIs (e.g.
87
+ # `gs://bucket-name/path/to/file`) are supported. The maximum file size
88
+ # is 100 MB.
89
+ # @!attribute [rw] mime_type
90
+ # @return [::String]
91
+ # The MIME type of the content. Supported types:
92
+ #
93
+ # * `application/pdf` (PDF, only native PDFs are supported for now)
94
+ # * `text/html` (HTML)
95
+ # * `application/vnd.openxmlformats-officedocument.wordprocessingml.document` (DOCX)
96
+ # * `application/vnd.openxmlformats-officedocument.presentationml.presentation` (PPTX)
97
+ # * `text/plain` (TXT)
98
+ #
99
+ # See https://www.iana.org/assignments/media-types/media-types.xhtml.
100
+ class Content
101
+ include ::Google::Protobuf::MessageExts
102
+ extend ::Google::Protobuf::MessageExts::ClassMethods
103
+ end
104
+ end
105
+ end
106
+ end
107
+ end
108
+ end
@@ -0,0 +1,181 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module DiscoveryEngine
23
+ module V1
24
+ # Request message for
25
+ # {::Google::Cloud::DiscoveryEngine::V1::DocumentService::Client#get_document DocumentService.GetDocument}
26
+ # method.
27
+ # @!attribute [rw] name
28
+ # @return [::String]
29
+ # Required. Full resource name of
30
+ # {::Google::Cloud::DiscoveryEngine::V1::Document Document}, such as
31
+ # `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`.
32
+ #
33
+ # If the caller does not have permission to access the
34
+ # {::Google::Cloud::DiscoveryEngine::V1::Document Document}, regardless of whether
35
+ # or not it exists, a `PERMISSION_DENIED` error is returned.
36
+ #
37
+ # If the requested {::Google::Cloud::DiscoveryEngine::V1::Document Document} does
38
+ # not exist, a `NOT_FOUND` error is returned.
39
+ class GetDocumentRequest
40
+ include ::Google::Protobuf::MessageExts
41
+ extend ::Google::Protobuf::MessageExts::ClassMethods
42
+ end
43
+
44
+ # Request message for
45
+ # {::Google::Cloud::DiscoveryEngine::V1::DocumentService::Client#list_documents DocumentService.ListDocuments}
46
+ # method.
47
+ # @!attribute [rw] parent
48
+ # @return [::String]
49
+ # Required. The parent branch resource name, such as
50
+ # `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
51
+ # Use `default_branch` as the branch ID, to list documents under the default
52
+ # branch.
53
+ #
54
+ # If the caller does not have permission to list
55
+ # {::Google::Cloud::DiscoveryEngine::V1::Document Document}s under this branch,
56
+ # regardless of whether or not this branch exists, a `PERMISSION_DENIED`
57
+ # error is returned.
58
+ # @!attribute [rw] page_size
59
+ # @return [::Integer]
60
+ # Maximum number of {::Google::Cloud::DiscoveryEngine::V1::Document Document}s to
61
+ # return. If unspecified, defaults to 100. The maximum allowed value is 1000.
62
+ # Values above 1000 will be coerced to 1000.
63
+ #
64
+ # If this field is negative, an `INVALID_ARGUMENT` error is returned.
65
+ # @!attribute [rw] page_token
66
+ # @return [::String]
67
+ # A page token
68
+ # {::Google::Cloud::DiscoveryEngine::V1::ListDocumentsResponse#next_page_token ListDocumentsResponse.next_page_token},
69
+ # received from a previous
70
+ # {::Google::Cloud::DiscoveryEngine::V1::DocumentService::Client#list_documents DocumentService.ListDocuments}
71
+ # call. Provide this to retrieve the subsequent page.
72
+ #
73
+ # When paginating, all other parameters provided to
74
+ # {::Google::Cloud::DiscoveryEngine::V1::DocumentService::Client#list_documents DocumentService.ListDocuments}
75
+ # must match the call that provided the page token. Otherwise, an
76
+ # `INVALID_ARGUMENT` error is returned.
77
+ class ListDocumentsRequest
78
+ include ::Google::Protobuf::MessageExts
79
+ extend ::Google::Protobuf::MessageExts::ClassMethods
80
+ end
81
+
82
+ # Response message for
83
+ # {::Google::Cloud::DiscoveryEngine::V1::DocumentService::Client#list_documents DocumentService.ListDocuments}
84
+ # method.
85
+ # @!attribute [rw] documents
86
+ # @return [::Array<::Google::Cloud::DiscoveryEngine::V1::Document>]
87
+ # The {::Google::Cloud::DiscoveryEngine::V1::Document Document}s.
88
+ # @!attribute [rw] next_page_token
89
+ # @return [::String]
90
+ # A token that can be sent as
91
+ # {::Google::Cloud::DiscoveryEngine::V1::ListDocumentsRequest#page_token ListDocumentsRequest.page_token}
92
+ # to retrieve the next page. If this field is omitted, there are no
93
+ # subsequent pages.
94
+ class ListDocumentsResponse
95
+ include ::Google::Protobuf::MessageExts
96
+ extend ::Google::Protobuf::MessageExts::ClassMethods
97
+ end
98
+
99
+ # Request message for
100
+ # {::Google::Cloud::DiscoveryEngine::V1::DocumentService::Client#create_document DocumentService.CreateDocument}
101
+ # method.
102
+ # @!attribute [rw] parent
103
+ # @return [::String]
104
+ # Required. The parent resource name, such as
105
+ # `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
106
+ # @!attribute [rw] document
107
+ # @return [::Google::Cloud::DiscoveryEngine::V1::Document]
108
+ # Required. The {::Google::Cloud::DiscoveryEngine::V1::Document Document} to
109
+ # create.
110
+ # @!attribute [rw] document_id
111
+ # @return [::String]
112
+ # Required. The ID to use for the
113
+ # {::Google::Cloud::DiscoveryEngine::V1::Document Document}, which will become the
114
+ # final component of the
115
+ # {::Google::Cloud::DiscoveryEngine::V1::Document#name Document.name}.
116
+ #
117
+ # If the caller does not have permission to create the
118
+ # {::Google::Cloud::DiscoveryEngine::V1::Document Document}, regardless of whether
119
+ # or not it exists, a `PERMISSION_DENIED` error is returned.
120
+ #
121
+ # This field must be unique among all
122
+ # {::Google::Cloud::DiscoveryEngine::V1::Document Document}s with the same
123
+ # {::Google::Cloud::DiscoveryEngine::V1::CreateDocumentRequest#parent parent}.
124
+ # Otherwise, an `ALREADY_EXISTS` error is returned.
125
+ #
126
+ # This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
127
+ # standard with a length limit of 63 characters. Otherwise, an
128
+ # `INVALID_ARGUMENT` error is returned.
129
+ class CreateDocumentRequest
130
+ include ::Google::Protobuf::MessageExts
131
+ extend ::Google::Protobuf::MessageExts::ClassMethods
132
+ end
133
+
134
+ # Request message for
135
+ # {::Google::Cloud::DiscoveryEngine::V1::DocumentService::Client#update_document DocumentService.UpdateDocument}
136
+ # method.
137
+ # @!attribute [rw] document
138
+ # @return [::Google::Cloud::DiscoveryEngine::V1::Document]
139
+ # Required. The document to update/create.
140
+ #
141
+ # If the caller does not have permission to update the
142
+ # {::Google::Cloud::DiscoveryEngine::V1::Document Document}, regardless of whether
143
+ # or not it exists, a `PERMISSION_DENIED` error is returned.
144
+ #
145
+ # If the {::Google::Cloud::DiscoveryEngine::V1::Document Document} to update does
146
+ # not exist and
147
+ # {::Google::Cloud::DiscoveryEngine::V1::UpdateDocumentRequest#allow_missing allow_missing}
148
+ # is not set, a `NOT_FOUND` error is returned.
149
+ # @!attribute [rw] allow_missing
150
+ # @return [::Boolean]
151
+ # If set to true, and the
152
+ # {::Google::Cloud::DiscoveryEngine::V1::Document Document} is not found, a new
153
+ # {::Google::Cloud::DiscoveryEngine::V1::Document Document} will be created.
154
+ class UpdateDocumentRequest
155
+ include ::Google::Protobuf::MessageExts
156
+ extend ::Google::Protobuf::MessageExts::ClassMethods
157
+ end
158
+
159
+ # Request message for
160
+ # {::Google::Cloud::DiscoveryEngine::V1::DocumentService::Client#delete_document DocumentService.DeleteDocument}
161
+ # method.
162
+ # @!attribute [rw] name
163
+ # @return [::String]
164
+ # Required. Full resource name of
165
+ # {::Google::Cloud::DiscoveryEngine::V1::Document Document}, such as
166
+ # `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`.
167
+ #
168
+ # If the caller does not have permission to delete the
169
+ # {::Google::Cloud::DiscoveryEngine::V1::Document Document}, regardless of whether
170
+ # or not it exists, a `PERMISSION_DENIED` error is returned.
171
+ #
172
+ # If the {::Google::Cloud::DiscoveryEngine::V1::Document Document} to delete does
173
+ # not exist, a `NOT_FOUND` error is returned.
174
+ class DeleteDocumentRequest
175
+ include ::Google::Protobuf::MessageExts
176
+ extend ::Google::Protobuf::MessageExts::ClassMethods
177
+ end
178
+ end
179
+ end
180
+ end
181
+ end