Package com.google.cloud.aiplatform.v1
Class ExplanationMetadata.OutputMetadata.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ExplanationMetadata.OutputMetadata.Builder>
com.google.cloud.aiplatform.v1.ExplanationMetadata.OutputMetadata.Builder
- All Implemented Interfaces:
ExplanationMetadata.OutputMetadataOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ExplanationMetadata.OutputMetadata
public static final class ExplanationMetadata.OutputMetadata.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ExplanationMetadata.OutputMetadata.Builder>
implements ExplanationMetadata.OutputMetadataOrBuilder
Metadata of the prediction output to be explained.Protobuf type
google.cloud.aiplatform.v1.ExplanationMetadata.OutputMetadata-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Specify a field name in the prediction to look for the display name.Static mapping between the index and display name.Name of the output tensor.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorSpecify a field name in the prediction to look for the display name.com.google.protobuf.ByteStringSpecify a field name in the prediction to look for the display name.com.google.protobuf.ValueStatic mapping between the index and display name.com.google.protobuf.Value.BuilderStatic mapping between the index and display name.com.google.protobuf.ValueOrBuilderStatic mapping between the index and display name.Name of the output tensor.com.google.protobuf.ByteStringName of the output tensor.booleanSpecify a field name in the prediction to look for the display name.booleanStatic mapping between the index and display name.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeIndexDisplayNameMapping(com.google.protobuf.Value value) Static mapping between the index and display name.setDisplayNameMappingKey(String value) Specify a field name in the prediction to look for the display name.setDisplayNameMappingKeyBytes(com.google.protobuf.ByteString value) Specify a field name in the prediction to look for the display name.setIndexDisplayNameMapping(com.google.protobuf.Value value) Static mapping between the index and display name.setIndexDisplayNameMapping(com.google.protobuf.Value.Builder builderForValue) Static mapping between the index and display name.setOutputTensorName(String value) Name of the output tensor.setOutputTensorNameBytes(com.google.protobuf.ByteString value) Name of the output tensor.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ExplanationMetadata.OutputMetadata.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ExplanationMetadata.OutputMetadata.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ExplanationMetadata.OutputMetadata.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ExplanationMetadata.OutputMetadata.Builder>
-
mergeFrom
public ExplanationMetadata.OutputMetadata.Builder mergeFrom(ExplanationMetadata.OutputMetadata other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ExplanationMetadata.OutputMetadata.Builder>
-
mergeFrom
public ExplanationMetadata.OutputMetadata.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ExplanationMetadata.OutputMetadata.Builder>- Throws:
IOException
-
getDisplayNameMappingCase
- Specified by:
getDisplayNameMappingCasein interfaceExplanationMetadata.OutputMetadataOrBuilder
-
clearDisplayNameMapping
-
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.v1.Attribution.output_display_name] is populated by locating in the mapping with [Attribution.output_index][google.cloud.aiplatform.v1.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.v1.Attribution.output_display_name] is populated by locating in the mapping with [Attribution.output_index][google.cloud.aiplatform.v1.Attribution.output_index].
.google.protobuf.Value index_display_name_mapping = 1;- Specified by:
getIndexDisplayNameMappingin interfaceExplanationMetadata.OutputMetadataOrBuilder- Returns:
- The indexDisplayNameMapping.
-
setIndexDisplayNameMapping
public ExplanationMetadata.OutputMetadata.Builder setIndexDisplayNameMapping(com.google.protobuf.Value value) 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.v1.Attribution.output_display_name] is populated by locating in the mapping with [Attribution.output_index][google.cloud.aiplatform.v1.Attribution.output_index].
.google.protobuf.Value index_display_name_mapping = 1; -
setIndexDisplayNameMapping
public ExplanationMetadata.OutputMetadata.Builder setIndexDisplayNameMapping(com.google.protobuf.Value.Builder builderForValue) 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.v1.Attribution.output_display_name] is populated by locating in the mapping with [Attribution.output_index][google.cloud.aiplatform.v1.Attribution.output_index].
.google.protobuf.Value index_display_name_mapping = 1; -
mergeIndexDisplayNameMapping
public ExplanationMetadata.OutputMetadata.Builder mergeIndexDisplayNameMapping(com.google.protobuf.Value value) 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.v1.Attribution.output_display_name] is populated by locating in the mapping with [Attribution.output_index][google.cloud.aiplatform.v1.Attribution.output_index].
.google.protobuf.Value index_display_name_mapping = 1; -
clearIndexDisplayNameMapping
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.v1.Attribution.output_display_name] is populated by locating in the mapping with [Attribution.output_index][google.cloud.aiplatform.v1.Attribution.output_index].
.google.protobuf.Value index_display_name_mapping = 1; -
getIndexDisplayNameMappingBuilder
public com.google.protobuf.Value.Builder getIndexDisplayNameMappingBuilder()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.v1.Attribution.output_display_name] is populated by locating in the mapping with [Attribution.output_index][google.cloud.aiplatform.v1.Attribution.output_index].
.google.protobuf.Value index_display_name_mapping = 1; -
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.v1.Attribution.output_display_name] is populated by locating in the mapping with [Attribution.output_index][google.cloud.aiplatform.v1.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.v1.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
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.v1.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.v1.Attribution.output_index] for a specific output.
string display_name_mapping_key = 2;- Specified by:
getDisplayNameMappingKeyBytesin interfaceExplanationMetadata.OutputMetadataOrBuilder- Returns:
- The bytes for displayNameMappingKey.
-
setDisplayNameMappingKey
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.v1.Attribution.output_index] for a specific output.
string display_name_mapping_key = 2;- Parameters:
value- The displayNameMappingKey to set.- Returns:
- This builder for chaining.
-
clearDisplayNameMappingKey
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.v1.Attribution.output_index] for a specific output.
string display_name_mapping_key = 2;- Returns:
- This builder for chaining.
-
setDisplayNameMappingKeyBytes
public ExplanationMetadata.OutputMetadata.Builder setDisplayNameMappingKeyBytes(com.google.protobuf.ByteString value) 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.v1.Attribution.output_index] for a specific output.
string display_name_mapping_key = 2;- Parameters:
value- The bytes for displayNameMappingKey to set.- Returns:
- This builder for chaining.
-
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.
-
setOutputTensorName
Name of the output tensor. Required and is only applicable to Vertex AI provided images for Tensorflow.
string output_tensor_name = 3;- Parameters:
value- The outputTensorName to set.- Returns:
- This builder for chaining.
-
clearOutputTensorName
Name of the output tensor. Required and is only applicable to Vertex AI provided images for Tensorflow.
string output_tensor_name = 3;- Returns:
- This builder for chaining.
-
setOutputTensorNameBytes
public ExplanationMetadata.OutputMetadata.Builder setOutputTensorNameBytes(com.google.protobuf.ByteString value) Name of the output tensor. Required and is only applicable to Vertex AI provided images for Tensorflow.
string output_tensor_name = 3;- Parameters:
value- The bytes for outputTensorName to set.- Returns:
- This builder for chaining.
-