google-cloud-dialogflow-cx-v3 1.7.0 → 1.8.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.
- checksums.yaml +4 -4
- data/lib/google/cloud/dialogflow/cx/v3/agents/client.rb +3 -3
- data/lib/google/cloud/dialogflow/cx/v3/agents/rest/client.rb +3 -3
- data/lib/google/cloud/dialogflow/cx/v3/entity_types/client.rb +4 -4
- data/lib/google/cloud/dialogflow/cx/v3/entity_types/rest/client.rb +4 -4
- data/lib/google/cloud/dialogflow/cx/v3/flows/client.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/flows/paths.rb +21 -0
- data/lib/google/cloud/dialogflow/cx/v3/flows/rest/client.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/fulfillment_pb.rb +3 -1
- data/lib/google/cloud/dialogflow/cx/v3/intents/client.rb +4 -4
- data/lib/google/cloud/dialogflow/cx/v3/intents/rest/client.rb +4 -4
- data/lib/google/cloud/dialogflow/cx/v3/pages/paths.rb +21 -0
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/client.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/paths.rb +21 -0
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/rest/client.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/paths.rb +21 -0
- data/lib/google/cloud/dialogflow/cx/v3/version.rb +1 -1
- data/proto_docs/google/cloud/dialogflow/cx/v3/fulfillment.rb +38 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb932efc2bbfe19967bc8c988e3412fdaa98bcf48cc7a2bf0904f8fff82ba787
|
4
|
+
data.tar.gz: 431982bbfa2ea9219abe78e256c4da552fa2b33acd63c255192c10d31208db05
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec7c3ea618a1c2ad918c449e47c3d40e002eb1cbbbb5c419c77a65bcfe95f90b8dbcdf894fbc6762850b1dd6de0f1f1263fb0ed0ce1d2525efcbb97ac0d54679
|
7
|
+
data.tar.gz: 97b1a2df0ec9a6f25241e86e5ab65852e56aa2a57dd13982e58ce7ff4f96dc452366e3bf38c28c65e6cf5752a93cf3fd57a7659e4a8e96d3dbbcd117f17bcd8d
|
@@ -851,15 +851,15 @@ module Google
|
|
851
851
|
# [Dialogflow access
|
852
852
|
# control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
|
853
853
|
#
|
854
|
-
# Note: The following
|
854
|
+
# Note: The following parameters are mutually exclusive: `agent_uri`, `agent_content`, `git_source`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
|
855
855
|
# @param agent_content [::String]
|
856
856
|
# Uncompressed raw byte content for agent.
|
857
857
|
#
|
858
|
-
# Note: The following
|
858
|
+
# Note: The following parameters are mutually exclusive: `agent_content`, `agent_uri`, `git_source`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
|
859
859
|
# @param git_source [::Google::Cloud::Dialogflow::CX::V3::RestoreAgentRequest::GitSource, ::Hash]
|
860
860
|
# Setting for restoring from a git branch
|
861
861
|
#
|
862
|
-
# Note: The following
|
862
|
+
# Note: The following parameters are mutually exclusive: `git_source`, `agent_uri`, `agent_content`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
|
863
863
|
# @param restore_option [::Google::Cloud::Dialogflow::CX::V3::RestoreAgentRequest::RestoreOption]
|
864
864
|
# Agent restore mode. If not specified, `KEEP` is assumed.
|
865
865
|
#
|
@@ -803,15 +803,15 @@ module Google
|
|
803
803
|
# [Dialogflow access
|
804
804
|
# control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
|
805
805
|
#
|
806
|
-
# Note: The following
|
806
|
+
# Note: The following parameters are mutually exclusive: `agent_uri`, `agent_content`, `git_source`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
|
807
807
|
# @param agent_content [::String]
|
808
808
|
# Uncompressed raw byte content for agent.
|
809
809
|
#
|
810
|
-
# Note: The following
|
810
|
+
# Note: The following parameters are mutually exclusive: `agent_content`, `agent_uri`, `git_source`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
|
811
811
|
# @param git_source [::Google::Cloud::Dialogflow::CX::V3::RestoreAgentRequest::GitSource, ::Hash]
|
812
812
|
# Setting for restoring from a git branch
|
813
813
|
#
|
814
|
-
# Note: The following
|
814
|
+
# Note: The following parameters are mutually exclusive: `git_source`, `agent_uri`, `agent_content`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
|
815
815
|
# @param restore_option [::Google::Cloud::Dialogflow::CX::V3::RestoreAgentRequest::RestoreOption]
|
816
816
|
# Agent restore mode. If not specified, `KEEP` is assumed.
|
817
817
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
@@ -777,11 +777,11 @@ module Google
|
|
777
777
|
# [Dialogflow access
|
778
778
|
# control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
|
779
779
|
#
|
780
|
-
# Note: The following
|
780
|
+
# Note: The following parameters are mutually exclusive: `entity_types_uri`, `entity_types_content_inline`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
|
781
781
|
# @param entity_types_content_inline [::Boolean]
|
782
782
|
# Optional. The option to return the serialized entity types inline.
|
783
783
|
#
|
784
|
-
# Note: The following
|
784
|
+
# Note: The following parameters are mutually exclusive: `entity_types_content_inline`, `entity_types_uri`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
|
785
785
|
# @param data_format [::Google::Cloud::Dialogflow::CX::V3::ExportEntityTypesRequest::DataFormat]
|
786
786
|
# Optional. The data format of the exported entity types. If not specified,
|
787
787
|
# `BLOB` is assumed.
|
@@ -904,11 +904,11 @@ module Google
|
|
904
904
|
# [Dialogflow access
|
905
905
|
# control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
|
906
906
|
#
|
907
|
-
# Note: The following
|
907
|
+
# Note: The following parameters are mutually exclusive: `entity_types_uri`, `entity_types_content`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
|
908
908
|
# @param entity_types_content [::Google::Cloud::Dialogflow::CX::V3::InlineSource, ::Hash]
|
909
909
|
# Uncompressed byte content of entity types.
|
910
910
|
#
|
911
|
-
# Note: The following
|
911
|
+
# Note: The following parameters are mutually exclusive: `entity_types_content`, `entity_types_uri`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
|
912
912
|
# @param merge_option [::Google::Cloud::Dialogflow::CX::V3::ImportEntityTypesRequest::MergeOption]
|
913
913
|
# Required. Merge option for importing entity types.
|
914
914
|
# @param target_entity_type [::String]
|
@@ -736,11 +736,11 @@ module Google
|
|
736
736
|
# [Dialogflow access
|
737
737
|
# control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
|
738
738
|
#
|
739
|
-
# Note: The following
|
739
|
+
# Note: The following parameters are mutually exclusive: `entity_types_uri`, `entity_types_content_inline`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
|
740
740
|
# @param entity_types_content_inline [::Boolean]
|
741
741
|
# Optional. The option to return the serialized entity types inline.
|
742
742
|
#
|
743
|
-
# Note: The following
|
743
|
+
# Note: The following parameters are mutually exclusive: `entity_types_content_inline`, `entity_types_uri`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
|
744
744
|
# @param data_format [::Google::Cloud::Dialogflow::CX::V3::ExportEntityTypesRequest::DataFormat]
|
745
745
|
# Optional. The data format of the exported entity types. If not specified,
|
746
746
|
# `BLOB` is assumed.
|
@@ -856,11 +856,11 @@ module Google
|
|
856
856
|
# [Dialogflow access
|
857
857
|
# control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
|
858
858
|
#
|
859
|
-
# Note: The following
|
859
|
+
# Note: The following parameters are mutually exclusive: `entity_types_uri`, `entity_types_content`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
|
860
860
|
# @param entity_types_content [::Google::Cloud::Dialogflow::CX::V3::InlineSource, ::Hash]
|
861
861
|
# Uncompressed byte content of entity types.
|
862
862
|
#
|
863
|
-
# Note: The following
|
863
|
+
# Note: The following parameters are mutually exclusive: `entity_types_content`, `entity_types_uri`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
|
864
864
|
# @param merge_option [::Google::Cloud::Dialogflow::CX::V3::ImportEntityTypesRequest::MergeOption]
|
865
865
|
# Required. Merge option for importing entity types.
|
866
866
|
# @param target_entity_type [::String]
|
@@ -1075,11 +1075,11 @@ module Google
|
|
1075
1075
|
# [Dialogflow access
|
1076
1076
|
# control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
|
1077
1077
|
#
|
1078
|
-
# Note: The following
|
1078
|
+
# Note: The following parameters are mutually exclusive: `flow_uri`, `flow_content`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
|
1079
1079
|
# @param flow_content [::String]
|
1080
1080
|
# Uncompressed raw byte content for flow.
|
1081
1081
|
#
|
1082
|
-
# Note: The following
|
1082
|
+
# Note: The following parameters are mutually exclusive: `flow_content`, `flow_uri`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
|
1083
1083
|
# @param import_option [::Google::Cloud::Dialogflow::CX::V3::ImportFlowRequest::ImportOption]
|
1084
1084
|
# Flow import mode. If not specified, `KEEP` is assumed.
|
1085
1085
|
# @param flow_import_strategy [::Google::Cloud::Dialogflow::CX::V3::FlowImportStrategy, ::Hash]
|
@@ -86,6 +86,27 @@ module Google
|
|
86
86
|
"projects/#{project}/locations/#{location}/agents/#{agent}/flows/#{flow}/validationResult"
|
87
87
|
end
|
88
88
|
|
89
|
+
##
|
90
|
+
# Create a fully-qualified Generator resource string.
|
91
|
+
#
|
92
|
+
# The resource will be in the following format:
|
93
|
+
#
|
94
|
+
# `projects/{project}/locations/{location}/agents/{agent}/generators/{generator}`
|
95
|
+
#
|
96
|
+
# @param project [String]
|
97
|
+
# @param location [String]
|
98
|
+
# @param agent [String]
|
99
|
+
# @param generator [String]
|
100
|
+
#
|
101
|
+
# @return [::String]
|
102
|
+
def generator_path project:, location:, agent:, generator:
|
103
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
104
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
105
|
+
raise ::ArgumentError, "agent cannot contain /" if agent.to_s.include? "/"
|
106
|
+
|
107
|
+
"projects/#{project}/locations/#{location}/agents/#{agent}/generators/#{generator}"
|
108
|
+
end
|
109
|
+
|
89
110
|
##
|
90
111
|
# Create a fully-qualified Intent resource string.
|
91
112
|
#
|
@@ -1013,11 +1013,11 @@ module Google
|
|
1013
1013
|
# [Dialogflow access
|
1014
1014
|
# control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
|
1015
1015
|
#
|
1016
|
-
# Note: The following
|
1016
|
+
# Note: The following parameters are mutually exclusive: `flow_uri`, `flow_content`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
|
1017
1017
|
# @param flow_content [::String]
|
1018
1018
|
# Uncompressed raw byte content for flow.
|
1019
1019
|
#
|
1020
|
-
# Note: The following
|
1020
|
+
# Note: The following parameters are mutually exclusive: `flow_content`, `flow_uri`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
|
1021
1021
|
# @param import_option [::Google::Cloud::Dialogflow::CX::V3::ImportFlowRequest::ImportOption]
|
1022
1022
|
# Flow import mode. If not specified, `KEEP` is assumed.
|
1023
1023
|
# @param flow_import_strategy [::Google::Cloud::Dialogflow::CX::V3::FlowImportStrategy, ::Hash]
|
@@ -4,13 +4,14 @@
|
|
4
4
|
|
5
5
|
require 'google/protobuf'
|
6
6
|
|
7
|
+
require 'google/api/field_behavior_pb'
|
7
8
|
require 'google/api/resource_pb'
|
8
9
|
require 'google/cloud/dialogflow/cx/v3/advanced_settings_pb'
|
9
10
|
require 'google/cloud/dialogflow/cx/v3/response_message_pb'
|
10
11
|
require 'google/protobuf/struct_pb'
|
11
12
|
|
12
13
|
|
13
|
-
descriptor_data = "\n/google/cloud/dialogflow/cx/v3/fulfillment.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\x1a\x19google/api/resource.proto\x1a\x35google/cloud/dialogflow/cx/v3/advanced_settings.proto\x1a\x34google/cloud/dialogflow/cx/v3/response_message.proto\x1a\x1cgoogle/protobuf/struct.proto\"\
|
14
|
+
descriptor_data = "\n/google/cloud/dialogflow/cx/v3/fulfillment.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x35google/cloud/dialogflow/cx/v3/advanced_settings.proto\x1a\x34google/cloud/dialogflow/cx/v3/response_message.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xbf\n\n\x0b\x46ulfillment\x12@\n\x08messages\x18\x01 \x03(\x0b\x32..google.cloud.dialogflow.cx.v3.ResponseMessage\x12\x37\n\x07webhook\x18\x02 \x01(\tB&\xfa\x41#\n!dialogflow.googleapis.com/Webhook\x12 \n\x18return_partial_responses\x18\x08 \x01(\x08\x12\x0b\n\x03tag\x18\x03 \x01(\t\x12\\\n\x15set_parameter_actions\x18\x04 \x03(\x0b\x32=.google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction\x12V\n\x11\x63onditional_cases\x18\x05 \x03(\x0b\x32;.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases\x12J\n\x11\x61\x64vanced_settings\x18\x07 \x01(\x0b\x32/.google.cloud.dialogflow.cx.v3.AdvancedSettings\x12\"\n\x1a\x65nable_generative_fallback\x18\x0c \x01(\x08\x12P\n\ngenerators\x18\r \x03(\x0b\x32<.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings\x1aN\n\x12SetParameterAction\x12\x11\n\tparameter\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value\x1a\xa3\x03\n\x10\x43onditionalCases\x12O\n\x05\x63\x61ses\x18\x01 \x03(\x0b\x32@.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case\x1a\xbd\x02\n\x04\x43\x61se\x12\x11\n\tcondition\x18\x01 \x01(\t\x12\x62\n\x0c\x63\x61se_content\x18\x02 \x03(\x0b\x32L.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent\x1a\xbd\x01\n\x0b\x43\x61seContent\x12\x41\n\x07message\x18\x01 \x01(\x0b\x32..google.cloud.dialogflow.cx.v3.ResponseMessageH\x00\x12W\n\x10\x61\x64\x64itional_cases\x18\x02 \x01(\x0b\x32;.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCasesH\x00\x42\x12\n\x10\x63\x61ses_or_message\x1a\x97\x02\n\x11GeneratorSettings\x12>\n\tgenerator\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#dialogflow.googleapis.com/Generator\x12k\n\x10input_parameters\x18\x02 \x03(\x0b\x32Q.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings.InputParametersEntry\x12\x1d\n\x10output_parameter\x18\x03 \x01(\tB\x03\xe0\x41\x02\x1a\x36\n\x14InputParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\xb3\x01\n!com.google.cloud.dialogflow.cx.v3B\x10\x46ulfillmentProtoP\x01Z1cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb\xa2\x02\x02\x44\x46\xaa\x02\x1dGoogle.Cloud.Dialogflow.Cx.V3\xea\x02!Google::Cloud::Dialogflow::CX::V3b\x06proto3"
|
14
15
|
|
15
16
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
16
17
|
|
@@ -49,6 +50,7 @@ module Google
|
|
49
50
|
Fulfillment::ConditionalCases = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases").msgclass
|
50
51
|
Fulfillment::ConditionalCases::Case = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case").msgclass
|
51
52
|
Fulfillment::ConditionalCases::Case::CaseContent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent").msgclass
|
53
|
+
Fulfillment::GeneratorSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings").msgclass
|
52
54
|
end
|
53
55
|
end
|
54
56
|
end
|
@@ -763,11 +763,11 @@ module Google
|
|
763
763
|
# [Dialogflow access
|
764
764
|
# control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
|
765
765
|
#
|
766
|
-
# Note: The following
|
766
|
+
# Note: The following parameters are mutually exclusive: `intents_uri`, `intents_content`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
|
767
767
|
# @param intents_content [::Google::Cloud::Dialogflow::CX::V3::InlineSource, ::Hash]
|
768
768
|
# Uncompressed byte content of intents.
|
769
769
|
#
|
770
|
-
# Note: The following
|
770
|
+
# Note: The following parameters are mutually exclusive: `intents_content`, `intents_uri`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
|
771
771
|
# @param merge_option [::Google::Cloud::Dialogflow::CX::V3::ImportIntentsRequest::MergeOption]
|
772
772
|
# Merge option for importing intents. If not specified, `REJECT` is assumed.
|
773
773
|
#
|
@@ -890,11 +890,11 @@ module Google
|
|
890
890
|
# [Dialogflow access
|
891
891
|
# control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
|
892
892
|
#
|
893
|
-
# Note: The following
|
893
|
+
# Note: The following parameters are mutually exclusive: `intents_uri`, `intents_content_inline`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
|
894
894
|
# @param intents_content_inline [::Boolean]
|
895
895
|
# Optional. The option to return the serialized intents inline.
|
896
896
|
#
|
897
|
-
# Note: The following
|
897
|
+
# Note: The following parameters are mutually exclusive: `intents_content_inline`, `intents_uri`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
|
898
898
|
# @param data_format [::Google::Cloud::Dialogflow::CX::V3::ExportIntentsRequest::DataFormat]
|
899
899
|
# Optional. The data format of the exported intents. If not specified, `BLOB`
|
900
900
|
# is assumed.
|
@@ -722,11 +722,11 @@ module Google
|
|
722
722
|
# [Dialogflow access
|
723
723
|
# control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
|
724
724
|
#
|
725
|
-
# Note: The following
|
725
|
+
# Note: The following parameters are mutually exclusive: `intents_uri`, `intents_content`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
|
726
726
|
# @param intents_content [::Google::Cloud::Dialogflow::CX::V3::InlineSource, ::Hash]
|
727
727
|
# Uncompressed byte content of intents.
|
728
728
|
#
|
729
|
-
# Note: The following
|
729
|
+
# Note: The following parameters are mutually exclusive: `intents_content`, `intents_uri`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
|
730
730
|
# @param merge_option [::Google::Cloud::Dialogflow::CX::V3::ImportIntentsRequest::MergeOption]
|
731
731
|
# Merge option for importing intents. If not specified, `REJECT` is assumed.
|
732
732
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
@@ -842,11 +842,11 @@ module Google
|
|
842
842
|
# [Dialogflow access
|
843
843
|
# control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
|
844
844
|
#
|
845
|
-
# Note: The following
|
845
|
+
# Note: The following parameters are mutually exclusive: `intents_uri`, `intents_content_inline`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
|
846
846
|
# @param intents_content_inline [::Boolean]
|
847
847
|
# Optional. The option to return the serialized intents inline.
|
848
848
|
#
|
849
|
-
# Note: The following
|
849
|
+
# Note: The following parameters are mutually exclusive: `intents_content_inline`, `intents_uri`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
|
850
850
|
# @param data_format [::Google::Cloud::Dialogflow::CX::V3::ExportIntentsRequest::DataFormat]
|
851
851
|
# Optional. The data format of the exported intents. If not specified, `BLOB`
|
852
852
|
# is assumed.
|
@@ -67,6 +67,27 @@ module Google
|
|
67
67
|
"projects/#{project}/locations/#{location}/agents/#{agent}/flows/#{flow}"
|
68
68
|
end
|
69
69
|
|
70
|
+
##
|
71
|
+
# Create a fully-qualified Generator resource string.
|
72
|
+
#
|
73
|
+
# The resource will be in the following format:
|
74
|
+
#
|
75
|
+
# `projects/{project}/locations/{location}/agents/{agent}/generators/{generator}`
|
76
|
+
#
|
77
|
+
# @param project [String]
|
78
|
+
# @param location [String]
|
79
|
+
# @param agent [String]
|
80
|
+
# @param generator [String]
|
81
|
+
#
|
82
|
+
# @return [::String]
|
83
|
+
def generator_path project:, location:, agent:, generator:
|
84
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
85
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
86
|
+
raise ::ArgumentError, "agent cannot contain /" if agent.to_s.include? "/"
|
87
|
+
|
88
|
+
"projects/#{project}/locations/#{location}/agents/#{agent}/generators/#{generator}"
|
89
|
+
end
|
90
|
+
|
70
91
|
##
|
71
92
|
# Create a fully-qualified Intent resource string.
|
72
93
|
#
|
@@ -1023,11 +1023,11 @@ module Google
|
|
1023
1023
|
# [Dialogflow access
|
1024
1024
|
# control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
|
1025
1025
|
#
|
1026
|
-
# Note: The following
|
1026
|
+
# Note: The following parameters are mutually exclusive: `gcs_uri`, `content`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
|
1027
1027
|
# @param content [::String]
|
1028
1028
|
# Uncompressed raw byte content for test cases.
|
1029
1029
|
#
|
1030
|
-
# Note: The following
|
1030
|
+
# Note: The following parameters are mutually exclusive: `content`, `gcs_uri`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
|
1031
1031
|
#
|
1032
1032
|
# @yield [response, operation] Access the result along with the RPC operation
|
1033
1033
|
# @yieldparam response [::Gapic::Operation]
|
@@ -107,6 +107,27 @@ module Google
|
|
107
107
|
"projects/#{project}/locations/#{location}/agents/#{agent}/flows/#{flow}"
|
108
108
|
end
|
109
109
|
|
110
|
+
##
|
111
|
+
# Create a fully-qualified Generator resource string.
|
112
|
+
#
|
113
|
+
# The resource will be in the following format:
|
114
|
+
#
|
115
|
+
# `projects/{project}/locations/{location}/agents/{agent}/generators/{generator}`
|
116
|
+
#
|
117
|
+
# @param project [String]
|
118
|
+
# @param location [String]
|
119
|
+
# @param agent [String]
|
120
|
+
# @param generator [String]
|
121
|
+
#
|
122
|
+
# @return [::String]
|
123
|
+
def generator_path project:, location:, agent:, generator:
|
124
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
125
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
126
|
+
raise ::ArgumentError, "agent cannot contain /" if agent.to_s.include? "/"
|
127
|
+
|
128
|
+
"projects/#{project}/locations/#{location}/agents/#{agent}/generators/#{generator}"
|
129
|
+
end
|
130
|
+
|
110
131
|
##
|
111
132
|
# Create a fully-qualified Intent resource string.
|
112
133
|
#
|
@@ -961,11 +961,11 @@ module Google
|
|
961
961
|
# [Dialogflow access
|
962
962
|
# control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
|
963
963
|
#
|
964
|
-
# Note: The following
|
964
|
+
# Note: The following parameters are mutually exclusive: `gcs_uri`, `content`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
|
965
965
|
# @param content [::String]
|
966
966
|
# Uncompressed raw byte content for test cases.
|
967
967
|
#
|
968
|
-
# Note: The following
|
968
|
+
# Note: The following parameters are mutually exclusive: `content`, `gcs_uri`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
|
969
969
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
970
970
|
# @yieldparam result [::Gapic::Operation]
|
971
971
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -65,6 +65,27 @@ module Google
|
|
65
65
|
"projects/#{project}/locations/#{location}/agents/#{agent}/flows/#{flow}"
|
66
66
|
end
|
67
67
|
|
68
|
+
##
|
69
|
+
# Create a fully-qualified Generator resource string.
|
70
|
+
#
|
71
|
+
# The resource will be in the following format:
|
72
|
+
#
|
73
|
+
# `projects/{project}/locations/{location}/agents/{agent}/generators/{generator}`
|
74
|
+
#
|
75
|
+
# @param project [String]
|
76
|
+
# @param location [String]
|
77
|
+
# @param agent [String]
|
78
|
+
# @param generator [String]
|
79
|
+
#
|
80
|
+
# @return [::String]
|
81
|
+
def generator_path project:, location:, agent:, generator:
|
82
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
83
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
84
|
+
raise ::ArgumentError, "agent cannot contain /" if agent.to_s.include? "/"
|
85
|
+
|
86
|
+
"projects/#{project}/locations/#{location}/agents/#{agent}/generators/#{generator}"
|
87
|
+
end
|
88
|
+
|
68
89
|
##
|
69
90
|
# Create a fully-qualified Intent resource string.
|
70
91
|
#
|
@@ -82,6 +82,9 @@ module Google
|
|
82
82
|
# {::Google::Cloud::Dialogflow::CX::V3::Fulfillment#messages responses} in the
|
83
83
|
# fulfillment will be respected. This flag is only useful for fulfillments
|
84
84
|
# associated with no-match event handlers.
|
85
|
+
# @!attribute [rw] generators
|
86
|
+
# @return [::Array<::Google::Cloud::Dialogflow::CX::V3::Fulfillment::GeneratorSettings>]
|
87
|
+
# A list of Generators to be called during this fulfillment.
|
85
88
|
class Fulfillment
|
86
89
|
include ::Google::Protobuf::MessageExts
|
87
90
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -142,6 +145,41 @@ module Google
|
|
142
145
|
end
|
143
146
|
end
|
144
147
|
end
|
148
|
+
|
149
|
+
# Generator settings used by the LLM to generate a text response.
|
150
|
+
# @!attribute [rw] generator
|
151
|
+
# @return [::String]
|
152
|
+
# Required. The generator to call.
|
153
|
+
# Format:
|
154
|
+
# `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/generators/<GeneratorID>`.
|
155
|
+
# @!attribute [rw] input_parameters
|
156
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
157
|
+
# Map from [placeholder parameter][Generator.Parameter.id] in the
|
158
|
+
# {::Google::Cloud::Dialogflow::CX::V3::Generator Generator} to corresponding
|
159
|
+
# session parameters. By default, Dialogflow uses the session parameter
|
160
|
+
# with the same name to fill in the generator template. e.g. If there is a
|
161
|
+
# placeholder parameter `city` in the Generator, Dialogflow default to fill
|
162
|
+
# in the `$city` with
|
163
|
+
# `$session.params.city`. However, you may choose to fill `$city` with
|
164
|
+
# `$session.params.desination-city`.
|
165
|
+
# - Map key: [parameter ID][Genrator.Parameter.id]
|
166
|
+
# - Map value: session parameter name
|
167
|
+
# @!attribute [rw] output_parameter
|
168
|
+
# @return [::String]
|
169
|
+
# Required. Output parameter which should contain the generator response.
|
170
|
+
class GeneratorSettings
|
171
|
+
include ::Google::Protobuf::MessageExts
|
172
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
173
|
+
|
174
|
+
# @!attribute [rw] key
|
175
|
+
# @return [::String]
|
176
|
+
# @!attribute [rw] value
|
177
|
+
# @return [::String]
|
178
|
+
class InputParametersEntry
|
179
|
+
include ::Google::Protobuf::MessageExts
|
180
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
181
|
+
end
|
182
|
+
end
|
145
183
|
end
|
146
184
|
end
|
147
185
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-dialogflow-cx-v3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
@@ -312,7 +312,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
312
312
|
- !ruby/object:Gem::Version
|
313
313
|
version: '0'
|
314
314
|
requirements: []
|
315
|
-
rubygems_version: 3.6.
|
315
|
+
rubygems_version: 3.6.9
|
316
316
|
specification_version: 4
|
317
317
|
summary: Builds conversational interfaces (for example, chatbots, and voice-powered
|
318
318
|
apps and devices).
|