Package com.google.cloud.automl.v1beta1
Class ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder>
-
- com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder
-
- All Implemented Interfaces:
ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.RowOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
public static final class ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder> implements ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.RowOrBuilder
Output only. A row in the confusion matrix.
Protobuf typegoogle.cloud.automl.v1beta1.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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder>
-
clear
public ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder>
-
getDefaultInstanceForType
public ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder>
-
setField
public ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder>
-
clearField
public ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder>
-
clearOneof
public ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder>
-
setRepeatedField
public ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder>
-
addRepeatedField
public ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder>
-
mergeFrom
public ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder>
-
mergeFrom
public ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder mergeFrom(ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder>
-
mergeFrom
public ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ClassificationProto.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.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.display_name] field.
repeated int32 example_count = 1;
- Specified by:
getExampleCountList
in interfaceClassificationProto.ClassificationEvaluationMetrics.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.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.display_name] field.
repeated int32 example_count = 1;
- Specified by:
getExampleCountCount
in interfaceClassificationProto.ClassificationEvaluationMetrics.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.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.display_name] field.
repeated int32 example_count = 1;
- Specified by:
getExampleCount
in interfaceClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.RowOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The exampleCount at the given index.
-
setExampleCount
public ClassificationProto.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.v1beta1.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 ClassificationProto.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.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.display_name] field.
repeated int32 example_count = 1;
- Parameters:
value
- The exampleCount to add.- Returns:
- This builder for chaining.
-
addAllExampleCount
public ClassificationProto.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.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.display_name] field.
repeated int32 example_count = 1;
- Parameters:
values
- The exampleCount to add.- Returns:
- This builder for chaining.
-
clearExampleCount
public ClassificationProto.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.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.display_name] field.
repeated int32 example_count = 1;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder>
-
mergeUnknownFields
public final ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder>
-
-