Class Segment (3.37.0)

public final class Segment extends GeneratedMessageV3 implements SegmentOrBuilder

Segment of the content.

Protobuf type google.cloud.aiplatform.v1beta1.Segment

Implements

SegmentOrBuilder

Static Fields

END_INDEX_FIELD_NUMBER

public static final int END_INDEX_FIELD_NUMBER
Field Value
TypeDescription
int

PART_INDEX_FIELD_NUMBER

public static final int PART_INDEX_FIELD_NUMBER
Field Value
TypeDescription
int

START_INDEX_FIELD_NUMBER

public static final int START_INDEX_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Segment getDefaultInstance()
Returns
TypeDescription
Segment

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Segment.Builder newBuilder()
Returns
TypeDescription
Segment.Builder

newBuilder(Segment prototype)

public static Segment.Builder newBuilder(Segment prototype)
Parameter
NameDescription
prototypeSegment
Returns
TypeDescription
Segment.Builder

parseDelimitedFrom(InputStream input)

public static Segment parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Segment
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Segment parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Segment
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Segment parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Segment
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Segment parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Segment
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Segment parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Segment
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Segment parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Segment
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Segment parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Segment
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Segment parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Segment
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Segment parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Segment
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Segment parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Segment
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Segment parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Segment
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Segment parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Segment
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Segment> parser()
Returns
TypeDescription
Parser<Segment>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public Segment getDefaultInstanceForType()
Returns
TypeDescription
Segment

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];

Returns
TypeDescription
int

The endIndex.

getParserForType()

public Parser<Segment> getParserForType()
Returns
TypeDescription
Parser<Segment>
Overrides

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
TypeDescription
int

The partIndex.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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
TypeDescription
int

The startIndex.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Segment.Builder newBuilderForType()
Returns
TypeDescription
Segment.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Segment.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Segment.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Segment.Builder toBuilder()
Returns
TypeDescription
Segment.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException