Reference documentation and code samples for the Natural Language V1 API class Google::Cloud::Language::V1::LanguageService::Rest::ServiceStub.
REST service stub for the LanguageService service. Service stub contains baseline method implementations including transcoding, making the REST call, and deserialing the response.
Inherits
- Object
 
Methods
#analyze_entities
def analyze_entities(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Language::V1::AnalyzeEntitiesResponseBaseline implementation for the analyze_entities REST call
- request_pb (::Google::Cloud::Language::V1::AnalyzeEntitiesRequest) — A request object representing the call parameters. Required.
 - options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
 
- (result, operation) — Access the result along with the TransportOperation object
 
- result (::Google::Cloud::Language::V1::AnalyzeEntitiesResponse)
 - operation (::Gapic::Rest::TransportOperation)
 
- (::Google::Cloud::Language::V1::AnalyzeEntitiesResponse) — A result object deserialized from the server's reply
 
- (::ArgumentError)
 
#analyze_entity_sentiment
def analyze_entity_sentiment(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Language::V1::AnalyzeEntitySentimentResponseBaseline implementation for the analyze_entity_sentiment REST call
- request_pb (::Google::Cloud::Language::V1::AnalyzeEntitySentimentRequest) — A request object representing the call parameters. Required.
 - options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
 
- (result, operation) — Access the result along with the TransportOperation object
 
- result (::Google::Cloud::Language::V1::AnalyzeEntitySentimentResponse)
 - operation (::Gapic::Rest::TransportOperation)
 
- (::Google::Cloud::Language::V1::AnalyzeEntitySentimentResponse) — A result object deserialized from the server's reply
 
- (::ArgumentError)
 
#analyze_sentiment
def analyze_sentiment(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Language::V1::AnalyzeSentimentResponseBaseline implementation for the analyze_sentiment REST call
- request_pb (::Google::Cloud::Language::V1::AnalyzeSentimentRequest) — A request object representing the call parameters. Required.
 - options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
 
- (result, operation) — Access the result along with the TransportOperation object
 
- result (::Google::Cloud::Language::V1::AnalyzeSentimentResponse)
 - operation (::Gapic::Rest::TransportOperation)
 
- (::Google::Cloud::Language::V1::AnalyzeSentimentResponse) — A result object deserialized from the server's reply
 
- (::ArgumentError)
 
#analyze_syntax
def analyze_syntax(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Language::V1::AnalyzeSyntaxResponseBaseline implementation for the analyze_syntax REST call
- request_pb (::Google::Cloud::Language::V1::AnalyzeSyntaxRequest) — A request object representing the call parameters. Required.
 - options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
 
- (result, operation) — Access the result along with the TransportOperation object
 
- result (::Google::Cloud::Language::V1::AnalyzeSyntaxResponse)
 - operation (::Gapic::Rest::TransportOperation)
 
- (::Google::Cloud::Language::V1::AnalyzeSyntaxResponse) — A result object deserialized from the server's reply
 
- (::ArgumentError)
 
#annotate_text
def annotate_text(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Language::V1::AnnotateTextResponseBaseline implementation for the annotate_text REST call
- request_pb (::Google::Cloud::Language::V1::AnnotateTextRequest) — A request object representing the call parameters. Required.
 - options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
 
- (result, operation) — Access the result along with the TransportOperation object
 
- result (::Google::Cloud::Language::V1::AnnotateTextResponse)
 - operation (::Gapic::Rest::TransportOperation)
 
- (::Google::Cloud::Language::V1::AnnotateTextResponse) — A result object deserialized from the server's reply
 
- (::ArgumentError)
 
#classify_text
def classify_text(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Language::V1::ClassifyTextResponseBaseline implementation for the classify_text REST call
- request_pb (::Google::Cloud::Language::V1::ClassifyTextRequest) — A request object representing the call parameters. Required.
 - options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
 
- (result, operation) — Access the result along with the TransportOperation object
 
- result (::Google::Cloud::Language::V1::ClassifyTextResponse)
 - operation (::Gapic::Rest::TransportOperation)
 
- (::Google::Cloud::Language::V1::ClassifyTextResponse) — A result object deserialized from the server's reply
 
- (::ArgumentError)
 
#endpoint
def endpoint() -> StringThe effective endpoint
- (String)
 
#logger
def logger(stub: false) -> LoggerThe logger used for request/response debug logging.
- (Logger)
 
#moderate_text
def moderate_text(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Language::V1::ModerateTextResponseBaseline implementation for the moderate_text REST call
- request_pb (::Google::Cloud::Language::V1::ModerateTextRequest) — A request object representing the call parameters. Required.
 - options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
 
- (result, operation) — Access the result along with the TransportOperation object
 
- result (::Google::Cloud::Language::V1::ModerateTextResponse)
 - operation (::Gapic::Rest::TransportOperation)
 
- (::Google::Cloud::Language::V1::ModerateTextResponse) — A result object deserialized from the server's reply
 
- (::ArgumentError)
 
#universe_domain
def universe_domain() -> StringThe effective universe domain
- (String)