Struct google_api_proto::google::cloud::datalabeling::v1beta1::HumanAnnotationConfig
source · pub struct HumanAnnotationConfig {
pub instruction: String,
pub annotated_dataset_display_name: String,
pub annotated_dataset_description: String,
pub label_group: String,
pub language_code: String,
pub replica_count: i32,
pub question_duration: Option<Duration>,
pub contributor_emails: Vec<String>,
pub user_email_address: String,
}
Expand description
Configuration for how human labeling task should be done.
Fields§
§instruction: String
Required. Instruction resource name.
annotated_dataset_display_name: String
Required. A human-readable name for AnnotatedDataset defined by users. Maximum of 64 characters .
annotated_dataset_description: String
Optional. A human-readable description for AnnotatedDataset. The description can be up to 10000 characters long.
label_group: String
Optional. A human-readable label used to logically group labeling tasks.
This string must match the regular expression \[a-zA-Z\\d_-\]{0,128}
.
language_code: String
Optional. The Language of this question, as a BCP-47. Default value is en-US. Only need to set this when task is language related. For example, French text classification.
replica_count: i32
Optional. Replication of questions. Each question will be sent to up to this number of contributors to label. Aggregated answers will be returned. Default is set to 1. For image related labeling, valid values are 1, 3, 5.
question_duration: Option<Duration>
Optional. Maximum duration for contributors to answer a question. Maximum is 3600 seconds. Default is 3600 seconds.
contributor_emails: Vec<String>
Optional. If you want your own labeling contributors to manage and work on this labeling request, you can set these contributors here. We will give them access to the question types in crowdcompute. Note that these emails must be registered in crowdcompute worker UI: https://crowd-compute.appspot.com/
user_email_address: String
Email of the user who started the labeling task and should be notified by email. If empty no notification will be sent.
Trait Implementations§
source§impl Clone for HumanAnnotationConfig
impl Clone for HumanAnnotationConfig
source§fn clone(&self) -> HumanAnnotationConfig
fn clone(&self) -> HumanAnnotationConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for HumanAnnotationConfig
impl Debug for HumanAnnotationConfig
source§impl Default for HumanAnnotationConfig
impl Default for HumanAnnotationConfig
source§impl Message for HumanAnnotationConfig
impl Message for HumanAnnotationConfig
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 HumanAnnotationConfig
impl PartialEq for HumanAnnotationConfig
source§fn eq(&self, other: &HumanAnnotationConfig) -> bool
fn eq(&self, other: &HumanAnnotationConfig) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for HumanAnnotationConfig
Auto Trait Implementations§
impl Freeze for HumanAnnotationConfig
impl RefUnwindSafe for HumanAnnotationConfig
impl Send for HumanAnnotationConfig
impl Sync for HumanAnnotationConfig
impl Unpin for HumanAnnotationConfig
impl UnwindSafe for HumanAnnotationConfig
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