Class AnnotationBoundary (2.24.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
TypeDescription
int

WORD_INDEX_FIELD_NUMBER

public static final int WORD_INDEX_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static AnnotationBoundary getDefaultInstance()
Returns
TypeDescription
AnnotationBoundary

getDescriptor()

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

newBuilder()

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

newBuilder(AnnotationBoundary prototype)

public static AnnotationBoundary.Builder newBuilder(AnnotationBoundary prototype)
Parameter
NameDescription
prototypeAnnotationBoundary
Returns
TypeDescription
AnnotationBoundary.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public AnnotationBoundary getDefaultInstanceForType()
Returns
TypeDescription
AnnotationBoundary

getDetailedBoundaryCase()

public AnnotationBoundary.DetailedBoundaryCase getDetailedBoundaryCase()
Returns
TypeDescription
AnnotationBoundary.DetailedBoundaryCase

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the wordIndex field is set.

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 AnnotationBoundary.Builder newBuilderForType()
Returns
TypeDescription
AnnotationBoundary.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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