[][src]Struct gcp_client::google::cloud::datalabeling::v1beta1::Instruction

pub struct Instruction {
    pub name: String,
    pub display_name: String,
    pub description: String,
    pub create_time: Option<Timestamp>,
    pub update_time: Option<Timestamp>,
    pub data_type: i32,
    pub csv_instruction: Option<CsvInstruction>,
    pub pdf_instruction: Option<PdfInstruction>,
    pub blocking_resources: Vec<String>,
}

Instruction of how to perform the labeling task for human operators. Currently only PDF instruction is supported.

Fields

name: String

Output only. Instruction resource name, format: projects/{project_id}/instructions/{instruction_id}

display_name: String

Required. The display name of the instruction. Maximum of 64 characters.

description: String

Optional. User-provided description of the instruction. The description can be up to 10000 characters long.

create_time: Option<Timestamp>

Output only. Creation time of instruction.

update_time: Option<Timestamp>

Output only. Last update time of instruction.

data_type: i32

Required. The data type of this instruction.

csv_instruction: Option<CsvInstruction>

Deprecated: this instruction format is not supported any more. Instruction from a CSV file, such as for classification task. The CSV file should have exact two columns, in the following format:

  • The first column is labeled data, such as an image reference, text.
  • The second column is comma separated labels associated with data.
pdf_instruction: Option<PdfInstruction>

Instruction from a PDF document. The PDF should be in a Cloud Storage bucket.

blocking_resources: Vec<String>

Output only. The names of any related resources that are blocking changes to the instruction.

Implementations

impl Instruction[src]

pub fn data_type(&self) -> DataType[src]

Returns the enum value of data_type, or the default if the field is set to an invalid enum value.

pub fn set_data_type(&mut self, value: DataType)[src]

Sets data_type to the provided enum value.

Trait Implementations

impl Clone for Instruction[src]

impl Debug for Instruction[src]

impl Default for Instruction[src]

impl Message for Instruction[src]

impl PartialEq<Instruction> for Instruction[src]

impl StructuralPartialEq for Instruction[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]