// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/automl/v1/annotation_payload.proto

package automl

import (
	fmt "fmt"
	math "math"

	proto "github.com/golang/protobuf/proto"
	_ "github.com/golang/protobuf/ptypes/any"
	_ "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

// Contains annotation information that is relevant to AutoML.
type AnnotationPayload struct {
	// Output only . Additional information about the annotation
	// specific to the AutoML domain.
	//
	// Types that are valid to be assigned to Detail:
	//	*AnnotationPayload_Translation
	Detail               isAnnotationPayload_Detail `protobuf_oneof:"detail"`
	XXX_NoUnkeyedLiteral struct{}                   `json:"-"`
	XXX_unrecognized     []byte                     `json:"-"`
	XXX_sizecache        int32                      `json:"-"`
}

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

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

var xxx_messageInfo_AnnotationPayload proto.InternalMessageInfo

type isAnnotationPayload_Detail interface {
	isAnnotationPayload_Detail()
}

type AnnotationPayload_Translation struct {
	Translation *TranslationAnnotation `protobuf:"bytes,2,opt,name=translation,proto3,oneof"`
}

func (*AnnotationPayload_Translation) isAnnotationPayload_Detail() {}

func (m *AnnotationPayload) GetDetail() isAnnotationPayload_Detail {
	if m != nil {
		return m.Detail
	}
	return nil
}

func (m *AnnotationPayload) GetTranslation() *TranslationAnnotation {
	if x, ok := m.GetDetail().(*AnnotationPayload_Translation); ok {
		return x.Translation
	}
	return nil
}

// XXX_OneofWrappers is for the internal use of the proto package.
func (*AnnotationPayload) XXX_OneofWrappers() []interface{} {
	return []interface{}{
		(*AnnotationPayload_Translation)(nil),
	}
}

func init() {
	proto.RegisterType((*AnnotationPayload)(nil), "google.cloud.automl.v1.AnnotationPayload")
}

func init() {
	proto.RegisterFile("google/cloud/automl/v1/annotation_payload.proto", fileDescriptor_a945962355943c79)
}

var fileDescriptor_a945962355943c79 = []byte{
	// 263 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x4f, 0xcf, 0xcf, 0x4f,
	0xcf, 0x49, 0xd5, 0x4f, 0xce, 0xc9, 0x2f, 0x4d, 0xd1, 0x4f, 0x2c, 0x2d, 0xc9, 0xcf, 0xcd, 0xd1,
	0x2f, 0x33, 0xd4, 0x4f, 0xcc, 0xcb, 0xcb, 0x2f, 0x49, 0x2c, 0xc9, 0xcc, 0xcf, 0x8b, 0x2f, 0x48,
	0xac, 0xcc, 0xc9, 0x4f, 0x4c, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x83, 0x68, 0xd0,
	0x03, 0x6b, 0xd0, 0x83, 0x68, 0xd0, 0x2b, 0x33, 0x94, 0xd2, 0xc0, 0x61, 0x50, 0x49, 0x51, 0x62,
	0x5e, 0x71, 0x0e, 0xd8, 0x24, 0x88, 0x09, 0x52, 0x92, 0x50, 0x95, 0x60, 0x5e, 0x52, 0x69, 0x9a,
	0x7e, 0x62, 0x5e, 0x25, 0x54, 0x4a, 0x06, 0x2a, 0x95, 0x58, 0x90, 0x89, 0xe4, 0x82, 0x62, 0x88,
	0xac, 0x52, 0x01, 0x97, 0xa0, 0x23, 0x5c, 0x30, 0x00, 0xe2, 0x2a, 0xa1, 0x40, 0x2e, 0x6e, 0x24,
	0x2b, 0x24, 0x98, 0x14, 0x18, 0x35, 0xb8, 0x8d, 0x74, 0xf5, 0xb0, 0xbb, 0x52, 0x2f, 0x04, 0xa1,
	0x14, 0x61, 0x94, 0x07, 0x43, 0x10, 0xb2, 0x19, 0x4e, 0x1c, 0x5c, 0x6c, 0x29, 0xa9, 0x25, 0x89,
	0x99, 0x39, 0x4e, 0x13, 0x19, 0xb9, 0xa4, 0x92, 0xf3, 0x73, 0x71, 0x98, 0x16, 0xc0, 0x18, 0x65,
	0x03, 0x95, 0x49, 0xcf, 0xcf, 0x49, 0xcc, 0x4b, 0xd7, 0xcb, 0x2f, 0x4a, 0xd7, 0x4f, 0x4f, 0xcd,
	0x03, 0x3b, 0x17, 0x1a, 0xb2, 0x89, 0x05, 0x99, 0xc5, 0xe8, 0x81, 0x62, 0x0d, 0x61, 0x9d, 0x62,
	0x12, 0x73, 0x07, 0xab, 0x89, 0x71, 0x06, 0xc9, 0xc7, 0x38, 0x96, 0x96, 0xe4, 0xfb, 0xe6, 0xc4,
	0x84, 0x19, 0xbe, 0x62, 0x92, 0x84, 0x48, 0x58, 0x59, 0x81, 0x65, 0xac, 0xac, 0xc0, 0x52, 0x3e,
	0x56, 0x56, 0x61, 0x86, 0x49, 0x6c, 0x60, 0xd3, 0x8d, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0x43,
	0xf7, 0x51, 0x26, 0xba, 0x01, 0x00, 0x00,
}
