Package com.google.cloud.aiplatform.v1
Class ModelEvaluationSlice.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ModelEvaluationSlice.Builder>
com.google.cloud.aiplatform.v1.ModelEvaluationSlice.Builder
- All Implemented Interfaces:
ModelEvaluationSliceOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ModelEvaluationSlice
public static final class ModelEvaluationSlice.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ModelEvaluationSlice.Builder>
implements ModelEvaluationSliceOrBuilder
A collection of metrics calculated by comparing Model's predictions on a slice of the test data against ground truth annotations.Protobuf type
google.cloud.aiplatform.v1.ModelEvaluationSlice-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.Output only.Output only.Output only.Output only.Output only.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.ValueOutput only.com.google.protobuf.Value.BuilderOutput only.com.google.protobuf.ValueOrBuilderOutput only.Output only.com.google.protobuf.ByteStringOutput only.Output only.Output only.Output only.getName()Output only.com.google.protobuf.ByteStringOutput only.getSlice()Output only.Output only.Output only.booleanOutput only.booleanOutput only.booleanOutput only.booleanhasSlice()Output only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeCreateTime(com.google.protobuf.Timestamp value) Output only.mergeFrom(ModelEvaluationSlice other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeMetrics(com.google.protobuf.Value value) Output only.Output only.Output only.setCreateTime(com.google.protobuf.Timestamp value) Output only.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setMetrics(com.google.protobuf.Value value) Output only.setMetrics(com.google.protobuf.Value.Builder builderForValue) Output only.setMetricsSchemaUri(String value) Output only.setMetricsSchemaUriBytes(com.google.protobuf.ByteString value) Output only.Output only.setModelExplanation(ModelExplanation.Builder builderForValue) Output only.Output only.setNameBytes(com.google.protobuf.ByteString value) Output only.Output only.setSlice(ModelEvaluationSlice.Slice.Builder builderForValue) Output only.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, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, 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() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ModelEvaluationSlice.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<ModelEvaluationSlice.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<ModelEvaluationSlice.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<ModelEvaluationSlice.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ModelEvaluationSlice.Builder>
-
mergeFrom
public ModelEvaluationSlice.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<ModelEvaluationSlice.Builder>- Throws:
IOException
-
getName
Output only. The resource name of the ModelEvaluationSlice.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNamein interfaceModelEvaluationSliceOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Output only. The resource name of the ModelEvaluationSlice.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNameBytesin interfaceModelEvaluationSliceOrBuilder- Returns:
- The bytes for name.
-
setName
Output only. The resource name of the ModelEvaluationSlice.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Output only. The resource name of the ModelEvaluationSlice.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setNameBytes
Output only. The resource name of the ModelEvaluationSlice.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasSlice
public boolean hasSlice()Output only. The slice of the test data that is used to evaluate the Model.
.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice slice = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasSlicein interfaceModelEvaluationSliceOrBuilder- Returns:
- Whether the slice field is set.
-
getSlice
Output only. The slice of the test data that is used to evaluate the Model.
.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice slice = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSlicein interfaceModelEvaluationSliceOrBuilder- Returns:
- The slice.
-
setSlice
Output only. The slice of the test data that is used to evaluate the Model.
.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice slice = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setSlice
Output only. The slice of the test data that is used to evaluate the Model.
.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice slice = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeSlice
Output only. The slice of the test data that is used to evaluate the Model.
.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice slice = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearSlice
Output only. The slice of the test data that is used to evaluate the Model.
.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice slice = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getSliceBuilder
Output only. The slice of the test data that is used to evaluate the Model.
.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice slice = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getSliceOrBuilder
Output only. The slice of the test data that is used to evaluate the Model.
.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice slice = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSliceOrBuilderin interfaceModelEvaluationSliceOrBuilder
-
getMetricsSchemaUri
Output only. Points to a YAML file stored on Google Cloud Storage describing the [metrics][google.cloud.aiplatform.v1.ModelEvaluationSlice.metrics] of this ModelEvaluationSlice. The schema is defined as an OpenAPI 3.0.2 [Schema Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
string metrics_schema_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getMetricsSchemaUriin interfaceModelEvaluationSliceOrBuilder- Returns:
- The metricsSchemaUri.
-
getMetricsSchemaUriBytes
public com.google.protobuf.ByteString getMetricsSchemaUriBytes()Output only. Points to a YAML file stored on Google Cloud Storage describing the [metrics][google.cloud.aiplatform.v1.ModelEvaluationSlice.metrics] of this ModelEvaluationSlice. The schema is defined as an OpenAPI 3.0.2 [Schema Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
string metrics_schema_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getMetricsSchemaUriBytesin interfaceModelEvaluationSliceOrBuilder- Returns:
- The bytes for metricsSchemaUri.
-
setMetricsSchemaUri
Output only. Points to a YAML file stored on Google Cloud Storage describing the [metrics][google.cloud.aiplatform.v1.ModelEvaluationSlice.metrics] of this ModelEvaluationSlice. The schema is defined as an OpenAPI 3.0.2 [Schema Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
string metrics_schema_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The metricsSchemaUri to set.- Returns:
- This builder for chaining.
-
clearMetricsSchemaUri
Output only. Points to a YAML file stored on Google Cloud Storage describing the [metrics][google.cloud.aiplatform.v1.ModelEvaluationSlice.metrics] of this ModelEvaluationSlice. The schema is defined as an OpenAPI 3.0.2 [Schema Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
string metrics_schema_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setMetricsSchemaUriBytes
Output only. Points to a YAML file stored on Google Cloud Storage describing the [metrics][google.cloud.aiplatform.v1.ModelEvaluationSlice.metrics] of this ModelEvaluationSlice. The schema is defined as an OpenAPI 3.0.2 [Schema Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
string metrics_schema_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for metricsSchemaUri to set.- Returns:
- This builder for chaining.
-
hasMetrics
public boolean hasMetrics()Output only. Sliced evaluation metrics of the Model. The schema of the metrics is stored in [metrics_schema_uri][google.cloud.aiplatform.v1.ModelEvaluationSlice.metrics_schema_uri]
.google.protobuf.Value metrics = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasMetricsin interfaceModelEvaluationSliceOrBuilder- Returns:
- Whether the metrics field is set.
-
getMetrics
public com.google.protobuf.Value getMetrics()Output only. Sliced evaluation metrics of the Model. The schema of the metrics is stored in [metrics_schema_uri][google.cloud.aiplatform.v1.ModelEvaluationSlice.metrics_schema_uri]
.google.protobuf.Value metrics = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getMetricsin interfaceModelEvaluationSliceOrBuilder- Returns:
- The metrics.
-
setMetrics
Output only. Sliced evaluation metrics of the Model. The schema of the metrics is stored in [metrics_schema_uri][google.cloud.aiplatform.v1.ModelEvaluationSlice.metrics_schema_uri]
.google.protobuf.Value metrics = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setMetrics
Output only. Sliced evaluation metrics of the Model. The schema of the metrics is stored in [metrics_schema_uri][google.cloud.aiplatform.v1.ModelEvaluationSlice.metrics_schema_uri]
.google.protobuf.Value metrics = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeMetrics
Output only. Sliced evaluation metrics of the Model. The schema of the metrics is stored in [metrics_schema_uri][google.cloud.aiplatform.v1.ModelEvaluationSlice.metrics_schema_uri]
.google.protobuf.Value metrics = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearMetrics
Output only. Sliced evaluation metrics of the Model. The schema of the metrics is stored in [metrics_schema_uri][google.cloud.aiplatform.v1.ModelEvaluationSlice.metrics_schema_uri]
.google.protobuf.Value metrics = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getMetricsBuilder
public com.google.protobuf.Value.Builder getMetricsBuilder()Output only. Sliced evaluation metrics of the Model. The schema of the metrics is stored in [metrics_schema_uri][google.cloud.aiplatform.v1.ModelEvaluationSlice.metrics_schema_uri]
.google.protobuf.Value metrics = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getMetricsOrBuilder
public com.google.protobuf.ValueOrBuilder getMetricsOrBuilder()Output only. Sliced evaluation metrics of the Model. The schema of the metrics is stored in [metrics_schema_uri][google.cloud.aiplatform.v1.ModelEvaluationSlice.metrics_schema_uri]
.google.protobuf.Value metrics = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getMetricsOrBuilderin interfaceModelEvaluationSliceOrBuilder
-
hasCreateTime
public boolean hasCreateTime()Output only. Timestamp when this ModelEvaluationSlice was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCreateTimein interfaceModelEvaluationSliceOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()Output only. Timestamp when this ModelEvaluationSlice was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfaceModelEvaluationSliceOrBuilder- Returns:
- The createTime.
-
setCreateTime
Output only. Timestamp when this ModelEvaluationSlice was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setCreateTime
public ModelEvaluationSlice.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only. Timestamp when this ModelEvaluationSlice was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeCreateTime
Output only. Timestamp when this ModelEvaluationSlice was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearCreateTime
Output only. Timestamp when this ModelEvaluationSlice was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()Output only. Timestamp when this ModelEvaluationSlice was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. Timestamp when this ModelEvaluationSlice was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfaceModelEvaluationSliceOrBuilder
-
hasModelExplanation
public boolean hasModelExplanation()Output only. Aggregated explanation metrics for the Model's prediction output over the data this ModelEvaluation uses. This field is populated only if the Model is evaluated with explanations, and only for tabular Models.
.google.cloud.aiplatform.v1.ModelExplanation model_explanation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasModelExplanationin interfaceModelEvaluationSliceOrBuilder- Returns:
- Whether the modelExplanation field is set.
-
getModelExplanation
Output only. Aggregated explanation metrics for the Model's prediction output over the data this ModelEvaluation uses. This field is populated only if the Model is evaluated with explanations, and only for tabular Models.
.google.cloud.aiplatform.v1.ModelExplanation model_explanation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getModelExplanationin interfaceModelEvaluationSliceOrBuilder- Returns:
- The modelExplanation.
-
setModelExplanation
Output only. Aggregated explanation metrics for the Model's prediction output over the data this ModelEvaluation uses. This field is populated only if the Model is evaluated with explanations, and only for tabular Models.
.google.cloud.aiplatform.v1.ModelExplanation model_explanation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setModelExplanation
Output only. Aggregated explanation metrics for the Model's prediction output over the data this ModelEvaluation uses. This field is populated only if the Model is evaluated with explanations, and only for tabular Models.
.google.cloud.aiplatform.v1.ModelExplanation model_explanation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeModelExplanation
Output only. Aggregated explanation metrics for the Model's prediction output over the data this ModelEvaluation uses. This field is populated only if the Model is evaluated with explanations, and only for tabular Models.
.google.cloud.aiplatform.v1.ModelExplanation model_explanation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearModelExplanation
Output only. Aggregated explanation metrics for the Model's prediction output over the data this ModelEvaluation uses. This field is populated only if the Model is evaluated with explanations, and only for tabular Models.
.google.cloud.aiplatform.v1.ModelExplanation model_explanation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getModelExplanationBuilder
Output only. Aggregated explanation metrics for the Model's prediction output over the data this ModelEvaluation uses. This field is populated only if the Model is evaluated with explanations, and only for tabular Models.
.google.cloud.aiplatform.v1.ModelExplanation model_explanation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getModelExplanationOrBuilder
Output only. Aggregated explanation metrics for the Model's prediction output over the data this ModelEvaluation uses. This field is populated only if the Model is evaluated with explanations, and only for tabular Models.
.google.cloud.aiplatform.v1.ModelExplanation model_explanation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getModelExplanationOrBuilderin interfaceModelEvaluationSliceOrBuilder
-