Class DirectPredictResponse.Builder (3.48.0)

public static final class DirectPredictResponse.Builder extends GeneratedMessageV3.Builder<DirectPredictResponse.Builder> implements DirectPredictResponseOrBuilder

Response message for PredictionService.DirectPredict.

Protobuf type google.cloud.aiplatform.v1beta1.DirectPredictResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllOutputs(Iterable<? extends Tensor> values)

public DirectPredictResponse.Builder addAllOutputs(Iterable<? extends Tensor> values)

The prediction output.

repeated .google.cloud.aiplatform.v1beta1.Tensor outputs = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.aiplatform.v1beta1.Tensor>
Returns
Type Description
DirectPredictResponse.Builder

addOutputs(Tensor value)

public DirectPredictResponse.Builder addOutputs(Tensor value)

The prediction output.

repeated .google.cloud.aiplatform.v1beta1.Tensor outputs = 1;

Parameter
Name Description
value Tensor
Returns
Type Description
DirectPredictResponse.Builder

addOutputs(Tensor.Builder builderForValue)

public DirectPredictResponse.Builder addOutputs(Tensor.Builder builderForValue)

The prediction output.

repeated .google.cloud.aiplatform.v1beta1.Tensor outputs = 1;

Parameter
Name Description
builderForValue Tensor.Builder
Returns
Type Description
DirectPredictResponse.Builder

addOutputs(int index, Tensor value)

public DirectPredictResponse.Builder addOutputs(int index, Tensor value)

The prediction output.

repeated .google.cloud.aiplatform.v1beta1.Tensor outputs = 1;

Parameters
Name Description
index int
value Tensor
Returns
Type Description
DirectPredictResponse.Builder

addOutputs(int index, Tensor.Builder builderForValue)

public DirectPredictResponse.Builder addOutputs(int index, Tensor.Builder builderForValue)

The prediction output.

repeated .google.cloud.aiplatform.v1beta1.Tensor outputs = 1;

Parameters
Name Description
index int
builderForValue Tensor.Builder
Returns
Type Description
DirectPredictResponse.Builder

addOutputsBuilder()

public Tensor.Builder addOutputsBuilder()

The prediction output.

repeated .google.cloud.aiplatform.v1beta1.Tensor outputs = 1;

Returns
Type Description
Tensor.Builder

addOutputsBuilder(int index)

public Tensor.Builder addOutputsBuilder(int index)

The prediction output.

repeated .google.cloud.aiplatform.v1beta1.Tensor outputs = 1;

Parameter
Name Description
index int
Returns
Type Description
Tensor.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DirectPredictResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DirectPredictResponse.Builder
Overrides

build()

public DirectPredictResponse build()
Returns
Type Description
DirectPredictResponse

buildPartial()

public DirectPredictResponse buildPartial()
Returns
Type Description
DirectPredictResponse

clear()

public DirectPredictResponse.Builder clear()
Returns
Type Description
DirectPredictResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public DirectPredictResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
DirectPredictResponse.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public DirectPredictResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
DirectPredictResponse.Builder
Overrides

clearOutputs()

public DirectPredictResponse.Builder clearOutputs()

The prediction output.

repeated .google.cloud.aiplatform.v1beta1.Tensor outputs = 1;

Returns
Type Description
DirectPredictResponse.Builder

clearParameters()

public DirectPredictResponse.Builder clearParameters()

The parameters that govern the prediction.

.google.cloud.aiplatform.v1beta1.Tensor parameters = 2;

Returns
Type Description
DirectPredictResponse.Builder

clone()

public DirectPredictResponse.Builder clone()
Returns
Type Description
DirectPredictResponse.Builder
Overrides

getDefaultInstanceForType()

public DirectPredictResponse getDefaultInstanceForType()
Returns
Type Description
DirectPredictResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getOutputs(int index)

public Tensor getOutputs(int index)

The prediction output.

repeated .google.cloud.aiplatform.v1beta1.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.aiplatform.v1beta1.Tensor outputs = 1;

Parameter
Name Description
index int
Returns
Type Description
Tensor.Builder

getOutputsBuilderList()

public List<Tensor.Builder> getOutputsBuilderList()

The prediction output.

repeated .google.cloud.aiplatform.v1beta1.Tensor outputs = 1;

Returns
Type Description
List<Builder>

getOutputsCount()

public int getOutputsCount()

