// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/datalabeling/v1beta1/instruction.proto

package datalabeling

import (
	fmt "fmt"
	math "math"

	proto "github.com/golang/protobuf/proto"
	timestamp "github.com/golang/protobuf/ptypes/timestamp"
	_ "google.golang.org/genproto/googleapis/api/annotations"
)

// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf

// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package

// Instruction of how to perform the labeling task for human operators.
// Currently two types of instruction are supported - CSV file and PDF.
// One of the two types instruction must be provided.
// CSV file is only supported for image classification task. Instructions for
// other task should be provided as PDF.
// For image classification, CSV and PDF can be provided at the same time.
type Instruction struct {
	// Output only. Instruction resource name, format:
	// projects/{project_id}/instructions/{instruction_id}
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Required. The display name of the instruction. Maximum of 64 characters.
	DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// Optional. User-provided description of the instruction.
	// The description can be up to 10000 characters long.
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// Output only. Creation time of instruction.
	CreateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Output only. Last update time of instruction.
	UpdateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// Required. The data type of this instruction.
	DataType DataType `protobuf:"varint,6,opt,name=data_type,json=dataType,proto3,enum=google.cloud.datalabeling.v1beta1.DataType" json:"data_type,omitempty"`
	// One of CSV and PDF instruction is required.
	// Instruction from a csv file, such as for classification task.
	// Csv file should have exact two columns, in the format of:
	// The first column is labeled data, such as image reference, text.
	// The second column is comma separated labels associated with data.
	CsvInstruction *CsvInstruction `protobuf:"bytes,7,opt,name=csv_instruction,json=csvInstruction,proto3" json:"csv_instruction,omitempty"`
	// One of CSV and PDF instruction is required.
	// Instruction from a PDF doc. The PDF doc should be in GCS bucket.
	PdfInstruction       *PdfInstruction `protobuf:"bytes,9,opt,name=pdf_instruction,json=pdfInstruction,proto3" json:"pdf_instruction,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (m *Instruction) Reset()         { *m = Instruction{} }
func (m *Instruction) String() string { return proto.CompactTextString(m) }
func (*Instruction) ProtoMessage()    {}
func (*Instruction) Descriptor() ([]byte, []int) {
	return fileDescriptor_683081924dd940d7, []int{0}
}

func (m *Instruction) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_Instruction.Unmarshal(m, b)
}
func (m *Instruction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_Instruction.Marshal(b, m, deterministic)
}
func (m *Instruction) XXX_Merge(src proto.Message) {
	xxx_messageInfo_Instruction.Merge(m, src)
}
func (m *Instruction) XXX_Size() int {
	return xxx_messageInfo_Instruction.Size(m)
}
func (m *Instruction) XXX_DiscardUnknown() {
	xxx_messageInfo_Instruction.DiscardUnknown(m)
}

var xxx_messageInfo_Instruction proto.InternalMessageInfo

func (m *Instruction) GetName() string {
	if m != nil {
		return m.Name
	}
	return ""
}

func (m *Instruction) GetDisplayName() string {
	if m != nil {
		return m.DisplayName
	}
	return ""
}

func (m *Instruction) GetDescription() string {
	if m != nil {
		return m.Description
	}
	return ""
}

func (m *Instruction) GetCreateTime() *timestamp.Timestamp {
	if m != nil {
		return m.CreateTime
	}
	return nil
}

func (m *Instruction) GetUpdateTime() *timestamp.Timestamp {
	if m != nil {
		return m.UpdateTime
	}
	return nil
}

func (m *Instruction) GetDataType() DataType {
	if m != nil {
		return m.DataType
	}
	return DataType_DATA_TYPE_UNSPECIFIED
}

func (m *Instruction) GetCsvInstruction() *CsvInstruction {
	if m != nil {
		return m.CsvInstruction
	}
	return nil
}

func (m *Instruction) GetPdfInstruction() *PdfInstruction {
	if m != nil {
		return m.PdfInstruction
	}
	return nil
}

// Instruction from a CSV file.
type CsvInstruction struct {
	// CSV file for the instruction. Only gcs path is allowed.
	GcsFileUri           string   `protobuf:"bytes,1,opt,name=gcs_file_uri,json=gcsFileUri,proto3" json:"gcs_file_uri,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *CsvInstruction) Reset()         { *m = CsvInstruction{} }
func (m *CsvInstruction) String() string { return proto.CompactTextString(m) }
func (*CsvInstruction) ProtoMessage()    {}
func (*CsvInstruction) Descriptor() ([]byte, []int) {
	return fileDescriptor_683081924dd940d7, []int{1}
}

func (m *CsvInstruction) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_CsvInstruction.Unmarshal(m, b)
}
func (m *CsvInstruction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_CsvInstruction.Marshal(b, m, deterministic)
}
func (m *CsvInstruction) XXX_Merge(src proto.Message) {
	xxx_messageInfo_CsvInstruction.Merge(m, src)
}
func (m *CsvInstruction) XXX_Size() int {
	return xxx_messageInfo_CsvInstruction.Size(m)
}
func (m *CsvInstruction) XXX_DiscardUnknown() {
	xxx_messageInfo_CsvInstruction.DiscardUnknown(m)
}

