public static final class TextExtractionPredictionResult.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TextExtractionPredictionResult.Builder> implements TextExtractionPredictionResultOrBuilder
Prediction output format for Text Extraction.Protobuf type
google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextExtractionPredictionResult| Modifier and Type | Method and Description |
|---|---|
TextExtractionPredictionResult.Builder |
addAllConfidences(Iterable<? extends Float> values)
The Model's confidences in correctness of the predicted IDs, higher
value means higher confidence.
|
TextExtractionPredictionResult.Builder |
addAllDisplayNames(Iterable<String> values)
The display names of the AnnotationSpecs that had been identified,
order matches the IDs.
|
TextExtractionPredictionResult.Builder |
addAllIds(Iterable<? extends Long> values)
The resource IDs of the AnnotationSpecs that had been identified,
ordered by the confidence score descendingly.
|
TextExtractionPredictionResult.Builder |
addAllTextSegmentEndOffsets(Iterable<? extends Long> values)
The end offsets, inclusive, of the text segment in which the
AnnotationSpec has been identified.
|
TextExtractionPredictionResult.Builder |
addAllTextSegmentStartOffsets(Iterable<? extends Long> values)
The start offsets, inclusive, of the text segment in which the
AnnotationSpec has been identified.
|
TextExtractionPredictionResult.Builder |
addConfidences(float value)
The Model's confidences in correctness of the predicted IDs, higher
value means higher confidence.
|
TextExtractionPredictionResult.Builder |
addDisplayNames(String value)
The display names of the AnnotationSpecs that had been identified,
order matches the IDs.
|
TextExtractionPredictionResult.Builder |
addDisplayNamesBytes(com.google.protobuf.ByteString value)
The display names of the AnnotationSpecs that had been identified,
order matches the IDs.
|
TextExtractionPredictionResult.Builder |
addIds(long value)
The resource IDs of the AnnotationSpecs that had been identified,
ordered by the confidence score descendingly.
|
TextExtractionPredictionResult.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TextExtractionPredictionResult.Builder |
addTextSegmentEndOffsets(long value)
The end offsets, inclusive, of the text segment in which the
AnnotationSpec has been identified.
|
TextExtractionPredictionResult.Builder |
addTextSegmentStartOffsets(long value)
The start offsets, inclusive, of the text segment in which the
AnnotationSpec has been identified.
|
TextExtractionPredictionResult |
build() |
TextExtractionPredictionResult |
buildPartial() |
TextExtractionPredictionResult.Builder |
clear() |
TextExtractionPredictionResult.Builder |
clearConfidences()
The Model's confidences in correctness of the predicted IDs, higher
value means higher confidence.
|
TextExtractionPredictionResult.Builder |
clearDisplayNames()
The display names of the AnnotationSpecs that had been identified,
order matches the IDs.
|
TextExtractionPredictionResult.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
TextExtractionPredictionResult.Builder |
clearIds()
The resource IDs of the AnnotationSpecs that had been identified,
ordered by the confidence score descendingly.
|
TextExtractionPredictionResult.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
TextExtractionPredictionResult.Builder |
clearTextSegmentEndOffsets()
The end offsets, inclusive, of the text segment in which the
AnnotationSpec has been identified.
|
TextExtractionPredictionResult.Builder |
clearTextSegmentStartOffsets()
The start offsets, inclusive, of the text segment in which the
AnnotationSpec has been identified.
|
TextExtractionPredictionResult.Builder |
clone() |
float |
getConfidences(int index)
The Model's confidences in correctness of the predicted IDs, higher
value means higher confidence.
|
int |
getConfidencesCount()
The Model's confidences in correctness of the predicted IDs, higher
value means higher confidence.
|
List<Float> |
getConfidencesList()
The Model's confidences in correctness of the predicted IDs, higher
value means higher confidence.
|
TextExtractionPredictionResult |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getDisplayNames(int index)
The display names of the AnnotationSpecs that had been identified,
order matches the IDs.
|
com.google.protobuf.ByteString |
getDisplayNamesBytes(int index)
The display names of the AnnotationSpecs that had been identified,
order matches the IDs.
|
int |
getDisplayNamesCount()
The display names of the AnnotationSpecs that had been identified,
order matches the IDs.
|
com.google.protobuf.ProtocolStringList |
getDisplayNamesList()
The display names of the AnnotationSpecs that had been identified,
order matches the IDs.
|
long |
getIds(int index)
The resource IDs of the AnnotationSpecs that had been identified,
ordered by the confidence score descendingly.
|
int |
getIdsCount()
The resource IDs of the AnnotationSpecs that had been identified,
ordered by the confidence score descendingly.
|
List<Long> |
getIdsList()
The resource IDs of the AnnotationSpecs that had been identified,
ordered by the confidence score descendingly.
|
long |
getTextSegmentEndOffsets(int index)
The end offsets, inclusive, of the text segment in which the
AnnotationSpec has been identified.
|
int |
getTextSegmentEndOffsetsCount()
The end offsets, inclusive, of the text segment in which the
AnnotationSpec has been identified.
|
List<Long> |
getTextSegmentEndOffsetsList()
The end offsets, inclusive, of the text segment in which the
AnnotationSpec has been identified.
|
long |
getTextSegmentStartOffsets(int index)
The start offsets, inclusive, of the text segment in which the
AnnotationSpec has been identified.
|
int |
getTextSegmentStartOffsetsCount()
The start offsets, inclusive, of the text segment in which the
AnnotationSpec has been identified.
|
List<Long> |
getTextSegmentStartOffsetsList()
The start offsets, inclusive, of the text segment in which the
AnnotationSpec has been identified.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
TextExtractionPredictionResult.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
TextExtractionPredictionResult.Builder |
mergeFrom(com.google.protobuf.Message other) |
TextExtractionPredictionResult.Builder |
mergeFrom(TextExtractionPredictionResult other) |
TextExtractionPredictionResult.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
TextExtractionPredictionResult.Builder |
setConfidences(int index,
float value)
The Model's confidences in correctness of the predicted IDs, higher
value means higher confidence.
|
TextExtractionPredictionResult.Builder |
setDisplayNames(int index,
String value)
The display names of the AnnotationSpecs that had been identified,
order matches the IDs.
|
TextExtractionPredictionResult.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TextExtractionPredictionResult.Builder |
setIds(int index,
long value)
The resource IDs of the AnnotationSpecs that had been identified,
ordered by the confidence score descendingly.
|
TextExtractionPredictionResult.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
TextExtractionPredictionResult.Builder |
setTextSegmentEndOffsets(int index,
long value)
The end offsets, inclusive, of the text segment in which the
AnnotationSpec has been identified.
|
TextExtractionPredictionResult.Builder |
setTextSegmentStartOffsets(int index,
long value)
The start offsets, inclusive, of the text segment in which the
AnnotationSpec has been identified.
|
TextExtractionPredictionResult.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<TextExtractionPredictionResult.Builder>public TextExtractionPredictionResult.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<TextExtractionPredictionResult.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<TextExtractionPredictionResult.Builder>public TextExtractionPredictionResult getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic TextExtractionPredictionResult build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic TextExtractionPredictionResult buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic TextExtractionPredictionResult.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<TextExtractionPredictionResult.Builder>public TextExtractionPredictionResult.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<TextExtractionPredictionResult.Builder>public TextExtractionPredictionResult.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<TextExtractionPredictionResult.Builder>public TextExtractionPredictionResult.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<TextExtractionPredictionResult.Builder>public TextExtractionPredictionResult.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TextExtractionPredictionResult.Builder>public TextExtractionPredictionResult.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TextExtractionPredictionResult.Builder>public TextExtractionPredictionResult.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TextExtractionPredictionResult.Builder>public TextExtractionPredictionResult.Builder mergeFrom(TextExtractionPredictionResult other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<TextExtractionPredictionResult.Builder>public TextExtractionPredictionResult.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TextExtractionPredictionResult.Builder>IOExceptionpublic List<Long> getIdsList()
The resource IDs of the AnnotationSpecs that had been identified, ordered by the confidence score descendingly.
repeated int64 ids = 1;getIdsList in interface TextExtractionPredictionResultOrBuilderpublic int getIdsCount()
The resource IDs of the AnnotationSpecs that had been identified, ordered by the confidence score descendingly.
repeated int64 ids = 1;getIdsCount in interface TextExtractionPredictionResultOrBuilderpublic long getIds(int index)
The resource IDs of the AnnotationSpecs that had been identified, ordered by the confidence score descendingly.
repeated int64 ids = 1;getIds in interface TextExtractionPredictionResultOrBuilderindex - The index of the element to return.public TextExtractionPredictionResult.Builder setIds(int index, long value)
The resource IDs of the AnnotationSpecs that had been identified, ordered by the confidence score descendingly.
repeated int64 ids = 1;index - The index to set the value at.value - The ids to set.public TextExtractionPredictionResult.Builder addIds(long value)
The resource IDs of the AnnotationSpecs that had been identified, ordered by the confidence score descendingly.
repeated int64 ids = 1;value - The ids to add.public TextExtractionPredictionResult.Builder addAllIds(Iterable<? extends Long> values)
The resource IDs of the AnnotationSpecs that had been identified, ordered by the confidence score descendingly.
repeated int64 ids = 1;values - The ids to add.public TextExtractionPredictionResult.Builder clearIds()
The resource IDs of the AnnotationSpecs that had been identified, ordered by the confidence score descendingly.
repeated int64 ids = 1;public com.google.protobuf.ProtocolStringList getDisplayNamesList()
The display names of the AnnotationSpecs that had been identified, order matches the IDs.
repeated string display_names = 2;getDisplayNamesList in interface TextExtractionPredictionResultOrBuilderpublic int getDisplayNamesCount()
The display names of the AnnotationSpecs that had been identified, order matches the IDs.
repeated string display_names = 2;getDisplayNamesCount in interface TextExtractionPredictionResultOrBuilderpublic String getDisplayNames(int index)
The display names of the AnnotationSpecs that had been identified, order matches the IDs.
repeated string display_names = 2;getDisplayNames in interface TextExtractionPredictionResultOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getDisplayNamesBytes(int index)
The display names of the AnnotationSpecs that had been identified, order matches the IDs.
repeated string display_names = 2;getDisplayNamesBytes in interface TextExtractionPredictionResultOrBuilderindex - The index of the value to return.public TextExtractionPredictionResult.Builder setDisplayNames(int index, String value)
The display names of the AnnotationSpecs that had been identified, order matches the IDs.
repeated string display_names = 2;index - The index to set the value at.value - The displayNames to set.public TextExtractionPredictionResult.Builder addDisplayNames(String value)
The display names of the AnnotationSpecs that had been identified, order matches the IDs.
repeated string display_names = 2;value - The displayNames to add.public TextExtractionPredictionResult.Builder addAllDisplayNames(Iterable<String> values)
The display names of the AnnotationSpecs that had been identified, order matches the IDs.
repeated string display_names = 2;values - The displayNames to add.public TextExtractionPredictionResult.Builder clearDisplayNames()
The display names of the AnnotationSpecs that had been identified, order matches the IDs.
repeated string display_names = 2;public TextExtractionPredictionResult.Builder addDisplayNamesBytes(com.google.protobuf.ByteString value)
The display names of the AnnotationSpecs that had been identified, order matches the IDs.
repeated string display_names = 2;value - The bytes of the displayNames to add.public List<Long> getTextSegmentStartOffsetsList()
The start offsets, inclusive, of the text segment in which the AnnotationSpec has been identified. Expressed as a zero-based number of characters as measured from the start of the text snippet.
repeated int64 text_segment_start_offsets = 3;getTextSegmentStartOffsetsList in interface TextExtractionPredictionResultOrBuilderpublic int getTextSegmentStartOffsetsCount()
The start offsets, inclusive, of the text segment in which the AnnotationSpec has been identified. Expressed as a zero-based number of characters as measured from the start of the text snippet.
repeated int64 text_segment_start_offsets = 3;getTextSegmentStartOffsetsCount in interface TextExtractionPredictionResultOrBuilderpublic long getTextSegmentStartOffsets(int index)
The start offsets, inclusive, of the text segment in which the AnnotationSpec has been identified. Expressed as a zero-based number of characters as measured from the start of the text snippet.
repeated int64 text_segment_start_offsets = 3;getTextSegmentStartOffsets in interface TextExtractionPredictionResultOrBuilderindex - The index of the element to return.public TextExtractionPredictionResult.Builder setTextSegmentStartOffsets(int index, long value)
The start offsets, inclusive, of the text segment in which the AnnotationSpec has been identified. Expressed as a zero-based number of characters as measured from the start of the text snippet.
repeated int64 text_segment_start_offsets = 3;index - The index to set the value at.value - The textSegmentStartOffsets to set.public TextExtractionPredictionResult.Builder addTextSegmentStartOffsets(long value)
The start offsets, inclusive, of the text segment in which the AnnotationSpec has been identified. Expressed as a zero-based number of characters as measured from the start of the text snippet.
repeated int64 text_segment_start_offsets = 3;value - The textSegmentStartOffsets to add.public TextExtractionPredictionResult.Builder addAllTextSegmentStartOffsets(Iterable<? extends Long> values)
The start offsets, inclusive, of the text segment in which the AnnotationSpec has been identified. Expressed as a zero-based number of characters as measured from the start of the text snippet.
repeated int64 text_segment_start_offsets = 3;values - The textSegmentStartOffsets to add.public TextExtractionPredictionResult.Builder clearTextSegmentStartOffsets()
The start offsets, inclusive, of the text segment in which the AnnotationSpec has been identified. Expressed as a zero-based number of characters as measured from the start of the text snippet.
repeated int64 text_segment_start_offsets = 3;public List<Long> getTextSegmentEndOffsetsList()
The end offsets, inclusive, of the text segment in which the AnnotationSpec has been identified. Expressed as a zero-based number of characters as measured from the start of the text snippet.
repeated int64 text_segment_end_offsets = 4;getTextSegmentEndOffsetsList in interface TextExtractionPredictionResultOrBuilderpublic int getTextSegmentEndOffsetsCount()
The end offsets, inclusive, of the text segment in which the AnnotationSpec has been identified. Expressed as a zero-based number of characters as measured from the start of the text snippet.
repeated int64 text_segment_end_offsets = 4;getTextSegmentEndOffsetsCount in interface TextExtractionPredictionResultOrBuilderpublic long getTextSegmentEndOffsets(int index)
The end offsets, inclusive, of the text segment in which the AnnotationSpec has been identified. Expressed as a zero-based number of characters as measured from the start of the text snippet.
repeated int64 text_segment_end_offsets = 4;getTextSegmentEndOffsets in interface TextExtractionPredictionResultOrBuilderindex - The index of the element to return.public TextExtractionPredictionResult.Builder setTextSegmentEndOffsets(int index, long value)
The end offsets, inclusive, of the text segment in which the AnnotationSpec has been identified. Expressed as a zero-based number of characters as measured from the start of the text snippet.
repeated int64 text_segment_end_offsets = 4;index - The index to set the value at.value - The textSegmentEndOffsets to set.public TextExtractionPredictionResult.Builder addTextSegmentEndOffsets(long value)
The end offsets, inclusive, of the text segment in which the AnnotationSpec has been identified. Expressed as a zero-based number of characters as measured from the start of the text snippet.
repeated int64 text_segment_end_offsets = 4;value - The textSegmentEndOffsets to add.public TextExtractionPredictionResult.Builder addAllTextSegmentEndOffsets(Iterable<? extends Long> values)
The end offsets, inclusive, of the text segment in which the AnnotationSpec has been identified. Expressed as a zero-based number of characters as measured from the start of the text snippet.
repeated int64 text_segment_end_offsets = 4;values - The textSegmentEndOffsets to add.public TextExtractionPredictionResult.Builder clearTextSegmentEndOffsets()
The end offsets, inclusive, of the text segment in which the AnnotationSpec has been identified. Expressed as a zero-based number of characters as measured from the start of the text snippet.
repeated int64 text_segment_end_offsets = 4;public List<Float> getConfidencesList()
The Model's confidences in correctness of the predicted IDs, higher value means higher confidence. Order matches the Ids.
repeated float confidences = 5;getConfidencesList in interface TextExtractionPredictionResultOrBuilderpublic int getConfidencesCount()
The Model's confidences in correctness of the predicted IDs, higher value means higher confidence. Order matches the Ids.
repeated float confidences = 5;getConfidencesCount in interface TextExtractionPredictionResultOrBuilderpublic float getConfidences(int index)
The Model's confidences in correctness of the predicted IDs, higher value means higher confidence. Order matches the Ids.
repeated float confidences = 5;getConfidences in interface TextExtractionPredictionResultOrBuilderindex - The index of the element to return.public TextExtractionPredictionResult.Builder setConfidences(int index, float value)
The Model's confidences in correctness of the predicted IDs, higher value means higher confidence. Order matches the Ids.
repeated float confidences = 5;index - The index to set the value at.value - The confidences to set.public TextExtractionPredictionResult.Builder addConfidences(float value)
The Model's confidences in correctness of the predicted IDs, higher value means higher confidence. Order matches the Ids.
repeated float confidences = 5;value - The confidences to add.public TextExtractionPredictionResult.Builder addAllConfidences(Iterable<? extends Float> values)
The Model's confidences in correctness of the predicted IDs, higher value means higher confidence. Order matches the Ids.
repeated float confidences = 5;values - The confidences to add.public TextExtractionPredictionResult.Builder clearConfidences()
The Model's confidences in correctness of the predicted IDs, higher value means higher confidence. Order matches the Ids.
repeated float confidences = 5;public final TextExtractionPredictionResult.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TextExtractionPredictionResult.Builder>public final TextExtractionPredictionResult.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TextExtractionPredictionResult.Builder>Copyright © 2024 Google LLC. All rights reserved.