The prediction output.

repeated .google.cloud.aiplatform.v1beta1.Tensor outputs = 1;

Returns
Type Description
int

getOutputsList()

public List<Tensor> getOutputsList()

The prediction output.

repeated .google.cloud.aiplatform.v1beta1.Tensor outputs = 1;

Returns
Type Description
List<Tensor>

getOutputsOrBuilder(int index)

public TensorOrBuilder getOutputsOrBuilder(int index)

The prediction output.

repeated .google.cloud.aiplatform.v1beta1.Tensor outputs = 1;

Parameter
Name Description
index int
Returns
Type Description
TensorOrBuilder

getOutputsOrBuilderList()

public List<? extends TensorOrBuilder> getOutputsOrBuilderList()

The prediction output.

repeated .google.cloud.aiplatform.v1beta1.Tensor outputs = 1;

Returns
Type Description
List<? extends com.google.cloud.aiplatform.v1beta1.TensorOrBuilder>

getParameters()

public Tensor getParameters()

The parameters that govern the prediction.

.google.cloud.aiplatform.v1beta1.Tensor parameters = 2;

Returns
Type Description
Tensor

The parameters.

getParametersBuilder()

public Tensor.Builder getParametersBuilder()

The parameters that govern the prediction.

.google.cloud.aiplatform.v1beta1.Tensor parameters = 2;

Returns
Type Description
Tensor.Builder

getParametersOrBuilder()

public TensorOrBuilder getParametersOrBuilder()

The parameters that govern the prediction.

.google.cloud.aiplatform.v1beta1.Tensor parameters = 2;

Returns
Type Description
TensorOrBuilder

hasParameters()

public boolean hasParameters()

The parameters that govern the prediction.

.google.cloud.aiplatform.v1beta1.Tensor parameters = 2;

Returns
Type Description
boolean

Whether the parameters field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DirectPredictResponse other)

public DirectPredictResponse.Builder mergeFrom(DirectPredictResponse other)
Parameter
Name Description
other DirectPredictResponse
Returns
Type Description
DirectPredictResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DirectPredictResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DirectPredictResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DirectPredictResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DirectPredictResponse.Builder
Overrides

mergeParameters(Tensor value)

public DirectPredictResponse.Builder mergeParameters(Tensor value)

The parameters that govern the prediction.

.google.cloud.aiplatform.v1beta1.Tensor parameters = 2;

Parameter
Name Description
value Tensor
Returns
Type Description
DirectPredictResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DirectPredictResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DirectPredictResponse.Builder
Overrides

removeOutputs(int index)

public DirectPredictResponse.Builder removeOutputs(int index)

The prediction output.

repeated .google.cloud.aiplatform.v1beta1.Tensor outputs = 1;

Parameter
Name Description
index int
Returns
Type Description
DirectPredictResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public DirectPredictResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DirectPredictResponse.Builder
Overrides

setOutputs(int index, Tensor value)

public DirectPredictResponse.Builder setOutputs(int index, Tensor value)

The prediction output.

repeated .google.cloud.aiplatform.v1beta1.Tensor outputs = 1;

Parameters
Name Description
index int
value Tensor
Returns
Type Description
DirectPredictResponse.Builder

setOutputs(int index, Tensor.Builder builderForValue)

public DirectPredictResponse.Builder setOutputs(int index, Tensor.Builder builderForValue)

The prediction output.

repeated .google.cloud.aiplatform.v1beta1.Tensor outputs = 1;

Parameters
Name Description
index int
builderForValue Tensor.Builder
Returns
Type Description
DirectPredictResponse.Builder

setParameters(Tensor value)

public DirectPredictResponse.Builder setParameters(Tensor value)

The parameters that govern the prediction.

.google.cloud.aiplatform.v1beta1.Tensor parameters = 2;

Parameter
Name Description
value Tensor
Returns
Type Description
DirectPredictResponse.Builder

setParameters(Tensor.Builder builderForValue)

public DirectPredictResponse.Builder setParameters(Tensor.Builder builderForValue)

The parameters that govern the prediction.

.google.cloud.aiplatform.v1beta1.Tensor parameters = 2;

Parameter
Name Description
builderForValue Tensor.Builder
Returns
Type Description
DirectPredictResponse.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public DirectPredictResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
DirectPredictResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final DirectPredictResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DirectPredictResponse.Builder
Overrides