google-cloud-ces-v1beta 1.1.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -6
  3. data/lib/google/cloud/ces/v1beta/agent_card_pb.rb +3 -1
  4. data/lib/google/cloud/ces/v1beta/agent_pb.rb +3 -1
  5. data/lib/google/cloud/ces/v1beta/agent_service/client.rb +105 -1
  6. data/lib/google/cloud/ces/v1beta/agent_service/paths.rb +54 -11
  7. data/lib/google/cloud/ces/v1beta/agent_service/rest/client.rb +98 -1
  8. data/lib/google/cloud/ces/v1beta/agent_service/rest/service_stub.rb +62 -0
  9. data/lib/google/cloud/ces/v1beta/agent_service_pb.rb +3 -1
  10. data/lib/google/cloud/ces/v1beta/agent_service_services_pb.rb +2 -0
  11. data/lib/google/cloud/ces/v1beta/app_pb.rb +6 -1
  12. data/lib/google/cloud/ces/v1beta/app_version_pb.rb +1 -1
  13. data/lib/google/cloud/ces/v1beta/assistant_service/client.rb +1023 -0
  14. data/lib/google/cloud/ces/v1beta/assistant_service/credentials.rb +48 -0
  15. data/lib/google/cloud/ces/v1beta/assistant_service/paths.rb +73 -0
  16. data/lib/google/cloud/ces/v1beta/assistant_service/rest/client.rb +946 -0
  17. data/lib/google/cloud/ces/v1beta/assistant_service/rest/service_stub.rb +450 -0
  18. data/lib/google/cloud/ces/v1beta/assistant_service/rest.rb +55 -0
  19. data/lib/google/cloud/ces/v1beta/assistant_service.rb +57 -0
  20. data/lib/google/cloud/ces/v1beta/assistant_service_pb.rb +49 -0
  21. data/lib/google/cloud/ces/v1beta/assistant_service_services_pb.rb +57 -0
  22. data/lib/google/cloud/ces/v1beta/common_pb.rb +4 -1
  23. data/lib/google/cloud/ces/v1beta/conversation_pb.rb +1 -1
  24. data/lib/google/cloud/ces/v1beta/data_store_tool_pb.rb +2 -1
  25. data/lib/google/cloud/ces/v1beta/deployment_pb.rb +3 -1
  26. data/lib/google/cloud/ces/v1beta/evaluation_pb.rb +2 -1
  27. data/lib/google/cloud/ces/v1beta/evaluation_service/client.rb +2 -2
  28. data/lib/google/cloud/ces/v1beta/evaluation_service/rest/client.rb +2 -2
  29. data/lib/google/cloud/ces/v1beta/example_pb.rb +1 -1
  30. data/lib/google/cloud/ces/v1beta/guardrail_pb.rb +4 -1
  31. data/lib/google/cloud/ces/v1beta/rest.rb +1 -0
  32. data/lib/google/cloud/ces/v1beta/session_service/client.rb +333 -0
  33. data/lib/google/cloud/ces/v1beta/session_service/paths.rb +40 -0
  34. data/lib/google/cloud/ces/v1beta/session_service/rest/client.rb +314 -0
  35. data/lib/google/cloud/ces/v1beta/session_service/rest/service_stub.rb +180 -0
  36. data/lib/google/cloud/ces/v1beta/session_service_pb.rb +33 -1
  37. data/lib/google/cloud/ces/v1beta/session_service_services_pb.rb +14 -0
  38. data/lib/google/cloud/ces/v1beta/tool_pb.rb +1 -1
  39. data/lib/google/cloud/ces/v1beta/version.rb +1 -1
  40. data/lib/google/cloud/ces/v1beta.rb +1 -0
  41. data/proto_docs/google/api/field_info.rb +88 -0
  42. data/proto_docs/google/cloud/ces/v1beta/agent.rb +18 -2
  43. data/proto_docs/google/cloud/ces/v1beta/agent_card.rb +91 -0
  44. data/proto_docs/google/cloud/ces/v1beta/agent_service.rb +40 -0
  45. data/proto_docs/google/cloud/ces/v1beta/app.rb +113 -4
  46. data/proto_docs/google/cloud/ces/v1beta/app_version.rb +3 -0
  47. data/proto_docs/google/cloud/ces/v1beta/assistant_service.rb +452 -0
  48. data/proto_docs/google/cloud/ces/v1beta/common.rb +44 -0
  49. data/proto_docs/google/cloud/ces/v1beta/conversation.rb +4 -0
  50. data/proto_docs/google/cloud/ces/v1beta/data_store_tool.rb +16 -0
  51. data/proto_docs/google/cloud/ces/v1beta/deployment.rb +43 -2
  52. data/proto_docs/google/cloud/ces/v1beta/evaluation.rb +21 -5
  53. data/proto_docs/google/cloud/ces/v1beta/example.rb +23 -0
  54. data/proto_docs/google/cloud/ces/v1beta/guardrail.rb +88 -6
  55. data/proto_docs/google/cloud/ces/v1beta/session_service.rb +749 -11
  56. data/proto_docs/google/cloud/ces/v1beta/tool.rb +4 -0
  57. metadata +12 -1
@@ -86,6 +86,11 @@ module Google
86
86
  initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: []
87
87
  }
88
88
 
89
+ default_config.rpcs.stream_chat_ai_assistant.timeout = 3600.0
90
+ default_config.rpcs.stream_chat_ai_assistant.retry_policy = {
91
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: []
92
+ }
93
+
89
94
  default_config
90
95
  end
91
96
  yield @configure if block_given?
@@ -540,6 +545,313 @@ module Google
540
545
  raise ::Google::Cloud::Error.from_error(e)
541
546
  end
542
547
 
548
+ ##
549
+ # Runs Arc, the AI assistant, for the specified assistant session in a
550
+ # streaming fashion.
551
+ #
552
+ # @overload stream_chat_ai_assistant(request, options = nil)
553
+ # Pass arguments to `stream_chat_ai_assistant` via a request object, either of type
554
+ # {::Google::Cloud::Ces::V1beta::StreamChatAiAssistantRequest} or an equivalent Hash.
555
+ #
556
+ # @param request [::Google::Cloud::Ces::V1beta::StreamChatAiAssistantRequest, ::Hash]
557
+ # A request object representing the call parameters. Required. To specify no
558
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
559
+ # @param options [::Gapic::CallOptions, ::Hash]
560
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
561
+ #
562
+ # @overload stream_chat_ai_assistant(name: nil, message: nil, attached_gcs_uris: nil, context_token: nil, confirmation_response: nil, client_capabilities: nil, operation_completed_event: nil, resume_from_sequence_number: nil, attach_only: nil)
563
+ # Pass arguments to `stream_chat_ai_assistant` via keyword arguments. Note that at
564
+ # least one keyword argument is required. To specify no parameters, or to keep all
565
+ # the default parameter values, pass an empty Hash as a request object (see above).
566
+ #
567
+ # @param name [::String]
568
+ # Required. The assistant session to be used to run the assistant.
569
+ # Format:
570
+ # `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}`
571
+ # @param message [::String]
572
+ # Optional. The message to send to the assistant agent. May be empty when
573
+ # `confirmation_response` is set (answering a pending confirmation without
574
+ # adding a new message); at least one of the two must be provided.
575
+ # @param attached_gcs_uris [::Array<::String>]
576
+ # Optional. Cloud Storage URIs for files uploaded by the user during this
577
+ # turn. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
578
+ # @param context_token [::String]
579
+ # Optional. Opaque onboarding context token returned by
580
+ # {::Google::Cloud::Ces::V1beta::SessionService::Client#generate_onboarding_suggestions SessionService.GenerateOnboardingSuggestions}.
581
+ # When set and still fresh, the server reuses the onboarding snapshot
582
+ # computed for the zero state instead of recomputing it for the first
583
+ # conversation turn.
584
+ # @param confirmation_response [::Google::Cloud::Ces::V1beta::AssistantConfirmationResponse, ::Hash]
585
+ # Optional. The user's answer to a pending
586
+ # {::Google::Cloud::Ces::V1beta::AssistantConfirmationRequest AssistantConfirmationRequest}.
587
+ # When set, the server resumes the paused agent with this answer instead of
588
+ # (or in addition to) starting a new prompt turn.
589
+ # @param client_capabilities [::Array<::Google::Cloud::Ces::V1beta::StreamChatAiAssistantRequest::ClientCapability>]
590
+ # Optional. Response features this client can render. The server only emits
591
+ # events that need a capability (e.g. `confirmation_request`) when the
592
+ # capability is declared, so older clients never receive events they would
593
+ # silently drop.
594
+ # @param operation_completed_event [::Google::Cloud::Ces::V1beta::OperationCompletedEvent, ::Hash]
595
+ # Optional. Resumes an assistant session paused waiting for a client-managed
596
+ # long-running operation to complete.
597
+ # @param resume_from_sequence_number [::Integer]
598
+ # Optional. Optional cursor to resume and replay events from an in-flight or
599
+ # completed turn.
600
+ # @param attach_only [::Boolean]
601
+ # Optional. Optional flag to attach to an existing in-flight turn without
602
+ # submitting a new message.
603
+ #
604
+ # @yield [response, operation] Access the result along with the RPC operation
605
+ # @yieldparam response [::Enumerable<::Google::Cloud::Ces::V1beta::StreamChatAiAssistantResponse>]
606
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
607
+ #
608
+ # @return [::Enumerable<::Google::Cloud::Ces::V1beta::StreamChatAiAssistantResponse>]
609
+ #
610
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
611
+ #
612
+ # @example Basic example
613
+ # require "google/cloud/ces/v1beta"
614
+ #
615
+ # # Create a client object. The client can be reused for multiple calls.
616
+ # client = Google::Cloud::Ces::V1beta::SessionService::Client.new
617
+ #
618
+ # # Create a request. To set request fields, pass in keyword arguments.
619
+ # request = Google::Cloud::Ces::V1beta::StreamChatAiAssistantRequest.new
620
+ #
621
+ # # Call the stream_chat_ai_assistant method to start streaming.
622
+ # output = client.stream_chat_ai_assistant request
623
+ #
624
+ # # The returned object is a streamed enumerable yielding elements of type
625
+ # # ::Google::Cloud::Ces::V1beta::StreamChatAiAssistantResponse
626
+ # output.each do |current_response|
627
+ # p current_response
628
+ # end
629
+ #
630
+ def stream_chat_ai_assistant request, options = nil
631
+ raise ::ArgumentError, "request must be provided" if request.nil?
632
+
633
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Ces::V1beta::StreamChatAiAssistantRequest
634
+
635
+ # Converts hash and nil to an options object
636
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
637
+
638
+ # Customize the options with defaults
639
+ metadata = @config.rpcs.stream_chat_ai_assistant.metadata.to_h
640
+
641
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
642
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
643
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
644
+ gapic_version: ::Google::Cloud::Ces::V1beta::VERSION
645
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
646
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
647
+
648
+ header_params = {}
649
+ if request.name
650
+ header_params["name"] = request.name
651
+ end
652
+
653
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
654
+ metadata[:"x-goog-request-params"] ||= request_params_header
655
+
656
+ options.apply_defaults timeout: @config.rpcs.stream_chat_ai_assistant.timeout,
657
+ metadata: metadata,
658
+ retry_policy: @config.rpcs.stream_chat_ai_assistant.retry_policy
659
+
660
+ options.apply_defaults timeout: @config.timeout,
661
+ metadata: @config.metadata,
662
+ retry_policy: @config.retry_policy
663
+
664
+ @session_service_stub.call_rpc :stream_chat_ai_assistant, request, options: options do |response, operation|
665
+ yield response, operation if block_given?
666
+ end
667
+ rescue ::GRPC::BadStatus => e
668
+ raise ::Google::Cloud::Error.from_error(e)
669
+ end
670
+
671
+ ##
672
+ # Cancels the assistant session's in-flight turn, if any: the explicit user
673
+ # stop for a turn running detached from any stream. A cancel landing on a
674
+ # task that does not host the turn preempts it through the session turn
675
+ # epoch instead, ending it within one lease renewal.
676
+ #
677
+ # @overload cancel_assistant_turn(request, options = nil)
678
+ # Pass arguments to `cancel_assistant_turn` via a request object, either of type
679
+ # {::Google::Cloud::Ces::V1beta::CancelAssistantTurnRequest} or an equivalent Hash.
680
+ #
681
+ # @param request [::Google::Cloud::Ces::V1beta::CancelAssistantTurnRequest, ::Hash]
682
+ # A request object representing the call parameters. Required. To specify no
683
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
684
+ # @param options [::Gapic::CallOptions, ::Hash]
685
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
686
+ #
687
+ # @overload cancel_assistant_turn(name: nil, turn_id: nil)
688
+ # Pass arguments to `cancel_assistant_turn` via keyword arguments. Note that at
689
+ # least one keyword argument is required. To specify no parameters, or to keep all
690
+ # the default parameter values, pass an empty Hash as a request object (see above).
691
+ #
692
+ # @param name [::String]
693
+ # Required. The assistant session whose in-flight turn to cancel.
694
+ # @param turn_id [::String]
695
+ # Optional. The turn to cancel; empty cancels whichever turn is running. A
696
+ # cancel naming a turn that is no longer the running one is a no-op.
697
+ #
698
+ # @yield [response, operation] Access the result along with the RPC operation
699
+ # @yieldparam response [::Google::Cloud::Ces::V1beta::CancelAssistantTurnResponse]
700
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
701
+ #
702
+ # @return [::Google::Cloud::Ces::V1beta::CancelAssistantTurnResponse]
703
+ #
704
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
705
+ #
706
+ # @example Basic example
707
+ # require "google/cloud/ces/v1beta"
708
+ #
709
+ # # Create a client object. The client can be reused for multiple calls.
710
+ # client = Google::Cloud::Ces::V1beta::SessionService::Client.new
711
+ #
712
+ # # Create a request. To set request fields, pass in keyword arguments.
713
+ # request = Google::Cloud::Ces::V1beta::CancelAssistantTurnRequest.new
714
+ #
715
+ # # Call the cancel_assistant_turn method.
716
+ # result = client.cancel_assistant_turn request
717
+ #
718
+ # # The returned object is of type Google::Cloud::Ces::V1beta::CancelAssistantTurnResponse.
719
+ # p result
720
+ #
721
+ def cancel_assistant_turn request, options = nil
722
+ raise ::ArgumentError, "request must be provided" if request.nil?
723
+
724
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Ces::V1beta::CancelAssistantTurnRequest
725
+
726
+ # Converts hash and nil to an options object
727
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
728
+
729
+ # Customize the options with defaults
730
+ metadata = @config.rpcs.cancel_assistant_turn.metadata.to_h
731
+
732
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
733
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
734
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
735
+ gapic_version: ::Google::Cloud::Ces::V1beta::VERSION
736
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
737
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
738
+
739
+ header_params = {}
740
+ if request.name
741
+ header_params["name"] = request.name
742
+ end
743
+
744
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
745
+ metadata[:"x-goog-request-params"] ||= request_params_header
746
+
747
+ options.apply_defaults timeout: @config.rpcs.cancel_assistant_turn.timeout,
748
+ metadata: metadata,
749
+ retry_policy: @config.rpcs.cancel_assistant_turn.retry_policy
750
+
751
+ options.apply_defaults timeout: @config.timeout,
752
+ metadata: @config.metadata,
753
+ retry_policy: @config.retry_policy
754
+
755
+ @session_service_stub.call_rpc :cancel_assistant_turn, request, options: options do |response, operation|
756
+ yield response, operation if block_given?
757
+ end
758
+ rescue ::GRPC::BadStatus => e
759
+ raise ::Google::Cloud::Error.from_error(e)
760
+ end
761
+
762
+ ##
763
+ # Generates personalized onboarding suggestions for the Arc
764
+ # zero state: classifies the requesting user (new / exploring / returning)
765
+ # from their assistant-session history in the app and returns suggestion
766
+ # chips (resume a session, continue work, or start something new) to render
767
+ # before any message is sent.
768
+ #
769
+ # @overload generate_onboarding_suggestions(request, options = nil)
770
+ # Pass arguments to `generate_onboarding_suggestions` via a request object, either of type
771
+ # {::Google::Cloud::Ces::V1beta::GenerateOnboardingSuggestionsRequest} or an equivalent Hash.
772
+ #
773
+ # @param request [::Google::Cloud::Ces::V1beta::GenerateOnboardingSuggestionsRequest, ::Hash]
774
+ # A request object representing the call parameters. Required. To specify no
775
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
776
+ # @param options [::Gapic::CallOptions, ::Hash]
777
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
778
+ #
779
+ # @overload generate_onboarding_suggestions(name: nil, max_suggestions: nil)
780
+ # Pass arguments to `generate_onboarding_suggestions` via keyword arguments. Note that at
781
+ # least one keyword argument is required. To specify no parameters, or to keep all
782
+ # the default parameter values, pass an empty Hash as a request object (see above).
783
+ #
784
+ # @param name [::String]
785
+ # Required. The app whose zero state is being rendered.
786
+ # Format: `projects/{project}/locations/{location}/apps/{app}`
787
+ # @param max_suggestions [::Integer]
788
+ # Optional. Maximum number of suggestions to return. Defaults to 4 when
789
+ # unset.
790
+ #
791
+ # @yield [response, operation] Access the result along with the RPC operation
792
+ # @yieldparam response [::Google::Cloud::Ces::V1beta::GenerateOnboardingSuggestionsResponse]
793
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
794
+ #
795
+ # @return [::Google::Cloud::Ces::V1beta::GenerateOnboardingSuggestionsResponse]
796
+ #
797
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
798
+ #
799
+ # @example Basic example
800
+ # require "google/cloud/ces/v1beta"
801
+ #
802
+ # # Create a client object. The client can be reused for multiple calls.
803
+ # client = Google::Cloud::Ces::V1beta::SessionService::Client.new
804
+ #
805
+ # # Create a request. To set request fields, pass in keyword arguments.
806
+ # request = Google::Cloud::Ces::V1beta::GenerateOnboardingSuggestionsRequest.new
807
+ #
808
+ # # Call the generate_onboarding_suggestions method.
809
+ # result = client.generate_onboarding_suggestions request
810
+ #
811
+ # # The returned object is of type Google::Cloud::Ces::V1beta::GenerateOnboardingSuggestionsResponse.
812
+ # p result
813
+ #
814
+ def generate_onboarding_suggestions request, options = nil
815
+ raise ::ArgumentError, "request must be provided" if request.nil?
816
+
817
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Ces::V1beta::GenerateOnboardingSuggestionsRequest
818
+
819
+ # Converts hash and nil to an options object
820
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
821
+
822
+ # Customize the options with defaults
823
+ metadata = @config.rpcs.generate_onboarding_suggestions.metadata.to_h
824
+
825
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
826
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
827
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
828
+ gapic_version: ::Google::Cloud::Ces::V1beta::VERSION
829
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
830
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
831
+
832
+ header_params = {}
833
+ if request.name
834
+ header_params["name"] = request.name
835
+ end
836
+
837
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
838
+ metadata[:"x-goog-request-params"] ||= request_params_header
839
+
840
+ options.apply_defaults timeout: @config.rpcs.generate_onboarding_suggestions.timeout,
841
+ metadata: metadata,
842
+ retry_policy: @config.rpcs.generate_onboarding_suggestions.retry_policy
843
+
844
+ options.apply_defaults timeout: @config.timeout,
845
+ metadata: @config.metadata,
846
+ retry_policy: @config.retry_policy
847
+
848
+ @session_service_stub.call_rpc :generate_onboarding_suggestions, request, options: options do |response, operation|
849
+ yield response, operation if block_given?
850
+ end
851
+ rescue ::GRPC::BadStatus => e
852
+ raise ::Google::Cloud::Error.from_error(e)
853
+ end
854
+
543
855
  ##
544
856
  # Configuration class for the SessionService API.
545
857
  #
@@ -740,6 +1052,21 @@ module Google
740
1052
  # @return [::Gapic::Config::Method]
741
1053
  #
742
1054
  attr_reader :bidi_run_session
1055
+ ##
1056
+ # RPC-specific configuration for `stream_chat_ai_assistant`
1057
+ # @return [::Gapic::Config::Method]
1058
+ #
1059
+ attr_reader :stream_chat_ai_assistant
1060
+ ##
1061
+ # RPC-specific configuration for `cancel_assistant_turn`
1062
+ # @return [::Gapic::Config::Method]
1063
+ #
1064
+ attr_reader :cancel_assistant_turn
1065
+ ##
1066
+ # RPC-specific configuration for `generate_onboarding_suggestions`
1067
+ # @return [::Gapic::Config::Method]
1068
+ #
1069
+ attr_reader :generate_onboarding_suggestions
743
1070
 
744
1071
  # @private
745
1072
  def initialize parent_rpcs = nil
@@ -749,6 +1076,12 @@ module Google
749
1076
  @stream_run_session = ::Gapic::Config::Method.new stream_run_session_config
750
1077
  bidi_run_session_config = parent_rpcs.bidi_run_session if parent_rpcs.respond_to? :bidi_run_session
