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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
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>
|
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>
|
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;
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;
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;
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;
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;
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 |
---|
Name | Description |
index | int
|
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
|
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
|
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 |
---|
Name | Description |
index | int
|
value | Value
|
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 |
---|
Name | Description |
index | int
|
builderForValue | Builder
|
public Value.Builder addPredictionsBuilder()
The predictions that are the output of the predictions call.
Same as
PredictResponse.predictions.
repeated .google.protobuf.Value predictions = 3;
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 |
---|
Name | Description |
index | int
|
public ExplainResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public ExplainResponse build()
public ExplainResponse buildPartial()
public ExplainResponse.Builder clear()
Overrides
public ExplainResponse.Builder clearDeployedModelId()
ID of the Endpoint's DeployedModel that served this explanation.
string deployed_model_id = 2;
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;
public ExplainResponse.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public ExplainResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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;
public ExplainResponse.Builder clone()
Overrides
public ExplainResponse getDefaultInstanceForType()
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 Descriptors.Descriptor getDescriptorForType()
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 |
---|
Name | Description |
index | int
|
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 |
---|
Name | Description |
index | int
|
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;
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 |
---|
Type | Description |
int | |
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;
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 |
---|
Name | Description |
index | int
|
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 |
---|
Name | Description |
index | int
|
Returns |
---|
Type | Description |
Value | |
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 |
---|
Name | Description |
index | int
|
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;
public int getPredictionsCount()
The predictions that are the output of the predictions call.
Same as
PredictResponse.predictions.
repeated .google.protobuf.Value predictions = 3;
Returns |
---|
Type | Description |
int | |
public List<Value> getPredictionsList()
The predictions that are the output of the predictions call.
Same as
PredictResponse.predictions.
repeated .google.protobuf.Value predictions = 3;
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 |
---|
Name | Description |
index | int
|
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()
Overrides
public final boolean isInitialized()
Overrides
public ExplainResponse.Builder mergeFrom(ExplainResponse other)
public ExplainResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public ExplainResponse.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
public final ExplainResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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 |
---|
Name | Description |
index | int
|
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 |
---|
Name | Description |
index | int
|
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.
|
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.
|
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;
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;
public ExplainResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
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 |
---|
Name | Description |
index | int
|
value | Value
|
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 |
---|
Name | Description |
index | int
|
builderForValue | Builder
|
public ExplainResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final ExplainResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides