Package com.google.cloud.aiplatform.v1
Class Segment.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Segment.Builder>
com.google.cloud.aiplatform.v1.Segment.Builder
- All Implemented Interfaces:
SegmentOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Segment
public static final class Segment.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Segment.Builder>
implements SegmentOrBuilder
Segment of the content.Protobuf type
google.cloud.aiplatform.v1.Segment-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.Output only.Output only.Output only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorintOutput only.intOutput only.intOutput only.getText()Output only.com.google.protobuf.ByteStringOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setEndIndex(int value) Output only.setPartIndex(int value) Output only.setStartIndex(int value) Output only.Output only.setTextBytes(com.google.protobuf.ByteString value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Segment.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Segment.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Segment.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Segment.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Segment.Builder>
-
mergeFrom
public Segment.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Segment.Builder>- Throws:
IOException
-
getPartIndex
public 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];- Specified by:
getPartIndexin interfaceSegmentOrBuilder- Returns:
- The partIndex.
-
setPartIndex
Output only. The index of a Part object within its parent Content object.
int32 part_index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The partIndex to set.- Returns:
- This builder for chaining.
-
clearPartIndex
Output only. The index of a Part object within its parent Content object.
int32 part_index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getStartIndex
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];- Specified by:
getStartIndexin interfaceSegmentOrBuilder- Returns:
- The startIndex.
-
setStartIndex
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];- Parameters:
value- The startIndex to set.- Returns:
- This builder for chaining.
-
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];- Returns:
- This builder for chaining.
-
getEndIndex
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];- Specified by:
getEndIndexin interfaceSegmentOrBuilder- Returns:
- The endIndex.
-
setEndIndex
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];- Parameters:
value- The endIndex to set.- Returns:
- This builder for chaining.
-
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];- Returns:
- This builder for chaining.
-
getText
Output only. The text corresponding to the segment from the response.
string text = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getTextin interfaceSegmentOrBuilder- Returns:
- The text.
-
getTextBytes
public 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];- Specified by:
getTextBytesin interfaceSegmentOrBuilder- Returns:
- The bytes for text.
-
setText
Output only. The text corresponding to the segment from the response.
string text = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The text to set.- Returns:
- This builder for chaining.
-
clearText
Output only. The text corresponding to the segment from the response.
string text = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setTextBytes
Output only. The text corresponding to the segment from the response.
string text = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for text to set.- Returns:
- This builder for chaining.
-