public static final class Segment.Builder extends GeneratedMessageV3.Builder<Segment.Builder> implements SegmentOrBuilder
Segment of the content.
Protobuf type google.cloud.vertexai.v1.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
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Segment.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
buildPartial()
public Segment buildPartial()
clear()
public Segment.Builder clear()
Overrides
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];
clearField(Descriptors.FieldDescriptor field)
public Segment.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Segment.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
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];
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];
clone()
public Segment.Builder clone()
Overrides
getDefaultInstanceForType()
public Segment getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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];
Returns |
Type |
Description |
int |
The endIndex.
|
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];
Returns |
Type |
Description |
int |
The partIndex.
|
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];
Returns |
Type |
Description |
int |
The startIndex.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(Segment other)
public Segment.Builder mergeFrom(Segment other)
Parameter |
Name |
Description |
other |
Segment
|
public Segment.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public Segment.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Segment.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setEndIndex(int value)
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 |
value |
int
The endIndex to set.
|
setField(Descriptors.FieldDescriptor field, Object value)
public Segment.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setPartIndex(int value)
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 |
value |
int
The partIndex to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Segment.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setStartIndex(int value)
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 |
value |
int
The startIndex to set.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final Segment.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides