Autogenerated update (2017-08-25)
Add: - adexperiencereport_v1 - androiddeviceprovisioning_v1 - androidmanagement_v1 - bigquerydatatransfer_v1 - cloudtrace_v2 - clouduseraccounts_vm_alpha - consumersurveys_v2 - dlp_v2beta1 - oslogin_v1alpha - playcustomapp_v1 - playmoviespartner_v1 - safebrowsing_v4 - spectrum_v1explorer - speech_v1 - streetviewpublish_v1 - vault_v1 - videointelligence_v1beta1 Update: - acceleratedmobilepageurl_v1 - adexchangebuyer2_v2beta1 - adexchangebuyer_v1_4 - adsense_v1_4 - adsensehost_v4_1 - analytics_v3 - analyticsreporting_v4 - androidenterprise_v1 - androidpublisher_v2 - appengine_v1 - appsactivity_v1 - appstate_v1 - bigquery_v2 - calendar_v3 - classroom_v1 - cloudbilling_v1 - cloudbuild_v1 - clouddebugger_v2 - clouderrorreporting_v1beta1 - cloudfunctions_v1 - cloudkms_v1 - cloudmonitoring_v2beta2 - cloudresourcemanager_v1 - compute_beta - compute_v1 - container_v1 - content_v2 - dataflow_v1b3 - dataproc_v1 - datastore_v1 - deploymentmanager_v2 - dfareporting_v2_8 - dns_v1 - doubleclicksearch_v2 - drive_v3 - firebasedynamiclinks_v1 - firebaserules_v1 - fitness_v1 - games_configuration_v1configuration - games_management_v1management - games_v1 - genomics_v1 - gmail_v1 - iam_v1 - identitytoolkit_v3 - language_v1 - logging_v2 - manufacturers_v1 - ml_v1 - monitoring_v3 - oauth2_v2 - partners_v2 - people_v1 - plus_domains_v1 - plus_v1 - proximitybeacon_v1beta1 - pubsub_v1 - runtimeconfig_v1 - script_v1 - searchconsole_v1 - servicecontrol_v1 - servicemanagement_v1 - serviceuser_v1 - sheets_v4 - slides_v1 - sourcerepo_v1 - spanner_v1 - sqladmin_v1beta4 - storage_v1 - storagetransfer_v1 - toolresults_v1beta3 - vision_v1 - webmasters_v3 - youtube_analytics_v1 - youtube_partner_v1 - youtubereporting_v1
This commit is contained in:
1 parent
ce32deabcf
commit
2dd396ce6e
315 files changed
+158012
-116092
No files matched your search
File diff suppressed because it is too large.
Load diff
@@ -22,19 +22,7 @@ module Google
|
||||
module Apis
|
||||
module LanguageV1
|
||||
|
||||
class PartOfSpeech
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AnalyzeSyntaxRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AnalyzeSentimentResponse
|
||||
class AnalyzeEntitiesRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
@@ -46,13 +34,25 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AnalyzeSyntaxResponse
|
||||
class AnalyzeSentimentRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Entity
|
||||
class AnalyzeSentimentResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AnalyzeSyntaxRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AnalyzeSyntaxResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
@@ -70,31 +70,19 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AnalyzeSentimentRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class DependencyEdge
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class TextSpan
|
||||
class Document
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Token
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Status
|
||||
class Entity
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
@@ -112,7 +100,7 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Document
|
||||
class PartOfSpeech
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
@@ -124,42 +112,54 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AnalyzeEntitiesRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Sentiment
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class PartOfSpeech
|
||||
class Status
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class TextSpan
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Token
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AnalyzeEntitiesRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :aspect, as: 'aspect'
|
||||
property :mood, as: 'mood'
|
||||
property :tag, as: 'tag'
|
||||
property :gender, as: 'gender'
|
||||
property :person, as: 'person'
|
||||
property :proper, as: 'proper'
|
||||
property :case, as: 'case'
|
||||
property :tense, as: 'tense'
|
||||
property :reciprocity, as: 'reciprocity'
|
||||
property :form, as: 'form'
|
||||
property :number, as: 'number'
|
||||
property :voice, as: 'voice'
|
||||
property :document, as: 'document', class: Google::Apis::LanguageV1::Document, decorator: Google::Apis::LanguageV1::Document::Representation
|
||||
|
||||
property :encoding_type, as: 'encodingType'
|
||||
end
|
||||
end
|
||||
|
||||
class AnalyzeSyntaxRequest
|
||||
class AnalyzeEntitiesResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :entities, as: 'entities', class: Google::Apis::LanguageV1::Entity, decorator: Google::Apis::LanguageV1::Entity::Representation
|
||||
|
||||
property :language, as: 'language'
|
||||
end
|
||||
end
|
||||
|
||||
class AnalyzeSentimentRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :encoding_type, as: 'encodingType'
|
||||
property :document, as: 'document', class: Google::Apis::LanguageV1::Document, decorator: Google::Apis::LanguageV1::Document::Representation
|
||||
|
||||
property :encoding_type, as: 'encodingType'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -174,45 +174,33 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class AnalyzeEntitiesResponse
|
||||
class AnalyzeSyntaxRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :language, as: 'language'
|
||||
collection :entities, as: 'entities', class: Google::Apis::LanguageV1::Entity, decorator: Google::Apis::LanguageV1::Entity::Representation
|
||||
property :document, as: 'document', class: Google::Apis::LanguageV1::Document, decorator: Google::Apis::LanguageV1::Document::Representation
|
||||
|
||||
property :encoding_type, as: 'encodingType'
|
||||
end
|
||||
end
|
||||
|
||||
class AnalyzeSyntaxResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :tokens, as: 'tokens', class: Google::Apis::LanguageV1::Token, decorator: Google::Apis::LanguageV1::Token::Representation
|
||||
|
||||
property :language, as: 'language'
|
||||
collection :sentences, as: 'sentences', class: Google::Apis::LanguageV1::Sentence, decorator: Google::Apis::LanguageV1::Sentence::Representation
|
||||
|
||||
end
|
||||
end
|
||||
collection :tokens, as: 'tokens', class: Google::Apis::LanguageV1::Token, decorator: Google::Apis::LanguageV1::Token::Representation
|
||||
|
||||
class Entity
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :salience, as: 'salience'
|
||||
hash :metadata, as: 'metadata'
|
||||
property :type, as: 'type'
|
||||
collection :mentions, as: 'mentions', class: Google::Apis::LanguageV1::EntityMention, decorator: Google::Apis::LanguageV1::EntityMention::Representation
|
||||
|
||||
property :name, as: 'name'
|
||||
end
|
||||
end
|
||||
|
||||
class AnnotateTextRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :features, as: 'features', class: Google::Apis::LanguageV1::Features, decorator: Google::Apis::LanguageV1::Features::Representation
|
||||
property :document, as: 'document', class: Google::Apis::LanguageV1::Document, decorator: Google::Apis::LanguageV1::Document::Representation
|
||||
|
||||
property :encoding_type, as: 'encodingType'
|
||||
property :document, as: 'document', class: Google::Apis::LanguageV1::Document, decorator: Google::Apis::LanguageV1::Document::Representation
|
||||
property :features, as: 'features', class: Google::Apis::LanguageV1::Features, decorator: Google::Apis::LanguageV1::Features::Representation
|
||||
|
||||
end
|
||||
end
|
||||
@@ -220,23 +208,14 @@ module Google
|
||||
class AnnotateTextResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :sentences, as: 'sentences', class: Google::Apis::LanguageV1::Sentence, decorator: Google::Apis::LanguageV1::Sentence::Representation
|
||||
|
||||
collection :tokens, as: 'tokens', class: Google::Apis::LanguageV1::Token, decorator: Google::Apis::LanguageV1::Token::Representation
|
||||
property :document_sentiment, as: 'documentSentiment', class: Google::Apis::LanguageV1::Sentiment, decorator: Google::Apis::LanguageV1::Sentiment::Representation
|
||||
|
||||
collection :entities, as: 'entities', class: Google::Apis::LanguageV1::Entity, decorator: Google::Apis::LanguageV1::Entity::Representation
|
||||
|
||||
property :document_sentiment, as: 'documentSentiment', class: Google::Apis::LanguageV1::Sentiment, decorator: Google::Apis::LanguageV1::Sentiment::Representation
|
||||
|
||||
property :language, as: 'language'
|
||||
end
|
||||
end
|
||||
collection :sentences, as: 'sentences', class: Google::Apis::LanguageV1::Sentence, decorator: Google::Apis::LanguageV1::Sentence::Representation
|
||||
|
||||
class AnalyzeSentimentRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :encoding_type, as: 'encodingType'
|
||||
property :document, as: 'document', class: Google::Apis::LanguageV1::Document, decorator: Google::Apis::LanguageV1::Document::Representation
|
||||
collection :tokens, as: 'tokens', class: Google::Apis::LanguageV1::Token, decorator: Google::Apis::LanguageV1::Token::Representation
|
||||
|
||||
end
|
||||
end
|
||||
@@ -244,29 +223,84 @@ module Google
|
||||
class DependencyEdge
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :label, as: 'label'
|
||||
property :head_token_index, as: 'headTokenIndex'
|
||||
property :label, as: 'label'
|
||||
end
|
||||
end
|
||||
|
||||
class TextSpan
|
||||
class Document
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :content, as: 'content'
|
||||
property :begin_offset, as: 'beginOffset'
|
||||
property :gcs_content_uri, as: 'gcsContentUri'
|
||||
property :language, as: 'language'
|
||||
property :type, as: 'type'
|
||||
end
|
||||
end
|
||||
|
||||
class Token
|
||||
class Entity
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :part_of_speech, as: 'partOfSpeech', class: Google::Apis::LanguageV1::PartOfSpeech, decorator: Google::Apis::LanguageV1::PartOfSpeech::Representation
|
||||
collection :mentions, as: 'mentions', class: Google::Apis::LanguageV1::EntityMention, decorator: Google::Apis::LanguageV1::EntityMention::Representation
|
||||
|
||||
property :dependency_edge, as: 'dependencyEdge', class: Google::Apis::LanguageV1::DependencyEdge, decorator: Google::Apis::LanguageV1::DependencyEdge::Representation
|
||||
hash :metadata, as: 'metadata'
|
||||
property :name, as: 'name'
|
||||
property :salience, as: 'salience'
|
||||
property :type, as: 'type'
|
||||
end
|
||||
end
|
||||
|
||||
class EntityMention
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :text, as: 'text', class: Google::Apis::LanguageV1::TextSpan, decorator: Google::Apis::LanguageV1::TextSpan::Representation
|
||||
|
||||
property :type, as: 'type'
|
||||
end
|
||||
end
|
||||
|
||||
class Features
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :extract_document_sentiment, as: 'extractDocumentSentiment'
|
||||
property :extract_entities, as: 'extractEntities'
|
||||
property :extract_syntax, as: 'extractSyntax'
|
||||
end
|
||||
end
|
||||
|
||||
class PartOfSpeech
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :aspect, as: 'aspect'
|
||||
property :case, as: 'case'
|
||||
property :form, as: 'form'
|
||||
property :gender, as: 'gender'
|
||||
property :mood, as: 'mood'
|
||||
property :number, as: 'number'
|
||||
property :person, as: 'person'
|
||||
property :proper, as: 'proper'
|
||||
property :reciprocity, as: 'reciprocity'
|
||||
property :tag, as: 'tag'
|
||||
property :tense, as: 'tense'
|
||||
property :voice, as: 'voice'
|
||||
end
|
||||
end
|
||||
|
||||
class Sentence
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :sentiment, as: 'sentiment', class: Google::Apis::LanguageV1::Sentiment, decorator: Google::Apis::LanguageV1::Sentiment::Representation
|
||||
|
||||
property :text, as: 'text', class: Google::Apis::LanguageV1::TextSpan, decorator: Google::Apis::LanguageV1::TextSpan::Representation
|
||||
|
||||
property :lemma, as: 'lemma'
|
||||
end
|
||||
end
|
||||
|
||||
class Sentiment
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :magnitude, as: 'magnitude'
|
||||
property :score, as: 'score'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -274,63 +308,29 @@ module Google
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :code, as: 'code'
|
||||
property :message, as: 'message'
|
||||
collection :details, as: 'details'
|
||||
property :message, as: 'message'
|
||||
end
|
||||
end
|
||||
|
||||
class EntityMention
|
||||
class TextSpan
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :type, as: 'type'
|
||||
property :text, as: 'text', class: Google::Apis::LanguageV1::TextSpan, decorator: Google::Apis::LanguageV1::TextSpan::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class Features
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :extract_entities, as: 'extractEntities'
|
||||
property :extract_document_sentiment, as: 'extractDocumentSentiment'
|
||||
property :extract_syntax, as: 'extractSyntax'
|
||||
end
|
||||
end
|
||||
|
||||
class Document
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :language, as: 'language'
|
||||
property :begin_offset, as: 'beginOffset'
|
||||
property :content, as: 'content'
|
||||
property :type, as: 'type'
|
||||
property :gcs_content_uri, as: 'gcsContentUri'
|
||||
end
|
||||
end
|
||||
|
||||
class Sentence
|
||||
class Token
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :dependency_edge, as: 'dependencyEdge', class: Google::Apis::LanguageV1::DependencyEdge, decorator: Google::Apis::LanguageV1::DependencyEdge::Representation
|
||||
|
||||
property :lemma, as: 'lemma'
|
||||
property :part_of_speech, as: 'partOfSpeech', class: Google::Apis::LanguageV1::PartOfSpeech, decorator: Google::Apis::LanguageV1::PartOfSpeech::Representation
|
||||
|
||||
property :text, as: 'text', class: Google::Apis::LanguageV1::TextSpan, decorator: Google::Apis::LanguageV1::TextSpan::Representation
|
||||
|
||||
property :sentiment, as: 'sentiment', class: Google::Apis::LanguageV1::Sentiment, decorator: Google::Apis::LanguageV1::Sentiment::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class AnalyzeEntitiesRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :encoding_type, as: 'encodingType'
|
||||
property :document, as: 'document', class: Google::Apis::LanguageV1::Document, decorator: Google::Apis::LanguageV1::Document::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class Sentiment
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :score, as: 'score'
|
||||
property :magnitude, as: 'magnitude'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -34,16 +34,16 @@ module Google
|
||||
#
|
||||
# @see https://cloud.google.com/natural-language/
|
||||
class CloudNaturalLanguageService < Google::Apis::Core::BaseService
|
||||
# @return [String]
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
attr_accessor :quota_user
|
||||
|
||||
# @return [String]
|
||||
# API key. Your API key identifies your project and provides you with API access,
|
||||
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
||||
attr_accessor :key
|
||||
|
||||
# @return [String]
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
attr_accessor :quota_user
|
||||
|
||||
def initialize
|
||||
super('https://language.googleapis.com/', '')
|
||||
@batch_path = 'batch'
|
||||
@@ -53,11 +53,11 @@ module Google
|
||||
# along with entity types, salience, mentions for each entity, and
|
||||
# other properties.
|
||||
# @param [Google::Apis::LanguageV1::AnalyzeEntitiesRequest] analyze_entities_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
@@ -70,56 +70,24 @@ module Google
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def analyze_document_entities(analyze_entities_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
def analyze_document_entities(analyze_entities_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/documents:analyzeEntities', options)
|
||||
command.request_representation = Google::Apis::LanguageV1::AnalyzeEntitiesRequest::Representation
|
||||
command.request_object = analyze_entities_request_object
|
||||
command.response_representation = Google::Apis::LanguageV1::AnalyzeEntitiesResponse::Representation
|
||||
command.response_class = Google::Apis::LanguageV1::AnalyzeEntitiesResponse
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Analyzes the syntax of the text and provides sentence boundaries and
|
||||
# tokenization along with part of speech tags, dependency trees, and other
|
||||
# properties.
|
||||
# @param [Google::Apis::LanguageV1::AnalyzeSyntaxRequest] analyze_syntax_request_object
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::LanguageV1::AnalyzeSyntaxResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::LanguageV1::AnalyzeSyntaxResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def analyze_document_syntax(analyze_syntax_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/documents:analyzeSyntax', options)
|
||||
command.request_representation = Google::Apis::LanguageV1::AnalyzeSyntaxRequest::Representation
|
||||
command.request_object = analyze_syntax_request_object
|
||||
command.response_representation = Google::Apis::LanguageV1::AnalyzeSyntaxResponse::Representation
|
||||
command.response_class = Google::Apis::LanguageV1::AnalyzeSyntaxResponse
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Analyzes the sentiment of the provided text.
|
||||
# @param [Google::Apis::LanguageV1::AnalyzeSentimentRequest] analyze_sentiment_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
@@ -132,25 +100,57 @@ module Google
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def analyze_document_sentiment(analyze_sentiment_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
def analyze_document_sentiment(analyze_sentiment_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/documents:analyzeSentiment', options)
|
||||
command.request_representation = Google::Apis::LanguageV1::AnalyzeSentimentRequest::Representation
|
||||
command.request_object = analyze_sentiment_request_object
|
||||
command.response_representation = Google::Apis::LanguageV1::AnalyzeSentimentResponse::Representation
|
||||
command.response_class = Google::Apis::LanguageV1::AnalyzeSentimentResponse
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Analyzes the syntax of the text and provides sentence boundaries and
|
||||
# tokenization along with part of speech tags, dependency trees, and other
|
||||
# properties.
|
||||
# @param [Google::Apis::LanguageV1::AnalyzeSyntaxRequest] analyze_syntax_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::LanguageV1::AnalyzeSyntaxResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::LanguageV1::AnalyzeSyntaxResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def analyze_document_syntax(analyze_syntax_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/documents:analyzeSyntax', options)
|
||||
command.request_representation = Google::Apis::LanguageV1::AnalyzeSyntaxRequest::Representation
|
||||
command.request_object = analyze_syntax_request_object
|
||||
command.response_representation = Google::Apis::LanguageV1::AnalyzeSyntaxResponse::Representation
|
||||
command.response_class = Google::Apis::LanguageV1::AnalyzeSyntaxResponse
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# A convenience method that provides all the features that analyzeSentiment,
|
||||
# analyzeEntities, and analyzeSyntax provide in one call.
|
||||
# @param [Google::Apis::LanguageV1::AnnotateTextRequest] annotate_text_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
@@ -163,22 +163,22 @@ module Google
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def annotate_document_text(annotate_text_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
def annotate_document_text(annotate_text_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/documents:annotateText', options)
|
||||
command.request_representation = Google::Apis::LanguageV1::AnnotateTextRequest::Representation
|
||||
command.request_object = annotate_text_request_object
|
||||
command.response_representation = Google::Apis::LanguageV1::AnnotateTextResponse::Representation
|
||||
command.response_class = Google::Apis::LanguageV1::AnnotateTextResponse
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
def apply_command_defaults(command)
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['key'] = key unless key.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user