public static final class Segment.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Segment.Builder> implements SegmentOrBuilder
Segment of the content.Protobuf type
google.cloud.aiplatform.v1beta1.Segment| Modifier and Type | Method and Description |
|---|---|
Segment.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Segment |
build() |
Segment |
buildPartial() |
Segment.Builder |
clear() |
Segment.Builder |
clearEndIndex()
Output only.
|
Segment.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Segment.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Segment.Builder |
clearPartIndex()
Output only.
|
Segment.Builder |
clearStartIndex()
Output only.
|
Segment.Builder |
clearText()
Output only.
|
Segment.Builder |
clone() |
Segment |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
int |
getEndIndex()
Output only.
|
int |
getPartIndex()
Output only.
|
int |
getStartIndex()
Output only.
|
String |
getText()
Output only.
|
com.google.protobuf.ByteString |
getTextBytes()
Output only.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Segment.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Segment.Builder |
mergeFrom(com.google.protobuf.Message other) |
Segment.Builder |
mergeFrom(Segment other) |
Segment.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Segment.Builder |
setEndIndex(int value)
Output only.
|
Segment.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Segment.Builder |
setPartIndex(int value)
Output only.
|
Segment.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Segment.Builder |
setStartIndex(int value)
Output only.
|
Segment.Builder |
setText(String value)
Output only.
|
Segment.Builder |
setTextBytes(com.google.protobuf.ByteString value)
Output only.
|
Segment.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Segment.Builder>public Segment.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Segment.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Segment.Builder>public Segment getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Segment build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Segment buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Segment.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Segment.Builder>public Segment.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Segment.Builder>public Segment.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Segment.Builder>public Segment.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Segment.Builder>public Segment.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Segment.Builder>public Segment.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Segment.Builder>public Segment.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Segment.Builder>public Segment.Builder mergeFrom(Segment other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Segment.Builder>public Segment.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Segment.Builder>IOExceptionpublic int getPartIndex()
Output only. The index of a Part object within its parent Content object.
int32 part_index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];getPartIndex in interface SegmentOrBuilderpublic Segment.Builder setPartIndex(int value)
Output only. The index of a Part object within its parent Content object.
int32 part_index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The partIndex to set.public Segment.Builder clearPartIndex()
Output only. The index of a Part object within its parent Content object.
int32 part_index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];public int getStartIndex()
Output only. Start index in the given Part, measured in bytes. Offset from the start of the Part, inclusive, starting at zero.
int32 start_index = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];getStartIndex in interface SegmentOrBuilderpublic Segment.Builder setStartIndex(int value)
Output only. Start index in the given Part, measured in bytes. Offset from the start of the Part, inclusive, starting at zero.
int32 start_index = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The startIndex to set.public Segment.Builder clearStartIndex()
Output only. Start index in the given Part, measured in bytes. Offset from the start of the Part, inclusive, starting at zero.
int32 start_index = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];public int getEndIndex()
Output only. End index in the given Part, measured in bytes. Offset from the start of the Part, exclusive, starting at zero.
int32 end_index = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];getEndIndex in interface SegmentOrBuilderpublic Segment.Builder setEndIndex(int value)
Output only. End index in the given Part, measured in bytes. Offset from the start of the Part, exclusive, starting at zero.
int32 end_index = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The endIndex to set.public Segment.Builder clearEndIndex()
Output only. End index in the given Part, measured in bytes. Offset from the start of the Part, exclusive, starting at zero.
int32 end_index = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];public String getText()
Output only. The text corresponding to the segment from the response.
string text = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];getText in interface SegmentOrBuilderpublic com.google.protobuf.ByteString getTextBytes()
Output only. The text corresponding to the segment from the response.
string text = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];getTextBytes in interface SegmentOrBuilderpublic Segment.Builder setText(String value)
Output only. The text corresponding to the segment from the response.
string text = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The text to set.public Segment.Builder clearText()
Output only. The text corresponding to the segment from the response.
string text = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];public Segment.Builder setTextBytes(com.google.protobuf.ByteString value)
Output only. The text corresponding to the segment from the response.
string text = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The bytes for text to set.public final Segment.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Segment.Builder>public final Segment.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Segment.Builder>Copyright © 2025 Google LLC. All rights reserved.