Package com.google.cloud.automl.v1
Class ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder>
-
- com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder
-
- All Implemented Interfaces:
ClassificationEvaluationMetrics.ConfusionMatrix.RowOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ClassificationEvaluationMetrics.ConfusionMatrix.Row
public static final class ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder> implements ClassificationEvaluationMetrics.ConfusionMatrix.RowOrBuilder
Output only. A row in the confusion matrix.
Protobuf typegoogle.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row
-
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder>
-
clear
public ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder>
-
getDefaultInstanceForType
public ClassificationEvaluationMetrics.ConfusionMatrix.Row getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ClassificationEvaluationMetrics.ConfusionMatrix.Row build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ClassificationEvaluationMetrics.ConfusionMatrix.Row buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder>
-
setField
public ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder>
-
clearField
public ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder>
-
clearOneof
public ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder>
-
setRepeatedField
public ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder>
-
addRepeatedField
public ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder>
-
mergeFrom
public ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder>
-
mergeFrom
public ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder mergeFrom(ClassificationEvaluationMetrics.ConfusionMatrix.Row other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder>
-
mergeFrom
public ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder>- Throws:
IOException
-
getExampleCountList
public List<Integer> getExampleCountList()
Output only. Value of the specific cell in the confusion matrix. The number of values each row has (i.e. the length of the row) is equal to the length of the `annotation_spec_id` field or, if that one is not populated, length of the [display_name][google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.display_name] field.
repeated int32 example_count = 1;- Specified by:
getExampleCountListin interfaceClassificationEvaluationMetrics.ConfusionMatrix.RowOrBuilder- Returns:
- A list containing the exampleCount.
-
getExampleCountCount
public int getExampleCountCount()
Output only. Value of the specific cell in the confusion matrix. The number of values each row has (i.e. the length of the row) is equal to the length of the `annotation_spec_id` field or, if that one is not populated, length of the [display_name][google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.display_name] field.
repeated int32 example_count = 1;- Specified by:
getExampleCountCountin interfaceClassificationEvaluationMetrics.ConfusionMatrix.RowOrBuilder- Returns:
- The count of exampleCount.
-
getExampleCount
public int getExampleCount(int index)
Output only. Value of the specific cell in the confusion matrix. The number of values each row has (i.e. the length of the row) is equal to the length of the `annotation_spec_id` field or, if that one is not populated, length of the [display_name][google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.display_name] field.
repeated int32 example_count = 1;- Specified by:
getExampleCountin interfaceClassificationEvaluationMetrics.ConfusionMatrix.RowOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The exampleCount at the given index.
-
setExampleCount
public ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder setExampleCount(int index, int value)
Output only. Value of the specific cell in the confusion matrix. The number of values each row has (i.e. the length of the row) is equal to the length of the `annotation_spec_id` field or, if that one is not populated, length of the [display_name][google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.display_name] field.
repeated int32 example_count = 1;- Parameters:
index- The index to set the value at.value- The exampleCount to set.- Returns:
- This builder for chaining.
-
addExampleCount
public ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder addExampleCount(int value)
Output only. Value of the specific cell in the confusion matrix. The number of values each row has (i.e. the length of the row) is equal to the length of the `annotation_spec_id` field or, if that one is not populated, length of the [display_name][google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.display_name] field.
repeated int32 example_count = 1;- Parameters:
value- The exampleCount to add.- Returns:
- This builder for chaining.
-
addAllExampleCount
public ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder addAllExampleCount(Iterable<? extends Integer> values)
Output only. Value of the specific cell in the confusion matrix. The number of values each row has (i.e. the length of the row) is equal to the length of the `annotation_spec_id` field or, if that one is not populated, length of the [display_name][google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.display_name] field.
repeated int32 example_count = 1;- Parameters:
values- The exampleCount to add.- Returns:
- This builder for chaining.
-
clearExampleCount
public ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder clearExampleCount()
Output only. Value of the specific cell in the confusion matrix. The number of values each row has (i.e. the length of the row) is equal to the length of the `annotation_spec_id` field or, if that one is not populated, length of the [display_name][google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.display_name] field.
repeated int32 example_count = 1;- Returns:
- This builder for chaining.
-
setUnknownFields
public final ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder>
-
mergeUnknownFields
public final ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder>
-
-