Struct google_api_proto::google::cloud::language::v1beta2::AnnotateTextResponse
source · pub struct AnnotateTextResponse {
pub sentences: Vec<Sentence>,
pub tokens: Vec<Token>,
pub entities: Vec<Entity>,
pub document_sentiment: Option<Sentiment>,
pub language: String,
pub categories: Vec<ClassificationCategory>,
pub moderation_categories: Vec<ClassificationCategory>,
}
Expand description
The text annotations response message.
Fields§
§sentences: Vec<Sentence>
Sentences in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1beta2.AnnotateTextRequest.Features.extract_syntax].
tokens: Vec<Token>
Tokens, along with their syntactic information, in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1beta2.AnnotateTextRequest.Features.extract_syntax].
entities: Vec<Entity>
Entities, along with their semantic information, in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_entities][google.cloud.language.v1beta2.AnnotateTextRequest.Features.extract_entities].
document_sentiment: Option<Sentiment>
The overall sentiment for the document. Populated if the user enables [AnnotateTextRequest.Features.extract_document_sentiment][google.cloud.language.v1beta2.AnnotateTextRequest.Features.extract_document_sentiment].
language: String
The language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language. See [Document.language][google.cloud.language.v1beta2.Document.language] field for more details.
categories: Vec<ClassificationCategory>
Categories identified in the input document.
moderation_categories: Vec<ClassificationCategory>
Harmful and sensitive categories identified in the input document.
Trait Implementations§
source§impl Clone for AnnotateTextResponse
impl Clone for AnnotateTextResponse
source§fn clone(&self) -> AnnotateTextResponse
fn clone(&self) -> AnnotateTextResponse
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AnnotateTextResponse
impl Debug for AnnotateTextResponse
source§impl Default for AnnotateTextResponse
impl Default for AnnotateTextResponse
source§impl Message for AnnotateTextResponse
impl Message for AnnotateTextResponse
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for AnnotateTextResponse
impl PartialEq for AnnotateTextResponse
source§fn eq(&self, other: &AnnotateTextResponse) -> bool
fn eq(&self, other: &AnnotateTextResponse) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AnnotateTextResponse
Auto Trait Implementations§
impl Freeze for AnnotateTextResponse
impl RefUnwindSafe for AnnotateTextResponse
impl Send for AnnotateTextResponse
impl Sync for AnnotateTextResponse
impl Unpin for AnnotateTextResponse
impl UnwindSafe for AnnotateTextResponse
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request