public static final class DirectPredictResponse.Builder extends GeneratedMessageV3.Builder<DirectPredictResponse.Builder> implements DirectPredictResponseOrBuilder
Response message for
PredictionService.DirectPredict.
Protobuf type google.cloud.vertexai.v1.DirectPredictResponse
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllOutputs(Iterable<? extends Tensor> values)
public DirectPredictResponse.Builder addAllOutputs(Iterable<? extends Tensor> values)
The prediction output.
repeated .google.cloud.vertexai.v1.Tensor outputs = 1;
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.cloud.vertexai.api.Tensor>
|
addOutputs(Tensor value)
public DirectPredictResponse.Builder addOutputs(Tensor value)
The prediction output.
repeated .google.cloud.vertexai.v1.Tensor outputs = 1;
Parameter |
Name |
Description |
value |
Tensor
|
addOutputs(Tensor.Builder builderForValue)
public DirectPredictResponse.Builder addOutputs(Tensor.Builder builderForValue)
The prediction output.
repeated .google.cloud.vertexai.v1.Tensor outputs = 1;
addOutputs(int index, Tensor value)
public DirectPredictResponse.Builder addOutputs(int index, Tensor value)
The prediction output.
repeated .google.cloud.vertexai.v1.Tensor outputs = 1;
Parameters |
Name |
Description |
index |
int
|
value |
Tensor
|
addOutputs(int index, Tensor.Builder builderForValue)
public DirectPredictResponse.Builder addOutputs(int index, Tensor.Builder builderForValue)
The prediction output.
repeated .google.cloud.vertexai.v1.Tensor outputs = 1;
addOutputsBuilder()
public Tensor.Builder addOutputsBuilder()
The prediction output.
repeated .google.cloud.vertexai.v1.Tensor outputs = 1;
addOutputsBuilder(int index)
public Tensor.Builder addOutputsBuilder(int index)
The prediction output.
repeated .google.cloud.vertexai.v1.Tensor outputs = 1;
Parameter |
Name |
Description |
index |
int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public DirectPredictResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public DirectPredictResponse build()
buildPartial()
public DirectPredictResponse buildPartial()
clear()
public DirectPredictResponse.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public DirectPredictResponse.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public DirectPredictResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearOutputs()
public DirectPredictResponse.Builder clearOutputs()
The prediction output.
repeated .google.cloud.vertexai.v1.Tensor outputs = 1;
clearParameters()
public DirectPredictResponse.Builder clearParameters()
The parameters that govern the prediction.
.google.cloud.vertexai.v1.Tensor parameters = 2;
clone()
public DirectPredictResponse.Builder clone()
Overrides
getDefaultInstanceForType()
public DirectPredictResponse getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getOutputs(int index)
public Tensor getOutputs(int index)
The prediction output.
repeated .google.cloud.vertexai.v1.Tensor outputs = 1;
Parameter |
Name |
Description |
index |
int
|
Returns |
Type |
Description |
Tensor |
|
getOutputsBuilder(int index)
public Tensor.Builder getOutputsBuilder(int index)
The prediction output.
repeated .google.cloud.vertexai.v1.Tensor outputs = 1;
Parameter |
Name |
Description |
index |
int
|
getOutputsBuilderList()
public List<Tensor.Builder> getOutputsBuilderList()
The prediction output.
repeated .google.cloud.vertexai.v1.Tensor outputs = 1;
getOutputsCount()
public int getOutputsCount()
The prediction output.
repeated .google.cloud.vertexai.v1.Tensor outputs = 1;
Returns |
Type |
Description |
int |
|
getOutputsList()
public List<Tensor> getOutputsList()
The prediction output.
repeated .google.cloud.vertexai.v1.Tensor outputs = 1;
getOutputsOrBuilder(int index)
public TensorOrBuilder getOutputsOrBuilder(int index)
The prediction output.
repeated .google.cloud.vertexai.v1.Tensor outputs = 1;
Parameter |
Name |
Description |
index |
int
|
getOutputsOrBuilderList()
public List<? extends TensorOrBuilder> getOutputsOrBuilderList()
The prediction output.
repeated .google.cloud.vertexai.v1.Tensor outputs = 1;
Returns |
Type |
Description |
List<? extends com.google.cloud.vertexai.api.TensorOrBuilder> |
|
getParameters()
public Tensor getParameters()
The parameters that govern the prediction.
.google.cloud.vertexai.v1.Tensor parameters = 2;
Returns |
Type |
Description |
Tensor |
The parameters.
|
getParametersBuilder()
public Tensor.Builder getParametersBuilder()
The parameters that govern the prediction.
.google.cloud.vertexai.v1.Tensor parameters = 2;
getParametersOrBuilder()
public TensorOrBuilder getParametersOrBuilder()
The parameters that govern the prediction.
.google.cloud.vertexai.v1.Tensor parameters = 2;
hasParameters()
public boolean hasParameters()
The parameters that govern the prediction.
.google.cloud.vertexai.v1.Tensor parameters = 2;
Returns |
Type |
Description |
boolean |
Whether the parameters field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(DirectPredictResponse other)
public DirectPredictResponse.Builder mergeFrom(DirectPredictResponse other)
public DirectPredictResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public DirectPredictResponse.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeParameters(Tensor value)
public DirectPredictResponse.Builder mergeParameters(Tensor value)
The parameters that govern the prediction.
.google.cloud.vertexai.v1.Tensor parameters = 2;
Parameter |
Name |
Description |
value |
Tensor
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final DirectPredictResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeOutputs(int index)
public DirectPredictResponse.Builder removeOutputs(int index)
The prediction output.
repeated .google.cloud.vertexai.v1.Tensor outputs = 1;
Parameter |
Name |
Description |
index |
int
|
setField(Descriptors.FieldDescriptor field, Object value)
public DirectPredictResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setOutputs(int index, Tensor value)
public DirectPredictResponse.Builder setOutputs(int index, Tensor value)
The prediction output.
repeated .google.cloud.vertexai.v1.Tensor outputs = 1;
Parameters |
Name |
Description |
index |
int
|
value |
Tensor
|
setOutputs(int index, Tensor.Builder builderForValue)
public DirectPredictResponse.Builder setOutputs(int index, Tensor.Builder builderForValue)
The prediction output.
repeated .google.cloud.vertexai.v1.Tensor outputs = 1;
setParameters(Tensor value)
public DirectPredictResponse.Builder setParameters(Tensor value)
The parameters that govern the prediction.
.google.cloud.vertexai.v1.Tensor parameters = 2;
Parameter |
Name |
Description |
value |
Tensor
|
setParameters(Tensor.Builder builderForValue)
public DirectPredictResponse.Builder setParameters(Tensor.Builder builderForValue)
The parameters that govern the prediction.
.google.cloud.vertexai.v1.Tensor parameters = 2;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public DirectPredictResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final DirectPredictResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides