Class ExplanationMetadata.OutputMetadata
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.OutputMetadata
-
- All Implemented Interfaces:
ExplanationMetadata.OutputMetadataOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- ExplanationMetadata
public static final class ExplanationMetadata.OutputMetadata extends com.google.protobuf.GeneratedMessageV3 implements ExplanationMetadata.OutputMetadataOrBuilder
Metadata of the prediction output to be explained.
Protobuf typegoogle.cloud.aiplatform.v1beta1.ExplanationMetadata.OutputMetadata- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classExplanationMetadata.OutputMetadata.BuilderMetadata of the prediction output to be explained.static classExplanationMetadata.OutputMetadata.DisplayNameMappingCase-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
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
-
-
Field Summary
Fields Modifier and Type Field Description static intDISPLAY_NAME_MAPPING_KEY_FIELD_NUMBERstatic intINDEX_DISPLAY_NAME_MAPPING_FIELD_NUMBERstatic intOUTPUT_TENSOR_NAME_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static ExplanationMetadata.OutputMetadatagetDefaultInstance()ExplanationMetadata.OutputMetadatagetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()ExplanationMetadata.OutputMetadata.DisplayNameMappingCasegetDisplayNameMappingCase()StringgetDisplayNameMappingKey()Specify a field name in the prediction to look for the display name.com.google.protobuf.ByteStringgetDisplayNameMappingKeyBytes()Specify a field name in the prediction to look for the display name.com.google.protobuf.ValuegetIndexDisplayNameMapping()Static mapping between the index and display name.com.google.protobuf.ValueOrBuildergetIndexDisplayNameMappingOrBuilder()Static mapping between the index and display name.StringgetOutputTensorName()Name of the output tensor.com.google.protobuf.ByteStringgetOutputTensorNameBytes()Name of the output tensor.com.google.protobuf.Parser<ExplanationMetadata.OutputMetadata>getParserForType()intgetSerializedSize()booleanhasDisplayNameMappingKey()Specify a field name in the prediction to look for the display name.inthashCode()booleanhasIndexDisplayNameMapping()Static mapping between the index and display name.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static ExplanationMetadata.OutputMetadata.BuildernewBuilder()static ExplanationMetadata.OutputMetadata.BuildernewBuilder(ExplanationMetadata.OutputMetadata prototype)ExplanationMetadata.OutputMetadata.BuildernewBuilderForType()protected ExplanationMetadata.OutputMetadata.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static ExplanationMetadata.OutputMetadataparseDelimitedFrom(InputStream input)static ExplanationMetadata.OutputMetadataparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ExplanationMetadata.OutputMetadataparseFrom(byte[] data)static ExplanationMetadata.OutputMetadataparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ExplanationMetadata.OutputMetadataparseFrom(com.google.protobuf.ByteString data)static ExplanationMetadata.OutputMetadataparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ExplanationMetadata.OutputMetadataparseFrom(com.google.protobuf.CodedInputStream input)static ExplanationMetadata.OutputMetadataparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ExplanationMetadata.OutputMetadataparseFrom(InputStream input)static ExplanationMetadata.OutputMetadataparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ExplanationMetadata.OutputMetadataparseFrom(ByteBuffer data)static ExplanationMetadata.OutputMetadataparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<ExplanationMetadata.OutputMetadata>parser()ExplanationMetadata.OutputMetadata.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, 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, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
INDEX_DISPLAY_NAME_MAPPING_FIELD_NUMBER
public static final int INDEX_DISPLAY_NAME_MAPPING_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DISPLAY_NAME_MAPPING_KEY_FIELD_NUMBER
public static final int DISPLAY_NAME_MAPPING_KEY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
OUTPUT_TENSOR_NAME_FIELD_NUMBER
public static final int OUTPUT_TENSOR_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getDisplayNameMappingCase
public ExplanationMetadata.OutputMetadata.DisplayNameMappingCase getDisplayNameMappingCase()
- Specified by:
getDisplayNameMappingCasein interfaceExplanationMetadata.OutputMetadataOrBuilder
-
hasIndexDisplayNameMapping
public boolean hasIndexDisplayNameMapping()
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][google.cloud.aiplatform.v1beta1.Attribution.output_display_name] is populated by locating in the mapping with [Attribution.output_index][google.cloud.aiplatform.v1beta1.Attribution.output_index].
.google.protobuf.Value index_display_name_mapping = 1;- Specified by:
hasIndexDisplayNameMappingin interfaceExplanationMetadata.OutputMetadataOrBuilder- Returns:
- Whether the indexDisplayNameMapping field is set.
-
getIndexDisplayNameMapping
public com.google.protobuf.Value getIndexDisplayNameMapping()
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][google.cloud.aiplatform.v1beta1.Attribution.output_display_name] is populated by locating in the mapping with [Attribution.output_index][google.cloud.aiplatform.v1beta1.Attribution.output_index].
.google.protobuf.Value index_display_name_mapping = 1;- Specified by:
getIndexDisplayNameMappingin interfaceExplanationMetadata.OutputMetadataOrBuilder- Returns:
- The indexDisplayNameMapping.
-
getIndexDisplayNameMappingOrBuilder
public com.google.protobuf.ValueOrBuilder getIndexDisplayNameMappingOrBuilder()
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][google.cloud.aiplatform.v1beta1.Attribution.output_display_name] is populated by locating in the mapping with [Attribution.output_index][google.cloud.aiplatform.v1beta1.Attribution.output_index].
.google.protobuf.Value index_display_name_mapping = 1;- Specified by:
getIndexDisplayNameMappingOrBuilderin interfaceExplanationMetadata.OutputMetadataOrBuilder
-
hasDisplayNameMappingKey
public boolean hasDisplayNameMappingKey()
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][google.cloud.aiplatform.v1beta1.Attribution.output_index] for a specific output.
string display_name_mapping_key = 2;- Specified by:
hasDisplayNameMappingKeyin interfaceExplanationMetadata.OutputMetadataOrBuilder- Returns:
- Whether the displayNameMappingKey field is set.
-
getDisplayNameMappingKey
public String getDisplayNameMappingKey()
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][google.cloud.aiplatform.v1beta1.Attribution.output_index] for a specific output.
string display_name_mapping_key = 2;- Specified by:
getDisplayNameMappingKeyin interfaceExplanationMetadata.OutputMetadataOrBuilder- Returns:
- The displayNameMappingKey.
-
getDisplayNameMappingKeyBytes
public com.google.protobuf.ByteString getDisplayNameMappingKeyBytes()
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][google.cloud.aiplatform.v1beta1.Attribution.output_index] for a specific output.
string display_name_mapping_key = 2;- Specified by:
getDisplayNameMappingKeyBytesin interfaceExplanationMetadata.OutputMetadataOrBuilder- Returns:
- The bytes for displayNameMappingKey.
-
getOutputTensorName
public String getOutputTensorName()
Name of the output tensor. Required and is only applicable to Vertex AI provided images for Tensorflow.
string output_tensor_name = 3;- Specified by:
getOutputTensorNamein interfaceExplanationMetadata.OutputMetadataOrBuilder- Returns:
- The outputTensorName.
-
getOutputTensorNameBytes
public com.google.protobuf.ByteString getOutputTensorNameBytes()
Name of the output tensor. Required and is only applicable to Vertex AI provided images for Tensorflow.
string output_tensor_name = 3;- Specified by:
getOutputTensorNameBytesin interfaceExplanationMetadata.OutputMetadataOrBuilder- Returns:
- The bytes for outputTensorName.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static ExplanationMetadata.OutputMetadata parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ExplanationMetadata.OutputMetadata parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ExplanationMetadata.OutputMetadata parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ExplanationMetadata.OutputMetadata parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ExplanationMetadata.OutputMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ExplanationMetadata.OutputMetadata parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ExplanationMetadata.OutputMetadata parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static ExplanationMetadata.OutputMetadata parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static ExplanationMetadata.OutputMetadata parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static ExplanationMetadata.OutputMetadata parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static ExplanationMetadata.OutputMetadata parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static ExplanationMetadata.OutputMetadata parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public ExplanationMetadata.OutputMetadata.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static ExplanationMetadata.OutputMetadata.Builder newBuilder()
-
newBuilder
public static ExplanationMetadata.OutputMetadata.Builder newBuilder(ExplanationMetadata.OutputMetadata prototype)
-
toBuilder
public ExplanationMetadata.OutputMetadata.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ExplanationMetadata.OutputMetadata.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static ExplanationMetadata.OutputMetadata getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<ExplanationMetadata.OutputMetadata> parser()
-
getParserForType
public com.google.protobuf.Parser<ExplanationMetadata.OutputMetadata> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public ExplanationMetadata.OutputMetadata getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-