751
1078
  @bidi_run_session = ::Gapic::Config::Method.new bidi_run_session_config
1079
+ stream_chat_ai_assistant_config = parent_rpcs.stream_chat_ai_assistant if parent_rpcs.respond_to? :stream_chat_ai_assistant
1080
+ @stream_chat_ai_assistant = ::Gapic::Config::Method.new stream_chat_ai_assistant_config
1081
+ cancel_assistant_turn_config = parent_rpcs.cancel_assistant_turn if parent_rpcs.respond_to? :cancel_assistant_turn
1082
+ @cancel_assistant_turn = ::Gapic::Config::Method.new cancel_assistant_turn_config
1083
+ generate_onboarding_suggestions_config = parent_rpcs.generate_onboarding_suggestions if parent_rpcs.respond_to? :generate_onboarding_suggestions
1084
+ @generate_onboarding_suggestions = ::Gapic::Config::Method.new generate_onboarding_suggestions_config
752
1085
 
753
1086
  yield self if block_given?
754
1087
  end
@@ -45,6 +45,46 @@ module Google
45
45
  "projects/#{project}/locations/#{location}/apps/#{app}/agents/#{agent}"
46
46
  end
47
47
 
48
+ ##
49
+ # Create a fully-qualified App resource string.
50
+ #
51
+ # The resource will be in the following format:
52
+ #
53
+ # `projects/{project}/locations/{location}/apps/{app}`
54
+ #
55
+ # @param project [String]
56
+ # @param location [String]
57
+ # @param app [String]
58
+ #
59
+ # @return [::String]
60
+ def app_path project:, location:, app:
61
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
62
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
63
+
64
+ "projects/#{project}/locations/#{location}/apps/#{app}"
65
+ end
66
+
67
+ ##
68
+ # Create a fully-qualified AssistantSession resource string.
69
+ #
70
+ # The resource will be in the following format:
71
+ #
72
+ # `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}`
73
+ #
74
+ # @param project [String]
75
+ # @param location [String]
76
+ # @param app [String]
77
+ # @param assistant_session [String]
78
+ #
79
+ # @return [::String]
80
+ def assistant_session_path project:, location:, app:, assistant_session:
81
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
82
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
83
+ raise ::ArgumentError, "app cannot contain /" if app.to_s.include? "/"
84
+
85
+ "projects/#{project}/locations/#{location}/apps/#{app}/assistantSessions/#{assistant_session}"
86
+ end
87
+
48
88
  ##
49
89
  # Create a fully-qualified Session resource string.
50
90
  #