Class ModelEvaluationSlice.Slice (3.22.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
TypeDescription
int

SLICE_SPEC_FIELD_NUMBER

public static final int SLICE_SPEC_FIELD_NUMBER
Field Value
TypeDescription
int

VALUE_FIELD_NUMBER

public static final int VALUE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ModelEvaluationSlice.Slice getDefaultInstance()
Returns
TypeDescription
ModelEvaluationSlice.Slice

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static ModelEvaluationSlice.Slice.Builder newBuilder()
Returns
TypeDescription
ModelEvaluationSlice.Slice.Builder

newBuilder(ModelEvaluationSlice.Slice prototype)

public static ModelEvaluationSlice.Slice.Builder newBuilder(ModelEvaluationSlice.Slice prototype)
Parameter
NameDescription
prototypeModelEvaluationSlice.Slice
Returns
TypeDescription
ModelEvaluationSlice.Slice.Builder

parseDelimitedFrom(InputStream input)

public static ModelEvaluationSlice.Slice parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ModelEvaluationSlice.Slice
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ModelEvaluationSlice.Slice parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ModelEvaluationSlice.Slice
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ModelEvaluationSlice.Slice parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ModelEvaluationSlice.Slice
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ModelEvaluationSlice.Slice parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ModelEvaluationSlice.Slice
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ModelEvaluationSlice.Slice parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ModelEvaluationSlice.Slice
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ModelEvaluationSlice.Slice parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ModelEvaluationSlice.Slice
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ModelEvaluationSlice.Slice parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ModelEvaluationSlice.Slice
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ModelEvaluationSlice.Slice parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ModelEvaluationSlice.Slice
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ModelEvaluationSlice.Slice parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ModelEvaluationSlice.Slice
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ModelEvaluationSlice.Slice parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ModelEvaluationSlice.Slice
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ModelEvaluationSlice.Slice parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ModelEvaluationSlice.Slice
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ModelEvaluationSlice.Slice parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ModelEvaluationSlice.Slice
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public ModelEvaluationSlice.Slice getDefaultInstanceForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for dimension.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the sliceSpec field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ModelEvaluationSlice.Slice.Builder newBuilderForType()
Returns
TypeDescription
ModelEvaluationSlice.Slice.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ModelEvaluationSlice.Slice.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ModelEvaluationSlice.Slice.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ModelEvaluationSlice.Slice.Builder toBuilder()
Returns
TypeDescription
ModelEvaluationSlice.Slice.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException