google-cloud-dialogflow-v2 0.5.0 → 0.6.3
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/AUTHENTICATION.md +6 -6
 - data/README.md +5 -1
 - data/lib/google/cloud/dialogflow/v2.rb +1 -1
 - data/lib/google/cloud/dialogflow/v2/agent_services_pb.rb +1 -28
 - data/lib/google/cloud/dialogflow/v2/agents.rb +2 -29
 - data/lib/google/cloud/dialogflow/v2/agents/client.rb +209 -231
 - data/lib/google/cloud/dialogflow/v2/agents/credentials.rb +1 -1
 - data/lib/google/cloud/dialogflow/v2/agents/operations.rb +109 -103
 - data/lib/google/cloud/dialogflow/v2/agents/paths.rb +2 -2
 - data/lib/google/cloud/dialogflow/v2/contexts.rb +3 -3
 - data/lib/google/cloud/dialogflow/v2/contexts/client.rb +148 -143
 - data/lib/google/cloud/dialogflow/v2/contexts/credentials.rb +1 -1
 - data/lib/google/cloud/dialogflow/v2/contexts/paths.rb +14 -14
 - data/lib/google/cloud/dialogflow/v2/entity_types.rb +2 -2
 - data/lib/google/cloud/dialogflow/v2/entity_types/client.rb +238 -233
 - data/lib/google/cloud/dialogflow/v2/entity_types/credentials.rb +1 -1
 - data/lib/google/cloud/dialogflow/v2/entity_types/operations.rb +109 -103
 - data/lib/google/cloud/dialogflow/v2/entity_types/paths.rb +3 -3
 - data/lib/google/cloud/dialogflow/v2/environments.rb +1 -1
 - data/lib/google/cloud/dialogflow/v2/environments/client.rb +64 -59
 - data/lib/google/cloud/dialogflow/v2/environments/credentials.rb +1 -1
 - data/lib/google/cloud/dialogflow/v2/environments/paths.rb +1 -1
 - data/lib/google/cloud/dialogflow/v2/intents.rb +3 -3
 - data/lib/google/cloud/dialogflow/v2/intents/client.rb +183 -178
 - data/lib/google/cloud/dialogflow/v2/intents/credentials.rb +1 -1
 - data/lib/google/cloud/dialogflow/v2/intents/operations.rb +109 -103
 - data/lib/google/cloud/dialogflow/v2/intents/paths.rb +11 -11
 - data/lib/google/cloud/dialogflow/v2/session_entity_types.rb +1 -1
 - data/lib/google/cloud/dialogflow/v2/session_entity_types/client.rb +130 -125
 - data/lib/google/cloud/dialogflow/v2/session_entity_types/credentials.rb +1 -1
 - data/lib/google/cloud/dialogflow/v2/session_entity_types/paths.rb +14 -14
 - data/lib/google/cloud/dialogflow/v2/sessions.rb +3 -3
 - data/lib/google/cloud/dialogflow/v2/sessions/client.rb +86 -81
 - data/lib/google/cloud/dialogflow/v2/sessions/credentials.rb +1 -1
 - data/lib/google/cloud/dialogflow/v2/sessions/paths.rb +22 -22
 - data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
 - data/proto_docs/google/api/resource.rb +12 -12
 - data/proto_docs/google/cloud/dialogflow/v2/agent.rb +79 -70
 - data/proto_docs/google/cloud/dialogflow/v2/audio_config.rb +45 -44
 - data/proto_docs/google/cloud/dialogflow/v2/context.rb +38 -38
 - data/proto_docs/google/cloud/dialogflow/v2/entity_type.rb +86 -86
 - data/proto_docs/google/cloud/dialogflow/v2/environment.rb +19 -19
 - data/proto_docs/google/cloud/dialogflow/v2/intent.rb +251 -250
 - data/proto_docs/google/cloud/dialogflow/v2/session.rb +114 -106
 - data/proto_docs/google/cloud/dialogflow/v2/session_entity_type.rb +35 -35
 - data/proto_docs/google/cloud/dialogflow/v2/validation_result.rb +8 -8
 - data/proto_docs/google/cloud/dialogflow/v2/webhook.rb +27 -27
 - data/proto_docs/google/longrunning/operations.rb +30 -30
 - data/proto_docs/google/protobuf/any.rb +4 -4
 - data/proto_docs/google/protobuf/duration.rb +4 -4
 - data/proto_docs/google/protobuf/empty.rb +2 -2
 - data/proto_docs/google/protobuf/field_mask.rb +3 -3
 - data/proto_docs/google/protobuf/struct.rb +18 -18
 - data/proto_docs/google/protobuf/timestamp.rb +4 -4
 - data/proto_docs/google/rpc/status.rb +6 -6
 - data/proto_docs/google/type/latlng.rb +4 -4
 - metadata +33 -6
 - data/lib/google/cloud/common_resources_pb.rb +0 -15
 
| 
         @@ -33,7 +33,7 @@ module Google 
     | 
|
| 
       33 
33 
     | 
    
         
             
                        #
         
     | 
| 
       34 
34 
     | 
    
         
             
                        # @param project [String]
         
     | 
| 
       35 
35 
     | 
    
         
             
                        #
         
     | 
| 
       36 
     | 
    
         
            -
                        # @return [String]
         
     | 
| 
      
 36 
     | 
    
         
            +
                        # @return [::String]
         
     | 
| 
       37 
37 
     | 
    
         
             
                        def agent_path project:
         
     | 
| 
       38 
38 
     | 
    
         
             
                          "projects/#{project}/agent"
         
     | 
| 
       39 
39 
     | 
    
         
             
                        end
         
     | 
| 
         @@ -61,27 +61,27 @@ module Google 
     | 
|
| 
       61 
61 
     | 
    
         
             
                        #   @param session [String]
         
     | 
| 
       62 
62 
     | 
    
         
             
                        #   @param context [String]
         
     | 
| 
       63 
63 
     | 
    
         
             
                        #
         
     | 
| 
       64 
     | 
    
         
            -
                        # @return [String]
         
     | 
| 
      
 64 
     | 
    
         
            +
                        # @return [::String]
         
     | 
| 
       65 
65 
     | 
    
         
             
                        def context_path **args
         
     | 
| 
       66 
66 
     | 
    
         
             
                          resources = {
         
     | 
| 
       67 
67 
     | 
    
         
             
                            "context:project:session"                  => (proc do |project:, session:, context:|
         
     | 
| 
       68 
     | 
    
         
            -
                              raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
         
     | 
| 
       69 
     | 
    
         
            -
                              raise ArgumentError, "session cannot contain /" if session.to_s.include? "/"
         
     | 
| 
      
 68 
     | 
    
         
            +
                              raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
         
     | 
| 
      
 69 
     | 
    
         
            +
                              raise ::ArgumentError, "session cannot contain /" if session.to_s.include? "/"
         
     | 
| 
       70 
70 
     | 
    
         | 
| 
       71 
71 
     | 
    
         
             
                              "projects/#{project}/agent/sessions/#{session}/contexts/#{context}"
         
     | 
| 
       72 
72 
     | 
    
         
             
                            end),
         
     | 
| 
       73 
73 
     | 
    
         
             
                            "context:environment:project:session:user" => (proc do |project:, environment:, user:, session:, context:|
         
     | 
| 
       74 
     | 
    
         
            -
                              raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
         
     | 
| 
       75 
     | 
    
         
            -
                              raise ArgumentError, "environment cannot contain /" if environment.to_s.include? "/"
         
     | 
| 
       76 
     | 
    
         
            -
                              raise ArgumentError, "user cannot contain /" if user.to_s.include? "/"
         
     | 
| 
       77 
     | 
    
         
            -
                              raise ArgumentError, "session cannot contain /" if session.to_s.include? "/"
         
     | 
| 
      
 74 
     | 
    
         
            +
                              raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
         
     | 
| 
      
 75 
     | 
    
         
            +
                              raise ::ArgumentError, "environment cannot contain /" if environment.to_s.include? "/"
         
     | 
| 
      
 76 
     | 
    
         
            +
                              raise ::ArgumentError, "user cannot contain /" if user.to_s.include? "/"
         
     | 
| 
      
 77 
     | 
    
         
            +
                              raise ::ArgumentError, "session cannot contain /" if session.to_s.include? "/"
         
     | 
| 
       78 
78 
     | 
    
         | 
| 
       79 
79 
     | 
    
         
             
                              "projects/#{project}/agent/environments/#{environment}/users/#{user}/sessions/#{session}/contexts/#{context}"
         
     | 
| 
       80 
80 
     | 
    
         
             
                            end)
         
     | 
| 
       81 
81 
     | 
    
         
             
                          }
         
     | 
| 
       82 
82 
     | 
    
         | 
| 
       83 
83 
     | 
    
         
             
                          resource = resources[args.keys.sort.join(":")]
         
     | 
| 
       84 
     | 
    
         
            -
                          raise ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
         
     | 
| 
      
 84 
     | 
    
         
            +
                          raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
         
     | 
| 
       85 
85 
     | 
    
         
             
                          resource.call(**args)
         
     | 
| 
       86 
86 
     | 
    
         
             
                        end
         
     | 
| 
       87 
87 
     | 
    
         | 
| 
         @@ -95,9 +95,9 @@ module Google 
     | 
|
| 
       95 
95 
     | 
    
         
             
                        # @param project [String]
         
     | 
| 
       96 
96 
     | 
    
         
             
                        # @param intent [String]
         
     | 
| 
       97 
97 
     | 
    
         
             
                        #
         
     | 
| 
       98 
     | 
    
         
            -
                        # @return [String]
         
     | 
| 
      
 98 
     | 
    
         
            +
                        # @return [::String]
         
     | 
| 
       99 
99 
     | 
    
         
             
                        def intent_path project:, intent:
         
     | 
| 
       100 
     | 
    
         
            -
                          raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
         
     | 
| 
      
 100 
     | 
    
         
            +
                          raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
         
     | 
| 
       101 
101 
     | 
    
         | 
| 
       102 
102 
     | 
    
         
             
                          "projects/#{project}/agent/intents/#{intent}"
         
     | 
| 
       103 
103 
     | 
    
         
             
                        end
         
     | 
| 
         @@ -52,7 +52,7 @@ module Google 
     | 
|
| 
       52 
52 
     | 
    
         
             
                    # To load this service and instantiate a client:
         
     | 
| 
       53 
53 
     | 
    
         
             
                    #
         
     | 
| 
       54 
54 
     | 
    
         
             
                    #     require "google/cloud/dialogflow/v2/session_entity_types"
         
     | 
| 
       55 
     | 
    
         
            -
                    #     client = Google::Cloud::Dialogflow::V2::SessionEntityTypes::Client.new
         
     | 
| 
      
 55 
     | 
    
         
            +
                    #     client = ::Google::Cloud::Dialogflow::V2::SessionEntityTypes::Client.new
         
     | 
| 
       56 
56 
     | 
    
         
             
                    #
         
     | 
| 
       57 
57 
     | 
    
         
             
                    module SessionEntityTypes
         
     | 
| 
       58 
58 
     | 
    
         
             
                    end
         
     | 
| 
         @@ -54,15 +54,15 @@ module Google 
     | 
|
| 
       54 
54 
     | 
    
         
             
                        ##
         
     | 
| 
       55 
55 
     | 
    
         
             
                        # Configure the SessionEntityTypes Client class.
         
     | 
| 
       56 
56 
     | 
    
         
             
                        #
         
     | 
| 
       57 
     | 
    
         
            -
                        # See {Google::Cloud::Dialogflow::V2::SessionEntityTypes::Client::Configuration}
         
     | 
| 
      
 57 
     | 
    
         
            +
                        # See {::Google::Cloud::Dialogflow::V2::SessionEntityTypes::Client::Configuration}
         
     | 
| 
       58 
58 
     | 
    
         
             
                        # for a description of the configuration fields.
         
     | 
| 
       59 
59 
     | 
    
         
             
                        #
         
     | 
| 
       60 
60 
     | 
    
         
             
                        # ## Example
         
     | 
| 
       61 
61 
     | 
    
         
             
                        #
         
     | 
| 
       62 
62 
     | 
    
         
             
                        # To modify the configuration for all SessionEntityTypes clients:
         
     | 
| 
       63 
63 
     | 
    
         
             
                        #
         
     | 
| 
       64 
     | 
    
         
            -
                        #     Google::Cloud::Dialogflow::V2::SessionEntityTypes::Client.configure do |config|
         
     | 
| 
       65 
     | 
    
         
            -
                        #       config.timeout =  
     | 
| 
      
 64 
     | 
    
         
            +
                        #     ::Google::Cloud::Dialogflow::V2::SessionEntityTypes::Client.configure do |config|
         
     | 
| 
      
 65 
     | 
    
         
            +
                        #       config.timeout = 10.0
         
     | 
| 
       66 
66 
     | 
    
         
             
                        #     end
         
     | 
| 
       67 
67 
     | 
    
         
             
                        #
         
     | 
| 
       68 
68 
     | 
    
         
             
                        # @yield [config] Configure the Client client.
         
     | 
| 
         @@ -122,7 +122,7 @@ module Google 
     | 
|
| 
       122 
122 
     | 
    
         
             
                        # but structural changes (adding new fields, etc.) are not allowed. Structural changes
         
     | 
| 
       123 
123 
     | 
    
         
             
                        # should be made on {Client.configure}.
         
     | 
| 
       124 
124 
     | 
    
         
             
                        #
         
     | 
| 
       125 
     | 
    
         
            -
                        # See {Google::Cloud::Dialogflow::V2::SessionEntityTypes::Client::Configuration}
         
     | 
| 
      
 125 
     | 
    
         
            +
                        # See {::Google::Cloud::Dialogflow::V2::SessionEntityTypes::Client::Configuration}
         
     | 
| 
       126 
126 
     | 
    
         
             
                        # for a description of the configuration fields.
         
     | 
| 
       127 
127 
     | 
    
         
             
                        #
         
     | 
| 
       128 
128 
     | 
    
         
             
                        # @yield [config] Configure the Client client.
         
     | 
| 
         @@ -143,13 +143,13 @@ module Google 
     | 
|
| 
       143 
143 
     | 
    
         
             
                        # To create a new SessionEntityTypes client with the default
         
     | 
| 
       144 
144 
     | 
    
         
             
                        # configuration:
         
     | 
| 
       145 
145 
     | 
    
         
             
                        #
         
     | 
| 
       146 
     | 
    
         
            -
                        #     client = Google::Cloud::Dialogflow::V2::SessionEntityTypes::Client.new
         
     | 
| 
      
 146 
     | 
    
         
            +
                        #     client = ::Google::Cloud::Dialogflow::V2::SessionEntityTypes::Client.new
         
     | 
| 
       147 
147 
     | 
    
         
             
                        #
         
     | 
| 
       148 
148 
     | 
    
         
             
                        # To create a new SessionEntityTypes client with a custom
         
     | 
| 
       149 
149 
     | 
    
         
             
                        # configuration:
         
     | 
| 
       150 
150 
     | 
    
         
             
                        #
         
     | 
| 
       151 
     | 
    
         
            -
                        #     client = Google::Cloud::Dialogflow::V2::SessionEntityTypes::Client.new do |config|
         
     | 
| 
       152 
     | 
    
         
            -
                        #       config.timeout =  
     | 
| 
      
 151 
     | 
    
         
            +
                        #     client = ::Google::Cloud::Dialogflow::V2::SessionEntityTypes::Client.new do |config|
         
     | 
| 
      
 152 
     | 
    
         
            +
                        #       config.timeout = 10.0
         
     | 
| 
       153 
153 
     | 
    
         
             
                        #     end
         
     | 
| 
       154 
154 
     | 
    
         
             
                        #
         
     | 
| 
       155 
155 
     | 
    
         
             
                        # @yield [config] Configure the SessionEntityTypes client.
         
     | 
| 
         @@ -174,10 +174,11 @@ module Google 
     | 
|
| 
       174 
174 
     | 
    
         
             
                          if credentials.is_a?(String) || credentials.is_a?(Hash)
         
     | 
| 
       175 
175 
     | 
    
         
             
                            credentials = Credentials.new credentials, scope: @config.scope
         
     | 
| 
       176 
176 
     | 
    
         
             
                          end
         
     | 
| 
       177 
     | 
    
         
            -
                          @quota_project_id =  
     | 
| 
      
 177 
     | 
    
         
            +
                          @quota_project_id = @config.quota_project
         
     | 
| 
      
 178 
     | 
    
         
            +
                          @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
         
     | 
| 
       178 
179 
     | 
    
         | 
| 
       179 
     | 
    
         
            -
                          @session_entity_types_stub = Gapic::ServiceStub.new(
         
     | 
| 
       180 
     | 
    
         
            -
                            Google::Cloud::Dialogflow::V2::SessionEntityTypes::Stub,
         
     | 
| 
      
 180 
     | 
    
         
            +
                          @session_entity_types_stub = ::Gapic::ServiceStub.new(
         
     | 
| 
      
 181 
     | 
    
         
            +
                            ::Google::Cloud::Dialogflow::V2::SessionEntityTypes::Stub,
         
     | 
| 
       181 
182 
     | 
    
         
             
                            credentials:  credentials,
         
     | 
| 
       182 
183 
     | 
    
         
             
                            endpoint:     @config.endpoint,
         
     | 
| 
       183 
184 
     | 
    
         
             
                            channel_args: @config.channel_args,
         
     | 
| 
         @@ -196,12 +197,12 @@ module Google 
     | 
|
| 
       196 
197 
     | 
    
         
             
                        #
         
     | 
| 
       197 
198 
     | 
    
         
             
                        # @overload list_session_entity_types(request, options = nil)
         
     | 
| 
       198 
199 
     | 
    
         
             
                        #   Pass arguments to `list_session_entity_types` via a request object, either of type
         
     | 
| 
       199 
     | 
    
         
            -
                        #   {Google::Cloud::Dialogflow::V2::ListSessionEntityTypesRequest} or an equivalent Hash.
         
     | 
| 
      
 200 
     | 
    
         
            +
                        #   {::Google::Cloud::Dialogflow::V2::ListSessionEntityTypesRequest} or an equivalent Hash.
         
     | 
| 
       200 
201 
     | 
    
         
             
                        #
         
     | 
| 
       201 
     | 
    
         
            -
                        #   @param request [Google::Cloud::Dialogflow::V2::ListSessionEntityTypesRequest, Hash]
         
     | 
| 
      
 202 
     | 
    
         
            +
                        #   @param request [::Google::Cloud::Dialogflow::V2::ListSessionEntityTypesRequest, ::Hash]
         
     | 
| 
       202 
203 
     | 
    
         
             
                        #     A request object representing the call parameters. Required. To specify no
         
     | 
| 
       203 
204 
     | 
    
         
             
                        #     parameters, or to keep all the default parameter values, pass an empty Hash.
         
     | 
| 
       204 
     | 
    
         
            -
                        #   @param options [Gapic::CallOptions, Hash]
         
     | 
| 
      
 205 
     | 
    
         
            +
                        #   @param options [::Gapic::CallOptions, ::Hash]
         
     | 
| 
       205 
206 
     | 
    
         
             
                        #     Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
         
     | 
| 
       206 
207 
     | 
    
         
             
                        #
         
     | 
| 
       207 
208 
     | 
    
         
             
                        # @overload list_session_entity_types(parent: nil, page_size: nil, page_token: nil)
         
     | 
| 
         @@ -209,40 +210,40 @@ module Google 
     | 
|
| 
       209 
210 
     | 
    
         
             
                        #   least one keyword argument is required. To specify no parameters, or to keep all
         
     | 
| 
       210 
211 
     | 
    
         
             
                        #   the default parameter values, pass an empty Hash as a request object (see above).
         
     | 
| 
       211 
212 
     | 
    
         
             
                        #
         
     | 
| 
       212 
     | 
    
         
            -
                        #   @param parent [String]
         
     | 
| 
      
 213 
     | 
    
         
            +
                        #   @param parent [::String]
         
     | 
| 
       213 
214 
     | 
    
         
             
                        #     Required. The session to list all session entity types from.
         
     | 
| 
       214 
215 
     | 
    
         
             
                        #     Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
         
     | 
| 
       215 
216 
     | 
    
         
             
                        #     `projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/
         
     | 
| 
       216 
217 
     | 
    
         
             
                        #     sessions/<Session ID>`.
         
     | 
| 
       217 
218 
     | 
    
         
             
                        #     If `Environment ID` is not specified, we assume default 'draft'
         
     | 
| 
       218 
219 
     | 
    
         
             
                        #     environment. If `User ID` is not specified, we assume default '-' user.
         
     | 
| 
       219 
     | 
    
         
            -
                        #   @param page_size [Integer]
         
     | 
| 
      
 220 
     | 
    
         
            +
                        #   @param page_size [::Integer]
         
     | 
| 
       220 
221 
     | 
    
         
             
                        #     Optional. The maximum number of items to return in a single page. By
         
     | 
| 
       221 
222 
     | 
    
         
             
                        #     default 100 and at most 1000.
         
     | 
| 
       222 
     | 
    
         
            -
                        #   @param page_token [String]
         
     | 
| 
      
 223 
     | 
    
         
            +
                        #   @param page_token [::String]
         
     | 
| 
       223 
224 
     | 
    
         
             
                        #     Optional. The next_page_token value returned from a previous list request.
         
     | 
| 
       224 
225 
     | 
    
         
             
                        #
         
     | 
| 
       225 
226 
     | 
    
         
             
                        # @yield [response, operation] Access the result along with the RPC operation
         
     | 
| 
       226 
     | 
    
         
            -
                        # @yieldparam response [Gapic::PagedEnumerable 
     | 
| 
       227 
     | 
    
         
            -
                        # @yieldparam operation [GRPC::ActiveCall::Operation]
         
     | 
| 
      
 227 
     | 
    
         
            +
                        # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dialogflow::V2::SessionEntityType>]
         
     | 
| 
      
 228 
     | 
    
         
            +
                        # @yieldparam operation [::GRPC::ActiveCall::Operation]
         
     | 
| 
       228 
229 
     | 
    
         
             
                        #
         
     | 
| 
       229 
     | 
    
         
            -
                        # @return [Gapic::PagedEnumerable 
     | 
| 
      
 230 
     | 
    
         
            +
                        # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dialogflow::V2::SessionEntityType>]
         
     | 
| 
       230 
231 
     | 
    
         
             
                        #
         
     | 
| 
       231 
     | 
    
         
            -
                        # @raise [Google::Cloud::Error] if the RPC is aborted.
         
     | 
| 
      
 232 
     | 
    
         
            +
                        # @raise [::Google::Cloud::Error] if the RPC is aborted.
         
     | 
| 
       232 
233 
     | 
    
         
             
                        #
         
     | 
| 
       233 
234 
     | 
    
         
             
                        def list_session_entity_types request, options = nil
         
     | 
| 
       234 
     | 
    
         
            -
                          raise ArgumentError, "request must be provided" if request.nil?
         
     | 
| 
      
 235 
     | 
    
         
            +
                          raise ::ArgumentError, "request must be provided" if request.nil?
         
     | 
| 
       235 
236 
     | 
    
         | 
| 
       236 
     | 
    
         
            -
                          request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dialogflow::V2::ListSessionEntityTypesRequest
         
     | 
| 
      
 237 
     | 
    
         
            +
                          request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::V2::ListSessionEntityTypesRequest
         
     | 
| 
       237 
238 
     | 
    
         | 
| 
       238 
239 
     | 
    
         
             
                          # Converts hash and nil to an options object
         
     | 
| 
       239 
     | 
    
         
            -
                          options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
         
     | 
| 
      
 240 
     | 
    
         
            +
                          options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
         
     | 
| 
       240 
241 
     | 
    
         | 
| 
       241 
242 
     | 
    
         
             
                          # Customize the options with defaults
         
     | 
| 
       242 
243 
     | 
    
         
             
                          metadata = @config.rpcs.list_session_entity_types.metadata.to_h
         
     | 
| 
       243 
244 
     | 
    
         | 
| 
       244 
245 
     | 
    
         
             
                          # Set x-goog-api-client and x-goog-user-project headers
         
     | 
| 
       245 
     | 
    
         
            -
                          metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
         
     | 
| 
      
 246 
     | 
    
         
            +
                          metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
         
     | 
| 
       246 
247 
     | 
    
         
             
                            lib_name: @config.lib_name, lib_version: @config.lib_version,
         
     | 
| 
       247 
248 
     | 
    
         
             
                            gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
         
     | 
| 
       248 
249 
     | 
    
         
             
                          metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         
     | 
| 
         @@ -260,12 +261,12 @@ module Google 
     | 
|
| 
       260 
261 
     | 
    
         
             
                                                 retry_policy: @config.retry_policy
         
     | 
| 
       261 
262 
     | 
    
         | 
| 
       262 
263 
     | 
    
         
             
                          @session_entity_types_stub.call_rpc :list_session_entity_types, request, options: options do |response, operation|
         
     | 
| 
       263 
     | 
    
         
            -
                            response = Gapic::PagedEnumerable.new @session_entity_types_stub, :list_session_entity_types, request, response, operation, options
         
     | 
| 
      
 264 
     | 
    
         
            +
                            response = ::Gapic::PagedEnumerable.new @session_entity_types_stub, :list_session_entity_types, request, response, operation, options
         
     | 
| 
       264 
265 
     | 
    
         
             
                            yield response, operation if block_given?
         
     | 
| 
       265 
266 
     | 
    
         
             
                            return response
         
     | 
| 
       266 
267 
     | 
    
         
             
                          end
         
     | 
| 
       267 
     | 
    
         
            -
                        rescue GRPC::BadStatus => e
         
     | 
| 
       268 
     | 
    
         
            -
                          raise Google::Cloud::Error.from_error(e)
         
     | 
| 
      
 268 
     | 
    
         
            +
                        rescue ::GRPC::BadStatus => e
         
     | 
| 
      
 269 
     | 
    
         
            +
                          raise ::Google::Cloud::Error.from_error(e)
         
     | 
| 
       269 
270 
     | 
    
         
             
                        end
         
     | 
| 
       270 
271 
     | 
    
         | 
| 
       271 
272 
     | 
    
         
             
                        ##
         
     | 
| 
         @@ -277,12 +278,12 @@ module Google 
     | 
|
| 
       277 
278 
     | 
    
         
             
                        #
         
     | 
| 
       278 
279 
     | 
    
         
             
                        # @overload get_session_entity_type(request, options = nil)
         
     | 
| 
       279 
280 
     | 
    
         
             
                        #   Pass arguments to `get_session_entity_type` via a request object, either of type
         
     | 
| 
       280 
     | 
    
         
            -
                        #   {Google::Cloud::Dialogflow::V2::GetSessionEntityTypeRequest} or an equivalent Hash.
         
     | 
| 
      
 281 
     | 
    
         
            +
                        #   {::Google::Cloud::Dialogflow::V2::GetSessionEntityTypeRequest} or an equivalent Hash.
         
     | 
| 
       281 
282 
     | 
    
         
             
                        #
         
     | 
| 
       282 
     | 
    
         
            -
                        #   @param request [Google::Cloud::Dialogflow::V2::GetSessionEntityTypeRequest, Hash]
         
     | 
| 
      
 283 
     | 
    
         
            +
                        #   @param request [::Google::Cloud::Dialogflow::V2::GetSessionEntityTypeRequest, ::Hash]
         
     | 
| 
       283 
284 
     | 
    
         
             
                        #     A request object representing the call parameters. Required. To specify no
         
     | 
| 
       284 
285 
     | 
    
         
             
                        #     parameters, or to keep all the default parameter values, pass an empty Hash.
         
     | 
| 
       285 
     | 
    
         
            -
                        #   @param options [Gapic::CallOptions, Hash]
         
     | 
| 
      
 286 
     | 
    
         
            +
                        #   @param options [::Gapic::CallOptions, ::Hash]
         
     | 
| 
       286 
287 
     | 
    
         
             
                        #     Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
         
     | 
| 
       287 
288 
     | 
    
         
             
                        #
         
     | 
| 
       288 
289 
     | 
    
         
             
                        # @overload get_session_entity_type(name: nil)
         
     | 
| 
         @@ -290,7 +291,7 @@ module Google 
     | 
|
| 
       290 
291 
     | 
    
         
             
                        #   least one keyword argument is required. To specify no parameters, or to keep all
         
     | 
| 
       291 
292 
     | 
    
         
             
                        #   the default parameter values, pass an empty Hash as a request object (see above).
         
     | 
| 
       292 
293 
     | 
    
         
             
                        #
         
     | 
| 
       293 
     | 
    
         
            -
                        #   @param name [String]
         
     | 
| 
      
 294 
     | 
    
         
            +
                        #   @param name [::String]
         
     | 
| 
       294 
295 
     | 
    
         
             
                        #     Required. The name of the session entity type. Format:
         
     | 
| 
       295 
296 
     | 
    
         
             
                        #     `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
         
     | 
| 
       296 
297 
     | 
    
         
             
                        #     Display Name>` or `projects/<Project ID>/agent/environments/<Environment
         
     | 
| 
         @@ -300,26 +301,26 @@ module Google 
     | 
|
| 
       300 
301 
     | 
    
         
             
                        #     environment. If `User ID` is not specified, we assume default '-' user.
         
     | 
| 
       301 
302 
     | 
    
         
             
                        #
         
     | 
| 
       302 
303 
     | 
    
         
             
                        # @yield [response, operation] Access the result along with the RPC operation
         
     | 
| 
       303 
     | 
    
         
            -
                        # @yieldparam response [Google::Cloud::Dialogflow::V2::SessionEntityType]
         
     | 
| 
       304 
     | 
    
         
            -
                        # @yieldparam operation [GRPC::ActiveCall::Operation]
         
     | 
| 
      
 304 
     | 
    
         
            +
                        # @yieldparam response [::Google::Cloud::Dialogflow::V2::SessionEntityType]
         
     | 
| 
      
 305 
     | 
    
         
            +
                        # @yieldparam operation [::GRPC::ActiveCall::Operation]
         
     | 
| 
       305 
306 
     | 
    
         
             
                        #
         
     | 
| 
       306 
     | 
    
         
            -
                        # @return [Google::Cloud::Dialogflow::V2::SessionEntityType]
         
     | 
| 
      
 307 
     | 
    
         
            +
                        # @return [::Google::Cloud::Dialogflow::V2::SessionEntityType]
         
     | 
| 
       307 
308 
     | 
    
         
             
                        #
         
     | 
| 
       308 
     | 
    
         
            -
                        # @raise [Google::Cloud::Error] if the RPC is aborted.
         
     | 
| 
      
 309 
     | 
    
         
            +
                        # @raise [::Google::Cloud::Error] if the RPC is aborted.
         
     | 
| 
       309 
310 
     | 
    
         
             
                        #
         
     | 
| 
       310 
311 
     | 
    
         
             
                        def get_session_entity_type request, options = nil
         
     | 
| 
       311 
     | 
    
         
            -
                          raise ArgumentError, "request must be provided" if request.nil?
         
     | 
| 
      
 312 
     | 
    
         
            +
                          raise ::ArgumentError, "request must be provided" if request.nil?
         
     | 
| 
       312 
313 
     | 
    
         | 
| 
       313 
     | 
    
         
            -
                          request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dialogflow::V2::GetSessionEntityTypeRequest
         
     | 
| 
      
 314 
     | 
    
         
            +
                          request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::V2::GetSessionEntityTypeRequest
         
     | 
| 
       314 
315 
     | 
    
         | 
| 
       315 
316 
     | 
    
         
             
                          # Converts hash and nil to an options object
         
     | 
| 
       316 
     | 
    
         
            -
                          options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
         
     | 
| 
      
 317 
     | 
    
         
            +
                          options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
         
     | 
| 
       317 
318 
     | 
    
         | 
| 
       318 
319 
     | 
    
         
             
                          # Customize the options with defaults
         
     | 
| 
       319 
320 
     | 
    
         
             
                          metadata = @config.rpcs.get_session_entity_type.metadata.to_h
         
     | 
| 
       320 
321 
     | 
    
         | 
| 
       321 
322 
     | 
    
         
             
                          # Set x-goog-api-client and x-goog-user-project headers
         
     | 
| 
       322 
     | 
    
         
            -
                          metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
         
     | 
| 
      
 323 
     | 
    
         
            +
                          metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
         
     | 
| 
       323 
324 
     | 
    
         
             
                            lib_name: @config.lib_name, lib_version: @config.lib_version,
         
     | 
| 
       324 
325 
     | 
    
         
             
                            gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
         
     | 
| 
       325 
326 
     | 
    
         
             
                          metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         
     | 
| 
         @@ -340,8 +341,8 @@ module Google 
     | 
|
| 
       340 
341 
     | 
    
         
             
                            yield response, operation if block_given?
         
     | 
| 
       341 
342 
     | 
    
         
             
                            return response
         
     | 
| 
       342 
343 
     | 
    
         
             
                          end
         
     | 
| 
       343 
     | 
    
         
            -
                        rescue GRPC::BadStatus => e
         
     | 
| 
       344 
     | 
    
         
            -
                          raise Google::Cloud::Error.from_error(e)
         
     | 
| 
      
 344 
     | 
    
         
            +
                        rescue ::GRPC::BadStatus => e
         
     | 
| 
      
 345 
     | 
    
         
            +
                          raise ::Google::Cloud::Error.from_error(e)
         
     | 
| 
       345 
346 
     | 
    
         
             
                        end
         
     | 
| 
       346 
347 
     | 
    
         | 
| 
       347 
348 
     | 
    
         
             
                        ##
         
     | 
| 
         @@ -356,12 +357,12 @@ module Google 
     | 
|
| 
       356 
357 
     | 
    
         
             
                        #
         
     | 
| 
       357 
358 
     | 
    
         
             
                        # @overload create_session_entity_type(request, options = nil)
         
     | 
| 
       358 
359 
     | 
    
         
             
                        #   Pass arguments to `create_session_entity_type` via a request object, either of type
         
     | 
| 
       359 
     | 
    
         
            -
                        #   {Google::Cloud::Dialogflow::V2::CreateSessionEntityTypeRequest} or an equivalent Hash.
         
     | 
| 
      
 360 
     | 
    
         
            +
                        #   {::Google::Cloud::Dialogflow::V2::CreateSessionEntityTypeRequest} or an equivalent Hash.
         
     | 
| 
       360 
361 
     | 
    
         
             
                        #
         
     | 
| 
       361 
     | 
    
         
            -
                        #   @param request [Google::Cloud::Dialogflow::V2::CreateSessionEntityTypeRequest, Hash]
         
     | 
| 
      
 362 
     | 
    
         
            +
                        #   @param request [::Google::Cloud::Dialogflow::V2::CreateSessionEntityTypeRequest, ::Hash]
         
     | 
| 
       362 
363 
     | 
    
         
             
                        #     A request object representing the call parameters. Required. To specify no
         
     | 
| 
       363 
364 
     | 
    
         
             
                        #     parameters, or to keep all the default parameter values, pass an empty Hash.
         
     | 
| 
       364 
     | 
    
         
            -
                        #   @param options [Gapic::CallOptions, Hash]
         
     | 
| 
      
 365 
     | 
    
         
            +
                        #   @param options [::Gapic::CallOptions, ::Hash]
         
     | 
| 
       365 
366 
     | 
    
         
             
                        #     Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
         
     | 
| 
       366 
367 
     | 
    
         
             
                        #
         
     | 
| 
       367 
368 
     | 
    
         
             
                        # @overload create_session_entity_type(parent: nil, session_entity_type: nil)
         
     | 
| 
         @@ -369,37 +370,37 @@ module Google 
     | 
|
| 
       369 
370 
     | 
    
         
             
                        #   least one keyword argument is required. To specify no parameters, or to keep all
         
     | 
| 
       370 
371 
     | 
    
         
             
                        #   the default parameter values, pass an empty Hash as a request object (see above).
         
     | 
| 
       371 
372 
     | 
    
         
             
                        #
         
     | 
| 
       372 
     | 
    
         
            -
                        #   @param parent [String]
         
     | 
| 
      
 373 
     | 
    
         
            +
                        #   @param parent [::String]
         
     | 
| 
       373 
374 
     | 
    
         
             
                        #     Required. The session to create a session entity type for.
         
     | 
| 
       374 
375 
     | 
    
         
             
                        #     Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
         
     | 
| 
       375 
376 
     | 
    
         
             
                        #     `projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/
         
     | 
| 
       376 
377 
     | 
    
         
             
                        #     sessions/<Session ID>`.
         
     | 
| 
       377 
378 
     | 
    
         
             
                        #     If `Environment ID` is not specified, we assume default 'draft'
         
     | 
| 
       378 
379 
     | 
    
         
             
                        #     environment. If `User ID` is not specified, we assume default '-' user.
         
     | 
| 
       379 
     | 
    
         
            -
                        #   @param session_entity_type [Google::Cloud::Dialogflow::V2::SessionEntityType, Hash]
         
     | 
| 
      
 380 
     | 
    
         
            +
                        #   @param session_entity_type [::Google::Cloud::Dialogflow::V2::SessionEntityType, ::Hash]
         
     | 
| 
       380 
381 
     | 
    
         
             
                        #     Required. The session entity type to create.
         
     | 
| 
       381 
382 
     | 
    
         
             
                        #
         
     | 
| 
       382 
383 
     | 
    
         
             
                        # @yield [response, operation] Access the result along with the RPC operation
         
     | 
| 
       383 
     | 
    
         
            -
                        # @yieldparam response [Google::Cloud::Dialogflow::V2::SessionEntityType]
         
     | 
| 
       384 
     | 
    
         
            -
                        # @yieldparam operation [GRPC::ActiveCall::Operation]
         
     | 
| 
      
 384 
     | 
    
         
            +
                        # @yieldparam response [::Google::Cloud::Dialogflow::V2::SessionEntityType]
         
     | 
| 
      
 385 
     | 
    
         
            +
                        # @yieldparam operation [::GRPC::ActiveCall::Operation]
         
     | 
| 
       385 
386 
     | 
    
         
             
                        #
         
     | 
| 
       386 
     | 
    
         
            -
                        # @return [Google::Cloud::Dialogflow::V2::SessionEntityType]
         
     | 
| 
      
 387 
     | 
    
         
            +
                        # @return [::Google::Cloud::Dialogflow::V2::SessionEntityType]
         
     | 
| 
       387 
388 
     | 
    
         
             
                        #
         
     | 
| 
       388 
     | 
    
         
            -
                        # @raise [Google::Cloud::Error] if the RPC is aborted.
         
     | 
| 
      
 389 
     | 
    
         
            +
                        # @raise [::Google::Cloud::Error] if the RPC is aborted.
         
     | 
| 
       389 
390 
     | 
    
         
             
                        #
         
     | 
| 
       390 
391 
     | 
    
         
             
                        def create_session_entity_type request, options = nil
         
     | 
| 
       391 
     | 
    
         
            -
                          raise ArgumentError, "request must be provided" if request.nil?
         
     | 
| 
      
 392 
     | 
    
         
            +
                          raise ::ArgumentError, "request must be provided" if request.nil?
         
     | 
| 
       392 
393 
     | 
    
         | 
| 
       393 
     | 
    
         
            -
                          request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dialogflow::V2::CreateSessionEntityTypeRequest
         
     | 
| 
      
 394 
     | 
    
         
            +
                          request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::V2::CreateSessionEntityTypeRequest
         
     | 
| 
       394 
395 
     | 
    
         | 
| 
       395 
396 
     | 
    
         
             
                          # Converts hash and nil to an options object
         
     | 
| 
       396 
     | 
    
         
            -
                          options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
         
     | 
| 
      
 397 
     | 
    
         
            +
                          options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
         
     | 
| 
       397 
398 
     | 
    
         | 
| 
       398 
399 
     | 
    
         
             
                          # Customize the options with defaults
         
     | 
| 
       399 
400 
     | 
    
         
             
                          metadata = @config.rpcs.create_session_entity_type.metadata.to_h
         
     | 
| 
       400 
401 
     | 
    
         | 
| 
       401 
402 
     | 
    
         
             
                          # Set x-goog-api-client and x-goog-user-project headers
         
     | 
| 
       402 
     | 
    
         
            -
                          metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
         
     | 
| 
      
 403 
     | 
    
         
            +
                          metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
         
     | 
| 
       403 
404 
     | 
    
         
             
                            lib_name: @config.lib_name, lib_version: @config.lib_version,
         
     | 
| 
       404 
405 
     | 
    
         
             
                            gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
         
     | 
| 
       405 
406 
     | 
    
         
             
                          metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         
     | 
| 
         @@ -420,8 +421,8 @@ module Google 
     | 
|
| 
       420 
421 
     | 
    
         
             
                            yield response, operation if block_given?
         
     | 
| 
       421 
422 
     | 
    
         
             
                            return response
         
     | 
| 
       422 
423 
     | 
    
         
             
                          end
         
     | 
| 
       423 
     | 
    
         
            -
                        rescue GRPC::BadStatus => e
         
     | 
| 
       424 
     | 
    
         
            -
                          raise Google::Cloud::Error.from_error(e)
         
     | 
| 
      
 424 
     | 
    
         
            +
                        rescue ::GRPC::BadStatus => e
         
     | 
| 
      
 425 
     | 
    
         
            +
                          raise ::Google::Cloud::Error.from_error(e)
         
     | 
| 
       425 
426 
     | 
    
         
             
                        end
         
     | 
| 
       426 
427 
     | 
    
         | 
| 
       427 
428 
     | 
    
         
             
                        ##
         
     | 
| 
         @@ -433,12 +434,12 @@ module Google 
     | 
|
| 
       433 
434 
     | 
    
         
             
                        #
         
     | 
| 
       434 
435 
     | 
    
         
             
                        # @overload update_session_entity_type(request, options = nil)
         
     | 
| 
       435 
436 
     | 
    
         
             
                        #   Pass arguments to `update_session_entity_type` via a request object, either of type
         
     | 
| 
       436 
     | 
    
         
            -
                        #   {Google::Cloud::Dialogflow::V2::UpdateSessionEntityTypeRequest} or an equivalent Hash.
         
     | 
| 
      
 437 
     | 
    
         
            +
                        #   {::Google::Cloud::Dialogflow::V2::UpdateSessionEntityTypeRequest} or an equivalent Hash.
         
     | 
| 
       437 
438 
     | 
    
         
             
                        #
         
     | 
| 
       438 
     | 
    
         
            -
                        #   @param request [Google::Cloud::Dialogflow::V2::UpdateSessionEntityTypeRequest, Hash]
         
     | 
| 
      
 439 
     | 
    
         
            +
                        #   @param request [::Google::Cloud::Dialogflow::V2::UpdateSessionEntityTypeRequest, ::Hash]
         
     | 
| 
       439 
440 
     | 
    
         
             
                        #     A request object representing the call parameters. Required. To specify no
         
     | 
| 
       440 
441 
     | 
    
         
             
                        #     parameters, or to keep all the default parameter values, pass an empty Hash.
         
     | 
| 
       441 
     | 
    
         
            -
                        #   @param options [Gapic::CallOptions, Hash]
         
     | 
| 
      
 442 
     | 
    
         
            +
                        #   @param options [::Gapic::CallOptions, ::Hash]
         
     | 
| 
       442 
443 
     | 
    
         
             
                        #     Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
         
     | 
| 
       443 
444 
     | 
    
         
             
                        #
         
     | 
| 
       444 
445 
     | 
    
         
             
                        # @overload update_session_entity_type(session_entity_type: nil, update_mask: nil)
         
     | 
| 
         @@ -446,32 +447,32 @@ module Google 
     | 
|
| 
       446 
447 
     | 
    
         
             
                        #   least one keyword argument is required. To specify no parameters, or to keep all
         
     | 
| 
       447 
448 
     | 
    
         
             
                        #   the default parameter values, pass an empty Hash as a request object (see above).
         
     | 
| 
       448 
449 
     | 
    
         
             
                        #
         
     | 
| 
       449 
     | 
    
         
            -
                        #   @param session_entity_type [Google::Cloud::Dialogflow::V2::SessionEntityType, Hash]
         
     | 
| 
      
 450 
     | 
    
         
            +
                        #   @param session_entity_type [::Google::Cloud::Dialogflow::V2::SessionEntityType, ::Hash]
         
     | 
| 
       450 
451 
     | 
    
         
             
                        #     Required. The session entity type to update.
         
     | 
| 
       451 
     | 
    
         
            -
                        #   @param update_mask [Google::Protobuf::FieldMask, Hash]
         
     | 
| 
      
 452 
     | 
    
         
            +
                        #   @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
         
     | 
| 
       452 
453 
     | 
    
         
             
                        #     Optional. The mask to control which fields get updated.
         
     | 
| 
       453 
454 
     | 
    
         
             
                        #
         
     | 
| 
       454 
455 
     | 
    
         
             
                        # @yield [response, operation] Access the result along with the RPC operation
         
     | 
| 
       455 
     | 
    
         
            -
                        # @yieldparam response [Google::Cloud::Dialogflow::V2::SessionEntityType]
         
     | 
| 
       456 
     | 
    
         
            -
                        # @yieldparam operation [GRPC::ActiveCall::Operation]
         
     | 
| 
      
 456 
     | 
    
         
            +
                        # @yieldparam response [::Google::Cloud::Dialogflow::V2::SessionEntityType]
         
     | 
| 
      
 457 
     | 
    
         
            +
                        # @yieldparam operation [::GRPC::ActiveCall::Operation]
         
     | 
| 
       457 
458 
     | 
    
         
             
                        #
         
     | 
| 
       458 
     | 
    
         
            -
                        # @return [Google::Cloud::Dialogflow::V2::SessionEntityType]
         
     | 
| 
      
 459 
     | 
    
         
            +
                        # @return [::Google::Cloud::Dialogflow::V2::SessionEntityType]
         
     | 
| 
       459 
460 
     | 
    
         
             
                        #
         
     | 
| 
       460 
     | 
    
         
            -
                        # @raise [Google::Cloud::Error] if the RPC is aborted.
         
     | 
| 
      
 461 
     | 
    
         
            +
                        # @raise [::Google::Cloud::Error] if the RPC is aborted.
         
     | 
| 
       461 
462 
     | 
    
         
             
                        #
         
     | 
| 
       462 
463 
     | 
    
         
             
                        def update_session_entity_type request, options = nil
         
     | 
| 
       463 
     | 
    
         
            -
                          raise ArgumentError, "request must be provided" if request.nil?
         
     | 
| 
      
 464 
     | 
    
         
            +
                          raise ::ArgumentError, "request must be provided" if request.nil?
         
     | 
| 
       464 
465 
     | 
    
         | 
| 
       465 
     | 
    
         
            -
                          request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dialogflow::V2::UpdateSessionEntityTypeRequest
         
     | 
| 
      
 466 
     | 
    
         
            +
                          request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::V2::UpdateSessionEntityTypeRequest
         
     | 
| 
       466 
467 
     | 
    
         | 
| 
       467 
468 
     | 
    
         
             
                          # Converts hash and nil to an options object
         
     | 
| 
       468 
     | 
    
         
            -
                          options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
         
     | 
| 
      
 469 
     | 
    
         
            +
                          options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
         
     | 
| 
       469 
470 
     | 
    
         | 
| 
       470 
471 
     | 
    
         
             
                          # Customize the options with defaults
         
     | 
| 
       471 
472 
     | 
    
         
             
                          metadata = @config.rpcs.update_session_entity_type.metadata.to_h
         
     | 
| 
       472 
473 
     | 
    
         | 
| 
       473 
474 
     | 
    
         
             
                          # Set x-goog-api-client and x-goog-user-project headers
         
     | 
| 
       474 
     | 
    
         
            -
                          metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
         
     | 
| 
      
 475 
     | 
    
         
            +
                          metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
         
     | 
| 
       475 
476 
     | 
    
         
             
                            lib_name: @config.lib_name, lib_version: @config.lib_version,
         
     | 
| 
       476 
477 
     | 
    
         
             
                            gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
         
     | 
| 
       477 
478 
     | 
    
         
             
                          metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         
     | 
| 
         @@ -492,8 +493,8 @@ module Google 
     | 
|
| 
       492 
493 
     | 
    
         
             
                            yield response, operation if block_given?
         
     | 
| 
       493 
494 
     | 
    
         
             
                            return response
         
     | 
| 
       494 
495 
     | 
    
         
             
                          end
         
     | 
| 
       495 
     | 
    
         
            -
                        rescue GRPC::BadStatus => e
         
     | 
| 
       496 
     | 
    
         
            -
                          raise Google::Cloud::Error.from_error(e)
         
     | 
| 
      
 496 
     | 
    
         
            +
                        rescue ::GRPC::BadStatus => e
         
     | 
| 
      
 497 
     | 
    
         
            +
                          raise ::Google::Cloud::Error.from_error(e)
         
     | 
| 
       497 
498 
     | 
    
         
             
                        end
         
     | 
| 
       498 
499 
     | 
    
         | 
| 
       499 
500 
     | 
    
         
             
                        ##
         
     | 
| 
         @@ -505,12 +506,12 @@ module Google 
     | 
|
| 
       505 
506 
     | 
    
         
             
                        #
         
     | 
| 
       506 
507 
     | 
    
         
             
                        # @overload delete_session_entity_type(request, options = nil)
         
     | 
| 
       507 
508 
     | 
    
         
             
                        #   Pass arguments to `delete_session_entity_type` via a request object, either of type
         
     | 
| 
       508 
     | 
    
         
            -
                        #   {Google::Cloud::Dialogflow::V2::DeleteSessionEntityTypeRequest} or an equivalent Hash.
         
     | 
| 
      
 509 
     | 
    
         
            +
                        #   {::Google::Cloud::Dialogflow::V2::DeleteSessionEntityTypeRequest} or an equivalent Hash.
         
     | 
| 
       509 
510 
     | 
    
         
             
                        #
         
     | 
| 
       510 
     | 
    
         
            -
                        #   @param request [Google::Cloud::Dialogflow::V2::DeleteSessionEntityTypeRequest, Hash]
         
     | 
| 
      
 511 
     | 
    
         
            +
                        #   @param request [::Google::Cloud::Dialogflow::V2::DeleteSessionEntityTypeRequest, ::Hash]
         
     | 
| 
       511 
512 
     | 
    
         
             
                        #     A request object representing the call parameters. Required. To specify no
         
     | 
| 
       512 
513 
     | 
    
         
             
                        #     parameters, or to keep all the default parameter values, pass an empty Hash.
         
     | 
| 
       513 
     | 
    
         
            -
                        #   @param options [Gapic::CallOptions, Hash]
         
     | 
| 
      
 514 
     | 
    
         
            +
                        #   @param options [::Gapic::CallOptions, ::Hash]
         
     | 
| 
       514 
515 
     | 
    
         
             
                        #     Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
         
     | 
| 
       515 
516 
     | 
    
         
             
                        #
         
     | 
| 
       516 
517 
     | 
    
         
             
                        # @overload delete_session_entity_type(name: nil)
         
     | 
| 
         @@ -518,7 +519,7 @@ module Google 
     | 
|
| 
       518 
519 
     | 
    
         
             
                        #   least one keyword argument is required. To specify no parameters, or to keep all
         
     | 
| 
       519 
520 
     | 
    
         
             
                        #   the default parameter values, pass an empty Hash as a request object (see above).
         
     | 
| 
       520 
521 
     | 
    
         
             
                        #
         
     | 
| 
       521 
     | 
    
         
            -
                        #   @param name [String]
         
     | 
| 
      
 522 
     | 
    
         
            +
                        #   @param name [::String]
         
     | 
| 
       522 
523 
     | 
    
         
             
                        #     Required. The name of the entity type to delete. Format:
         
     | 
| 
       523 
524 
     | 
    
         
             
                        #     `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
         
     | 
| 
       524 
525 
     | 
    
         
             
                        #     Display Name>` or `projects/<Project ID>/agent/environments/<Environment
         
     | 
| 
         @@ -528,26 +529,26 @@ module Google 
     | 
|
| 
       528 
529 
     | 
    
         
             
                        #     environment. If `User ID` is not specified, we assume default '-' user.
         
     | 
| 
       529 
530 
     | 
    
         
             
                        #
         
     | 
| 
       530 
531 
     | 
    
         
             
                        # @yield [response, operation] Access the result along with the RPC operation
         
     | 
| 
       531 
     | 
    
         
            -
                        # @yieldparam response [Google::Protobuf::Empty]
         
     | 
| 
       532 
     | 
    
         
            -
                        # @yieldparam operation [GRPC::ActiveCall::Operation]
         
     | 
| 
      
 532 
     | 
    
         
            +
                        # @yieldparam response [::Google::Protobuf::Empty]
         
     | 
| 
      
 533 
     | 
    
         
            +
                        # @yieldparam operation [::GRPC::ActiveCall::Operation]
         
     | 
| 
       533 
534 
     | 
    
         
             
                        #
         
     | 
| 
       534 
     | 
    
         
            -
                        # @return [Google::Protobuf::Empty]
         
     | 
| 
      
 535 
     | 
    
         
            +
                        # @return [::Google::Protobuf::Empty]
         
     | 
| 
       535 
536 
     | 
    
         
             
                        #
         
     | 
| 
       536 
     | 
    
         
            -
                        # @raise [Google::Cloud::Error] if the RPC is aborted.
         
     | 
| 
      
 537 
     | 
    
         
            +
                        # @raise [::Google::Cloud::Error] if the RPC is aborted.
         
     | 
| 
       537 
538 
     | 
    
         
             
                        #
         
     | 
| 
       538 
539 
     | 
    
         
             
                        def delete_session_entity_type request, options = nil
         
     | 
| 
       539 
     | 
    
         
            -
                          raise ArgumentError, "request must be provided" if request.nil?
         
     | 
| 
      
 540 
     | 
    
         
            +
                          raise ::ArgumentError, "request must be provided" if request.nil?
         
     | 
| 
       540 
541 
     | 
    
         | 
| 
       541 
     | 
    
         
            -
                          request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dialogflow::V2::DeleteSessionEntityTypeRequest
         
     | 
| 
      
 542 
     | 
    
         
            +
                          request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::V2::DeleteSessionEntityTypeRequest
         
     | 
| 
       542 
543 
     | 
    
         | 
| 
       543 
544 
     | 
    
         
             
                          # Converts hash and nil to an options object
         
     | 
| 
       544 
     | 
    
         
            -
                          options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
         
     | 
| 
      
 545 
     | 
    
         
            +
                          options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
         
     | 
| 
       545 
546 
     | 
    
         | 
| 
       546 
547 
     | 
    
         
             
                          # Customize the options with defaults
         
     | 
| 
       547 
548 
     | 
    
         
             
                          metadata = @config.rpcs.delete_session_entity_type.metadata.to_h
         
     | 
| 
       548 
549 
     | 
    
         | 
| 
       549 
550 
     | 
    
         
             
                          # Set x-goog-api-client and x-goog-user-project headers
         
     | 
| 
       550 
     | 
    
         
            -
                          metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
         
     | 
| 
      
 551 
     | 
    
         
            +
                          metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
         
     | 
| 
       551 
552 
     | 
    
         
             
                            lib_name: @config.lib_name, lib_version: @config.lib_version,
         
     | 
| 
       552 
553 
     | 
    
         
             
                            gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
         
     | 
| 
       553 
554 
     | 
    
         
             
                          metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         
     | 
| 
         @@ -568,8 +569,8 @@ module Google 
     | 
|
| 
       568 
569 
     | 
    
         
             
                            yield response, operation if block_given?
         
     | 
| 
       569 
570 
     | 
    
         
             
                            return response
         
     | 
| 
       570 
571 
     | 
    
         
             
                          end
         
     | 
| 
       571 
     | 
    
         
            -
                        rescue GRPC::BadStatus => e
         
     | 
| 
       572 
     | 
    
         
            -
                          raise Google::Cloud::Error.from_error(e)
         
     | 
| 
      
 572 
     | 
    
         
            +
                        rescue ::GRPC::BadStatus => e
         
     | 
| 
      
 573 
     | 
    
         
            +
                          raise ::Google::Cloud::Error.from_error(e)
         
     | 
| 
       573 
574 
     | 
    
         
             
                        end
         
     | 
| 
       574 
575 
     | 
    
         | 
| 
       575 
576 
     | 
    
         
             
                        ##
         
     | 
| 
         @@ -579,7 +580,7 @@ module Google 
     | 
|
| 
       579 
580 
     | 
    
         
             
                        # providing control over timeouts, retry behavior, logging, transport
         
     | 
| 
       580 
581 
     | 
    
         
             
                        # parameters, and other low-level controls. Certain parameters can also be
         
     | 
| 
       581 
582 
     | 
    
         
             
                        # applied individually to specific RPCs. See
         
     | 
| 
       582 
     | 
    
         
            -
                        # {Google::Cloud::Dialogflow::V2::SessionEntityTypes::Client::Configuration::Rpcs}
         
     | 
| 
      
 583 
     | 
    
         
            +
                        # {::Google::Cloud::Dialogflow::V2::SessionEntityTypes::Client::Configuration::Rpcs}
         
     | 
| 
       583 
584 
     | 
    
         
             
                        # for a list of RPCs that can be configured independently.
         
     | 
| 
       584 
585 
     | 
    
         
             
                        #
         
     | 
| 
       585 
586 
     | 
    
         
             
                        # Configuration can be applied globally to all clients, or to a single client
         
     | 
| 
         @@ -590,22 +591,22 @@ module Google 
     | 
|
| 
       590 
591 
     | 
    
         
             
                        # To modify the global config, setting the timeout for list_session_entity_types
         
     | 
| 
       591 
592 
     | 
    
         
             
                        # to 20 seconds, and all remaining timeouts to 10 seconds:
         
     | 
| 
       592 
593 
     | 
    
         
             
                        #
         
     | 
| 
       593 
     | 
    
         
            -
                        #     Google::Cloud::Dialogflow::V2::SessionEntityTypes::Client.configure do |config|
         
     | 
| 
       594 
     | 
    
         
            -
                        #       config.timeout =  
     | 
| 
       595 
     | 
    
         
            -
                        #       config.rpcs.list_session_entity_types.timeout =  
     | 
| 
      
 594 
     | 
    
         
            +
                        #     ::Google::Cloud::Dialogflow::V2::SessionEntityTypes::Client.configure do |config|
         
     | 
| 
      
 595 
     | 
    
         
            +
                        #       config.timeout = 10.0
         
     | 
| 
      
 596 
     | 
    
         
            +
                        #       config.rpcs.list_session_entity_types.timeout = 20.0
         
     | 
| 
       596 
597 
     | 
    
         
             
                        #     end
         
     | 
| 
       597 
598 
     | 
    
         
             
                        #
         
     | 
| 
       598 
599 
     | 
    
         
             
                        # To apply the above configuration only to a new client:
         
     | 
| 
       599 
600 
     | 
    
         
             
                        #
         
     | 
| 
       600 
     | 
    
         
            -
                        #     client = Google::Cloud::Dialogflow::V2::SessionEntityTypes::Client.new do |config|
         
     | 
| 
       601 
     | 
    
         
            -
                        #       config.timeout =  
     | 
| 
       602 
     | 
    
         
            -
                        #       config.rpcs.list_session_entity_types.timeout =  
     | 
| 
      
 601 
     | 
    
         
            +
                        #     client = ::Google::Cloud::Dialogflow::V2::SessionEntityTypes::Client.new do |config|
         
     | 
| 
      
 602 
     | 
    
         
            +
                        #       config.timeout = 10.0
         
     | 
| 
      
 603 
     | 
    
         
            +
                        #       config.rpcs.list_session_entity_types.timeout = 20.0
         
     | 
| 
       603 
604 
     | 
    
         
             
                        #     end
         
     | 
| 
       604 
605 
     | 
    
         
             
                        #
         
     | 
| 
       605 
606 
     | 
    
         
             
                        # @!attribute [rw] endpoint
         
     | 
| 
       606 
607 
     | 
    
         
             
                        #   The hostname or hostname:port of the service endpoint.
         
     | 
| 
       607 
608 
     | 
    
         
             
                        #   Defaults to `"dialogflow.googleapis.com"`.
         
     | 
| 
       608 
     | 
    
         
            -
                        #   @return [String]
         
     | 
| 
      
 609 
     | 
    
         
            +
                        #   @return [::String]
         
     | 
| 
       609 
610 
     | 
    
         
             
                        # @!attribute [rw] credentials
         
     | 
| 
       610 
611 
     | 
    
         
             
                        #   Credentials to send with calls. You may provide any of the following types:
         
     | 
| 
       611 
612 
     | 
    
         
             
                        #    *  (`String`) The path to a service account key file in JSON format
         
     | 
| 
         @@ -617,29 +618,29 @@ module Google 
     | 
|
| 
       617 
618 
     | 
    
         
             
                        #    *  (`GRPC::Core::Channel`) a gRPC channel with included credentials
         
     | 
| 
       618 
619 
     | 
    
         
             
                        #    *  (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
         
     | 
| 
       619 
620 
     | 
    
         
             
                        #    *  (`nil`) indicating no credentials
         
     | 
| 
       620 
     | 
    
         
            -
                        #   @return [Object]
         
     | 
| 
      
 621 
     | 
    
         
            +
                        #   @return [::Object]
         
     | 
| 
       621 
622 
     | 
    
         
             
                        # @!attribute [rw] scope
         
     | 
| 
       622 
623 
     | 
    
         
             
                        #   The OAuth scopes
         
     | 
| 
       623 
     | 
    
         
            -
                        #   @return [Array 
     | 
| 
      
 624 
     | 
    
         
            +
                        #   @return [::Array<::String>]
         
     | 
| 
       624 
625 
     | 
    
         
             
                        # @!attribute [rw] lib_name
         
     | 
| 
       625 
626 
     | 
    
         
             
                        #   The library name as recorded in instrumentation and logging
         
     | 
| 
       626 
     | 
    
         
            -
                        #   @return [String]
         
     | 
| 
      
 627 
     | 
    
         
            +
                        #   @return [::String]
         
     | 
| 
       627 
628 
     | 
    
         
             
                        # @!attribute [rw] lib_version
         
     | 
| 
       628 
629 
     | 
    
         
             
                        #   The library version as recorded in instrumentation and logging
         
     | 
| 
       629 
     | 
    
         
            -
                        #   @return [String]
         
     | 
| 
      
 630 
     | 
    
         
            +
                        #   @return [::String]
         
     | 
| 
       630 
631 
     | 
    
         
             
                        # @!attribute [rw] channel_args
         
     | 
| 
       631 
632 
     | 
    
         
             
                        #   Extra parameters passed to the gRPC channel. Note: this is ignored if a
         
     | 
| 
       632 
633 
     | 
    
         
             
                        #   `GRPC::Core::Channel` object is provided as the credential.
         
     | 
| 
       633 
     | 
    
         
            -
                        #   @return [Hash]
         
     | 
| 
      
 634 
     | 
    
         
            +
                        #   @return [::Hash]
         
     | 
| 
       634 
635 
     | 
    
         
             
                        # @!attribute [rw] interceptors
         
     | 
| 
       635 
636 
     | 
    
         
             
                        #   An array of interceptors that are run before calls are executed.
         
     | 
| 
       636 
     | 
    
         
            -
                        #   @return [Array 
     | 
| 
      
 637 
     | 
    
         
            +
                        #   @return [::Array<::GRPC::ClientInterceptor>]
         
     | 
| 
       637 
638 
     | 
    
         
             
                        # @!attribute [rw] timeout
         
     | 
| 
       638 
     | 
    
         
            -
                        #   The call timeout in  
     | 
| 
       639 
     | 
    
         
            -
                        #   @return [Numeric]
         
     | 
| 
      
 639 
     | 
    
         
            +
                        #   The call timeout in seconds.
         
     | 
| 
      
 640 
     | 
    
         
            +
                        #   @return [::Numeric]
         
     | 
| 
       640 
641 
     | 
    
         
             
                        # @!attribute [rw] metadata
         
     | 
| 
       641 
642 
     | 
    
         
             
                        #   Additional gRPC headers to be sent with the call.
         
     | 
| 
       642 
     | 
    
         
            -
                        #   @return [Hash{Symbol 
     | 
| 
      
 643 
     | 
    
         
            +
                        #   @return [::Hash{::Symbol=>::String}]
         
     | 
| 
       643 
644 
     | 
    
         
             
                        # @!attribute [rw] retry_policy
         
     | 
| 
       644 
645 
     | 
    
         
             
                        #   The retry policy. The value is a hash with the following keys:
         
     | 
| 
       645 
646 
     | 
    
         
             
                        #    *  `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
         
     | 
| 
         @@ -647,25 +648,29 @@ module Google 
     | 
|
| 
       647 
648 
     | 
    
         
             
                        #    *  `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
         
     | 
| 
       648 
649 
     | 
    
         
             
                        #    *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
         
     | 
| 
       649 
650 
     | 
    
         
             
                        #       trigger a retry.
         
     | 
| 
       650 
     | 
    
         
            -
                        #   @return [Hash]
         
     | 
| 
      
 651 
     | 
    
         
            +
                        #   @return [::Hash]
         
     | 
| 
      
 652 
     | 
    
         
            +
                        # @!attribute [rw] quota_project
         
     | 
| 
      
 653 
     | 
    
         
            +
                        #   A separate project against which to charge quota.
         
     | 
| 
      
 654 
     | 
    
         
            +
                        #   @return [::String]
         
     | 
| 
       651 
655 
     | 
    
         
             
                        #
         
     | 
| 
       652 
656 
     | 
    
         
             
                        class Configuration
         
     | 
| 
       653 
     | 
    
         
            -
                          extend Gapic::Config
         
     | 
| 
      
 657 
     | 
    
         
            +
                          extend ::Gapic::Config
         
     | 
| 
       654 
658 
     | 
    
         | 
| 
       655 
     | 
    
         
            -
                          config_attr :endpoint, 
     | 
| 
       656 
     | 
    
         
            -
                          config_attr :credentials, 
     | 
| 
      
 659 
     | 
    
         
            +
                          config_attr :endpoint,      "dialogflow.googleapis.com", ::String
         
     | 
| 
      
 660 
     | 
    
         
            +
                          config_attr :credentials,   nil do |value|
         
     | 
| 
       657 
661 
     | 
    
         
             
                            allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
         
     | 
| 
       658 
662 
     | 
    
         
             
                            allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
         
     | 
| 
       659 
663 
     | 
    
         
             
                            allowed.any? { |klass| klass === value }
         
     | 
| 
       660 
664 
     | 
    
         
             
                          end
         
     | 
| 
       661 
     | 
    
         
            -
                          config_attr :scope, 
     | 
| 
       662 
     | 
    
         
            -
                          config_attr :lib_name, 
     | 
| 
       663 
     | 
    
         
            -
                          config_attr :lib_version, 
     | 
| 
       664 
     | 
    
         
            -
                          config_attr(:channel_args, 
     | 
| 
       665 
     | 
    
         
            -
                          config_attr :interceptors, 
     | 
| 
       666 
     | 
    
         
            -
                          config_attr :timeout, 
     | 
| 
       667 
     | 
    
         
            -
                          config_attr :metadata, 
     | 
| 
       668 
     | 
    
         
            -
                          config_attr :retry_policy, 
     | 
| 
      
 665 
     | 
    
         
            +
                          config_attr :scope,         nil, ::String, ::Array, nil
         
     | 
| 
      
 666 
     | 
    
         
            +
                          config_attr :lib_name,      nil, ::String, nil
         
     | 
| 
      
 667 
     | 
    
         
            +
                          config_attr :lib_version,   nil, ::String, nil
         
     | 
| 
      
 668 
     | 
    
         
            +
                          config_attr(:channel_args,  { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
         
     | 
| 
      
 669 
     | 
    
         
            +
                          config_attr :interceptors,  nil, ::Array, nil
         
     | 
| 
      
 670 
     | 
    
         
            +
                          config_attr :timeout,       nil, ::Numeric, nil
         
     | 
| 
      
 671 
     | 
    
         
            +
                          config_attr :metadata,      nil, ::Hash, nil
         
     | 
| 
      
 672 
     | 
    
         
            +
                          config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
         
     | 
| 
      
 673 
     | 
    
         
            +
                          config_attr :quota_project, nil, ::String, nil
         
     | 
| 
       669 
674 
     | 
    
         | 
| 
       670 
675 
     | 
    
         
             
                          # @private
         
     | 
| 
       671 
676 
     | 
    
         
             
                          def initialize parent_config = nil
         
     | 
| 
         @@ -681,7 +686,7 @@ module Google 
     | 
|
| 
       681 
686 
     | 
    
         
             
                          def rpcs
         
     | 
| 
       682 
687 
     | 
    
         
             
                            @rpcs ||= begin
         
     | 
| 
       683 
688 
     | 
    
         
             
                              parent_rpcs = nil
         
     | 
| 
       684 
     | 
    
         
            -
                              parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to? 
     | 
| 
      
 689 
     | 
    
         
            +
                              parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
         
     | 
| 
       685 
690 
     | 
    
         
             
                              Rpcs.new parent_rpcs
         
     | 
| 
       686 
691 
     | 
    
         
             
                            end
         
     | 
| 
       687 
692 
     | 
    
         
             
                          end
         
     | 
| 
         @@ -706,42 +711,42 @@ module Google 
     | 
|
| 
       706 
711 
     | 
    
         
             
                          class Rpcs
         
     | 
| 
       707 
712 
     | 
    
         
             
                            ##
         
     | 
| 
       708 
713 
     | 
    
         
             
                            # RPC-specific configuration for `list_session_entity_types`
         
     | 
| 
       709 
     | 
    
         
            -
                            # @return [Gapic::Config::Method]
         
     | 
| 
      
 714 
     | 
    
         
            +
                            # @return [::Gapic::Config::Method]
         
     | 
| 
       710 
715 
     | 
    
         
             
                            #
         
     | 
| 
       711 
716 
     | 
    
         
             
                            attr_reader :list_session_entity_types
         
     | 
| 
       712 
717 
     | 
    
         
             
                            ##
         
     | 
| 
       713 
718 
     | 
    
         
             
                            # RPC-specific configuration for `get_session_entity_type`
         
     | 
| 
       714 
     | 
    
         
            -
                            # @return [Gapic::Config::Method]
         
     | 
| 
      
 719 
     | 
    
         
            +
                            # @return [::Gapic::Config::Method]
         
     | 
| 
       715 
720 
     | 
    
         
             
                            #
         
     | 
| 
       716 
721 
     | 
    
         
             
                            attr_reader :get_session_entity_type
         
     | 
| 
       717 
722 
     | 
    
         
             
                            ##
         
     | 
| 
       718 
723 
     | 
    
         
             
                            # RPC-specific configuration for `create_session_entity_type`
         
     | 
| 
       719 
     | 
    
         
            -
                            # @return [Gapic::Config::Method]
         
     | 
| 
      
 724 
     | 
    
         
            +
                            # @return [::Gapic::Config::Method]
         
     | 
| 
       720 
725 
     | 
    
         
             
                            #
         
     | 
| 
       721 
726 
     | 
    
         
             
                            attr_reader :create_session_entity_type
         
     | 
| 
       722 
727 
     | 
    
         
             
                            ##
         
     | 
| 
       723 
728 
     | 
    
         
             
                            # RPC-specific configuration for `update_session_entity_type`
         
     | 
| 
       724 
     | 
    
         
            -
                            # @return [Gapic::Config::Method]
         
     | 
| 
      
 729 
     | 
    
         
            +
                            # @return [::Gapic::Config::Method]
         
     | 
| 
       725 
730 
     | 
    
         
             
                            #
         
     | 
| 
       726 
731 
     | 
    
         
             
                            attr_reader :update_session_entity_type
         
     | 
| 
       727 
732 
     | 
    
         
             
                            ##
         
     | 
| 
       728 
733 
     | 
    
         
             
                            # RPC-specific configuration for `delete_session_entity_type`
         
     | 
| 
       729 
     | 
    
         
            -
                            # @return [Gapic::Config::Method]
         
     | 
| 
      
 734 
     | 
    
         
            +
                            # @return [::Gapic::Config::Method]
         
     | 
| 
       730 
735 
     | 
    
         
             
                            #
         
     | 
| 
       731 
736 
     | 
    
         
             
                            attr_reader :delete_session_entity_type
         
     | 
| 
       732 
737 
     | 
    
         | 
| 
       733 
738 
     | 
    
         
             
                            # @private
         
     | 
| 
       734 
739 
     | 
    
         
             
                            def initialize parent_rpcs = nil
         
     | 
| 
       735 
740 
     | 
    
         
             
                              list_session_entity_types_config = parent_rpcs&.list_session_entity_types if parent_rpcs&.respond_to? :list_session_entity_types
         
     | 
| 
       736 
     | 
    
         
            -
                              @list_session_entity_types = Gapic::Config::Method.new list_session_entity_types_config
         
     | 
| 
      
 741 
     | 
    
         
            +
                              @list_session_entity_types = ::Gapic::Config::Method.new list_session_entity_types_config
         
     | 
| 
       737 
742 
     | 
    
         
             
                              get_session_entity_type_config = parent_rpcs&.get_session_entity_type if parent_rpcs&.respond_to? :get_session_entity_type
         
     | 
| 
       738 
     | 
    
         
            -
                              @get_session_entity_type = Gapic::Config::Method.new get_session_entity_type_config
         
     | 
| 
      
 743 
     | 
    
         
            +
                              @get_session_entity_type = ::Gapic::Config::Method.new get_session_entity_type_config
         
     | 
| 
       739 
744 
     | 
    
         
             
                              create_session_entity_type_config = parent_rpcs&.create_session_entity_type if parent_rpcs&.respond_to? :create_session_entity_type
         
     | 
| 
       740 
     | 
    
         
            -
                              @create_session_entity_type = Gapic::Config::Method.new create_session_entity_type_config
         
     | 
| 
      
 745 
     | 
    
         
            +
                              @create_session_entity_type = ::Gapic::Config::Method.new create_session_entity_type_config
         
     | 
| 
       741 
746 
     | 
    
         
             
                              update_session_entity_type_config = parent_rpcs&.update_session_entity_type if parent_rpcs&.respond_to? :update_session_entity_type
         
     | 
| 
       742 
     | 
    
         
            -
                              @update_session_entity_type = Gapic::Config::Method.new update_session_entity_type_config
         
     | 
| 
      
 747 
     | 
    
         
            +
                              @update_session_entity_type = ::Gapic::Config::Method.new update_session_entity_type_config
         
     | 
| 
       743 
748 
     | 
    
         
             
                              delete_session_entity_type_config = parent_rpcs&.delete_session_entity_type if parent_rpcs&.respond_to? :delete_session_entity_type
         
     | 
| 
       744 
     | 
    
         
            -
                              @delete_session_entity_type = Gapic::Config::Method.new delete_session_entity_type_config
         
     | 
| 
      
 749 
     | 
    
         
            +
                              @delete_session_entity_type = ::Gapic::Config::Method.new delete_session_entity_type_config
         
     | 
| 
       745 
750 
     | 
    
         | 
| 
       746 
751 
     | 
    
         
             
                              yield self if block_given?
         
     | 
| 
       747 
752 
     | 
    
         
             
                            end
         
     |