- 3.55.0 (latest)
- 3.54.0
- 3.53.0
- 3.52.0
- 3.50.0
- 3.49.0
- 3.48.0
- 3.47.0
- 3.46.0
- 3.45.0
- 3.44.0
- 3.43.0
- 3.42.0
- 3.41.0
- 3.40.0
- 3.38.0
- 3.37.0
- 3.36.0
- 3.35.0
- 3.34.0
- 3.33.0
- 3.32.0
- 3.31.0
- 3.30.0
- 3.29.0
- 3.28.0
- 3.25.0
- 3.24.0
- 3.23.0
- 3.22.0
- 3.21.0
- 3.20.0
- 3.19.0
- 3.18.0
- 3.17.0
- 3.16.0
- 3.15.0
- 3.14.0
- 3.13.0
- 3.12.0
- 3.11.0
- 3.10.0
- 3.9.0
- 3.8.0
- 3.7.0
- 3.6.0
- 3.5.0
- 3.4.2
- 3.3.0
- 3.2.0
- 3.0.0
- 2.9.8
- 2.8.9
- 2.7.4
- 2.5.3
- 2.4.0
public static final class TextExtractionPredictionResult.Builder extends GeneratedMessageV3.Builder<TextExtractionPredictionResult.Builder> implements TextExtractionPredictionResultOrBuilder
Prediction output format for Text Extraction.
Protobuf type
google.cloud.aiplatform.v1.schema.predict.prediction.TextExtractionPredictionResult
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > TextExtractionPredictionResult.BuilderImplements
TextExtractionPredictionResultOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addAllConfidences(Iterable<? extends Float> values)
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;
Name | Description |
values | Iterable<? extends java.lang.Float> The confidences to add. |
Type | Description |
TextExtractionPredictionResult.Builder | This builder for chaining. |
addAllDisplayNames(Iterable<String> values)
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;
Name | Description |
values | Iterable<String> The displayNames to add. |
Type | Description |
TextExtractionPredictionResult.Builder | This builder for chaining. |
addAllIds(Iterable<? extends Long> values)
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;
Name | Description |
values | Iterable<? extends java.lang.Long> The ids to add. |
Type | Description |
TextExtractionPredictionResult.Builder | This builder for chaining. |
addAllTextSegmentEndOffsets(Iterable<? extends Long> values)
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;
Name | Description |
values | Iterable<? extends java.lang.Long> The textSegmentEndOffsets to add. |
Type | Description |
TextExtractionPredictionResult.Builder | This builder for chaining. |
addAllTextSegmentStartOffsets(Iterable<? extends Long> values)
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;
Name | Description |
values | Iterable<? extends java.lang.Long> The textSegmentStartOffsets to add. |
Type | Description |
TextExtractionPredictionResult.Builder | This builder for chaining. |
addConfidences(float value)
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;
Name | Description |
value | float The confidences to add. |
Type | Description |
TextExtractionPredictionResult.Builder | This builder for chaining. |
addDisplayNames(String value)
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;
Name | Description |
value | String The displayNames to add. |
Type | Description |
TextExtractionPredictionResult.Builder | This builder for chaining. |
addDisplayNamesBytes(ByteString value)
public TextExtractionPredictionResult.Builder addDisplayNamesBytes(ByteString value)
The display names of the AnnotationSpecs that had been identified, order matches the IDs.
repeated string display_names = 2;
Name | Description |
value | ByteString The bytes of the displayNames to add. |
Type | Description |
TextExtractionPredictionResult.Builder | This builder for chaining. |
addIds(long value)
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;
Name | Description |
value | long The ids to add. |
Type | Description |
TextExtractionPredictionResult.Builder | This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TextExtractionPredictionResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
TextExtractionPredictionResult.Builder |
addTextSegmentEndOffsets(long value)
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;
Name | Description |
value | long The textSegmentEndOffsets to add. |
Type | Description |
TextExtractionPredictionResult.Builder | This builder for chaining. |
addTextSegmentStartOffsets(long value)
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;
Name | Description |
value | long The textSegmentStartOffsets to add. |
Type | Description |
TextExtractionPredictionResult.Builder | This builder for chaining. |
build()
public TextExtractionPredictionResult build()
Type | Description |
TextExtractionPredictionResult |
buildPartial()
public TextExtractionPredictionResult buildPartial()
Type | Description |
TextExtractionPredictionResult |
clear()
public TextExtractionPredictionResult.Builder clear()
Type | Description |
TextExtractionPredictionResult.Builder |
clearConfidences()
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;
Type | Description |
TextExtractionPredictionResult.Builder | This builder for chaining. |
clearDisplayNames()
public TextExtractionPredictionResult.Builder clearDisplayNames()
The display names of the AnnotationSpecs that had been identified, order matches the IDs.
repeated string display_names = 2;
Type | Description |
TextExtractionPredictionResult.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public TextExtractionPredictionResult.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
TextExtractionPredictionResult.Builder |
clearIds()
public TextExtractionPredictionResult.Builder clearIds()
The resource IDs of the AnnotationSpecs that had been identified, ordered by the confidence score descendingly.
repeated int64 ids = 1;
Type | Description |
TextExtractionPredictionResult.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public TextExtractionPredictionResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
TextExtractionPredictionResult.Builder |
clearTextSegmentEndOffsets()
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;
Type | Description |
TextExtractionPredictionResult.Builder | This builder for chaining. |
clearTextSegmentStartOffsets()
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;
Type | Description |
TextExtractionPredictionResult.Builder | This builder for chaining. |
clone()
public TextExtractionPredictionResult.Builder clone()
Type | Description |
TextExtractionPredictionResult.Builder |
getConfidences(int index)
public 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;
Name | Description |
index | int The index of the element to return. |
Type | Description |
float | The confidences at the given index. |
getConfidencesCount()
public 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;
Type | Description |
int | The count of confidences. |
getConfidencesList()
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;
Type | Description |
List<Float> | A list containing the confidences. |
getDefaultInstanceForType()
public TextExtractionPredictionResult getDefaultInstanceForType()
Type | Description |
TextExtractionPredictionResult |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getDisplayNames(int index)
public String getDisplayNames(int index)
The display names of the AnnotationSpecs that had been identified, order matches the IDs.
repeated string display_names = 2;
Name | Description |
index | int The index of the element to return. |
Type | Description |
String | The displayNames at the given index. |
getDisplayNamesBytes(int index)
public ByteString getDisplayNamesBytes(int index)
The display names of the AnnotationSpecs that had been identified, order matches the IDs.
repeated string display_names = 2;
Name | Description |
index | int The index of the value to return. |
Type | Description |
ByteString | The bytes of the displayNames at the given index. |
getDisplayNamesCount()
public int getDisplayNamesCount()
The display names of the AnnotationSpecs that had been identified, order matches the IDs.
repeated string display_names = 2;
Type | Description |
int | The count of displayNames. |
getDisplayNamesList()
public ProtocolStringList getDisplayNamesList()
The display names of the AnnotationSpecs that had been identified, order matches the IDs.
repeated string display_names = 2;
Type | Description |
ProtocolStringList | A list containing the displayNames. |
getIds(int index)
public long getIds(int index)
The resource IDs of the AnnotationSpecs that had been identified, ordered by the confidence score descendingly.
repeated int64 ids = 1;
Name | Description |
index | int The index of the element to return. |
Type | Description |
long | The ids at the given index. |
getIdsCount()
public int getIdsCount()
The resource IDs of the AnnotationSpecs that had been identified, ordered by the confidence score descendingly.
repeated int64 ids = 1;
Type | Description |
int | The count of ids. |
getIdsList()
public List<Long> getIdsList()
The resource IDs of the AnnotationSpecs that had been identified, ordered by the confidence score descendingly.
repeated int64 ids = 1;
Type | Description |
List<Long> | A list containing the ids. |
getTextSegmentEndOffsets(int index)
public 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;
Name | Description |
index | int The index of the element to return. |
Type | Description |
long | The textSegmentEndOffsets at the given index. |
getTextSegmentEndOffsetsCount()
public 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;
Type | Description |
int | The count of textSegmentEndOffsets. |
getTextSegmentEndOffsetsList()
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;
Type | Description |
List<Long> | A list containing the textSegmentEndOffsets. |
getTextSegmentStartOffsets(int index)
public 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;
Name | Description |
index | int The index of the element to return. |
Type | Description |
long | The textSegmentStartOffsets at the given index. |
getTextSegmentStartOffsetsCount()
public 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;
Type | Description |
int | The count of textSegmentStartOffsets. |
getTextSegmentStartOffsetsList()
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;
Type | Description |
List<Long> | A list containing the textSegmentStartOffsets. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(TextExtractionPredictionResult other)
public TextExtractionPredictionResult.Builder mergeFrom(TextExtractionPredictionResult other)
Name | Description |
other | TextExtractionPredictionResult |
Type | Description |
TextExtractionPredictionResult.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public TextExtractionPredictionResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
TextExtractionPredictionResult.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public TextExtractionPredictionResult.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
TextExtractionPredictionResult.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TextExtractionPredictionResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
TextExtractionPredictionResult.Builder |
setConfidences(int index, float value)
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;
Name | Description |
index | int The index to set the value at. |
value | float The confidences to set. |
Type | Description |
TextExtractionPredictionResult.Builder | This builder for chaining. |
setDisplayNames(int index, String value)
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;
Name | Description |
index | int The index to set the value at. |
value | String The displayNames to set. |
Type | Description |
TextExtractionPredictionResult.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public TextExtractionPredictionResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
TextExtractionPredictionResult.Builder |
setIds(int index, long value)
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;
Name | Description |
index | int The index to set the value at. |
value | long The ids to set. |
Type | Description |
TextExtractionPredictionResult.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public TextExtractionPredictionResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
TextExtractionPredictionResult.Builder |
setTextSegmentEndOffsets(int index, long value)
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;
Name | Description |
index | int The index to set the value at. |
value | long The textSegmentEndOffsets to set. |
Type | Description |
TextExtractionPredictionResult.Builder | This builder for chaining. |
setTextSegmentStartOffsets(int index, long value)
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;
Name | Description |
index | int The index to set the value at. |
value | long The textSegmentStartOffsets to set. |
Type | Description |
TextExtractionPredictionResult.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final TextExtractionPredictionResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
TextExtractionPredictionResult.Builder |