Class ModelEvaluationSlice.Slice (3.48.0)

public static final class ModelEvaluationSlice.Slice extends GeneratedMessageV3 implements ModelEvaluationSlice.SliceOrBuilder

Definition of a slice.

Protobuf type google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice

Static Fields

DIMENSION_FIELD_NUMBER

public static final int DIMENSION_FIELD_NUMBER
Field Value
Type Description
int

SLICE_SPEC_FIELD_NUMBER

public static final int SLICE_SPEC_FIELD_NUMBER
Field Value
Type Description
int

VALUE_FIELD_NUMBER

public static final int VALUE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ModelEvaluationSlice.Slice getDefaultInstance()
Returns
Type Description
ModelEvaluationSlice.Slice

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static ModelEvaluationSlice.Slice.Builder newBuilder()
Returns
Type Description
ModelEvaluationSlice.Slice.Builder

newBuilder(ModelEvaluationSlice.Slice prototype)

public static ModelEvaluationSlice.Slice.Builder newBuilder(ModelEvaluationSlice.Slice prototype)
Parameter
Name Description
prototype ModelEvaluationSlice.Slice
Returns
Type Description
ModelEvaluationSlice.Slice.Builder

parseDelimitedFrom(InputStream input)

public static ModelEvaluationSlice.Slice parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ModelEvaluationSlice.Slice
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ModelEvaluationSlice.Slice parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ModelEvaluationSlice.Slice
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ModelEvaluationSlice.Slice parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ModelEvaluationSlice.Slice
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ModelEvaluationSlice.Slice parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ModelEvaluationSlice.Slice
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ModelEvaluationSlice.Slice parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ModelEvaluationSlice.Slice
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ModelEvaluationSlice.Slice parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ModelEvaluationSlice.Slice
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ModelEvaluationSlice.Slice parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ModelEvaluationSlice.Slice
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ModelEvaluationSlice.Slice parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ModelEvaluationSlice.Slice
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ModelEvaluationSlice.Slice parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ModelEvaluationSlice.Slice
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ModelEvaluationSlice.Slice parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ModelEvaluationSlice.Slice
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ModelEvaluationSlice.Slice parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ModelEvaluationSlice.Slice
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ModelEvaluationSlice.Slice parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ModelEvaluationSlice.Slice
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ModelEvaluationSlice.Slice> parser()
Returns
Type Description
Parser<Slice>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public ModelEvaluationSlice.Slice getDefaultInstanceForType()
Returns
Type Description
ModelEvaluationSlice.Slice

getDimension()

public String 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 equals to value.
  • slice: This slice is a user customized slice defined by its SliceSpec.

string dimension = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The dimension.

getDimensionBytes()

public 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 equals to value.
  • slice: This slice is a user customized slice defined by its SliceSpec.

string dimension = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for dimension.

getParserForType()

public Parser<ModelEvaluationSlice.Slice> getParserForType()
Returns
Type Description
Parser<Slice>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSliceSpec()

public ModelEvaluationSlice.Slice.SliceSpec getSliceSpec()

Output only. Specification for how the data was sliced.

.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec slice_spec = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ModelEvaluationSlice.Slice.SliceSpec

The sliceSpec.

getSliceSpecOrBuilder()

public ModelEvaluationSlice.Slice.SliceSpecOrBuilder getSliceSpecOrBuilder()

Output only. Specification for how the data was sliced.

.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec slice_spec = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ModelEvaluationSlice.Slice.SliceSpecOrBuilder

getValue()

public String getValue()

Output only. The value of the dimension in this slice.

string value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The value.

getValueBytes()

public ByteString getValueBytes()

Output only. The value of the dimension in this slice.

string value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for value.

hasSliceSpec()

public boolean hasSliceSpec()

Output only. Specification for how the data was sliced.

.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec slice_spec = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the sliceSpec field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ModelEvaluationSlice.Slice.Builder newBuilderForType()
Returns
Type Description
ModelEvaluationSlice.Slice.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ModelEvaluationSlice.Slice.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ModelEvaluationSlice.Slice.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public ModelEvaluationSlice.Slice.Builder toBuilder()
Returns
Type Description
ModelEvaluationSlice.Slice.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException