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

package automl

import (
	fmt "fmt"
	math "math"

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

// A contiguous part of a text (string), assuming it has an UTF-8 NFC encoding.
type TextSegment struct {
	// Output only. The content of the TextSegment.
	Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"`
	// Required. Zero-based character index of the first character of the text
	// segment (counting characters from the beginning of the text).
	StartOffset int64 `protobuf:"varint,1,opt,name=start_offset,json=startOffset,proto3" json:"start_offset,omitempty"`
	// Required. Zero-based character index of the first character past the end of
	// the text segment (counting character from the beginning of the text).
	// The character at the end_offset is NOT included in the text segment.
	EndOffset            int64    `protobuf:"varint,2,opt,name=end_offset,json=endOffset,proto3" json:"end_offset,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

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

var xxx_messageInfo_TextSegment proto.InternalMessageInfo

func (m *TextSegment) GetContent() string {
	if m != nil {
		return m.Content
	}
	return ""
}

func (m *TextSegment) GetStartOffset() int64 {
	if m != nil {
		return m.StartOffset
	}
	return 0
}

func (m *TextSegment) GetEndOffset() int64 {
	if m != nil {
		return m.EndOffset
	}
	return 0
}

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

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

var fileDescriptor_018f33d8dcf73e0f = []byte{
	// 278 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x90, 0xc1, 0x4a, 0xc3, 0x40,
	0x10, 0x86, 0x49, 0x0b, 0x4a, 0xb7, 0x1e, 0x24, 0x87, 0x12, 0x8b, 0x42, 0xf5, 0x54, 0x2f, 0xbb,
	0x04, 0x6f, 0xab, 0x17, 0xeb, 0xc1, 0x8b, 0x62, 0xa9, 0x92, 0x83, 0x04, 0xca, 0x9a, 0x6c, 0x97,
	0x40, 0x32, 0x13, 0x92, 0x49, 0xe9, 0x33, 0xf9, 0x0c, 0x3e, 0x81, 0x8f, 0xe2, 0x53, 0x88, 0x3b,
	0x0d, 0x88, 0x78, 0xdb, 0x9d, 0xef, 0x9b, 0x99, 0x9f, 0x11, 0x97, 0x0e, 0xd1, 0x95, 0x56, 0x65,
	0x25, 0x76, 0xb9, 0x32, 0x1d, 0x61, 0x55, 0xaa, 0x6d, 0xac, 0xc8, 0xee, 0x68, 0xdd, 0x5a, 0x57,
	0x59, 0x20, 0x59, 0x37, 0x48, 0x18, 0x4e, 0x58, 0x95, 0x5e, 0x95, 0xac, 0xca, 0x6d, 0x3c, 0x3d,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