public static final class ExplainResponse.Builder extends GeneratedMessageV3.Builder<ExplainResponse.Builder> implements ExplainResponseOrBuilder
Response message for PredictionService.Explain.
Protobuf type google.cloud.aiplatform.v1beta1.ExplainResponse
Methods
public ExplainResponse.Builder addAllExplanations(Iterable<? extends Explanation> values)
The explanations of the Model's PredictResponse.predictions.
It has the same number of elements as instances
to be explained.
repeated .google.cloud.aiplatform.v1beta1.Explanation explanations = 1;
Parameter
Name | Description |
values | Iterable<? extends com.google.cloud.aiplatform.v1beta1.Explanation>
|
Returns
public ExplainResponse.Builder addAllPredictions(Iterable<? extends Value> values)
The predictions that are the output of the predictions call.
Same as PredictResponse.predictions.
repeated .google.protobuf.Value predictions = 3;
Parameter
Name | Description |
values | Iterable<? extends com.google.protobuf.Value>
|
Returns
public ExplainResponse.Builder addExplanations(Explanation value)
The explanations of the Model's PredictResponse.predictions.
It has the same number of elements as instances
to be explained.
repeated .google.cloud.aiplatform.v1beta1.Explanation explanations = 1;
Parameter
Returns
public ExplainResponse.Builder addExplanations(Explanation.Builder builderForValue)
The explanations of the Model's PredictResponse.predictions.
It has the same number of elements as instances
to be explained.
repeated .google.cloud.aiplatform.v1beta1.Explanation explanations = 1;
Parameter
Returns
public ExplainResponse.Builder addExplanations(int index, Explanation value)
The explanations of the Model's PredictResponse.predictions.
It has the same number of elements as instances
to be explained.
repeated .google.cloud.aiplatform.v1beta1.Explanation explanations = 1;
Parameters
Returns
public ExplainResponse.Builder addExplanations(int index, Explanation.Builder builderForValue)
The explanations of the Model's PredictResponse.predictions.
It has the same number of elements as instances
to be explained.
repeated .google.cloud.aiplatform.v1beta1.Explanation explanations = 1;
Parameters
Returns
public Explanation.Builder addExplanationsBuilder()
The explanations of the Model's PredictResponse.predictions.
It has the same number of elements as instances
to be explained.
repeated .google.cloud.aiplatform.v1beta1.Explanation explanations = 1;
Returns
public Explanation.Builder addExplanationsBuilder(int index)
The explanations of the Model's PredictResponse.predictions.
It has the same number of elements as instances
to be explained.
repeated .google.cloud.aiplatform.v1beta1.Explanation explanations = 1;
Parameter
Returns
public ExplainResponse.Builder addPredictions(Value value)
The predictions that are the output of the predictions call.
Same as PredictResponse.predictions.
repeated .google.protobuf.Value predictions = 3;
Parameter
Name | Description |
value | Value
|
Returns
public ExplainResponse.Builder addPredictions(Value.Builder builderForValue)
The predictions that are the output of the predictions call.
Same as PredictResponse.predictions.
repeated .google.protobuf.Value predictions = 3;
Parameter
Name | Description |
builderForValue | Builder
|
Returns
public ExplainResponse.Builder addPredictions(int index, Value value)
The predictions that are the output of the predictions call.
Same as PredictResponse.predictions.
repeated .google.protobuf.Value predictions = 3;
Parameters
Returns
public ExplainResponse.Builder addPredictions(int index, Value.Builder builderForValue)
The predictions that are the output of the predictions call.
Same as PredictResponse.predictions.
repeated .google.protobuf.Value predictions = 3;
Parameters
Returns
public Value.Builder addPredictionsBuilder()
The predictions that are the output of the predictions call.
Same as PredictResponse.predictions.
repeated .google.protobuf.Value predictions = 3;
Returns
public Value.Builder addPredictionsBuilder(int index)
The predictions that are the output of the predictions call.
Same as PredictResponse.predictions.
repeated .google.protobuf.Value predictions = 3;
Parameter
Returns
public ExplainResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public ExplainResponse build()
Returns
public ExplainResponse buildPartial()
Returns
public ExplainResponse.Builder clear()
Returns
Overrides
public ExplainResponse.Builder clearDeployedModelId()
ID of the Endpoint's DeployedModel that served this explanation.
string deployed_model_id = 2;
Returns
public ExplainResponse.Builder clearExplanations()
The explanations of the Model's PredictResponse.predictions.
It has the same number of elements as instances
to be explained.
repeated .google.cloud.aiplatform.v1beta1.Explanation explanations = 1;
Returns
public ExplainResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public ExplainResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
public ExplainResponse.Builder clearPredictions()
The predictions that are the output of the predictions call.
Same as PredictResponse.predictions.
repeated .google.protobuf.Value predictions = 3;
Returns
public ExplainResponse.Builder clone()
Returns
Overrides
public ExplainResponse getDefaultInstanceForType()
Returns
public String getDeployedModelId()
ID of the Endpoint's DeployedModel that served this explanation.
string deployed_model_id = 2;
Returns
Type | Description |
String | The deployedModelId.
|
public ByteString getDeployedModelIdBytes()
ID of the Endpoint's DeployedModel that served this explanation.
string deployed_model_id = 2;
Returns
Type | Description |
ByteString | The bytes for deployedModelId.
|
public static final Descriptors.Descriptor getDescriptor()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
public Explanation getExplanations(int index)
The explanations of the Model's PredictResponse.predictions.
It has the same number of elements as instances
to be explained.
repeated .google.cloud.aiplatform.v1beta1.Explanation explanations = 1;
Parameter
Returns
public Explanation.Builder getExplanationsBuilder(int index)
The explanations of the Model's PredictResponse.predictions.
It has the same number of elements as instances
to be explained.
repeated .google.cloud.aiplatform.v1beta1.Explanation explanations = 1;
Parameter
Returns
public List<Explanation.Builder> getExplanationsBuilderList()
The explanations of the Model's PredictResponse.predictions.
It has the same number of elements as instances
to be explained.
repeated .google.cloud.aiplatform.v1beta1.Explanation explanations = 1;
Returns
public int getExplanationsCount()
The explanations of the Model's PredictResponse.predictions.
It has the same number of elements as instances
to be explained.
repeated .google.cloud.aiplatform.v1beta1.Explanation explanations = 1;
Returns
public List<Explanation> getExplanationsList()
The explanations of the Model's PredictResponse.predictions.
It has the same number of elements as instances
to be explained.
repeated .google.cloud.aiplatform.v1beta1.Explanation explanations = 1;
Returns
public ExplanationOrBuilder getExplanationsOrBuilder(int index)
The explanations of the Model's PredictResponse.predictions.
It has the same number of elements as instances
to be explained.
repeated .google.cloud.aiplatform.v1beta1.Explanation explanations = 1;
Parameter
Returns
public List<? extends ExplanationOrBuilder> getExplanationsOrBuilderList()
The explanations of the Model's PredictResponse.predictions.
It has the same number of elements as instances
to be explained.
repeated .google.cloud.aiplatform.v1beta1.Explanation explanations = 1;
Returns
Type | Description |
List<? extends com.google.cloud.aiplatform.v1beta1.ExplanationOrBuilder> | |
public Value getPredictions(int index)
The predictions that are the output of the predictions call.
Same as PredictResponse.predictions.
repeated .google.protobuf.Value predictions = 3;
Parameter
Returns
public Value.Builder getPredictionsBuilder(int index)
The predictions that are the output of the predictions call.
Same as PredictResponse.predictions.
repeated .google.protobuf.Value predictions = 3;
Parameter
Returns
public List<Value.Builder> getPredictionsBuilderList()
The predictions that are the output of the predictions call.
Same as PredictResponse.predictions.
repeated .google.protobuf.Value predictions = 3;
Returns
public int getPredictionsCount()
The predictions that are the output of the predictions call.
Same as PredictResponse.predictions.
repeated .google.protobuf.Value predictions = 3;
Returns
public List<Value> getPredictionsList()
The predictions that are the output of the predictions call.
Same as PredictResponse.predictions.
repeated .google.protobuf.Value predictions = 3;
Returns
public ValueOrBuilder getPredictionsOrBuilder(int index)
The predictions that are the output of the predictions call.
Same as PredictResponse.predictions.
repeated .google.protobuf.Value predictions = 3;
Parameter
Returns
public List<? extends ValueOrBuilder> getPredictionsOrBuilderList()
The predictions that are the output of the predictions call.
Same as PredictResponse.predictions.
repeated .google.protobuf.Value predictions = 3;
Returns
Type | Description |
List<? extends com.google.protobuf.ValueOrBuilder> | |
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public ExplainResponse.Builder mergeFrom(ExplainResponse other)
Parameter
Returns
public ExplainResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public ExplainResponse.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public final ExplainResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public ExplainResponse.Builder removeExplanations(int index)
The explanations of the Model's PredictResponse.predictions.
It has the same number of elements as instances
to be explained.
repeated .google.cloud.aiplatform.v1beta1.Explanation explanations = 1;
Parameter
Returns
public ExplainResponse.Builder removePredictions(int index)
The predictions that are the output of the predictions call.
Same as PredictResponse.predictions.
repeated .google.protobuf.Value predictions = 3;
Parameter
Returns
public ExplainResponse.Builder setDeployedModelId(String value)
ID of the Endpoint's DeployedModel that served this explanation.
string deployed_model_id = 2;
Parameter
Name | Description |
value | String
The deployedModelId to set.
|
Returns
public ExplainResponse.Builder setDeployedModelIdBytes(ByteString value)
ID of the Endpoint's DeployedModel that served this explanation.
string deployed_model_id = 2;
Parameter
Name | Description |
value | ByteString
The bytes for deployedModelId to set.
|
Returns
public ExplainResponse.Builder setExplanations(int index, Explanation value)
The explanations of the Model's PredictResponse.predictions.
It has the same number of elements as instances
to be explained.
repeated .google.cloud.aiplatform.v1beta1.Explanation explanations = 1;
Parameters
Returns
public ExplainResponse.Builder setExplanations(int index, Explanation.Builder builderForValue)
The explanations of the Model's PredictResponse.predictions.
It has the same number of elements as instances
to be explained.
repeated .google.cloud.aiplatform.v1beta1.Explanation explanations = 1;
Parameters
Returns
public ExplainResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public ExplainResponse.Builder setPredictions(int index, Value value)
The predictions that are the output of the predictions call.
Same as PredictResponse.predictions.
repeated .google.protobuf.Value predictions = 3;
Parameters
Returns
public ExplainResponse.Builder setPredictions(int index, Value.Builder builderForValue)
The predictions that are the output of the predictions call.
Same as PredictResponse.predictions.
repeated .google.protobuf.Value predictions = 3;
Parameters
Returns
public ExplainResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public final ExplainResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides