Class AnnotationBoundary (2.42.0)

public final class AnnotationBoundary extends GeneratedMessageV3 implements AnnotationBoundaryOrBuilder

A point in a conversation that marks the start or the end of an annotation.

Protobuf type google.cloud.contactcenterinsights.v1.AnnotationBoundary

Static Fields

TRANSCRIPT_INDEX_FIELD_NUMBER

public static final int TRANSCRIPT_INDEX_FIELD_NUMBER
Field Value
Type Description
int

WORD_INDEX_FIELD_NUMBER

public static final int WORD_INDEX_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AnnotationBoundary getDefaultInstance()
Returns
Type Description
AnnotationBoundary

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static AnnotationBoundary.Builder newBuilder()
Returns
Type Description
AnnotationBoundary.Builder

newBuilder(AnnotationBoundary prototype)

public static AnnotationBoundary.Builder newBuilder(AnnotationBoundary prototype)
Parameter
Name Description
prototype AnnotationBoundary
Returns
Type Description
AnnotationBoundary.Builder

parseDelimitedFrom(InputStream input)

public static AnnotationBoundary parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AnnotationBoundary
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AnnotationBoundary parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnnotationBoundary
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static AnnotationBoundary parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
AnnotationBoundary
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AnnotationBoundary parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnnotationBoundary
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AnnotationBoundary parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
AnnotationBoundary
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AnnotationBoundary parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnnotationBoundary
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AnnotationBoundary parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AnnotationBoundary
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AnnotationBoundary parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnnotationBoundary
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static AnnotationBoundary parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AnnotationBoundary
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AnnotationBoundary parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnnotationBoundary
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static AnnotationBoundary parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AnnotationBoundary
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AnnotationBoundary parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnnotationBoundary
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<AnnotationBoundary> parser()
Returns
Type Description
Parser<AnnotationBoundary>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public AnnotationBoundary getDefaultInstanceForType()
Returns
Type Description
AnnotationBoundary

getDetailedBoundaryCase()

public AnnotationBoundary.DetailedBoundaryCase getDetailedBoundaryCase()
Returns
Type Description
AnnotationBoundary.DetailedBoundaryCase

getParserForType()

public Parser<AnnotationBoundary> getParserForType()
Returns
Type Description
Parser<AnnotationBoundary>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTranscriptIndex()

public int getTranscriptIndex()

The index in the sequence of transcribed pieces of the conversation where the boundary is located. This index starts at zero.

int32 transcript_index = 1;

Returns
Type Description
int

The transcriptIndex.

getWordIndex()

public int getWordIndex()

The word index of this boundary with respect to the first word in the transcript piece. This index starts at zero.

int32 word_index = 3;

Returns
Type Description
int

The wordIndex.

hasWordIndex()

public boolean hasWordIndex()

The word index of this boundary with respect to the first word in the transcript piece. This index starts at zero.

int32 word_index = 3;

Returns
Type Description
boolean

Whether the wordIndex field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public AnnotationBoundary.Builder newBuilderForType()
Returns
Type Description
AnnotationBoundary.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AnnotationBoundary.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AnnotationBoundary.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public AnnotationBoundary.Builder toBuilder()
Returns
Type Description
AnnotationBoundary.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException