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 Type
    Method
    Description
     
     
     
    Output only.
    Output only.
    Output only.
    Output only.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    int
    Output only.
    int
    Output only.
    int
    Output only.
    Output only.
    com.google.protobuf.ByteString
    Output only.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(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.
    setText(String value)
    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, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods 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:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Segment.Builder>
    • clear

      public Segment.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Segment.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Segment.Builder>
    • getDefaultInstanceForType

      public Segment getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Segment build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Segment buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Segment.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Segment.Builder>
    • mergeFrom

      public Segment.Builder mergeFrom(Segment other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      getPartIndex in interface SegmentOrBuilder
      Returns:
      The partIndex.
    • setPartIndex

      public 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];
      Parameters:
      value - The partIndex to set.
      Returns:
      This builder for chaining.
    • clearPartIndex

      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];
      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:
      getStartIndex in interface SegmentOrBuilder
      Returns:
      The startIndex.
    • setStartIndex

      public 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];
      Parameters:
      value - The startIndex to set.
      Returns:
      This builder for chaining.
    • clearStartIndex

      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];
      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:
      getEndIndex in interface SegmentOrBuilder
      Returns:
      The endIndex.
    • setEndIndex

      public 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];
      Parameters:
      value - The endIndex to set.
      Returns:
      This builder for chaining.
    • clearEndIndex

      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];
      Returns:
      This builder for chaining.
    • getText

      public String getText()
       Output only. The text corresponding to the segment from the response.
       
      string text = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getText in interface SegmentOrBuilder
      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:
      getTextBytes in interface SegmentOrBuilder
      Returns:
      The bytes for text.
    • setText

      public 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];
      Parameters:
      value - The text to set.
      Returns:
      This builder for chaining.
    • clearText

      public Segment.Builder 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

      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];
      Parameters:
      value - The bytes for text to set.
      Returns:
      This builder for chaining.