1 /* 2 * Copyright 2020 Google LLC 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * https://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 // Generated by the protocol buffer compiler. DO NOT EDIT! 17 // source: google/cloud/automl/v1/text_segment.proto 18 19 package com.google.cloud.automl.v1; 20 21 public interface TextSegmentOrBuilder 22 extends 23 // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.TextSegment) 24 com.google.protobuf.MessageOrBuilder { 25 26 /** 27 * 28 * 29 * <pre> 30 * Output only. The content of the TextSegment. 31 * </pre> 32 * 33 * <code>string content = 3;</code> 34 * 35 * @return The content. 36 */ getContent()37 java.lang.String getContent(); 38 /** 39 * 40 * 41 * <pre> 42 * Output only. The content of the TextSegment. 43 * </pre> 44 * 45 * <code>string content = 3;</code> 46 * 47 * @return The bytes for content. 48 */ getContentBytes()49 com.google.protobuf.ByteString getContentBytes(); 50 51 /** 52 * 53 * 54 * <pre> 55 * Required. Zero-based character index of the first character of the text 56 * segment (counting characters from the beginning of the text). 57 * </pre> 58 * 59 * <code>int64 start_offset = 1;</code> 60 * 61 * @return The startOffset. 62 */ getStartOffset()63 long getStartOffset(); 64 65 /** 66 * 67 * 68 * <pre> 69 * Required. Zero-based character index of the first character past the end of 70 * the text segment (counting character from the beginning of the text). 71 * The character at the end_offset is NOT included in the text segment. 72 * </pre> 73 * 74 * <code>int64 end_offset = 2;</code> 75 * 76 * @return The endOffset. 77 */ getEndOffset()78 long getEndOffset(); 79 } 80