lib/google/cloud/speech/v2/speech/rest/service_stub.rb in google-cloud-speech-v2-0.5.0 vs lib/google/cloud/speech/v2/speech/rest/service_stub.rb in google-cloud-speech-v2-0.5.1
- old
+ new
@@ -57,11 +57,11 @@
def create_recognizer request_pb, options = nil
raise ::ArgumentError, "request must be provided" if request_pb.nil?
verb, uri, query_string_params, body = ServiceStub.transcode_create_recognizer_request request_pb
query_string_params = if query_string_params.any?
- query_string_params.to_h { |p| p.split("=", 2) }
+ query_string_params.to_h { |p| p.split "=", 2 }
else
{}
end
response = @client_stub.make_http_request(
@@ -95,11 +95,11 @@
def list_recognizers request_pb, options = nil
raise ::ArgumentError, "request must be provided" if request_pb.nil?
verb, uri, query_string_params, body = ServiceStub.transcode_list_recognizers_request request_pb
query_string_params = if query_string_params.any?
- query_string_params.to_h { |p| p.split("=", 2) }
+ query_string_params.to_h { |p| p.split "=", 2 }
else
{}
end
response = @client_stub.make_http_request(
@@ -133,11 +133,11 @@
def get_recognizer request_pb, options = nil
raise ::ArgumentError, "request must be provided" if request_pb.nil?
verb, uri, query_string_params, body = ServiceStub.transcode_get_recognizer_request request_pb
query_string_params = if query_string_params.any?
- query_string_params.to_h { |p| p.split("=", 2) }
+ query_string_params.to_h { |p| p.split "=", 2 }
else
{}
end
response = @client_stub.make_http_request(
@@ -171,11 +171,11 @@
def update_recognizer request_pb, options = nil
raise ::ArgumentError, "request must be provided" if request_pb.nil?
verb, uri, query_string_params, body = ServiceStub.transcode_update_recognizer_request request_pb
query_string_params = if query_string_params.any?
- query_string_params.to_h { |p| p.split("=", 2) }
+ query_string_params.to_h { |p| p.split "=", 2 }
else
{}
end
response = @client_stub.make_http_request(
@@ -209,11 +209,11 @@
def delete_recognizer request_pb, options = nil
raise ::ArgumentError, "request must be provided" if request_pb.nil?
verb, uri, query_string_params, body = ServiceStub.transcode_delete_recognizer_request request_pb
query_string_params = if query_string_params.any?
- query_string_params.to_h { |p| p.split("=", 2) }
+ query_string_params.to_h { |p| p.split "=", 2 }
else
{}
end
response = @client_stub.make_http_request(
@@ -247,11 +247,11 @@
def undelete_recognizer request_pb, options = nil
raise ::ArgumentError, "request must be provided" if request_pb.nil?
verb, uri, query_string_params, body = ServiceStub.transcode_undelete_recognizer_request request_pb
query_string_params = if query_string_params.any?
- query_string_params.to_h { |p| p.split("=", 2) }
+ query_string_params.to_h { |p| p.split "=", 2 }
else
{}
end
response = @client_stub.make_http_request(
@@ -285,11 +285,11 @@
def recognize request_pb, options = nil
raise ::ArgumentError, "request must be provided" if request_pb.nil?
verb, uri, query_string_params, body = ServiceStub.transcode_recognize_request request_pb
query_string_params = if query_string_params.any?
- query_string_params.to_h { |p| p.split("=", 2) }
+ query_string_params.to_h { |p| p.split "=", 2 }
else
{}
end
response = @client_stub.make_http_request(
@@ -323,11 +323,11 @@
def batch_recognize request_pb, options = nil
raise ::ArgumentError, "request must be provided" if request_pb.nil?
verb, uri, query_string_params, body = ServiceStub.transcode_batch_recognize_request request_pb
query_string_params = if query_string_params.any?
- query_string_params.to_h { |p| p.split("=", 2) }
+ query_string_params.to_h { |p| p.split "=", 2 }
else
{}
end
response = @client_stub.make_http_request(
@@ -361,11 +361,11 @@
def get_config request_pb, options = nil
raise ::ArgumentError, "request must be provided" if request_pb.nil?
verb, uri, query_string_params, body = ServiceStub.transcode_get_config_request request_pb
query_string_params = if query_string_params.any?
- query_string_params.to_h { |p| p.split("=", 2) }
+ query_string_params.to_h { |p| p.split "=", 2 }
else
{}
end
response = @client_stub.make_http_request(
@@ -399,11 +399,11 @@
def update_config request_pb, options = nil
raise ::ArgumentError, "request must be provided" if request_pb.nil?
verb, uri, query_string_params, body = ServiceStub.transcode_update_config_request request_pb
query_string_params = if query_string_params.any?
- query_string_params.to_h { |p| p.split("=", 2) }
+ query_string_params.to_h { |p| p.split "=", 2 }
else
{}
end
response = @client_stub.make_http_request(
@@ -437,11 +437,11 @@
def create_custom_class request_pb, options = nil
raise ::ArgumentError, "request must be provided" if request_pb.nil?
verb, uri, query_string_params, body = ServiceStub.transcode_create_custom_class_request request_pb
query_string_params = if query_string_params.any?
- query_string_params.to_h { |p| p.split("=", 2) }
+ query_string_params.to_h { |p| p.split "=", 2 }
else
{}
end
response = @client_stub.make_http_request(
@@ -475,11 +475,11 @@
def list_custom_classes request_pb, options = nil
raise ::ArgumentError, "request must be provided" if request_pb.nil?
verb, uri, query_string_params, body = ServiceStub.transcode_list_custom_classes_request request_pb
query_string_params = if query_string_params.any?
- query_string_params.to_h { |p| p.split("=", 2) }
+ query_string_params.to_h { |p| p.split "=", 2 }
else
{}
end
response = @client_stub.make_http_request(
@@ -513,11 +513,11 @@
def get_custom_class request_pb, options = nil
raise ::ArgumentError, "request must be provided" if request_pb.nil?
verb, uri, query_string_params, body = ServiceStub.transcode_get_custom_class_request request_pb
query_string_params = if query_string_params.any?
- query_string_params.to_h { |p| p.split("=", 2) }
+ query_string_params.to_h { |p| p.split "=", 2 }
else
{}
end
response = @client_stub.make_http_request(
@@ -551,11 +551,11 @@
def update_custom_class request_pb, options = nil
raise ::ArgumentError, "request must be provided" if request_pb.nil?
verb, uri, query_string_params, body = ServiceStub.transcode_update_custom_class_request request_pb
query_string_params = if query_string_params.any?
- query_string_params.to_h { |p| p.split("=", 2) }
+ query_string_params.to_h { |p| p.split "=", 2 }
else
{}
end
response = @client_stub.make_http_request(
@@ -589,11 +589,11 @@
def delete_custom_class request_pb, options = nil
raise ::ArgumentError, "request must be provided" if request_pb.nil?
verb, uri, query_string_params, body = ServiceStub.transcode_delete_custom_class_request request_pb
query_string_params = if query_string_params.any?
- query_string_params.to_h { |p| p.split("=", 2) }
+ query_string_params.to_h { |p| p.split "=", 2 }
else
{}
end
response = @client_stub.make_http_request(
@@ -627,11 +627,11 @@
def undelete_custom_class request_pb, options = nil
raise ::ArgumentError, "request must be provided" if request_pb.nil?
verb, uri, query_string_params, body = ServiceStub.transcode_undelete_custom_class_request request_pb
query_string_params = if query_string_params.any?
- query_string_params.to_h { |p| p.split("=", 2) }
+ query_string_params.to_h { |p| p.split "=", 2 }
else
{}
end
response = @client_stub.make_http_request(
@@ -665,11 +665,11 @@
def create_phrase_set request_pb, options = nil
raise ::ArgumentError, "request must be provided" if request_pb.nil?
verb, uri, query_string_params, body = ServiceStub.transcode_create_phrase_set_request request_pb
query_string_params = if query_string_params.any?
- query_string_params.to_h { |p| p.split("=", 2) }
+ query_string_params.to_h { |p| p.split "=", 2 }
else
{}
end
response = @client_stub.make_http_request(
@@ -703,11 +703,11 @@
def list_phrase_sets request_pb, options = nil
raise ::ArgumentError, "request must be provided" if request_pb.nil?
verb, uri, query_string_params, body = ServiceStub.transcode_list_phrase_sets_request request_pb
query_string_params = if query_string_params.any?
- query_string_params.to_h { |p| p.split("=", 2) }
+ query_string_params.to_h { |p| p.split "=", 2 }
else
{}
end
response = @client_stub.make_http_request(
@@ -741,11 +741,11 @@
def get_phrase_set request_pb, options = nil
raise ::ArgumentError, "request must be provided" if request_pb.nil?
verb, uri, query_string_params, body = ServiceStub.transcode_get_phrase_set_request request_pb
query_string_params = if query_string_params.any?
- query_string_params.to_h { |p| p.split("=", 2) }
+ query_string_params.to_h { |p| p.split "=", 2 }
else
{}
end
response = @client_stub.make_http_request(
@@ -779,11 +779,11 @@
def update_phrase_set request_pb, options = nil
raise ::ArgumentError, "request must be provided" if request_pb.nil?
verb, uri, query_string_params, body = ServiceStub.transcode_update_phrase_set_request request_pb
query_string_params = if query_string_params.any?
- query_string_params.to_h { |p| p.split("=", 2) }
+ query_string_params.to_h { |p| p.split "=", 2 }
else
{}
end
response = @client_stub.make_http_request(
@@ -817,11 +817,11 @@
def delete_phrase_set request_pb, options = nil
raise ::ArgumentError, "request must be provided" if request_pb.nil?
verb, uri, query_string_params, body = ServiceStub.transcode_delete_phrase_set_request request_pb
query_string_params = if query_string_params.any?
- query_string_params.to_h { |p| p.split("=", 2) }
+ query_string_params.to_h { |p| p.split "=", 2 }
else
{}
end
response = @client_stub.make_http_request(
@@ -855,10 +855,10 @@
def undelete_phrase_set request_pb, options = nil
raise ::ArgumentError, "request must be provided" if request_pb.nil?
verb, uri, query_string_params, body = ServiceStub.transcode_undelete_phrase_set_request request_pb
query_string_params = if query_string_params.any?
- query_string_params.to_h { |p| p.split("=", 2) }
+ query_string_params.to_h { |p| p.split "=", 2 }
else
{}
end
response = @client_stub.make_http_request(