Package com.google.cloud.documentai.v1
Class Evaluation.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Evaluation.Builder>
com.google.cloud.documentai.v1.Evaluation.Builder
- All Implemented Interfaces:
EvaluationOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Evaluation
public static final class Evaluation.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Evaluation.Builder>
implements EvaluationOrBuilder
An evaluation of a ProcessorVersion's performance.Protobuf type
google.cloud.documentai.v1.Evaluation-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Metrics for all the entities in aggregate.The time that the evaluation was created.Counters for the documents used in the evaluation.The KMS key name used for encryption.The KMS key version with which data is encrypted.The resource name of the evaluation.booleanMetrics across confidence levels, for different entities.Metrics for all the entities in aggregate.Metrics for all the entities in aggregate.Metrics for all the entities in aggregate.com.google.protobuf.TimestampThe time that the evaluation was created.com.google.protobuf.Timestamp.BuilderThe time that the evaluation was created.com.google.protobuf.TimestampOrBuilderThe time that the evaluation was created.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorCounters for the documents used in the evaluation.Counters for the documents used in the evaluation.Counters for the documents used in the evaluation.Deprecated.intMetrics across confidence levels, for different entities.Metrics across confidence levels, for different entities.getEntityMetricsOrDefault(String key, Evaluation.MultiConfidenceMetrics defaultValue) Metrics across confidence levels, for different entities.Metrics across confidence levels, for different entities.The KMS key name used for encryption.com.google.protobuf.ByteStringThe KMS key name used for encryption.The KMS key version with which data is encrypted.com.google.protobuf.ByteStringThe KMS key version with which data is encrypted.Deprecated.getName()The resource name of the evaluation.com.google.protobuf.ByteStringThe resource name of the evaluation.booleanMetrics for all the entities in aggregate.booleanThe time that the evaluation was created.booleanCounters for the documents used in the evaluation.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanMetrics for all the entities in aggregate.mergeCreateTime(com.google.protobuf.Timestamp value) The time that the evaluation was created.Counters for the documents used in the evaluation.mergeFrom(Evaluation other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Metrics across confidence levels, for different entities.putEntityMetrics(String key, Evaluation.MultiConfidenceMetrics value) Metrics across confidence levels, for different entities.Metrics across confidence levels, for different entities.Metrics across confidence levels, for different entities.Metrics for all the entities in aggregate.setAllEntitiesMetrics(Evaluation.MultiConfidenceMetrics.Builder builderForValue) Metrics for all the entities in aggregate.setCreateTime(com.google.protobuf.Timestamp value) The time that the evaluation was created.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) The time that the evaluation was created.Counters for the documents used in the evaluation.setDocumentCounters(Evaluation.Counters.Builder builderForValue) Counters for the documents used in the evaluation.setKmsKeyName(String value) The KMS key name used for encryption.setKmsKeyNameBytes(com.google.protobuf.ByteString value) The KMS key name used for encryption.setKmsKeyVersionName(String value) The KMS key version with which data is encrypted.setKmsKeyVersionNameBytes(com.google.protobuf.ByteString value) The KMS key version with which data is encrypted.The resource name of the evaluation.setNameBytes(com.google.protobuf.ByteString value) The resource name of the evaluation.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<Evaluation.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<Evaluation.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Evaluation.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Evaluation.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.GeneratedMessage.Builder<Evaluation.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Evaluation.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Evaluation.Builder>
-
mergeFrom
public Evaluation.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<Evaluation.Builder>- Throws:
IOException
-
getName
The resource name of the evaluation. Format: `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}/evaluations/{evaluation}`string name = 1;- Specified by:
getNamein interfaceEvaluationOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()The resource name of the evaluation. Format: `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}/evaluations/{evaluation}`string name = 1;- Specified by:
getNameBytesin interfaceEvaluationOrBuilder- Returns:
- The bytes for name.
-
setName
The resource name of the evaluation. Format: `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}/evaluations/{evaluation}`string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
The resource name of the evaluation. Format: `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}/evaluations/{evaluation}`string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
The resource name of the evaluation. Format: `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}/evaluations/{evaluation}`string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasCreateTime
public boolean hasCreateTime()The time that the evaluation was created.
.google.protobuf.Timestamp create_time = 2;- Specified by:
hasCreateTimein interfaceEvaluationOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()The time that the evaluation was created.
.google.protobuf.Timestamp create_time = 2;- Specified by:
getCreateTimein interfaceEvaluationOrBuilder- Returns:
- The createTime.
-
setCreateTime
The time that the evaluation was created.
.google.protobuf.Timestamp create_time = 2; -
setCreateTime
The time that the evaluation was created.
.google.protobuf.Timestamp create_time = 2; -
mergeCreateTime
The time that the evaluation was created.
.google.protobuf.Timestamp create_time = 2; -
clearCreateTime
The time that the evaluation was created.
.google.protobuf.Timestamp create_time = 2; -
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()The time that the evaluation was created.
.google.protobuf.Timestamp create_time = 2; -
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()The time that the evaluation was created.
.google.protobuf.Timestamp create_time = 2;- Specified by:
getCreateTimeOrBuilderin interfaceEvaluationOrBuilder
-
hasDocumentCounters
public boolean hasDocumentCounters()Counters for the documents used in the evaluation.
.google.cloud.documentai.v1.Evaluation.Counters document_counters = 5;- Specified by:
hasDocumentCountersin interfaceEvaluationOrBuilder- Returns:
- Whether the documentCounters field is set.
-
getDocumentCounters
Counters for the documents used in the evaluation.
.google.cloud.documentai.v1.Evaluation.Counters document_counters = 5;- Specified by:
getDocumentCountersin interfaceEvaluationOrBuilder- Returns:
- The documentCounters.
-
setDocumentCounters
Counters for the documents used in the evaluation.
.google.cloud.documentai.v1.Evaluation.Counters document_counters = 5; -
setDocumentCounters
Counters for the documents used in the evaluation.
.google.cloud.documentai.v1.Evaluation.Counters document_counters = 5; -
mergeDocumentCounters
Counters for the documents used in the evaluation.
.google.cloud.documentai.v1.Evaluation.Counters document_counters = 5; -
clearDocumentCounters
Counters for the documents used in the evaluation.
.google.cloud.documentai.v1.Evaluation.Counters document_counters = 5; -
getDocumentCountersBuilder
Counters for the documents used in the evaluation.
.google.cloud.documentai.v1.Evaluation.Counters document_counters = 5; -
getDocumentCountersOrBuilder
Counters for the documents used in the evaluation.
.google.cloud.documentai.v1.Evaluation.Counters document_counters = 5;- Specified by:
getDocumentCountersOrBuilderin interfaceEvaluationOrBuilder
-
hasAllEntitiesMetrics
public boolean hasAllEntitiesMetrics()Metrics for all the entities in aggregate.
.google.cloud.documentai.v1.Evaluation.MultiConfidenceMetrics all_entities_metrics = 3;- Specified by:
hasAllEntitiesMetricsin interfaceEvaluationOrBuilder- Returns:
- Whether the allEntitiesMetrics field is set.
-
getAllEntitiesMetrics
Metrics for all the entities in aggregate.
.google.cloud.documentai.v1.Evaluation.MultiConfidenceMetrics all_entities_metrics = 3;- Specified by:
getAllEntitiesMetricsin interfaceEvaluationOrBuilder- Returns:
- The allEntitiesMetrics.
-
setAllEntitiesMetrics
Metrics for all the entities in aggregate.
.google.cloud.documentai.v1.Evaluation.MultiConfidenceMetrics all_entities_metrics = 3; -
setAllEntitiesMetrics
public Evaluation.Builder setAllEntitiesMetrics(Evaluation.MultiConfidenceMetrics.Builder builderForValue) Metrics for all the entities in aggregate.
.google.cloud.documentai.v1.Evaluation.MultiConfidenceMetrics all_entities_metrics = 3; -
mergeAllEntitiesMetrics
Metrics for all the entities in aggregate.
.google.cloud.documentai.v1.Evaluation.MultiConfidenceMetrics all_entities_metrics = 3; -
clearAllEntitiesMetrics
Metrics for all the entities in aggregate.
.google.cloud.documentai.v1.Evaluation.MultiConfidenceMetrics all_entities_metrics = 3; -
getAllEntitiesMetricsBuilder
Metrics for all the entities in aggregate.
.google.cloud.documentai.v1.Evaluation.MultiConfidenceMetrics all_entities_metrics = 3; -
getAllEntitiesMetricsOrBuilder
Metrics for all the entities in aggregate.
.google.cloud.documentai.v1.Evaluation.MultiConfidenceMetrics all_entities_metrics = 3;- Specified by:
getAllEntitiesMetricsOrBuilderin interfaceEvaluationOrBuilder
-
getEntityMetricsCount
public int getEntityMetricsCount()Description copied from interface:EvaluationOrBuilderMetrics across confidence levels, for different entities.
map<string, .google.cloud.documentai.v1.Evaluation.MultiConfidenceMetrics> entity_metrics = 4;- Specified by:
getEntityMetricsCountin interfaceEvaluationOrBuilder
-
containsEntityMetrics
Metrics across confidence levels, for different entities.
map<string, .google.cloud.documentai.v1.Evaluation.MultiConfidenceMetrics> entity_metrics = 4;- Specified by:
containsEntityMetricsin interfaceEvaluationOrBuilder
-
getEntityMetrics
Deprecated.UsegetEntityMetricsMap()instead.- Specified by:
getEntityMetricsin interfaceEvaluationOrBuilder
-
getEntityMetricsMap
Metrics across confidence levels, for different entities.
map<string, .google.cloud.documentai.v1.Evaluation.MultiConfidenceMetrics> entity_metrics = 4;- Specified by:
getEntityMetricsMapin interfaceEvaluationOrBuilder
-
getEntityMetricsOrDefault
public Evaluation.MultiConfidenceMetrics getEntityMetricsOrDefault(String key, Evaluation.MultiConfidenceMetrics defaultValue) Metrics across confidence levels, for different entities.
map<string, .google.cloud.documentai.v1.Evaluation.MultiConfidenceMetrics> entity_metrics = 4;- Specified by:
getEntityMetricsOrDefaultin interfaceEvaluationOrBuilder
-
getEntityMetricsOrThrow
Metrics across confidence levels, for different entities.
map<string, .google.cloud.documentai.v1.Evaluation.MultiConfidenceMetrics> entity_metrics = 4;- Specified by:
getEntityMetricsOrThrowin interfaceEvaluationOrBuilder
-
clearEntityMetrics
-
removeEntityMetrics
Metrics across confidence levels, for different entities.
map<string, .google.cloud.documentai.v1.Evaluation.MultiConfidenceMetrics> entity_metrics = 4; -
getMutableEntityMetrics
Deprecated.Use alternate mutation accessors instead. -
putEntityMetrics
Metrics across confidence levels, for different entities.
map<string, .google.cloud.documentai.v1.Evaluation.MultiConfidenceMetrics> entity_metrics = 4; -
putAllEntityMetrics
Metrics across confidence levels, for different entities.
map<string, .google.cloud.documentai.v1.Evaluation.MultiConfidenceMetrics> entity_metrics = 4; -
putEntityMetricsBuilderIfAbsent
Metrics across confidence levels, for different entities.
map<string, .google.cloud.documentai.v1.Evaluation.MultiConfidenceMetrics> entity_metrics = 4; -
getKmsKeyName
The KMS key name used for encryption.
string kms_key_name = 6;- Specified by:
getKmsKeyNamein interfaceEvaluationOrBuilder- Returns:
- The kmsKeyName.
-
getKmsKeyNameBytes
public com.google.protobuf.ByteString getKmsKeyNameBytes()The KMS key name used for encryption.
string kms_key_name = 6;- Specified by:
getKmsKeyNameBytesin interfaceEvaluationOrBuilder- Returns:
- The bytes for kmsKeyName.
-
setKmsKeyName
The KMS key name used for encryption.
string kms_key_name = 6;- Parameters:
value- The kmsKeyName to set.- Returns:
- This builder for chaining.
-
clearKmsKeyName
The KMS key name used for encryption.
string kms_key_name = 6;- Returns:
- This builder for chaining.
-
setKmsKeyNameBytes
The KMS key name used for encryption.
string kms_key_name = 6;- Parameters:
value- The bytes for kmsKeyName to set.- Returns:
- This builder for chaining.
-
getKmsKeyVersionName
The KMS key version with which data is encrypted.
string kms_key_version_name = 7;- Specified by:
getKmsKeyVersionNamein interfaceEvaluationOrBuilder- Returns:
- The kmsKeyVersionName.
-
getKmsKeyVersionNameBytes
public com.google.protobuf.ByteString getKmsKeyVersionNameBytes()The KMS key version with which data is encrypted.
string kms_key_version_name = 7;- Specified by:
getKmsKeyVersionNameBytesin interfaceEvaluationOrBuilder- Returns:
- The bytes for kmsKeyVersionName.
-
setKmsKeyVersionName
The KMS key version with which data is encrypted.
string kms_key_version_name = 7;- Parameters:
value- The kmsKeyVersionName to set.- Returns:
- This builder for chaining.
-
clearKmsKeyVersionName
The KMS key version with which data is encrypted.
string kms_key_version_name = 7;- Returns:
- This builder for chaining.
-
setKmsKeyVersionNameBytes
The KMS key version with which data is encrypted.
string kms_key_version_name = 7;- Parameters:
value- The bytes for kmsKeyVersionName to set.- Returns:
- This builder for chaining.
-