[−][src]Struct google_commentanalyzer1_alpha1::SuggestCommentScoreRequest
The comment score suggestion request message.
Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- suggestscore comments (request)
Fields
comment: Option<TextEntry>
The comment being scored.
languages: Option<Vec<String>>
The language(s) of the comment and context. If none are specified, we attempt to automatically detect the language. Both ISO and BCP-47 language codes are accepted.
session_id: Option<String>
Session ID. Used to join related RPCs into a single session. For example, an interactive tool that calls both the AnalyzeComment and SuggestCommentScore RPCs should set all invocations of both RPCs to the same Session ID, typically a random 64-bit integer.
context: Option<Context>
The context of the comment.
client_token: Option<String>
Opaque token that is echoed from the request to the response.
community_id: Option<String>
Optional identifier associating this comment score suggestion with a particular sub-community. Different communities may have different norms and rules. Specifying this value enables training community-specific models.
attribute_scores: Option<HashMap<String, AttributeScores>>
Attribute scores for the comment. The map keys are attribute names, same as
the requested_attribute field in AnalyzeCommentRequest (for example
"ATTACK_ON_AUTHOR", "INFLAMMATORY", etc.). This field has the same type as
the attribute_scores
field in AnalyzeCommentResponse.
To specify an overall attribute score for the entire comment as a whole,
use the summary_score
field of the mapped AttributeScores object. To
specify scores on specific subparts of the comment, use the span_scores
field. All SpanScore objects must have begin and end fields set.
All Score objects must be explicitly set (for binary classification, use
the score values 0 and 1). If Score objects don't include a ScoreType,
PROBABILITY
is assumed.
attribute_scores
must not be empty. The mapped AttributeScores objects
also must not be empty. An INVALID_ARGUMENT
error is returned for all
malformed requests.
Trait Implementations
impl Clone for SuggestCommentScoreRequest
[src]
fn clone(&self) -> SuggestCommentScoreRequest
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for SuggestCommentScoreRequest
[src]
impl Default for SuggestCommentScoreRequest
[src]
impl<'de> Deserialize<'de> for SuggestCommentScoreRequest
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl RequestValue for SuggestCommentScoreRequest
[src]
impl Serialize for SuggestCommentScoreRequest
[src]
Auto Trait Implementations
impl RefUnwindSafe for SuggestCommentScoreRequest
impl Send for SuggestCommentScoreRequest
impl Sync for SuggestCommentScoreRequest
impl Unpin for SuggestCommentScoreRequest
impl UnwindSafe for SuggestCommentScoreRequest
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Typeable for T where
T: Any,
T: Any,