Package com.google.cloud.aiplatform.v1
Class ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.Builder>
com.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.Builder
- All Implemented Interfaces:
ModelEvaluationSlice.Slice.SliceSpec.SliceConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ModelEvaluationSlice.Slice.SliceSpec.SliceConfig
public static final class ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.Builder>
implements ModelEvaluationSlice.Slice.SliceSpec.SliceConfigOrBuilder
Specification message containing the config for this SliceSpec.
When `kind` is selected as `value` and/or `range`, only a single slice
will be computed.
When `all_values` is present, a separate slice will be computed for
each possible label/value for the corresponding key in `config`.
Examples, with feature zip_code with values 12345, 23334, 88888 and
feature country with values "US", "Canada", "Mexico" in the dataset:
Example 1:
{
"zip_code": { "value": { "float_value": 12345.0 } }
}
A single slice for any data with zip_code 12345 in the dataset.
Example 2:
{
"zip_code": { "range": { "low": 12345, "high": 20000 } }
}
A single slice containing data where the zip_codes between 12345 and
20000 For this example, data with the zip_code of 12345 will be in this
slice.
Example 3:
{
"zip_code": { "range": { "low": 10000, "high": 20000 } },
"country": { "value": { "string_value": "US" } }
}
A single slice containing data where the zip_codes between 10000 and
20000 has the country "US". For this example, data with the zip_code of
12345 and country "US" will be in this slice.
Example 4:
{ "country": {"all_values": { "value": true } } }
Three slices are computed, one for each unique country in the dataset.
Example 5:
{
"country": { "all_values": { "value": true } },
"zip_code": { "value": { "float_value": 12345.0 } }
}
Three slices are computed, one for each unique country in the dataset
where the zip_code is also 12345. For this example, data with zip_code
12345 and country "US" will be in one slice, zip_code 12345 and country
"Canada" in another slice, and zip_code 12345 and country "Mexico" in
another slice, totaling 3 slices.
Protobuf type
google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()If all_values is set to true, then all possible labels of the keyed feature will have another slice computed.A range of values for a numerical feature.A unique specific value for a given feature.com.google.protobuf.BoolValueIf all_values is set to true, then all possible labels of the keyed feature will have another slice computed.com.google.protobuf.BoolValue.BuilderIf all_values is set to true, then all possible labels of the keyed feature will have another slice computed.com.google.protobuf.BoolValueOrBuilderIf all_values is set to true, then all possible labels of the keyed feature will have another slice computed.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetRange()A range of values for a numerical feature.A range of values for a numerical feature.A range of values for a numerical feature.getValue()A unique specific value for a given feature.A unique specific value for a given feature.A unique specific value for a given feature.booleanIf all_values is set to true, then all possible labels of the keyed feature will have another slice computed.booleanhasRange()A range of values for a numerical feature.booleanhasValue()A unique specific value for a given feature.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeAllValues(com.google.protobuf.BoolValue value) If all_values is set to true, then all possible labels of the keyed feature will have another slice computed.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) A range of values for a numerical feature.A unique specific value for a given feature.setAllValues(com.google.protobuf.BoolValue value) If all_values is set to true, then all possible labels of the keyed feature will have another slice computed.setAllValues(com.google.protobuf.BoolValue.Builder builderForValue) If all_values is set to true, then all possible labels of the keyed feature will have another slice computed.A range of values for a numerical feature.setRange(ModelEvaluationSlice.Slice.SliceSpec.Range.Builder builderForValue) A range of values for a numerical feature.A unique specific value for a given feature.setValue(ModelEvaluationSlice.Slice.SliceSpec.Value.Builder builderForValue) A unique specific value for a given feature.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.SliceSpec.SliceConfig.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.SliceSpec.SliceConfig.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.SliceSpec.SliceConfig.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
public ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.Builder>
-
mergeFrom
public ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.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.SliceSpec.SliceConfig.Builder>- Throws:
IOException
-
getKindCase
- Specified by:
getKindCasein interfaceModelEvaluationSlice.Slice.SliceSpec.SliceConfigOrBuilder
-
clearKind
-
hasValue
public boolean hasValue()A unique specific value for a given feature. Example: `{ "value": { "string_value": "12345" } }`.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Value value = 1;- Specified by:
hasValuein interfaceModelEvaluationSlice.Slice.SliceSpec.SliceConfigOrBuilder- Returns:
- Whether the value field is set.
-
getValue
A unique specific value for a given feature. Example: `{ "value": { "string_value": "12345" } }`.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Value value = 1;- Specified by:
getValuein interfaceModelEvaluationSlice.Slice.SliceSpec.SliceConfigOrBuilder- Returns:
- The value.
-
setValue
public ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.Builder setValue(ModelEvaluationSlice.Slice.SliceSpec.Value value) A unique specific value for a given feature. Example: `{ "value": { "string_value": "12345" } }`.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Value value = 1; -
setValue
public ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.Builder setValue(ModelEvaluationSlice.Slice.SliceSpec.Value.Builder builderForValue) A unique specific value for a given feature. Example: `{ "value": { "string_value": "12345" } }`.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Value value = 1; -
mergeValue
public ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.Builder mergeValue(ModelEvaluationSlice.Slice.SliceSpec.Value value) A unique specific value for a given feature. Example: `{ "value": { "string_value": "12345" } }`.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Value value = 1; -
clearValue
A unique specific value for a given feature. Example: `{ "value": { "string_value": "12345" } }`.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Value value = 1; -
getValueBuilder
A unique specific value for a given feature. Example: `{ "value": { "string_value": "12345" } }`.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Value value = 1; -
getValueOrBuilder
A unique specific value for a given feature. Example: `{ "value": { "string_value": "12345" } }`.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Value value = 1;- Specified by:
getValueOrBuilderin interfaceModelEvaluationSlice.Slice.SliceSpec.SliceConfigOrBuilder
-
hasRange
public boolean hasRange()A range of values for a numerical feature. Example: `{"range":{"low":10000.0,"high":50000.0}}` will capture 12345 and 23334 in the slice..google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Range range = 2;- Specified by:
hasRangein interfaceModelEvaluationSlice.Slice.SliceSpec.SliceConfigOrBuilder- Returns:
- Whether the range field is set.
-
getRange
A range of values for a numerical feature. Example: `{"range":{"low":10000.0,"high":50000.0}}` will capture 12345 and 23334 in the slice..google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Range range = 2;- Specified by:
getRangein interfaceModelEvaluationSlice.Slice.SliceSpec.SliceConfigOrBuilder- Returns:
- The range.
-
setRange
public ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.Builder setRange(ModelEvaluationSlice.Slice.SliceSpec.Range value) A range of values for a numerical feature. Example: `{"range":{"low":10000.0,"high":50000.0}}` will capture 12345 and 23334 in the slice..google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Range range = 2; -
setRange
public ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.Builder setRange(ModelEvaluationSlice.Slice.SliceSpec.Range.Builder builderForValue) A range of values for a numerical feature. Example: `{"range":{"low":10000.0,"high":50000.0}}` will capture 12345 and 23334 in the slice..google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Range range = 2; -
mergeRange
public ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.Builder mergeRange(ModelEvaluationSlice.Slice.SliceSpec.Range value) A range of values for a numerical feature. Example: `{"range":{"low":10000.0,"high":50000.0}}` will capture 12345 and 23334 in the slice..google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Range range = 2; -
clearRange
A range of values for a numerical feature. Example: `{"range":{"low":10000.0,"high":50000.0}}` will capture 12345 and 23334 in the slice..google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Range range = 2; -
getRangeBuilder
A range of values for a numerical feature. Example: `{"range":{"low":10000.0,"high":50000.0}}` will capture 12345 and 23334 in the slice..google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Range range = 2; -
getRangeOrBuilder
A range of values for a numerical feature. Example: `{"range":{"low":10000.0,"high":50000.0}}` will capture 12345 and 23334 in the slice..google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Range range = 2;- Specified by:
getRangeOrBuilderin interfaceModelEvaluationSlice.Slice.SliceSpec.SliceConfigOrBuilder
-
hasAllValues
public boolean hasAllValues()If all_values is set to true, then all possible labels of the keyed feature will have another slice computed. Example: `{"all_values":{"value":true}}`.google.protobuf.BoolValue all_values = 3;- Specified by:
hasAllValuesin interfaceModelEvaluationSlice.Slice.SliceSpec.SliceConfigOrBuilder- Returns:
- Whether the allValues field is set.
-
getAllValues
public com.google.protobuf.BoolValue getAllValues()If all_values is set to true, then all possible labels of the keyed feature will have another slice computed. Example: `{"all_values":{"value":true}}`.google.protobuf.BoolValue all_values = 3;- Specified by:
getAllValuesin interfaceModelEvaluationSlice.Slice.SliceSpec.SliceConfigOrBuilder- Returns:
- The allValues.
-
setAllValues
public ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.Builder setAllValues(com.google.protobuf.BoolValue value) If all_values is set to true, then all possible labels of the keyed feature will have another slice computed. Example: `{"all_values":{"value":true}}`.google.protobuf.BoolValue all_values = 3; -
setAllValues
public ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.Builder setAllValues(com.google.protobuf.BoolValue.Builder builderForValue) If all_values is set to true, then all possible labels of the keyed feature will have another slice computed. Example: `{"all_values":{"value":true}}`.google.protobuf.BoolValue all_values = 3; -
mergeAllValues
public ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.Builder mergeAllValues(com.google.protobuf.BoolValue value) If all_values is set to true, then all possible labels of the keyed feature will have another slice computed. Example: `{"all_values":{"value":true}}`.google.protobuf.BoolValue all_values = 3; -
clearAllValues
If all_values is set to true, then all possible labels of the keyed feature will have another slice computed. Example: `{"all_values":{"value":true}}`.google.protobuf.BoolValue all_values = 3; -
getAllValuesBuilder
public com.google.protobuf.BoolValue.Builder getAllValuesBuilder()If all_values is set to true, then all possible labels of the keyed feature will have another slice computed. Example: `{"all_values":{"value":true}}`.google.protobuf.BoolValue all_values = 3; -
getAllValuesOrBuilder
public com.google.protobuf.BoolValueOrBuilder getAllValuesOrBuilder()If all_values is set to true, then all possible labels of the keyed feature will have another slice computed. Example: `{"all_values":{"value":true}}`.google.protobuf.BoolValue all_values = 3;- Specified by:
getAllValuesOrBuilderin interfaceModelEvaluationSlice.Slice.SliceSpec.SliceConfigOrBuilder
-