Starting April 29, 2025, Gemini 1.5 Pro and Gemini 1.5 Flash models are not available in projects that have no prior usage of these models, including new projects. For details, see Model versions and lifecycle.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-16 UTC."],[],[],null,["# Interface SegmentOrBuilder (1.32.0)\n\n public interface SegmentOrBuilder extends MessageOrBuilder\n\nImplements\n----------\n\n[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)\n\nMethods\n-------\n\n### getEndIndex()\n\n public abstract int getEndIndex()\n\nOutput only. End index in the given Part, measured in bytes. Offset from\nthe start of the Part, exclusive, starting at zero.\n\n`int32 end_index = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];`\n\n### getPartIndex()\n\n public abstract int getPartIndex()\n\nOutput only. The index of a Part object within its parent Content object.\n\n`int32 part_index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];`\n\n### getStartIndex()\n\n public abstract int getStartIndex()\n\nOutput only. Start index in the given Part, measured in bytes. Offset from\nthe start of the Part, inclusive, starting at zero.\n\n`int32 start_index = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];`\n\n### getText()\n\n public abstract String getText()\n\nOutput only. The text corresponding to the segment from the response.\n\n`string text = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];`\n\n### getTextBytes()\n\n public abstract ByteString getTextBytes()\n\nOutput only. The text corresponding to the segment from the response.\n\n`string text = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];`"]]