// 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{
	// 279 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, 0xb2, 0x13, 0x92, 0x49, 0xe9, 0x33, 0xf9, 0x0c, 0x3e, 0x81, 0x8f, 0xe2, 0x53, 0x88, 0x33,
	0x0d, 0x88, 0x78, 0x4b, 0xe6, 0xfb, 0xfe, 0x99, 0x9f, 0x15, 0x97, 0x0e, 0xc0, 0x95, 0x56, 0x65,
	0x25, 0x74, 0xb9, 0x32, 0x1d, 0x42, 0x55, 0xaa, 0x6d, 0xac, 0xd0, 0xee, 0x70, 0xdd, 0x5a, 0x57,
	0x59, 0x8f, 0xb2, 0x6e, 0x00, 0x21, 0x9c, 0xb0, 0x2a, 0x49, 0x95, 0xac, 0xca, 0x6d, 0x3c, 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