var xxx_messageInfo_CsvInstruction proto.InternalMessageInfo

func (m *CsvInstruction) GetGcsFileUri() string {
	if m != nil {
		return m.GcsFileUri
	}
	return ""
}

// Instruction from a PDF file.
type PdfInstruction struct {
	// PDF file for the instruction. Only gcs path is allowed.
	GcsFileUri           string   `protobuf:"bytes,1,opt,name=gcs_file_uri,json=gcsFileUri,proto3" json:"gcs_file_uri,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *PdfInstruction) Reset()         { *m = PdfInstruction{} }
func (m *PdfInstruction) String() string { return proto.CompactTextString(m) }
func (*PdfInstruction) ProtoMessage()    {}
func (*PdfInstruction) Descriptor() ([]byte, []int) {
	return fileDescriptor_683081924dd940d7, []int{2}
}

func (m *PdfInstruction) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_PdfInstruction.Unmarshal(m, b)
}
func (m *PdfInstruction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_PdfInstruction.Marshal(b, m, deterministic)
}
func (m *PdfInstruction) XXX_Merge(src proto.Message) {
	xxx_messageInfo_PdfInstruction.Merge(m, src)
}
func (m *PdfInstruction) XXX_Size() int {
	return xxx_messageInfo_PdfInstruction.Size(m)
}
func (m *PdfInstruction) XXX_DiscardUnknown() {
	xxx_messageInfo_PdfInstruction.DiscardUnknown(m)
}

var xxx_messageInfo_PdfInstruction proto.InternalMessageInfo

func (m *PdfInstruction) GetGcsFileUri() string {
	if m != nil {
		return m.GcsFileUri
	}
	return ""
}

func init() {
	proto.RegisterType((*Instruction)(nil), "google.cloud.datalabeling.v1beta1.Instruction")
	proto.RegisterType((*CsvInstruction)(nil), "google.cloud.datalabeling.v1beta1.CsvInstruction")
	proto.RegisterType((*PdfInstruction)(nil), "google.cloud.datalabeling.v1beta1.PdfInstruction")
}

func init() {
	proto.RegisterFile("google/cloud/datalabeling/v1beta1/instruction.proto", fileDescriptor_683081924dd940d7)
}

var fileDescriptor_683081924dd940d7 = []byte{
	// 398 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0x41, 0x8b, 0xdb, 0x30,
	0x10, 0x85, 0x71, 0x77, 0xbb, 0x6d, 0xe4, 0x25, 0x05, 0x9f, 0x4c, 0x28, 0xd4, 0xbb, 0x50, 0x08,
	0x14, 0x24, 0x92, 0x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