public static final class ExplanationMetadata.InputMetadata.Visualization.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ExplanationMetadata.InputMetadata.Visualization.Builder> implements ExplanationMetadata.InputMetadata.VisualizationOrBuilder
Visualization configurations for image explanation.Protobuf type
google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.VisualizationgetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ExplanationMetadata.InputMetadata.Visualization.Builder>public ExplanationMetadata.InputMetadata.Visualization.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<ExplanationMetadata.InputMetadata.Visualization.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ExplanationMetadata.InputMetadata.Visualization.Builder>public ExplanationMetadata.InputMetadata.Visualization getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic ExplanationMetadata.InputMetadata.Visualization build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic ExplanationMetadata.InputMetadata.Visualization buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic ExplanationMetadata.InputMetadata.Visualization.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<ExplanationMetadata.InputMetadata.Visualization.Builder>public ExplanationMetadata.InputMetadata.Visualization.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<ExplanationMetadata.InputMetadata.Visualization.Builder>public ExplanationMetadata.InputMetadata.Visualization.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<ExplanationMetadata.InputMetadata.Visualization.Builder>public ExplanationMetadata.InputMetadata.Visualization.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ExplanationMetadata.InputMetadata.Visualization.Builder>public ExplanationMetadata.InputMetadata.Visualization.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ExplanationMetadata.InputMetadata.Visualization.Builder>public ExplanationMetadata.InputMetadata.Visualization.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ExplanationMetadata.InputMetadata.Visualization.Builder>public ExplanationMetadata.InputMetadata.Visualization.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ExplanationMetadata.InputMetadata.Visualization.Builder>public ExplanationMetadata.InputMetadata.Visualization.Builder mergeFrom(ExplanationMetadata.InputMetadata.Visualization other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ExplanationMetadata.InputMetadata.Visualization.Builder>public ExplanationMetadata.InputMetadata.Visualization.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ExplanationMetadata.InputMetadata.Visualization.Builder>IOExceptionpublic int getTypeValue()
Type of the image visualization. Only applicable to [Integrated Gradients attribution][google.cloud.aiplatform.v1beta1.ExplanationParameters.integrated_gradients_attribution]. OUTLINES shows regions of attribution, while PIXELS shows per-pixel attribution. Defaults to OUTLINES.
.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.Type type = 1;
getTypeValue in interface ExplanationMetadata.InputMetadata.VisualizationOrBuilderpublic ExplanationMetadata.InputMetadata.Visualization.Builder setTypeValue(int value)
Type of the image visualization. Only applicable to [Integrated Gradients attribution][google.cloud.aiplatform.v1beta1.ExplanationParameters.integrated_gradients_attribution]. OUTLINES shows regions of attribution, while PIXELS shows per-pixel attribution. Defaults to OUTLINES.
.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.Type type = 1;
value - The enum numeric value on the wire for type to set.public ExplanationMetadata.InputMetadata.Visualization.Type getType()
Type of the image visualization. Only applicable to [Integrated Gradients attribution][google.cloud.aiplatform.v1beta1.ExplanationParameters.integrated_gradients_attribution]. OUTLINES shows regions of attribution, while PIXELS shows per-pixel attribution. Defaults to OUTLINES.
.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.Type type = 1;
getType in interface ExplanationMetadata.InputMetadata.VisualizationOrBuilderpublic ExplanationMetadata.InputMetadata.Visualization.Builder setType(ExplanationMetadata.InputMetadata.Visualization.Type value)
Type of the image visualization. Only applicable to [Integrated Gradients attribution][google.cloud.aiplatform.v1beta1.ExplanationParameters.integrated_gradients_attribution]. OUTLINES shows regions of attribution, while PIXELS shows per-pixel attribution. Defaults to OUTLINES.
.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.Type type = 1;
value - The type to set.public ExplanationMetadata.InputMetadata.Visualization.Builder clearType()
Type of the image visualization. Only applicable to [Integrated Gradients attribution][google.cloud.aiplatform.v1beta1.ExplanationParameters.integrated_gradients_attribution]. OUTLINES shows regions of attribution, while PIXELS shows per-pixel attribution. Defaults to OUTLINES.
.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.Type type = 1;
public int getPolarityValue()
Whether to only highlight pixels with positive contributions, negative or both. Defaults to POSITIVE.
.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.Polarity polarity = 2;
getPolarityValue in interface ExplanationMetadata.InputMetadata.VisualizationOrBuilderpublic ExplanationMetadata.InputMetadata.Visualization.Builder setPolarityValue(int value)
Whether to only highlight pixels with positive contributions, negative or both. Defaults to POSITIVE.
.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.Polarity polarity = 2;
value - The enum numeric value on the wire for polarity to set.public ExplanationMetadata.InputMetadata.Visualization.Polarity getPolarity()
Whether to only highlight pixels with positive contributions, negative or both. Defaults to POSITIVE.
.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.Polarity polarity = 2;
getPolarity in interface ExplanationMetadata.InputMetadata.VisualizationOrBuilderpublic ExplanationMetadata.InputMetadata.Visualization.Builder setPolarity(ExplanationMetadata.InputMetadata.Visualization.Polarity value)
Whether to only highlight pixels with positive contributions, negative or both. Defaults to POSITIVE.
.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.Polarity polarity = 2;
value - The polarity to set.public ExplanationMetadata.InputMetadata.Visualization.Builder clearPolarity()
Whether to only highlight pixels with positive contributions, negative or both. Defaults to POSITIVE.
.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.Polarity polarity = 2;
public int getColorMapValue()
The color scheme used for the highlighted areas. Defaults to PINK_GREEN for [Integrated Gradients attribution][google.cloud.aiplatform.v1beta1.ExplanationParameters.integrated_gradients_attribution], which shows positive attributions in green and negative in pink. Defaults to VIRIDIS for [XRAI attribution][google.cloud.aiplatform.v1beta1.ExplanationParameters.xrai_attribution], which highlights the most influential regions in yellow and the least influential in blue.
.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.ColorMap color_map = 3;
getColorMapValue in interface ExplanationMetadata.InputMetadata.VisualizationOrBuilderpublic ExplanationMetadata.InputMetadata.Visualization.Builder setColorMapValue(int value)
The color scheme used for the highlighted areas. Defaults to PINK_GREEN for [Integrated Gradients attribution][google.cloud.aiplatform.v1beta1.ExplanationParameters.integrated_gradients_attribution], which shows positive attributions in green and negative in pink. Defaults to VIRIDIS for [XRAI attribution][google.cloud.aiplatform.v1beta1.ExplanationParameters.xrai_attribution], which highlights the most influential regions in yellow and the least influential in blue.
.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.ColorMap color_map = 3;
value - The enum numeric value on the wire for colorMap to set.public ExplanationMetadata.InputMetadata.Visualization.ColorMap getColorMap()
The color scheme used for the highlighted areas. Defaults to PINK_GREEN for [Integrated Gradients attribution][google.cloud.aiplatform.v1beta1.ExplanationParameters.integrated_gradients_attribution], which shows positive attributions in green and negative in pink. Defaults to VIRIDIS for [XRAI attribution][google.cloud.aiplatform.v1beta1.ExplanationParameters.xrai_attribution], which highlights the most influential regions in yellow and the least influential in blue.
.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.ColorMap color_map = 3;
getColorMap in interface ExplanationMetadata.InputMetadata.VisualizationOrBuilderpublic ExplanationMetadata.InputMetadata.Visualization.Builder setColorMap(ExplanationMetadata.InputMetadata.Visualization.ColorMap value)
The color scheme used for the highlighted areas. Defaults to PINK_GREEN for [Integrated Gradients attribution][google.cloud.aiplatform.v1beta1.ExplanationParameters.integrated_gradients_attribution], which shows positive attributions in green and negative in pink. Defaults to VIRIDIS for [XRAI attribution][google.cloud.aiplatform.v1beta1.ExplanationParameters.xrai_attribution], which highlights the most influential regions in yellow and the least influential in blue.
.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.ColorMap color_map = 3;
value - The colorMap to set.public ExplanationMetadata.InputMetadata.Visualization.Builder clearColorMap()
The color scheme used for the highlighted areas. Defaults to PINK_GREEN for [Integrated Gradients attribution][google.cloud.aiplatform.v1beta1.ExplanationParameters.integrated_gradients_attribution], which shows positive attributions in green and negative in pink. Defaults to VIRIDIS for [XRAI attribution][google.cloud.aiplatform.v1beta1.ExplanationParameters.xrai_attribution], which highlights the most influential regions in yellow and the least influential in blue.
.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.ColorMap color_map = 3;
public float getClipPercentUpperbound()
Excludes attributions above the specified percentile from the highlighted areas. Using the clip_percent_upperbound and clip_percent_lowerbound together can be useful for filtering out noise and making it easier to see areas of strong attribution. Defaults to 99.9.
float clip_percent_upperbound = 4;getClipPercentUpperbound in interface ExplanationMetadata.InputMetadata.VisualizationOrBuilderpublic ExplanationMetadata.InputMetadata.Visualization.Builder setClipPercentUpperbound(float value)
Excludes attributions above the specified percentile from the highlighted areas. Using the clip_percent_upperbound and clip_percent_lowerbound together can be useful for filtering out noise and making it easier to see areas of strong attribution. Defaults to 99.9.
float clip_percent_upperbound = 4;value - The clipPercentUpperbound to set.public ExplanationMetadata.InputMetadata.Visualization.Builder clearClipPercentUpperbound()
Excludes attributions above the specified percentile from the highlighted areas. Using the clip_percent_upperbound and clip_percent_lowerbound together can be useful for filtering out noise and making it easier to see areas of strong attribution. Defaults to 99.9.
float clip_percent_upperbound = 4;public float getClipPercentLowerbound()
Excludes attributions below the specified percentile, from the highlighted areas. Defaults to 62.
float clip_percent_lowerbound = 5;getClipPercentLowerbound in interface ExplanationMetadata.InputMetadata.VisualizationOrBuilderpublic ExplanationMetadata.InputMetadata.Visualization.Builder setClipPercentLowerbound(float value)
Excludes attributions below the specified percentile, from the highlighted areas. Defaults to 62.
float clip_percent_lowerbound = 5;value - The clipPercentLowerbound to set.public ExplanationMetadata.InputMetadata.Visualization.Builder clearClipPercentLowerbound()
Excludes attributions below the specified percentile, from the highlighted areas. Defaults to 62.
float clip_percent_lowerbound = 5;public int getOverlayTypeValue()
How the original image is displayed in the visualization. Adjusting the overlay can help increase visual clarity if the original image makes it difficult to view the visualization. Defaults to NONE.
.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.OverlayType overlay_type = 6;
getOverlayTypeValue in interface ExplanationMetadata.InputMetadata.VisualizationOrBuilderpublic ExplanationMetadata.InputMetadata.Visualization.Builder setOverlayTypeValue(int value)
How the original image is displayed in the visualization. Adjusting the overlay can help increase visual clarity if the original image makes it difficult to view the visualization. Defaults to NONE.
.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.OverlayType overlay_type = 6;
value - The enum numeric value on the wire for overlayType to set.public ExplanationMetadata.InputMetadata.Visualization.OverlayType getOverlayType()
How the original image is displayed in the visualization. Adjusting the overlay can help increase visual clarity if the original image makes it difficult to view the visualization. Defaults to NONE.
.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.OverlayType overlay_type = 6;
getOverlayType in interface ExplanationMetadata.InputMetadata.VisualizationOrBuilderpublic ExplanationMetadata.InputMetadata.Visualization.Builder setOverlayType(ExplanationMetadata.InputMetadata.Visualization.OverlayType value)
How the original image is displayed in the visualization. Adjusting the overlay can help increase visual clarity if the original image makes it difficult to view the visualization. Defaults to NONE.
.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.OverlayType overlay_type = 6;
value - The overlayType to set.public ExplanationMetadata.InputMetadata.Visualization.Builder clearOverlayType()
How the original image is displayed in the visualization. Adjusting the overlay can help increase visual clarity if the original image makes it difficult to view the visualization. Defaults to NONE.
.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.OverlayType overlay_type = 6;
public final ExplanationMetadata.InputMetadata.Visualization.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ExplanationMetadata.InputMetadata.Visualization.Builder>public final ExplanationMetadata.InputMetadata.Visualization.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ExplanationMetadata.InputMetadata.Visualization.Builder>Copyright © 2024 Google LLC. All rights reserved.