google-cloud-dialogflow-v2 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/dialogflow/v2/answer_record_pb.rb +2 -1
- data/lib/google/cloud/dialogflow/v2/audio_config_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/conversation_pb.rb +5 -1
- data/lib/google/cloud/dialogflow/v2/conversation_profile_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/conversation_profiles/paths.rb +19 -0
- data/lib/google/cloud/dialogflow/v2/conversation_services_pb.rb +3 -0
- data/lib/google/cloud/dialogflow/v2/conversations/client.rb +121 -23
- data/lib/google/cloud/dialogflow/v2/conversations/paths.rb +19 -0
- data/lib/google/cloud/dialogflow/v2/conversations/rest/client.rb +114 -23
- data/lib/google/cloud/dialogflow/v2/conversations/rest/service_stub.rb +60 -0
- data/lib/google/cloud/dialogflow/v2/encryption_spec_pb.rb +52 -0
- data/lib/google/cloud/dialogflow/v2/encryption_spec_service/client.rb +567 -0
- data/lib/google/cloud/dialogflow/v2/encryption_spec_service/credentials.rb +52 -0
- data/lib/google/cloud/dialogflow/v2/encryption_spec_service/operations.rb +809 -0
- data/lib/google/cloud/dialogflow/v2/encryption_spec_service/paths.rb +50 -0
- data/lib/google/cloud/dialogflow/v2/encryption_spec_service/rest/client.rb +535 -0
- data/lib/google/cloud/dialogflow/v2/encryption_spec_service/rest/operations.rb +922 -0
- data/lib/google/cloud/dialogflow/v2/encryption_spec_service/rest/service_stub.rb +188 -0
- data/lib/google/cloud/dialogflow/v2/encryption_spec_service/rest.rb +54 -0
- data/lib/google/cloud/dialogflow/v2/encryption_spec_service.rb +56 -0
- data/lib/google/cloud/dialogflow/v2/encryption_spec_services_pb.rb +51 -0
- data/lib/google/cloud/dialogflow/v2/generator_pb.rb +71 -0
- data/lib/google/cloud/dialogflow/v2/generator_services_pb.rb +57 -0
- data/lib/google/cloud/dialogflow/v2/generators/client.rb +851 -0
- data/lib/google/cloud/dialogflow/v2/generators/credentials.rb +52 -0
- data/lib/google/cloud/dialogflow/v2/generators/paths.rb +66 -0
- data/lib/google/cloud/dialogflow/v2/generators/rest/client.rb +798 -0
- data/lib/google/cloud/dialogflow/v2/generators/rest/service_stub.rb +381 -0
- data/lib/google/cloud/dialogflow/v2/generators/rest.rb +57 -0
- data/lib/google/cloud/dialogflow/v2/generators.rb +59 -0
- data/lib/google/cloud/dialogflow/v2/participant_pb.rb +9 -1
- data/lib/google/cloud/dialogflow/v2/participant_services_pb.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/participants/client.rb +110 -0
- data/lib/google/cloud/dialogflow/v2/participants/rest/client.rb +103 -0
- data/lib/google/cloud/dialogflow/v2/participants/rest/service_stub.rb +68 -0
- data/lib/google/cloud/dialogflow/v2/rest.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
- data/lib/google/cloud/dialogflow/v2.rb +2 -0
- data/proto_docs/google/api/client.rb +14 -10
- data/proto_docs/google/api/resource.rb +7 -2
- data/proto_docs/google/cloud/dialogflow/v2/answer_record.rb +22 -0
- data/proto_docs/google/cloud/dialogflow/v2/audio_config.rb +24 -0
- data/proto_docs/google/cloud/dialogflow/v2/conversation.rb +54 -26
- data/proto_docs/google/cloud/dialogflow/v2/conversation_profile.rb +27 -2
- data/proto_docs/google/cloud/dialogflow/v2/encryption_spec.rb +81 -0
- data/proto_docs/google/cloud/dialogflow/v2/generator.rb +382 -0
- data/proto_docs/google/cloud/dialogflow/v2/participant.rb +133 -0
- metadata +24 -2
@@ -318,18 +318,9 @@ module Google
|
|
318
318
|
# @param page_token [::String]
|
319
319
|
# Optional. The next_page_token value returned from a previous list request.
|
320
320
|
# @param filter [::String]
|
321
|
-
# A filter expression that filters conversations listed in the
|
322
|
-
#
|
323
|
-
#
|
324
|
-
# <ul>
|
325
|
-
# <li>The value must be a string, a number, or a boolean.</li>
|
326
|
-
# <li>The comparison operator must be either `=`,`!=`, `>`, or `<`.</li>
|
327
|
-
# <li>To filter on multiple expressions, separate the
|
328
|
-
# expressions with `AND` or `OR` (omitting both implies `AND`).</li>
|
329
|
-
# <li>For clarity, expressions can be enclosed in parentheses.</li>
|
330
|
-
# </ul>
|
331
|
-
# Only `lifecycle_state` can be filtered on in this way. For example,
|
332
|
-
# the following expression only returns `COMPLETED` conversations:
|
321
|
+
# Optional. A filter expression that filters conversations listed in the
|
322
|
+
# response. Only `lifecycle_state` can be filtered on in this way. For
|
323
|
+
# example, the following expression only returns `COMPLETED` conversations:
|
333
324
|
#
|
334
325
|
# `lifecycle_state = "COMPLETED"`
|
335
326
|
#
|
@@ -691,18 +682,19 @@ module Google
|
|
691
682
|
# Format: `projects/<Project ID>/locations/<Location
|
692
683
|
# ID>/conversations/<Conversation ID>`.
|
693
684
|
# @param latest_message [::String]
|
694
|
-
# The name of the latest conversation message used as context for
|
685
|
+
# Optional. The name of the latest conversation message used as context for
|
695
686
|
# compiling suggestion. If empty, the latest message of the conversation will
|
696
687
|
# be used.
|
697
688
|
#
|
698
689
|
# Format: `projects/<Project ID>/locations/<Location
|
699
690
|
# ID>/conversations/<Conversation ID>/messages/<Message ID>`.
|
700
691
|
# @param context_size [::Integer]
|
701
|
-
# Max number of messages prior to and including
|
692
|
+
# Optional. Max number of messages prior to and including
|
702
693
|
# [latest_message] to use as context when compiling the
|
703
694
|
# suggestion. By default 500 and at most 1000.
|
704
695
|
# @param assist_query_params [::Google::Cloud::Dialogflow::V2::AssistQueryParameters, ::Hash]
|
705
|
-
# Parameters for a human assist query. Only used for POC/demo
|
696
|
+
# Optional. Parameters for a human assist query. Only used for POC/demo
|
697
|
+
# purpose.
|
706
698
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
707
699
|
# @yieldparam result [::Google::Cloud::Dialogflow::V2::SuggestConversationSummaryResponse]
|
708
700
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -789,12 +781,12 @@ module Google
|
|
789
781
|
# Required fields: \\{language_code, security_settings}
|
790
782
|
# Optional fields: \\{agent_assistant_config}
|
791
783
|
# @param latest_message [::String]
|
792
|
-
# The name of the latest conversation message used as context for
|
784
|
+
# Optional. The name of the latest conversation message used as context for
|
793
785
|
# generating a Summary. If empty, the latest message of the conversation will
|
794
786
|
# be used. The format is specific to the user and the names of the messages
|
795
787
|
# provided.
|
796
788
|
# @param max_context_size [::Integer]
|
797
|
-
# Max number of messages prior to and including
|
789
|
+
# Optional. Max number of messages prior to and including
|
798
790
|
# [latest_message] to use as context when compiling the
|
799
791
|
# suggestion. By default 500 and at most 1000.
|
800
792
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
@@ -856,6 +848,98 @@ module Google
|
|
856
848
|
raise ::Google::Cloud::Error.from_error(e)
|
857
849
|
end
|
858
850
|
|
851
|
+
##
|
852
|
+
# Generates and returns a suggestion for a conversation that does not have a
|
853
|
+
# resource created for it.
|
854
|
+
#
|
855
|
+
# @overload generate_stateless_suggestion(request, options = nil)
|
856
|
+
# Pass arguments to `generate_stateless_suggestion` via a request object, either of type
|
857
|
+
# {::Google::Cloud::Dialogflow::V2::GenerateStatelessSuggestionRequest} or an equivalent Hash.
|
858
|
+
#
|
859
|
+
# @param request [::Google::Cloud::Dialogflow::V2::GenerateStatelessSuggestionRequest, ::Hash]
|
860
|
+
# A request object representing the call parameters. Required. To specify no
|
861
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
862
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
863
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
864
|
+
#
|
865
|
+
# @overload generate_stateless_suggestion(parent: nil, generator: nil, generator_name: nil, conversation_context: nil, trigger_events: nil)
|
866
|
+
# Pass arguments to `generate_stateless_suggestion` via keyword arguments. Note that at
|
867
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
868
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
869
|
+
#
|
870
|
+
# @param parent [::String]
|
871
|
+
# Required. The parent resource to charge for the Suggestion's generation.
|
872
|
+
# Format: `projects/<Project ID>/locations/<Location ID>`.
|
873
|
+
# @param generator [::Google::Cloud::Dialogflow::V2::Generator, ::Hash]
|
874
|
+
# Uncreated generator. It should be a complete generator that includes all
|
875
|
+
# information about the generator.
|
876
|
+
# @param generator_name [::String]
|
877
|
+
# The resource name of the existing created generator. Format:
|
878
|
+
# `projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>`
|
879
|
+
# @param conversation_context [::Google::Cloud::Dialogflow::V2::ConversationContext, ::Hash]
|
880
|
+
# Optional. Context of the conversation, including transcripts.
|
881
|
+
# @param trigger_events [::Array<::Google::Cloud::Dialogflow::V2::TriggerEvent>]
|
882
|
+
# Optional. A list of trigger events. Generator will be triggered only if
|
883
|
+
# it's trigger event is included here.
|
884
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
885
|
+
# @yieldparam result [::Google::Cloud::Dialogflow::V2::GenerateStatelessSuggestionResponse]
|
886
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
887
|
+
#
|
888
|
+
# @return [::Google::Cloud::Dialogflow::V2::GenerateStatelessSuggestionResponse]
|
889
|
+
#
|
890
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
891
|
+
#
|
892
|
+
# @example Basic example
|
893
|
+
# require "google/cloud/dialogflow/v2"
|
894
|
+
#
|
895
|
+
# # Create a client object. The client can be reused for multiple calls.
|
896
|
+
# client = Google::Cloud::Dialogflow::V2::Conversations::Rest::Client.new
|
897
|
+
#
|
898
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
899
|
+
# request = Google::Cloud::Dialogflow::V2::GenerateStatelessSuggestionRequest.new
|
900
|
+
#
|
901
|
+
# # Call the generate_stateless_suggestion method.
|
902
|
+
# result = client.generate_stateless_suggestion request
|
903
|
+
#
|
904
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::GenerateStatelessSuggestionResponse.
|
905
|
+
# p result
|
906
|
+
#
|
907
|
+
def generate_stateless_suggestion request, options = nil
|
908
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
909
|
+
|
910
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::V2::GenerateStatelessSuggestionRequest
|
911
|
+
|
912
|
+
# Converts hash and nil to an options object
|
913
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
914
|
+
|
915
|
+
# Customize the options with defaults
|
916
|
+
call_metadata = @config.rpcs.generate_stateless_suggestion.metadata.to_h
|
917
|
+
|
918
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
919
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
920
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
921
|
+
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
|
922
|
+
transports_version_send: [:rest]
|
923
|
+
|
924
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
925
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
926
|
+
|
927
|
+
options.apply_defaults timeout: @config.rpcs.generate_stateless_suggestion.timeout,
|
928
|
+
metadata: call_metadata,
|
929
|
+
retry_policy: @config.rpcs.generate_stateless_suggestion.retry_policy
|
930
|
+
|
931
|
+
options.apply_defaults timeout: @config.timeout,
|
932
|
+
metadata: @config.metadata,
|
933
|
+
retry_policy: @config.retry_policy
|
934
|
+
|
935
|
+
@conversations_stub.generate_stateless_suggestion request, options do |result, operation|
|
936
|
+
yield result, operation if block_given?
|
937
|
+
return result
|
938
|
+
end
|
939
|
+
rescue ::Gapic::Rest::Error => e
|
940
|
+
raise ::Google::Cloud::Error.from_error(e)
|
941
|
+
end
|
942
|
+
|
859
943
|
##
|
860
944
|
# Get answers for the given query based on knowledge documents.
|
861
945
|
#
|
@@ -875,7 +959,7 @@ module Google
|
|
875
959
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
876
960
|
#
|
877
961
|
# @param parent [::String]
|
878
|
-
# The parent resource contains the conversation profile
|
962
|
+
# Required. The parent resource contains the conversation profile
|
879
963
|
# Format: 'projects/<Project ID>' or `projects/<Project
|
880
964
|
# ID>/locations/<Location ID>`.
|
881
965
|
# @param query [::Google::Cloud::Dialogflow::V2::TextInput, ::Hash]
|
@@ -885,7 +969,7 @@ module Google
|
|
885
969
|
# Format: `projects/<Project ID>/locations/<Location
|
886
970
|
# ID>/conversationProfiles/<Conversation Profile ID>`.
|
887
971
|
# @param session_id [::String]
|
888
|
-
# The ID of the search session.
|
972
|
+
# Required. The ID of the search session.
|
889
973
|
# The session_id can be combined with Dialogflow V3 Agent ID retrieved from
|
890
974
|
# conversation profile or on its own to identify a search session. The search
|
891
975
|
# history of the same session will impact the search result. It's up to the
|
@@ -893,11 +977,11 @@ module Google
|
|
893
977
|
# or some type of session identifiers (preferably hashed). The length must
|
894
978
|
# not exceed 36 characters.
|
895
979
|
# @param conversation [::String]
|
896
|
-
# The conversation (between human agent and end user) where the
|
897
|
-
# request is triggered. Format: `projects/<Project
|
898
|
-
# ID>/conversations/<Conversation ID>`.
|
980
|
+
# Optional. The conversation (between human agent and end user) where the
|
981
|
+
# search request is triggered. Format: `projects/<Project
|
982
|
+
# ID>/locations/<Location ID>/conversations/<Conversation ID>`.
|
899
983
|
# @param latest_message [::String]
|
900
|
-
# The name of the latest conversation message when the request is
|
984
|
+
# Optional. The name of the latest conversation message when the request is
|
901
985
|
# triggered.
|
902
986
|
# Format: `projects/<Project ID>/locations/<Location
|
903
987
|
# ID>/conversations/<Conversation ID>/messages/<Message ID>`.
|
@@ -1136,6 +1220,11 @@ module Google
|
|
1136
1220
|
#
|
1137
1221
|
attr_reader :generate_stateless_summary
|
1138
1222
|
##
|
1223
|
+
# RPC-specific configuration for `generate_stateless_suggestion`
|
1224
|
+
# @return [::Gapic::Config::Method]
|
1225
|
+
#
|
1226
|
+
attr_reader :generate_stateless_suggestion
|
1227
|
+
##
|
1139
1228
|
# RPC-specific configuration for `search_knowledge`
|
1140
1229
|
# @return [::Gapic::Config::Method]
|
1141
1230
|
#
|
@@ -1157,6 +1246,8 @@ module Google
|
|
1157
1246
|
@suggest_conversation_summary = ::Gapic::Config::Method.new suggest_conversation_summary_config
|
1158
1247
|
generate_stateless_summary_config = parent_rpcs.generate_stateless_summary if parent_rpcs.respond_to? :generate_stateless_summary
|
1159
1248
|
@generate_stateless_summary = ::Gapic::Config::Method.new generate_stateless_summary_config
|
1249
|
+
generate_stateless_suggestion_config = parent_rpcs.generate_stateless_suggestion if parent_rpcs.respond_to? :generate_stateless_suggestion
|
1250
|
+
@generate_stateless_suggestion = ::Gapic::Config::Method.new generate_stateless_suggestion_config
|
1160
1251
|
search_knowledge_config = parent_rpcs.search_knowledge if parent_rpcs.respond_to? :search_knowledge
|
1161
1252
|
@search_knowledge = ::Gapic::Config::Method.new search_knowledge_config
|
1162
1253
|
|
@@ -327,6 +327,44 @@ module Google
|
|
327
327
|
result
|
328
328
|
end
|
329
329
|
|
330
|
+
##
|
331
|
+
# Baseline implementation for the generate_stateless_suggestion REST call
|
332
|
+
#
|
333
|
+
# @param request_pb [::Google::Cloud::Dialogflow::V2::GenerateStatelessSuggestionRequest]
|
334
|
+
# A request object representing the call parameters. Required.
|
335
|
+
# @param options [::Gapic::CallOptions]
|
336
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
337
|
+
#
|
338
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
339
|
+
# @yieldparam result [::Google::Cloud::Dialogflow::V2::GenerateStatelessSuggestionResponse]
|
340
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
341
|
+
#
|
342
|
+
# @return [::Google::Cloud::Dialogflow::V2::GenerateStatelessSuggestionResponse]
|
343
|
+
# A result object deserialized from the server's reply
|
344
|
+
def generate_stateless_suggestion request_pb, options = nil
|
345
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
346
|
+
|
347
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_generate_stateless_suggestion_request request_pb
|
348
|
+
query_string_params = if query_string_params.any?
|
349
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
350
|
+
else
|
351
|
+
{}
|
352
|
+
end
|
353
|
+
|
354
|
+
response = @client_stub.make_http_request(
|
355
|
+
verb,
|
356
|
+
uri: uri,
|
357
|
+
body: body || "",
|
358
|
+
params: query_string_params,
|
359
|
+
options: options
|
360
|
+
)
|
361
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
362
|
+
result = ::Google::Cloud::Dialogflow::V2::GenerateStatelessSuggestionResponse.decode_json response.body, ignore_unknown_fields: true
|
363
|
+
|
364
|
+
yield result, operation if block_given?
|
365
|
+
result
|
366
|
+
end
|
367
|
+
|
330
368
|
##
|
331
369
|
# Baseline implementation for the search_knowledge REST call
|
332
370
|
#
|
@@ -569,6 +607,28 @@ module Google
|
|
569
607
|
transcoder.transcode request_pb
|
570
608
|
end
|
571
609
|
|
610
|
+
##
|
611
|
+
# @private
|
612
|
+
#
|
613
|
+
# GRPC transcoding helper method for the generate_stateless_suggestion REST call
|
614
|
+
#
|
615
|
+
# @param request_pb [::Google::Cloud::Dialogflow::V2::GenerateStatelessSuggestionRequest]
|
616
|
+
# A request object representing the call parameters. Required.
|
617
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
618
|
+
# Uri, Body, Query string parameters
|
619
|
+
def self.transcode_generate_stateless_suggestion_request request_pb
|
620
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
621
|
+
.with_bindings(
|
622
|
+
uri_method: :post,
|
623
|
+
uri_template: "/v2/{parent}/statelessSuggestion:generate",
|
624
|
+
body: "*",
|
625
|
+
matches: [
|
626
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
627
|
+
]
|
628
|
+
)
|
629
|
+
transcoder.transcode request_pb
|
630
|
+
end
|
631
|
+
|
572
632
|
##
|
573
633
|
# @private
|
574
634
|
#
|
@@ -0,0 +1,52 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: google/cloud/dialogflow/v2/encryption_spec.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'google/api/annotations_pb'
|
8
|
+
require 'google/api/client_pb'
|
9
|
+
require 'google/api/field_behavior_pb'
|
10
|
+
require 'google/api/resource_pb'
|
11
|
+
require 'google/longrunning/operations_pb'
|
12
|
+
|
13
|
+
|
14
|
+
descriptor_data = "\n0google/cloud/dialogflow/v2/encryption_spec.proto\x12\x1agoogle.cloud.dialogflow.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/longrunning/operations.proto\"Z\n\x18GetEncryptionSpecRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(dialogflow.googleapis.com/EncryptionSpec\"\xc3\x01\n\x0e\x45ncryptionSpec\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x05\x12\x14\n\x07kms_key\x18\x02 \x01(\tB\x03\xe0\x41\x02:\x87\x01\xea\x41\x83\x01\n(dialogflow.googleapis.com/EncryptionSpec\x12\x36projects/{project}/locations/{location}/encryptionSpec*\x0f\x65ncryptionSpecs2\x0e\x65ncryptionSpec\"k\n\x1fInitializeEncryptionSpecRequest\x12H\n\x0f\x65ncryption_spec\x18\x01 \x01(\x0b\x32*.google.cloud.dialogflow.v2.EncryptionSpecB\x03\xe0\x41\x02\"\"\n InitializeEncryptionSpecResponse\"u\n InitializeEncryptionSpecMetadata\x12Q\n\x07request\x18\x04 \x01(\x0b\x32;.google.cloud.dialogflow.v2.InitializeEncryptionSpecRequestB\x03\xe0\x41\x03\x32\xf5\x04\n\x15\x45ncryptionSpecService\x12\xb6\x01\n\x11GetEncryptionSpec\x12\x34.google.cloud.dialogflow.v2.GetEncryptionSpecRequest\x1a*.google.cloud.dialogflow.v2.EncryptionSpec\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32\x12\x30/v2/{name=projects/*/locations/*/encryptionSpec}\x12\xa8\x02\n\x18InitializeEncryptionSpec\x12;.google.cloud.dialogflow.v2.InitializeEncryptionSpecRequest\x1a\x1d.google.longrunning.Operation\"\xaf\x01\xca\x41\x44\n InitializeEncryptionSpecResponse\x12 InitializeEncryptionSpecMetadata\xda\x41\x0f\x65ncryption_spec\x82\xd3\xe4\x93\x02P\"K/v2/{encryption_spec.name=projects/*/locations/*/encryptionSpec}:initialize:\x01*\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\x9c\x01\n\x1e\x63om.google.cloud.dialogflow.v2B\x13\x45ncryptionSpecProtoP\x01Z>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2b\x06proto3"
|
15
|
+
|
16
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
17
|
+
|
18
|
+
begin
|
19
|
+
pool.add_serialized_file(descriptor_data)
|
20
|
+
rescue TypeError
|
21
|
+
# Compatibility code: will be removed in the next major version.
|
22
|
+
require 'google/protobuf/descriptor_pb'
|
23
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
24
|
+
parsed.clear_dependency
|
25
|
+
serialized = parsed.class.encode(parsed)
|
26
|
+
file = pool.add_serialized_file(serialized)
|
27
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
28
|
+
imports = [
|
29
|
+
]
|
30
|
+
imports.each do |type_name, expected_filename|
|
31
|
+
import_file = pool.lookup(type_name).file_descriptor
|
32
|
+
if import_file.name != expected_filename
|
33
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
34
|
+
end
|
35
|
+
end
|
36
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
37
|
+
warn "This will become an error in the next major version."
|
38
|
+
end
|
39
|
+
|
40
|
+
module Google
|
41
|
+
module Cloud
|
42
|
+
module Dialogflow
|
43
|
+
module V2
|
44
|
+
GetEncryptionSpecRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.GetEncryptionSpecRequest").msgclass
|
45
|
+
EncryptionSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.EncryptionSpec").msgclass
|
46
|
+
InitializeEncryptionSpecRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.InitializeEncryptionSpecRequest").msgclass
|
47
|
+
InitializeEncryptionSpecResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.InitializeEncryptionSpecResponse").msgclass
|
48
|
+
InitializeEncryptionSpecMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.InitializeEncryptionSpecMetadata").msgclass
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|