Package com.google.cloud.aiplatform.v1
Class ModelEvaluationSlice.Slice.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ModelEvaluationSlice.Slice.Builder>
com.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.Builder
- All Implemented Interfaces:
ModelEvaluationSlice.SliceOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ModelEvaluationSlice.Slice
public static final class ModelEvaluationSlice.Slice.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ModelEvaluationSlice.Slice.Builder>
implements ModelEvaluationSlice.SliceOrBuilder
Definition of a slice.Protobuf type
google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.Output only.Output only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOutput only.com.google.protobuf.ByteStringOutput only.Output only.Output only.Output only.getValue()Output only.com.google.protobuf.ByteStringOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Output only.setDimension(String value) Output only.setDimensionBytes(com.google.protobuf.ByteString value) Output only.Output only.setSliceSpec(ModelEvaluationSlice.Slice.SliceSpec.Builder builderForValue) Output only.Output only.setValueBytes(com.google.protobuf.ByteString value) 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.Slice.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.Slice.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.Slice.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.Slice.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ModelEvaluationSlice.Slice.Builder>
-
mergeFrom
public ModelEvaluationSlice.Slice.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.Slice.Builder>- Throws:
IOException
-
getDimension
Output only. The dimension of the slice. Well-known dimensions are: * `annotationSpec`: This slice is on the test data that has either ground truth or prediction with [AnnotationSpec.display_name][google.cloud.aiplatform.v1.AnnotationSpec.display_name] equals to [value][google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.value]. * `slice`: This slice is a user customized slice defined by its SliceSpec.
string dimension = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDimensionin interfaceModelEvaluationSlice.SliceOrBuilder- Returns:
- The dimension.
-
getDimensionBytes
public com.google.protobuf.ByteString getDimensionBytes()Output only. The dimension of the slice. Well-known dimensions are: * `annotationSpec`: This slice is on the test data that has either ground truth or prediction with [AnnotationSpec.display_name][google.cloud.aiplatform.v1.AnnotationSpec.display_name] equals to [value][google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.value]. * `slice`: This slice is a user customized slice defined by its SliceSpec.
string dimension = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDimensionBytesin interfaceModelEvaluationSlice.SliceOrBuilder- Returns:
- The bytes for dimension.
-
setDimension
Output only. The dimension of the slice. Well-known dimensions are: * `annotationSpec`: This slice is on the test data that has either ground truth or prediction with [AnnotationSpec.display_name][google.cloud.aiplatform.v1.AnnotationSpec.display_name] equals to [value][google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.value]. * `slice`: This slice is a user customized slice defined by its SliceSpec.
string dimension = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The dimension to set.- Returns:
- This builder for chaining.
-
clearDimension
Output only. The dimension of the slice. Well-known dimensions are: * `annotationSpec`: This slice is on the test data that has either ground truth or prediction with [AnnotationSpec.display_name][google.cloud.aiplatform.v1.AnnotationSpec.display_name] equals to [value][google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.value]. * `slice`: This slice is a user customized slice defined by its SliceSpec.
string dimension = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setDimensionBytes
Output only. The dimension of the slice. Well-known dimensions are: * `annotationSpec`: This slice is on the test data that has either ground truth or prediction with [AnnotationSpec.display_name][google.cloud.aiplatform.v1.AnnotationSpec.display_name] equals to [value][google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.value]. * `slice`: This slice is a user customized slice defined by its SliceSpec.
string dimension = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for dimension to set.- Returns:
- This builder for chaining.
-
getValue
Output only. The value of the dimension in this slice.
string value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getValuein interfaceModelEvaluationSlice.SliceOrBuilder- Returns:
- The value.
-
getValueBytes
public com.google.protobuf.ByteString getValueBytes()Output only. The value of the dimension in this slice.
string value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getValueBytesin interfaceModelEvaluationSlice.SliceOrBuilder- Returns:
- The bytes for value.
-
setValue
Output only. The value of the dimension in this slice.
string value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The value to set.- Returns:
- This builder for chaining.
-
clearValue
Output only. The value of the dimension in this slice.
string value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setValueBytes
Output only. The value of the dimension in this slice.
string value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for value to set.- Returns:
- This builder for chaining.
-
hasSliceSpec
public boolean hasSliceSpec()Output only. Specification for how the data was sliced.
.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec slice_spec = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasSliceSpecin interfaceModelEvaluationSlice.SliceOrBuilder- Returns:
- Whether the sliceSpec field is set.
-
getSliceSpec
Output only. Specification for how the data was sliced.
.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec slice_spec = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSliceSpecin interfaceModelEvaluationSlice.SliceOrBuilder- Returns:
- The sliceSpec.
-
setSliceSpec
Output only. Specification for how the data was sliced.
.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec slice_spec = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setSliceSpec
public ModelEvaluationSlice.Slice.Builder setSliceSpec(ModelEvaluationSlice.Slice.SliceSpec.Builder builderForValue) Output only. Specification for how the data was sliced.
.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec slice_spec = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeSliceSpec
public ModelEvaluationSlice.Slice.Builder mergeSliceSpec(ModelEvaluationSlice.Slice.SliceSpec value) Output only. Specification for how the data was sliced.
.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec slice_spec = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearSliceSpec
Output only. Specification for how the data was sliced.
.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec slice_spec = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getSliceSpecBuilder
Output only. Specification for how the data was sliced.
.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec slice_spec = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getSliceSpecOrBuilder
Output only. Specification for how the data was sliced.
.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec slice_spec = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSliceSpecOrBuilderin interfaceModelEvaluationSlice.SliceOrBuilder
-