Class Segment.Builder (3.37.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 3.37.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   static   final   class  Segment . Builder   extends   GeneratedMessageV3 . Builder<Segment . Builder >  implements   SegmentOrBuilder  
   Segment of the content.
 Protobuf type google.cloud.aiplatform.v1beta1.Segment
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder() 
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int) 
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int) 
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString) 
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int) 
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int) 
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder) 
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Methods
   
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  Methods
   
  
    
public   Segment . Builder   addRepeatedField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  Overrides 
  
  
    
public   Segment   buildPartial ()  
  
  
    
public   Segment . Builder   clear ()  
  
  Overrides 
  
  
    
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   Segment . Builder   clearField ( Descriptors . FieldDescriptor   field )  
  
  
  Overrides 
  
  
    
public   Segment . Builder   clearOneof ( Descriptors . OneofDescriptor   oneof )  
  
  
  Overrides 
  
  
    
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   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   Segment . Builder   clone ()  
  
  Overrides 
  
  
    
public   Segment   getDefaultInstanceForType ()  
  
  
    
public   Descriptors . Descriptor   getDescriptorForType ()  
  
  Overrides 
  
   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  
      
        Type Description  
      
        int The endIndex.
 
     
  
  
    
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];
    
      
        Returns  
      
        Type Description  
      
        int The partIndex.
 
     
  
  
    
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];
    
      
        Returns  
      
        Type Description  
      
        int The startIndex.
 
     
  
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  
    
public   Segment . Builder   mergeFrom ( Segment   other )  
  
    
      
        Parameter  
      
        Name Description  
      
        otherSegment  
     
  
  
  
    
public   Segment . Builder   mergeFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  Overrides 
  
  
  
    
public   Segment . Builder   mergeFrom ( Message   other )  
  
    
      
        Parameter  
      
        Name Description  
      
        otherMessage  
     
  
  
  Overrides 
  
  
    
public   final   Segment . Builder   mergeUnknownFields ( UnknownFieldSet   unknownFields )  
  
  
  Overrides 
  
  
    
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];
    
      
        Parameter  
      
        Name Description  
      
        valueint The endIndex to set.
 
     
  
  
  
    
public   Segment . Builder   setField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  Overrides 
  
  
    
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];
    
      
        Parameter  
      
        Name Description  
      
        valueint The partIndex to set.
 
     
  
  
  
    
public   Segment . Builder   setRepeatedField ( Descriptors . FieldDescriptor   field ,   int   index ,   Object   value )  
  
  
  Overrides 
  
  
    
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];
    
      
        Parameter  
      
        Name Description  
      
        valueint The startIndex to set.
 
     
  
  
  
    
public   final   Segment . Builder   setUnknownFields ( UnknownFieldSet   unknownFields )  
  
  
  Overrides 
  
 
     
    
  
  
  
     
  
    
    
      
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-29 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-29 UTC."],[],[]]