public static final class ModelEvaluationSlice.Slice.SliceSpec.SliceConfig extends com.google.protobuf.GeneratedMessageV3 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| Modifier and Type | Class and Description |
|---|---|
static class |
ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.Builder
Specification message containing the config for this SliceSpec.
|
static class |
ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.KindCase |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
ALL_VALUES_FIELD_NUMBER |
static int |
RANGE_FIELD_NUMBER |
static int |
VALUE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
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.
|
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.
|
static ModelEvaluationSlice.Slice.SliceSpec.SliceConfig |
getDefaultInstance() |
ModelEvaluationSlice.Slice.SliceSpec.SliceConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.KindCase |
getKindCase() |
com.google.protobuf.Parser<ModelEvaluationSlice.Slice.SliceSpec.SliceConfig> |
getParserForType() |
ModelEvaluationSlice.Slice.SliceSpec.Range |
getRange()
A range of values for a numerical feature.
|
ModelEvaluationSlice.Slice.SliceSpec.RangeOrBuilder |
getRangeOrBuilder()
A range of values for a numerical feature.
|
int |
getSerializedSize() |
ModelEvaluationSlice.Slice.SliceSpec.Value |
getValue()
A unique specific value for a given feature.
|
ModelEvaluationSlice.Slice.SliceSpec.ValueOrBuilder |
getValueOrBuilder()
A unique specific value for a given feature.
|
boolean |
hasAllValues()
If all_values is set to true, then all possible labels of the keyed
feature will have another slice computed.
|
int |
hashCode() |
boolean |
hasRange()
A range of values for a numerical feature.
|
boolean |
hasValue()
A unique specific value for a given feature.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.Builder |
newBuilder() |
static ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.Builder |
newBuilder(ModelEvaluationSlice.Slice.SliceSpec.SliceConfig prototype) |
ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.Builder |
newBuilderForType() |
protected ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static ModelEvaluationSlice.Slice.SliceSpec.SliceConfig |
parseDelimitedFrom(InputStream input) |
static ModelEvaluationSlice.Slice.SliceSpec.SliceConfig |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ModelEvaluationSlice.Slice.SliceSpec.SliceConfig |
parseFrom(byte[] data) |
static ModelEvaluationSlice.Slice.SliceSpec.SliceConfig |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ModelEvaluationSlice.Slice.SliceSpec.SliceConfig |
parseFrom(ByteBuffer data) |
static ModelEvaluationSlice.Slice.SliceSpec.SliceConfig |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ModelEvaluationSlice.Slice.SliceSpec.SliceConfig |
parseFrom(com.google.protobuf.ByteString data) |
static ModelEvaluationSlice.Slice.SliceSpec.SliceConfig |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ModelEvaluationSlice.Slice.SliceSpec.SliceConfig |
parseFrom(com.google.protobuf.CodedInputStream input) |
static ModelEvaluationSlice.Slice.SliceSpec.SliceConfig |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ModelEvaluationSlice.Slice.SliceSpec.SliceConfig |
parseFrom(InputStream input) |
static ModelEvaluationSlice.Slice.SliceSpec.SliceConfig |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<ModelEvaluationSlice.Slice.SliceSpec.SliceConfig> |
parser() |
ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int VALUE_FIELD_NUMBER
public static final int RANGE_FIELD_NUMBER
public static final int ALL_VALUES_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.KindCase getKindCase()
getKindCase in interface ModelEvaluationSlice.Slice.SliceSpec.SliceConfigOrBuilderpublic 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;
hasValue in interface ModelEvaluationSlice.Slice.SliceSpec.SliceConfigOrBuilderpublic ModelEvaluationSlice.Slice.SliceSpec.Value getValue()
A unique specific value for a given feature.
Example: `{ "value": { "string_value": "12345" } }`
.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Value value = 1;
getValue in interface ModelEvaluationSlice.Slice.SliceSpec.SliceConfigOrBuilderpublic ModelEvaluationSlice.Slice.SliceSpec.ValueOrBuilder getValueOrBuilder()
A unique specific value for a given feature.
Example: `{ "value": { "string_value": "12345" } }`
.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.Value value = 1;
getValueOrBuilder in interface ModelEvaluationSlice.Slice.SliceSpec.SliceConfigOrBuilderpublic 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;
hasRange in interface ModelEvaluationSlice.Slice.SliceSpec.SliceConfigOrBuilderpublic ModelEvaluationSlice.Slice.SliceSpec.Range 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;
getRange in interface ModelEvaluationSlice.Slice.SliceSpec.SliceConfigOrBuilderpublic ModelEvaluationSlice.Slice.SliceSpec.RangeOrBuilder 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;
getRangeOrBuilder in interface ModelEvaluationSlice.Slice.SliceSpec.SliceConfigOrBuilderpublic 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;hasAllValues in interface ModelEvaluationSlice.Slice.SliceSpec.SliceConfigOrBuilderpublic 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;getAllValues in interface ModelEvaluationSlice.Slice.SliceSpec.SliceConfigOrBuilderpublic 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;getAllValuesOrBuilder in interface ModelEvaluationSlice.Slice.SliceSpec.SliceConfigOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static ModelEvaluationSlice.Slice.SliceSpec.SliceConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ModelEvaluationSlice.Slice.SliceSpec.SliceConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ModelEvaluationSlice.Slice.SliceSpec.SliceConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ModelEvaluationSlice.Slice.SliceSpec.SliceConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ModelEvaluationSlice.Slice.SliceSpec.SliceConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ModelEvaluationSlice.Slice.SliceSpec.SliceConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ModelEvaluationSlice.Slice.SliceSpec.SliceConfig parseFrom(InputStream input) throws IOException
IOExceptionpublic static ModelEvaluationSlice.Slice.SliceSpec.SliceConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ModelEvaluationSlice.Slice.SliceSpec.SliceConfig parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static ModelEvaluationSlice.Slice.SliceSpec.SliceConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ModelEvaluationSlice.Slice.SliceSpec.SliceConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static ModelEvaluationSlice.Slice.SliceSpec.SliceConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.Builder newBuilder()
public static ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.Builder newBuilder(ModelEvaluationSlice.Slice.SliceSpec.SliceConfig prototype)
public ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected ModelEvaluationSlice.Slice.SliceSpec.SliceConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static ModelEvaluationSlice.Slice.SliceSpec.SliceConfig getDefaultInstance()
public static com.google.protobuf.Parser<ModelEvaluationSlice.Slice.SliceSpec.SliceConfig> parser()
public com.google.protobuf.Parser<ModelEvaluationSlice.Slice.SliceSpec.SliceConfig> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public ModelEvaluationSlice.Slice.SliceSpec.SliceConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.