Class ExplanationMetadata.OutputMetadata (1.2.0)

publicstaticfinalclass ExplanationMetadata.OutputMetadataextendsGeneratedMessageV3implementsExplanationMetadata.OutputMetadataOrBuilder

Metadata of the prediction output to be explained.

Protobuf type google.cloud.vertexai.v1.ExplanationMetadata.OutputMetadata

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > ExplanationMetadata.OutputMetadata

Inherited Members

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

Static Fields

DISPLAY_NAME_MAPPING_KEY_FIELD_NUMBER

publicstaticfinalintDISPLAY_NAME_MAPPING_KEY_FIELD_NUMBER
Field Value
Type Description
int

INDEX_DISPLAY_NAME_MAPPING_FIELD_NUMBER

publicstaticfinalintINDEX_DISPLAY_NAME_MAPPING_FIELD_NUMBER
Field Value
Type Description
int

OUTPUT_TENSOR_NAME_FIELD_NUMBER

publicstaticfinalintOUTPUT_TENSOR_NAME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticExplanationMetadata.OutputMetadatagetDefaultInstance()
Returns
Type Description
ExplanationMetadata.OutputMetadata

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticExplanationMetadata.OutputMetadata.BuildernewBuilder()
Returns
Type Description
ExplanationMetadata.OutputMetadata.Builder

newBuilder(ExplanationMetadata.OutputMetadata prototype)

publicstaticExplanationMetadata.OutputMetadata.BuildernewBuilder(ExplanationMetadata.OutputMetadataprototype)
Parameter
Name Description
prototype ExplanationMetadata.OutputMetadata
Returns
Type Description
ExplanationMetadata.OutputMetadata.Builder

parseDelimitedFrom(InputStream input)

publicstaticExplanationMetadata.OutputMetadataparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
ExplanationMetadata.OutputMetadata
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticExplanationMetadata.OutputMetadataparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ExplanationMetadata.OutputMetadata
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticExplanationMetadata.OutputMetadataparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
ExplanationMetadata.OutputMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticExplanationMetadata.OutputMetadataparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ExplanationMetadata.OutputMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticExplanationMetadata.OutputMetadataparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
ExplanationMetadata.OutputMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticExplanationMetadata.OutputMetadataparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ExplanationMetadata.OutputMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticExplanationMetadata.OutputMetadataparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ExplanationMetadata.OutputMetadata
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticExplanationMetadata.OutputMetadataparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ExplanationMetadata.OutputMetadata
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticExplanationMetadata.OutputMetadataparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
ExplanationMetadata.OutputMetadata
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticExplanationMetadata.OutputMetadataparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ExplanationMetadata.OutputMetadata
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticExplanationMetadata.OutputMetadataparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ExplanationMetadata.OutputMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticExplanationMetadata.OutputMetadataparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ExplanationMetadata.OutputMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<ExplanationMetadata.OutputMetadata>parser()
Returns
Type Description
Parser<OutputMetadata>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

publicExplanationMetadata.OutputMetadatagetDefaultInstanceForType()
Returns
Type Description
ExplanationMetadata.OutputMetadata

getDisplayNameMappingCase()

publicExplanationMetadata.OutputMetadata.DisplayNameMappingCasegetDisplayNameMappingCase()
Returns
Type Description
ExplanationMetadata.OutputMetadata.DisplayNameMappingCase

getDisplayNameMappingKey()

publicStringgetDisplayNameMappingKey()

Specify a field name in the prediction to look for the display name.

Use this if the prediction contains the display names for the outputs.

The display names in the prediction must have the same shape of the outputs, so that it can be located by Attribution.output_index for a specific output.

string display_name_mapping_key = 2;

Returns
Type Description
String

The displayNameMappingKey.

getDisplayNameMappingKeyBytes()

publicByteStringgetDisplayNameMappingKeyBytes()

Specify a field name in the prediction to look for the display name.

Use this if the prediction contains the display names for the outputs.

The display names in the prediction must have the same shape of the outputs, so that it can be located by Attribution.output_index for a specific output.

string display_name_mapping_key = 2;

Returns
Type Description
ByteString

The bytes for displayNameMappingKey.

getIndexDisplayNameMapping()

publicValuegetIndexDisplayNameMapping()

Static mapping between the index and display name.

Use this if the outputs are a deterministic n-dimensional array, e.g. a list of scores of all the classes in a pre-defined order for a multi-classification Model. It's not feasible if the outputs are non-deterministic, e.g. the Model produces top-k classes or sort the outputs by their values.

The shape of the value must be an n-dimensional array of strings. The number of dimensions must match that of the outputs to be explained. The Attribution.output_display_name is populated by locating in the mapping with Attribution.output_index.

.google.protobuf.Value index_display_name_mapping = 1;

Returns
Type Description
Value

The indexDisplayNameMapping.

getIndexDisplayNameMappingOrBuilder()

publicValueOrBuildergetIndexDisplayNameMappingOrBuilder()

Static mapping between the index and display name.

Use this if the outputs are a deterministic n-dimensional array, e.g. a list of scores of all the classes in a pre-defined order for a multi-classification Model. It's not feasible if the outputs are non-deterministic, e.g. the Model produces top-k classes or sort the outputs by their values.

The shape of the value must be an n-dimensional array of strings. The number of dimensions must match that of the outputs to be explained. The Attribution.output_display_name is populated by locating in the mapping with Attribution.output_index.

.google.protobuf.Value index_display_name_mapping = 1;

Returns
Type Description
ValueOrBuilder

getOutputTensorName()

publicStringgetOutputTensorName()

Name of the output tensor. Required and is only applicable to Vertex AI provided images for Tensorflow.

string output_tensor_name = 3;

Returns
Type Description
String

The outputTensorName.

getOutputTensorNameBytes()

publicByteStringgetOutputTensorNameBytes()

Name of the output tensor. Required and is only applicable to Vertex AI provided images for Tensorflow.

string output_tensor_name = 3;

Returns
Type Description
ByteString

The bytes for outputTensorName.

getParserForType()

publicParser<ExplanationMetadata.OutputMetadata>getParserForType()
Returns
Type Description
Parser<OutputMetadata>
Overrides

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

hasDisplayNameMappingKey()

publicbooleanhasDisplayNameMappingKey()

Specify a field name in the prediction to look for the display name.

Use this if the prediction contains the display names for the outputs.

The display names in the prediction must have the same shape of the outputs, so that it can be located by Attribution.output_index for a specific output.

string display_name_mapping_key = 2;

Returns
Type Description
boolean

Whether the displayNameMappingKey field is set.

hasIndexDisplayNameMapping()

publicbooleanhasIndexDisplayNameMapping()

Static mapping between the index and display name.

Use this if the outputs are a deterministic n-dimensional array, e.g. a list of scores of all the classes in a pre-defined order for a multi-classification Model. It's not feasible if the outputs are non-deterministic, e.g. the Model produces top-k classes or sort the outputs by their values.

The shape of the value must be an n-dimensional array of strings. The number of dimensions must match that of the outputs to be explained. The Attribution.output_display_name is populated by locating in the mapping with Attribution.output_index.

.google.protobuf.Value index_display_name_mapping = 1;

Returns
Type Description
boolean

Whether the indexDisplayNameMapping field is set.

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicExplanationMetadata.OutputMetadata.BuildernewBuilderForType()
Returns
Type Description
ExplanationMetadata.OutputMetadata.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedExplanationMetadata.OutputMetadata.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ExplanationMetadata.OutputMetadata.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicExplanationMetadata.OutputMetadata.BuildertoBuilder()
Returns
Type Description
ExplanationMetadata.OutputMetadata.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.