google-cloud-discovery_engine-v1beta 0.9.0 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (91) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/client.rb +747 -1
  3. data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/paths.rb +199 -0
  4. data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/rest/client.rb +698 -1
  5. data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/rest/service_stub.rb +520 -0
  6. data/lib/google/cloud/discovery_engine/v1beta/data_store_service/paths.rb +94 -0
  7. data/lib/google/cloud/discovery_engine/v1beta/document_service/client.rb +48 -23
  8. data/lib/google/cloud/discovery_engine/v1beta/document_service/paths.rb +21 -0
  9. data/lib/google/cloud/discovery_engine/v1beta/document_service/rest/client.rb +48 -23
  10. data/lib/google/cloud/discovery_engine/v1beta/engine_service/client.rb +296 -0
  11. data/lib/google/cloud/discovery_engine/v1beta/engine_service/rest/client.rb +275 -0
  12. data/lib/google/cloud/discovery_engine/v1beta/engine_service/rest/service_stub.rb +180 -0
  13. data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/client.rb +449 -0
  14. data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/credentials.rb +47 -0
  15. data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/paths.rb +52 -0
  16. data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/rest/client.rb +416 -0
  17. data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/rest/service_stub.rb +129 -0
  18. data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/rest.rb +52 -0
  19. data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service.rb +55 -0
  20. data/lib/google/cloud/discovery_engine/v1beta/rank_service/client.rb +459 -0
  21. data/lib/google/cloud/discovery_engine/v1beta/rank_service/credentials.rb +47 -0
  22. data/lib/google/cloud/discovery_engine/v1beta/rank_service/paths.rb +52 -0
  23. data/lib/google/cloud/discovery_engine/v1beta/rank_service/rest/client.rb +426 -0
  24. data/lib/google/cloud/discovery_engine/v1beta/rank_service/rest/service_stub.rb +129 -0
  25. data/lib/google/cloud/discovery_engine/v1beta/rank_service/rest.rb +52 -0
  26. data/lib/google/cloud/discovery_engine/v1beta/rank_service.rb +55 -0
  27. data/lib/google/cloud/discovery_engine/v1beta/rest.rb +3 -0
  28. data/lib/google/cloud/discovery_engine/v1beta/search_service/client.rb +14 -7
  29. data/lib/google/cloud/discovery_engine/v1beta/search_service/paths.rb +45 -0
  30. data/lib/google/cloud/discovery_engine/v1beta/search_service/rest/client.rb +14 -7
  31. data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/client.rb +469 -0
  32. data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/credentials.rb +47 -0
  33. data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/operations.rb +801 -0
  34. data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/paths.rb +78 -0
  35. data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/rest/client.rb +436 -0
  36. data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/rest/operations.rb +1077 -0
  37. data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/rest/service_stub.rb +129 -0
  38. data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/rest.rb +53 -0
  39. data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service.rb +56 -0
  40. data/lib/google/cloud/discovery_engine/v1beta/serving_config_service/client.rb +5 -4
  41. data/lib/google/cloud/discovery_engine/v1beta/serving_config_service/paths.rb +21 -0
  42. data/lib/google/cloud/discovery_engine/v1beta/serving_config_service/rest/client.rb +5 -4
  43. data/lib/google/cloud/discovery_engine/v1beta/serving_config_service/rest.rb +2 -1
  44. data/lib/google/cloud/discovery_engine/v1beta/serving_config_service.rb +2 -1
  45. data/lib/google/cloud/discovery_engine/v1beta/version.rb +1 -1
  46. data/lib/google/cloud/discovery_engine/v1beta.rb +3 -0
  47. data/lib/google/cloud/discoveryengine/v1beta/answer_pb.rb +67 -0
  48. data/lib/google/cloud/discoveryengine/v1beta/common_pb.rb +1 -1
  49. data/lib/google/cloud/discoveryengine/v1beta/conversational_search_service_pb.rb +32 -1
  50. data/lib/google/cloud/discoveryengine/v1beta/conversational_search_service_services_pb.rb +25 -0
  51. data/lib/google/cloud/discoveryengine/v1beta/data_store_pb.rb +5 -1
  52. data/lib/google/cloud/discoveryengine/v1beta/document_pb.rb +3 -1
  53. data/lib/google/cloud/discoveryengine/v1beta/document_processing_config_pb.rb +48 -0
  54. data/lib/google/cloud/discoveryengine/v1beta/document_service_pb.rb +3 -1
  55. data/lib/google/cloud/discoveryengine/v1beta/engine_service_pb.rb +6 -1
  56. data/lib/google/cloud/discoveryengine/v1beta/engine_service_services_pb.rb +12 -0
  57. data/lib/google/cloud/discoveryengine/v1beta/grounded_generation_service_pb.rb +52 -0
  58. data/lib/google/cloud/discoveryengine/v1beta/grounded_generation_service_services_pb.rb +45 -0
  59. data/lib/google/cloud/discoveryengine/v1beta/grounding_pb.rb +46 -0
  60. data/lib/google/cloud/discoveryengine/v1beta/import_config_pb.rb +13 -1
  61. data/lib/google/cloud/discoveryengine/v1beta/purge_config_pb.rb +1 -1
  62. data/lib/google/cloud/discoveryengine/v1beta/rank_service_pb.rb +49 -0
  63. data/lib/google/cloud/discoveryengine/v1beta/rank_service_services_pb.rb +45 -0
  64. data/lib/google/cloud/discoveryengine/v1beta/search_service_pb.rb +8 -1
  65. data/lib/google/cloud/discoveryengine/v1beta/search_tuning_service_pb.rb +57 -0
  66. data/lib/google/cloud/discoveryengine/v1beta/search_tuning_service_services_pb.rb +45 -0
  67. data/lib/google/cloud/discoveryengine/v1beta/serving_config_service_pb.rb +1 -1
  68. data/lib/google/cloud/discoveryengine/v1beta/serving_config_service_services_pb.rb +2 -1
  69. data/lib/google/cloud/discoveryengine/v1beta/session_pb.rb +50 -0
  70. data/proto_docs/google/api/client.rb +4 -0
  71. data/proto_docs/google/cloud/discoveryengine/v1beta/answer.rb +354 -0
  72. data/proto_docs/google/cloud/discoveryengine/v1beta/common.rb +9 -1
  73. data/proto_docs/google/cloud/discoveryengine/v1beta/conversational_search_service.rb +480 -0
  74. data/proto_docs/google/cloud/discoveryengine/v1beta/data_store.rb +20 -0
  75. data/proto_docs/google/cloud/discoveryengine/v1beta/document.rb +7 -0
  76. data/proto_docs/google/cloud/discoveryengine/v1beta/document_processing_config.rb +101 -0
  77. data/proto_docs/google/cloud/discoveryengine/v1beta/document_service.rb +4 -0
  78. data/proto_docs/google/cloud/discoveryengine/v1beta/engine.rb +2 -2
  79. data/proto_docs/google/cloud/discoveryengine/v1beta/engine_service.rb +51 -0
  80. data/proto_docs/google/cloud/discoveryengine/v1beta/grounded_generation_service.rb +106 -0
  81. data/proto_docs/google/cloud/discoveryengine/v1beta/grounding.rb +76 -0
  82. data/proto_docs/google/cloud/discoveryengine/v1beta/import_config.rb +310 -24
  83. data/proto_docs/google/cloud/discoveryengine/v1beta/purge_config.rb +3 -0
  84. data/proto_docs/google/cloud/discoveryengine/v1beta/rank_service.rb +99 -0
  85. data/proto_docs/google/cloud/discoveryengine/v1beta/search_service.rb +171 -26
  86. data/proto_docs/google/cloud/discoveryengine/v1beta/search_tuning_service.rb +141 -0
  87. data/proto_docs/google/cloud/discoveryengine/v1beta/serving_config.rb +4 -3
  88. data/proto_docs/google/cloud/discoveryengine/v1beta/serving_config_service.rb +3 -3
  89. data/proto_docs/google/cloud/discoveryengine/v1beta/session.rb +85 -0
  90. data/proto_docs/google/cloud/discoveryengine/v1beta/user_event.rb +1 -1
  91. metadata +42 -2
@@ -193,7 +193,7 @@ module Google
193
193
  # @param options [::Gapic::CallOptions, ::Hash]
194
194
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
195
195
  #
196
- # @overload converse_conversation(name: nil, query: nil, serving_config: nil, conversation: nil, safe_search: nil, user_labels: nil, summary_spec: nil, filter: nil)
196
+ # @overload converse_conversation(name: nil, query: nil, serving_config: nil, conversation: nil, safe_search: nil, user_labels: nil, summary_spec: nil, filter: nil, boost_spec: nil)
197
197
  # Pass arguments to `converse_conversation` via keyword arguments. Note that at
198
198
  # least one keyword argument is required. To specify no parameters, or to keep all
199
199
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -254,6 +254,10 @@ module Google
254
254
  # For more information about filtering including syntax and filter
255
255
  # operators, see
256
256
  # [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
257
+ # @param boost_spec [::Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::BoostSpec, ::Hash]
258
+ # Boost specification to boost certain documents in search results which may
259
+ # affect the converse response. For more information on boosting, see
260
+ # [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
257
261
  #
258
262
  # @yield [response, operation] Access the result along with the RPC operation
259
263
  # @yieldparam response [::Google::Cloud::DiscoveryEngine::V1beta::ConverseConversationResponse]
@@ -798,6 +802,699 @@ module Google
798
802
  raise ::Google::Cloud::Error.from_error(e)
799
803
  end
800
804
 
805
+ ##
806
+ # Answer query method.
807
+ #
808
+ # @overload answer_query(request, options = nil)
809
+ # Pass arguments to `answer_query` via a request object, either of type
810
+ # {::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest} or an equivalent Hash.
811
+ #
812
+ # @param request [::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest, ::Hash]
813
+ # A request object representing the call parameters. Required. To specify no
814
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
815
+ # @param options [::Gapic::CallOptions, ::Hash]
816
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
817
+ #
818
+ # @overload answer_query(serving_config: nil, query: nil, session: nil, safety_spec: nil, related_questions_spec: nil, answer_generation_spec: nil, search_spec: nil, query_understanding_spec: nil, asynchronous_mode: nil, user_pseudo_id: nil)
819
+ # Pass arguments to `answer_query` via keyword arguments. Note that at
820
+ # least one keyword argument is required. To specify no parameters, or to keep all
821
+ # the default parameter values, pass an empty Hash as a request object (see above).
822
+ #
823
+ # @param serving_config [::String]
824
+ # Required. The resource name of the Search serving config, such as
825
+ # `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`,
826
+ # or
827
+ # `projects/*/locations/global/collections/default_collection/dataStores/*/servingConfigs/default_serving_config`.
828
+ # This field is used to identify the serving configuration name, set
829
+ # of models used to make the search.
830
+ # @param query [::Google::Cloud::DiscoveryEngine::V1beta::Query, ::Hash]
831
+ # Required. Current user query.
832
+ # @param session [::String]
833
+ # The session resource name. Not required.
834
+ #
835
+ # When session field is not set, the API is in sessionless mode.
836
+ #
837
+ # We support auto session mode: users can use the wildcard symbol “-” as
838
+ # session id. A new id will be automatically generated and assigned.
839
+ # @param safety_spec [::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::SafetySpec, ::Hash]
840
+ # Model specification.
841
+ # @param related_questions_spec [::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::RelatedQuestionsSpec, ::Hash]
842
+ # Related questions specification.
843
+ # @param answer_generation_spec [::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::AnswerGenerationSpec, ::Hash]
844
+ # Answer generation specification.
845
+ # @param search_spec [::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::SearchSpec, ::Hash]
846
+ # Search specification.
847
+ # @param query_understanding_spec [::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::QueryUnderstandingSpec, ::Hash]
848
+ # Query understanding specification.
849
+ # @param asynchronous_mode [::Boolean]
850
+ # Asynchronous mode control.
851
+ #
852
+ # If enabled, the response will be returned with answer/session resource
853
+ # name without final answer. The API users need to do the polling to get
854
+ # the latest status of answer/session by calling
855
+ # {::Google::Cloud::DiscoveryEngine::V1beta::ConversationalSearchService::Client#get_answer ConversationalSearchService.GetAnswer}
856
+ # or
857
+ # {::Google::Cloud::DiscoveryEngine::V1beta::ConversationalSearchService::Client#get_session ConversationalSearchService.GetSession}
858
+ # method.
859
+ # @param user_pseudo_id [::String]
860
+ # A unique identifier for tracking visitors. For example, this could be
861
+ # implemented with an HTTP cookie, which should be able to uniquely identify
862
+ # a visitor on a single device. This unique identifier should not change if
863
+ # the visitor logs in or out of the website.
864
+ #
865
+ # This field should NOT have a fixed value such as `unknown_visitor`.
866
+ #
867
+ # The field must be a UTF-8 encoded string with a length limit of 128
868
+ # characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
869
+ #
870
+ # @yield [response, operation] Access the result along with the RPC operation
871
+ # @yieldparam response [::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryResponse]
872
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
873
+ #
874
+ # @return [::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryResponse]
875
+ #
876
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
877
+ #
878
+ # @example Basic example
879
+ # require "google/cloud/discovery_engine/v1beta"
880
+ #
881
+ # # Create a client object. The client can be reused for multiple calls.
882
+ # client = Google::Cloud::DiscoveryEngine::V1beta::ConversationalSearchService::Client.new
883
+ #
884
+ # # Create a request. To set request fields, pass in keyword arguments.
885
+ # request = Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest.new
886
+ #
887
+ # # Call the answer_query method.
888
+ # result = client.answer_query request
889
+ #
890
+ # # The returned object is of type Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryResponse.
891
+ # p result
892
+ #
893
+ def answer_query request, options = nil
894
+ raise ::ArgumentError, "request must be provided" if request.nil?
895
+
896
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest
897
+
898
+ # Converts hash and nil to an options object
899
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
900
+
901
+ # Customize the options with defaults
902
+ metadata = @config.rpcs.answer_query.metadata.to_h
903
+
904
+ # Set x-goog-api-client and x-goog-user-project headers
905
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
906
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
907
+ gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
908
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
909
+
910
+ header_params = {}
911
+ if request.serving_config
912
+ header_params["serving_config"] = request.serving_config
913
+ end
914
+
915
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
916
+ metadata[:"x-goog-request-params"] ||= request_params_header
917
+
918
+ options.apply_defaults timeout: @config.rpcs.answer_query.timeout,
919
+ metadata: metadata,
920
+ retry_policy: @config.rpcs.answer_query.retry_policy
921
+
922
+ options.apply_defaults timeout: @config.timeout,
923
+ metadata: @config.metadata,
924
+ retry_policy: @config.retry_policy
925
+
926
+ @conversational_search_service_stub.call_rpc :answer_query, request, options: options do |response, operation|
927
+ yield response, operation if block_given?
928
+ return response
929
+ end
930
+ rescue ::GRPC::BadStatus => e
931
+ raise ::Google::Cloud::Error.from_error(e)
932
+ end
933
+
934
+ ##
935
+ # Gets a Answer.
936
+ #
937
+ # @overload get_answer(request, options = nil)
938
+ # Pass arguments to `get_answer` via a request object, either of type
939
+ # {::Google::Cloud::DiscoveryEngine::V1beta::GetAnswerRequest} or an equivalent Hash.
940
+ #
941
+ # @param request [::Google::Cloud::DiscoveryEngine::V1beta::GetAnswerRequest, ::Hash]
942
+ # A request object representing the call parameters. Required. To specify no
943
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
944
+ # @param options [::Gapic::CallOptions, ::Hash]
945
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
946
+ #
947
+ # @overload get_answer(name: nil)
948
+ # Pass arguments to `get_answer` via keyword arguments. Note that at
949
+ # least one keyword argument is required. To specify no parameters, or to keep all
950
+ # the default parameter values, pass an empty Hash as a request object (see above).
951
+ #
952
+ # @param name [::String]
953
+ # Required. The resource name of the Answer to get. Format:
954
+ # `projects/{project_number}/locations/{location_id}/collections/{collection}/engines/{engine_id}/sessions/{session_id}/answers/{answer_id}`
955
+ #
956
+ # @yield [response, operation] Access the result along with the RPC operation
957
+ # @yieldparam response [::Google::Cloud::DiscoveryEngine::V1beta::Answer]
958
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
959
+ #
960
+ # @return [::Google::Cloud::DiscoveryEngine::V1beta::Answer]
961
+ #
962
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
963
+ #
964
+ # @example Basic example
965
+ # require "google/cloud/discovery_engine/v1beta"
966
+ #
967
+ # # Create a client object. The client can be reused for multiple calls.
968
+ # client = Google::Cloud::DiscoveryEngine::V1beta::ConversationalSearchService::Client.new
969
+ #
970
+ # # Create a request. To set request fields, pass in keyword arguments.
971
+ # request = Google::Cloud::DiscoveryEngine::V1beta::GetAnswerRequest.new
972
+ #
973
+ # # Call the get_answer method.
974
+ # result = client.get_answer request
975
+ #
976
+ # # The returned object is of type Google::Cloud::DiscoveryEngine::V1beta::Answer.
977
+ # p result
978
+ #
979
+ def get_answer request, options = nil
980
+ raise ::ArgumentError, "request must be provided" if request.nil?
981
+
982
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DiscoveryEngine::V1beta::GetAnswerRequest
983
+
984
+ # Converts hash and nil to an options object
985
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
986
+
987
+ # Customize the options with defaults
988
+ metadata = @config.rpcs.get_answer.metadata.to_h
989
+
990
+ # Set x-goog-api-client and x-goog-user-project headers
991
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
992
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
993
+ gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
994
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
995
+
996
+ header_params = {}
997
+ if request.name
998
+ header_params["name"] = request.name
999
+ end
1000
+
1001
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1002
+ metadata[:"x-goog-request-params"] ||= request_params_header
1003
+
1004
+ options.apply_defaults timeout: @config.rpcs.get_answer.timeout,
1005
+ metadata: metadata,
1006
+ retry_policy: @config.rpcs.get_answer.retry_policy
1007
+
1008
+ options.apply_defaults timeout: @config.timeout,
1009
+ metadata: @config.metadata,
1010
+ retry_policy: @config.retry_policy
1011
+
1012
+ @conversational_search_service_stub.call_rpc :get_answer, request, options: options do |response, operation|
1013
+ yield response, operation if block_given?
1014
+ return response
1015
+ end
1016
+ rescue ::GRPC::BadStatus => e
1017
+ raise ::Google::Cloud::Error.from_error(e)
1018
+ end
1019
+
1020
+ ##
1021
+ # Creates a Session.
1022
+ #
1023
+ # If the {::Google::Cloud::DiscoveryEngine::V1beta::Session Session} to create
1024
+ # already exists, an ALREADY_EXISTS error is returned.
1025
+ #
1026
+ # @overload create_session(request, options = nil)
1027
+ # Pass arguments to `create_session` via a request object, either of type
1028
+ # {::Google::Cloud::DiscoveryEngine::V1beta::CreateSessionRequest} or an equivalent Hash.
1029
+ #
1030
+ # @param request [::Google::Cloud::DiscoveryEngine::V1beta::CreateSessionRequest, ::Hash]
1031
+ # A request object representing the call parameters. Required. To specify no
1032
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1033
+ # @param options [::Gapic::CallOptions, ::Hash]
1034
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1035
+ #
1036
+ # @overload create_session(parent: nil, session: nil)
1037
+ # Pass arguments to `create_session` via keyword arguments. Note that at
1038
+ # least one keyword argument is required. To specify no parameters, or to keep all
1039
+ # the default parameter values, pass an empty Hash as a request object (see above).
1040
+ #
1041
+ # @param parent [::String]
1042
+ # Required. Full resource name of parent data store. Format:
1043
+ # `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
1044
+ # @param session [::Google::Cloud::DiscoveryEngine::V1beta::Session, ::Hash]
1045
+ # Required. The session to create.
1046
+ #
1047
+ # @yield [response, operation] Access the result along with the RPC operation
1048
+ # @yieldparam response [::Google::Cloud::DiscoveryEngine::V1beta::Session]
1049
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1050
+ #
1051
+ # @return [::Google::Cloud::DiscoveryEngine::V1beta::Session]
1052
+ #
1053
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1054
+ #
1055
+ # @example Basic example
1056
+ # require "google/cloud/discovery_engine/v1beta"
1057
+ #
1058
+ # # Create a client object. The client can be reused for multiple calls.
1059
+ # client = Google::Cloud::DiscoveryEngine::V1beta::ConversationalSearchService::Client.new
1060
+ #
1061
+ # # Create a request. To set request fields, pass in keyword arguments.
1062
+ # request = Google::Cloud::DiscoveryEngine::V1beta::CreateSessionRequest.new
1063
+ #
1064
+ # # Call the create_session method.
1065
+ # result = client.create_session request
1066
+ #
1067
+ # # The returned object is of type Google::Cloud::DiscoveryEngine::V1beta::Session.
1068
+ # p result
1069
+ #
1070
+ def create_session request, options = nil
1071
+ raise ::ArgumentError, "request must be provided" if request.nil?
1072
+
1073
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DiscoveryEngine::V1beta::CreateSessionRequest
1074
+
1075
+ # Converts hash and nil to an options object
1076
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1077
+
1078
+ # Customize the options with defaults
1079
+ metadata = @config.rpcs.create_session.metadata.to_h
1080
+
1081
+ # Set x-goog-api-client and x-goog-user-project headers
1082
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1083
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1084
+ gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
1085
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1086
+
1087
+ header_params = {}
1088
+ if request.parent
1089
+ header_params["parent"] = request.parent
1090
+ end
1091
+
1092
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1093
+ metadata[:"x-goog-request-params"] ||= request_params_header
1094
+
1095
+ options.apply_defaults timeout: @config.rpcs.create_session.timeout,
1096
+ metadata: metadata,
1097
+ retry_policy: @config.rpcs.create_session.retry_policy
1098
+
1099
+ options.apply_defaults timeout: @config.timeout,
1100
+ metadata: @config.metadata,
1101
+ retry_policy: @config.retry_policy
1102
+
1103
+ @conversational_search_service_stub.call_rpc :create_session, request, options: options do |response, operation|
1104
+ yield response, operation if block_given?
1105
+ return response
1106
+ end
1107
+ rescue ::GRPC::BadStatus => e
1108
+ raise ::Google::Cloud::Error.from_error(e)
1109
+ end
1110
+
1111
+ ##
1112
+ # Deletes a Session.
1113
+ #
1114
+ # If the {::Google::Cloud::DiscoveryEngine::V1beta::Session Session} to delete
1115
+ # does not exist, a NOT_FOUND error is returned.
1116
+ #
1117
+ # @overload delete_session(request, options = nil)
1118
+ # Pass arguments to `delete_session` via a request object, either of type
1119
+ # {::Google::Cloud::DiscoveryEngine::V1beta::DeleteSessionRequest} or an equivalent Hash.
1120
+ #
1121
+ # @param request [::Google::Cloud::DiscoveryEngine::V1beta::DeleteSessionRequest, ::Hash]
1122
+ # A request object representing the call parameters. Required. To specify no
1123
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1124
+ # @param options [::Gapic::CallOptions, ::Hash]
1125
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1126
+ #
1127
+ # @overload delete_session(name: nil)
1128
+ # Pass arguments to `delete_session` via keyword arguments. Note that at
1129
+ # least one keyword argument is required. To specify no parameters, or to keep all
1130
+ # the default parameter values, pass an empty Hash as a request object (see above).
1131
+ #
1132
+ # @param name [::String]
1133
+ # Required. The resource name of the Session to delete. Format:
1134
+ # `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}`
1135
+ #
1136
+ # @yield [response, operation] Access the result along with the RPC operation
1137
+ # @yieldparam response [::Google::Protobuf::Empty]
1138
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1139
+ #
1140
+ # @return [::Google::Protobuf::Empty]
1141
+ #
1142
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1143
+ #
1144
+ # @example Basic example
1145
+ # require "google/cloud/discovery_engine/v1beta"
1146
+ #
1147
+ # # Create a client object. The client can be reused for multiple calls.
1148
+ # client = Google::Cloud::DiscoveryEngine::V1beta::ConversationalSearchService::Client.new
1149
+ #
1150
+ # # Create a request. To set request fields, pass in keyword arguments.
1151
+ # request = Google::Cloud::DiscoveryEngine::V1beta::DeleteSessionRequest.new
1152
+ #
1153
+ # # Call the delete_session method.
1154
+ # result = client.delete_session request
1155
+ #
1156
+ # # The returned object is of type Google::Protobuf::Empty.
1157
+ # p result
1158
+ #
1159
+ def delete_session request, options = nil
1160
+ raise ::ArgumentError, "request must be provided" if request.nil?
1161
+
1162
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DiscoveryEngine::V1beta::DeleteSessionRequest
1163
+
1164
+ # Converts hash and nil to an options object
1165
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1166
+
1167
+ # Customize the options with defaults
1168
+ metadata = @config.rpcs.delete_session.metadata.to_h
1169
+
1170
+ # Set x-goog-api-client and x-goog-user-project headers
1171
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1172
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1173
+ gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
1174
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1175
+
1176
+ header_params = {}
1177
+ if request.name
1178
+ header_params["name"] = request.name
1179
+ end
1180
+
1181
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1182
+ metadata[:"x-goog-request-params"] ||= request_params_header
1183
+
1184
+ options.apply_defaults timeout: @config.rpcs.delete_session.timeout,
1185
+ metadata: metadata,
1186
+ retry_policy: @config.rpcs.delete_session.retry_policy
1187
+
1188
+ options.apply_defaults timeout: @config.timeout,
1189
+ metadata: @config.metadata,
1190
+ retry_policy: @config.retry_policy
1191
+
1192
+ @conversational_search_service_stub.call_rpc :delete_session, request, options: options do |response, operation|
1193
+ yield response, operation if block_given?
1194
+ return response
1195
+ end
1196
+ rescue ::GRPC::BadStatus => e
1197
+ raise ::Google::Cloud::Error.from_error(e)
1198
+ end
1199
+
1200
+ ##
1201
+ # Updates a Session.
1202
+ #
1203
+ # {::Google::Cloud::DiscoveryEngine::V1beta::Session Session} action type cannot
1204
+ # be changed. If the {::Google::Cloud::DiscoveryEngine::V1beta::Session Session}
1205
+ # to update does not exist, a NOT_FOUND error is returned.
1206
+ #
1207
+ # @overload update_session(request, options = nil)
1208
+ # Pass arguments to `update_session` via a request object, either of type
1209
+ # {::Google::Cloud::DiscoveryEngine::V1beta::UpdateSessionRequest} or an equivalent Hash.
1210
+ #
1211
+ # @param request [::Google::Cloud::DiscoveryEngine::V1beta::UpdateSessionRequest, ::Hash]
1212
+ # A request object representing the call parameters. Required. To specify no
1213
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1214
+ # @param options [::Gapic::CallOptions, ::Hash]
1215
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1216
+ #
1217
+ # @overload update_session(session: nil, update_mask: nil)
1218
+ # Pass arguments to `update_session` via keyword arguments. Note that at
1219
+ # least one keyword argument is required. To specify no parameters, or to keep all
1220
+ # the default parameter values, pass an empty Hash as a request object (see above).
1221
+ #
1222
+ # @param session [::Google::Cloud::DiscoveryEngine::V1beta::Session, ::Hash]
1223
+ # Required. The Session to update.
1224
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
1225
+ # Indicates which fields in the provided
1226
+ # {::Google::Cloud::DiscoveryEngine::V1beta::Session Session} to update. The
1227
+ # following are NOT supported:
1228
+ #
1229
+ # * {::Google::Cloud::DiscoveryEngine::V1beta::Session#name Session.name}
1230
+ #
1231
+ # If not set or empty, all supported fields are updated.
1232
+ #
1233
+ # @yield [response, operation] Access the result along with the RPC operation
1234
+ # @yieldparam response [::Google::Cloud::DiscoveryEngine::V1beta::Session]
1235
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1236
+ #
1237
+ # @return [::Google::Cloud::DiscoveryEngine::V1beta::Session]
1238
+ #
1239
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1240
+ #
1241
+ # @example Basic example
1242
+ # require "google/cloud/discovery_engine/v1beta"
1243
+ #
1244
+ # # Create a client object. The client can be reused for multiple calls.
1245
+ # client = Google::Cloud::DiscoveryEngine::V1beta::ConversationalSearchService::Client.new
1246
+ #
1247
+ # # Create a request. To set request fields, pass in keyword arguments.
1248
+ # request = Google::Cloud::DiscoveryEngine::V1beta::UpdateSessionRequest.new
1249
+ #
1250
+ # # Call the update_session method.
1251
+ # result = client.update_session request
1252
+ #
1253
+ # # The returned object is of type Google::Cloud::DiscoveryEngine::V1beta::Session.
1254
+ # p result
1255
+ #
1256
+ def update_session request, options = nil
1257
+ raise ::ArgumentError, "request must be provided" if request.nil?
1258
+
1259
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DiscoveryEngine::V1beta::UpdateSessionRequest
1260
+
1261
+ # Converts hash and nil to an options object
1262
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1263
+
1264
+ # Customize the options with defaults
1265
+ metadata = @config.rpcs.update_session.metadata.to_h
1266
+
1267
+ # Set x-goog-api-client and x-goog-user-project headers
1268
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1269
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1270
+ gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
1271
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1272
+
1273
+ header_params = {}
1274
+ if request.session&.name
1275
+ header_params["session.name"] = request.session.name
1276
+ end
1277
+
1278
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1279
+ metadata[:"x-goog-request-params"] ||= request_params_header
1280
+
1281
+ options.apply_defaults timeout: @config.rpcs.update_session.timeout,
1282
+ metadata: metadata,
1283
+ retry_policy: @config.rpcs.update_session.retry_policy
1284
+
1285
+ options.apply_defaults timeout: @config.timeout,
1286
+ metadata: @config.metadata,
1287
+ retry_policy: @config.retry_policy
1288
+
1289
+ @conversational_search_service_stub.call_rpc :update_session, request, options: options do |response, operation|
1290
+ yield response, operation if block_given?
1291
+ return response
1292
+ end
1293
+ rescue ::GRPC::BadStatus => e
1294
+ raise ::Google::Cloud::Error.from_error(e)
1295
+ end
1296
+
1297
+ ##
1298
+ # Gets a Session.
1299
+ #
1300
+ # @overload get_session(request, options = nil)
1301
+ # Pass arguments to `get_session` via a request object, either of type
1302
+ # {::Google::Cloud::DiscoveryEngine::V1beta::GetSessionRequest} or an equivalent Hash.
1303
+ #
1304
+ # @param request [::Google::Cloud::DiscoveryEngine::V1beta::GetSessionRequest, ::Hash]
1305
+ # A request object representing the call parameters. Required. To specify no
1306
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1307
+ # @param options [::Gapic::CallOptions, ::Hash]
1308
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1309
+ #
1310
+ # @overload get_session(name: nil)
1311
+ # Pass arguments to `get_session` via keyword arguments. Note that at
1312
+ # least one keyword argument is required. To specify no parameters, or to keep all
1313
+ # the default parameter values, pass an empty Hash as a request object (see above).
1314
+ #
1315
+ # @param name [::String]
1316
+ # Required. The resource name of the Session to get. Format:
1317
+ # `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}`
1318
+ #
1319
+ # @yield [response, operation] Access the result along with the RPC operation
1320
+ # @yieldparam response [::Google::Cloud::DiscoveryEngine::V1beta::Session]
1321
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1322
+ #
1323
+ # @return [::Google::Cloud::DiscoveryEngine::V1beta::Session]
1324
+ #
1325
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1326
+ #
1327
+ # @example Basic example
1328
+ # require "google/cloud/discovery_engine/v1beta"
1329
+ #
1330
+ # # Create a client object. The client can be reused for multiple calls.
1331
+ # client = Google::Cloud::DiscoveryEngine::V1beta::ConversationalSearchService::Client.new
1332
+ #
1333
+ # # Create a request. To set request fields, pass in keyword arguments.
1334
+ # request = Google::Cloud::DiscoveryEngine::V1beta::GetSessionRequest.new
1335
+ #
1336
+ # # Call the get_session method.
1337
+ # result = client.get_session request
1338
+ #
1339
+ # # The returned object is of type Google::Cloud::DiscoveryEngine::V1beta::Session.
1340
+ # p result
1341
+ #
1342
+ def get_session request, options = nil
1343
+ raise ::ArgumentError, "request must be provided" if request.nil?
1344
+
1345
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DiscoveryEngine::V1beta::GetSessionRequest
1346
+
1347
+ # Converts hash and nil to an options object
1348
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1349
+
1350
+ # Customize the options with defaults
1351
+ metadata = @config.rpcs.get_session.metadata.to_h
1352
+
1353
+ # Set x-goog-api-client and x-goog-user-project headers
1354
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1355
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1356
+ gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
1357
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1358
+
1359
+ header_params = {}
1360
+ if request.name
1361
+ header_params["name"] = request.name
1362
+ end
1363
+
1364
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1365
+ metadata[:"x-goog-request-params"] ||= request_params_header
1366
+
1367
+ options.apply_defaults timeout: @config.rpcs.get_session.timeout,
1368
+ metadata: metadata,
1369
+ retry_policy: @config.rpcs.get_session.retry_policy
1370
+
1371
+ options.apply_defaults timeout: @config.timeout,
1372
+ metadata: @config.metadata,
1373
+ retry_policy: @config.retry_policy
1374
+
1375
+ @conversational_search_service_stub.call_rpc :get_session, request, options: options do |response, operation|
1376
+ yield response, operation if block_given?
1377
+ return response
1378
+ end
1379
+ rescue ::GRPC::BadStatus => e
1380
+ raise ::Google::Cloud::Error.from_error(e)
1381
+ end
1382
+
1383
+ ##
1384
+ # Lists all Sessions by their parent
1385
+ # {::Google::Cloud::DiscoveryEngine::V1beta::DataStore DataStore}.
1386
+ #
1387
+ # @overload list_sessions(request, options = nil)
1388
+ # Pass arguments to `list_sessions` via a request object, either of type
1389
+ # {::Google::Cloud::DiscoveryEngine::V1beta::ListSessionsRequest} or an equivalent Hash.
1390
+ #
1391
+ # @param request [::Google::Cloud::DiscoveryEngine::V1beta::ListSessionsRequest, ::Hash]
1392
+ # A request object representing the call parameters. Required. To specify no
1393
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1394
+ # @param options [::Gapic::CallOptions, ::Hash]
1395
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1396
+ #
1397
+ # @overload list_sessions(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
1398
+ # Pass arguments to `list_sessions` via keyword arguments. Note that at
1399
+ # least one keyword argument is required. To specify no parameters, or to keep all
1400
+ # the default parameter values, pass an empty Hash as a request object (see above).
1401
+ #
1402
+ # @param parent [::String]
1403
+ # Required. The data store resource name. Format:
1404
+ # `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
1405
+ # @param page_size [::Integer]
1406
+ # Maximum number of results to return. If unspecified, defaults
1407
+ # to 50. Max allowed value is 1000.
1408
+ # @param page_token [::String]
1409
+ # A page token, received from a previous `ListSessions` call.
1410
+ # Provide this to retrieve the subsequent page.
1411
+ # @param filter [::String]
1412
+ # A filter to apply on the list results. The supported features are:
1413
+ # user_pseudo_id, state.
1414
+ #
1415
+ # Example:
1416
+ # "user_pseudo_id = some_id"
1417
+ # @param order_by [::String]
1418
+ # A comma-separated list of fields to order by, sorted in ascending order.
1419
+ # Use "desc" after a field name for descending.
1420
+ # Supported fields:
1421
+ # * `update_time`
1422
+ # * `create_time`
1423
+ # * `session_name`
1424
+ #
1425
+ # Example:
1426
+ # "update_time desc"
1427
+ # "create_time"
1428
+ #
1429
+ # @yield [response, operation] Access the result along with the RPC operation
1430
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::DiscoveryEngine::V1beta::Session>]
1431
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1432
+ #
1433
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::DiscoveryEngine::V1beta::Session>]
1434
+ #
1435
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1436
+ #
1437
+ # @example Basic example
1438
+ # require "google/cloud/discovery_engine/v1beta"
1439
+ #
1440
+ # # Create a client object. The client can be reused for multiple calls.
1441
+ # client = Google::Cloud::DiscoveryEngine::V1beta::ConversationalSearchService::Client.new
1442
+ #
1443
+ # # Create a request. To set request fields, pass in keyword arguments.
1444
+ # request = Google::Cloud::DiscoveryEngine::V1beta::ListSessionsRequest.new
1445
+ #
1446
+ # # Call the list_sessions method.
1447
+ # result = client.list_sessions request
1448
+ #
1449
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1450
+ # # over elements, and API calls will be issued to fetch pages as needed.
1451
+ # result.each do |item|
1452
+ # # Each element is of type ::Google::Cloud::DiscoveryEngine::V1beta::Session.
1453
+ # p item
1454
+ # end
1455
+ #
1456
+ def list_sessions request, options = nil
1457
+ raise ::ArgumentError, "request must be provided" if request.nil?
1458
+
1459
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DiscoveryEngine::V1beta::ListSessionsRequest
1460
+
1461
+ # Converts hash and nil to an options object
1462
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1463
+
1464
+ # Customize the options with defaults
1465
+ metadata = @config.rpcs.list_sessions.metadata.to_h
1466
+
1467
+ # Set x-goog-api-client and x-goog-user-project headers
1468
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1469
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1470
+ gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
1471
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1472
+
1473
+ header_params = {}
1474
+ if request.parent
1475
+ header_params["parent"] = request.parent
1476
+ end
1477
+
1478
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1479
+ metadata[:"x-goog-request-params"] ||= request_params_header
1480
+
1481
+ options.apply_defaults timeout: @config.rpcs.list_sessions.timeout,
1482
+ metadata: metadata,
1483
+ retry_policy: @config.rpcs.list_sessions.retry_policy
1484
+
1485
+ options.apply_defaults timeout: @config.timeout,
1486
+ metadata: @config.metadata,
1487
+ retry_policy: @config.retry_policy
1488
+
1489
+ @conversational_search_service_stub.call_rpc :list_sessions, request, options: options do |response, operation|
1490
+ response = ::Gapic::PagedEnumerable.new @conversational_search_service_stub, :list_sessions, request, response, operation, options
1491
+ yield response, operation if block_given?
1492
+ return response
1493
+ end
1494
+ rescue ::GRPC::BadStatus => e
1495
+ raise ::Google::Cloud::Error.from_error(e)
1496
+ end
1497
+
801
1498
  ##
802
1499
  # Configuration class for the ConversationalSearchService API.
803
1500
  #
@@ -981,6 +1678,41 @@ module Google
981
1678
  # @return [::Gapic::Config::Method]
982
1679
  #
983
1680
  attr_reader :list_conversations
1681
+ ##
1682
+ # RPC-specific configuration for `answer_query`
1683
+ # @return [::Gapic::Config::Method]
1684
+ #
1685
+ attr_reader :answer_query
1686
+ ##
1687
+ # RPC-specific configuration for `get_answer`
1688
+ # @return [::Gapic::Config::Method]
1689
+ #
1690
+ attr_reader :get_answer
1691
+ ##
1692
+ # RPC-specific configuration for `create_session`
1693
+ # @return [::Gapic::Config::Method]
1694
+ #
1695
+ attr_reader :create_session
1696
+ ##
1697
+ # RPC-specific configuration for `delete_session`
1698
+ # @return [::Gapic::Config::Method]
1699
+ #
1700
+ attr_reader :delete_session
1701
+ ##
1702
+ # RPC-specific configuration for `update_session`
1703
+ # @return [::Gapic::Config::Method]
1704
+ #
1705
+ attr_reader :update_session
1706
+ ##
1707
+ # RPC-specific configuration for `get_session`
1708
+ # @return [::Gapic::Config::Method]
1709
+ #
1710
+ attr_reader :get_session
1711
+ ##
1712
+ # RPC-specific configuration for `list_sessions`
1713
+ # @return [::Gapic::Config::Method]
1714
+ #
1715
+ attr_reader :list_sessions
984
1716
 
985
1717
  # @private
986
1718
  def initialize parent_rpcs = nil
@@ -996,6 +1728,20 @@ module Google
996
1728
  @get_conversation = ::Gapic::Config::Method.new get_conversation_config
997
1729
  list_conversations_config = parent_rpcs.list_conversations if parent_rpcs.respond_to? :list_conversations
998
1730
  @list_conversations = ::Gapic::Config::Method.new list_conversations_config
1731
+ answer_query_config = parent_rpcs.answer_query if parent_rpcs.respond_to? :answer_query
1732
+ @answer_query = ::Gapic::Config::Method.new answer_query_config
1733
+ get_answer_config = parent_rpcs.get_answer if parent_rpcs.respond_to? :get_answer
1734
+ @get_answer = ::Gapic::Config::Method.new get_answer_config
1735
+ create_session_config = parent_rpcs.create_session if parent_rpcs.respond_to? :create_session
1736
+ @create_session = ::Gapic::Config::Method.new create_session_config
1737
+ delete_session_config = parent_rpcs.delete_session if parent_rpcs.respond_to? :delete_session
1738
+ @delete_session = ::Gapic::Config::Method.new delete_session_config
1739
+ update_session_config = parent_rpcs.update_session if parent_rpcs.respond_to? :update_session
1740
+ @update_session = ::Gapic::Config::Method.new update_session_config
1741
+ get_session_config = parent_rpcs.get_session if parent_rpcs.respond_to? :get_session
1742
+ @get_session = ::Gapic::Config::Method.new get_session_config
1743
+ list_sessions_config = parent_rpcs.list_sessions if parent_rpcs.respond_to? :list_sessions
1744
+ @list_sessions = ::Gapic::Config::Method.new list_sessions_config
999
1745
 
1000
1746
  yield self if block_given?
1001
1747
  end