Class DirectPredictResponse.Builder (3.33.0)

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

Response message for PredictionService.DirectPredict.

Protobuf type google.cloud.aiplatform.v1.DirectPredictResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllOutputs(Iterable<? extends Tensor> values)

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

The prediction output.

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

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.aiplatform.v1.Tensor>
Returns
TypeDescription
DirectPredictResponse.Builder

addOutputs(Tensor value)

public DirectPredictResponse.Builder addOutputs(Tensor value)

The prediction output.

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

Parameter
NameDescription
valueTensor
Returns
TypeDescription
DirectPredictResponse.Builder

addOutputs(Tensor.Builder builderForValue)

public DirectPredictResponse.Builder addOutputs(Tensor.Builder builderForValue)

The prediction output.

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

Parameter
NameDescription
builderForValueTensor.Builder
Returns
TypeDescription
DirectPredictResponse.Builder

addOutputs(int index, Tensor value)

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

The prediction output.

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

Parameters
NameDescription
indexint
valueTensor
Returns
TypeDescription
DirectPredictResponse.Builder

addOutputs(int index, Tensor.Builder builderForValue)

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

The prediction output.

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

Parameters
NameDescription
indexint
builderForValueTensor.Builder
Returns
TypeDescription
DirectPredictResponse.Builder

addOutputsBuilder()

public Tensor.Builder addOutputsBuilder()

The prediction output.

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

Returns
TypeDescription
Tensor.Builder

addOutputsBuilder(int index)

public Tensor.Builder addOutputsBuilder(int index)

The prediction output.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Tensor.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DirectPredictResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DirectPredictResponse.Builder
Overrides

build()

public DirectPredictResponse build()
Returns
TypeDescription
DirectPredictResponse

buildPartial()

public DirectPredictResponse buildPartial()
Returns
TypeDescription
DirectPredictResponse

clear()

public DirectPredictResponse.Builder clear()
Returns
TypeDescription
DirectPredictResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public DirectPredictResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
DirectPredictResponse.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public DirectPredictResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
DirectPredictResponse.Builder
Overrides

clearOutputs()

public DirectPredictResponse.Builder clearOutputs()

The prediction output.

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

Returns
TypeDescription
DirectPredictResponse.Builder

clearParameters()

public DirectPredictResponse.Builder clearParameters()

The parameters that govern the prediction.

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

Returns
TypeDescription
DirectPredictResponse.Builder

clone()

public DirectPredictResponse.Builder clone()
Returns
TypeDescription
DirectPredictResponse.Builder
Overrides

getDefaultInstanceForType()

public DirectPredictResponse getDefaultInstanceForType()
Returns
TypeDescription
DirectPredictResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getOutputs(int index)

public Tensor getOutputs(int index)

The prediction output.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Tensor

getOutputsBuilder(int index)

public Tensor.Builder getOutputsBuilder(int index)

The prediction output.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Tensor.Builder

getOutputsBuilderList()

public List<Tensor.Builder> getOutputsBuilderList()

The prediction output.

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

Returns
TypeDescription
List<Builder>

getOutputsCount()

public int getOutputsCount()

The prediction output.

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

Returns
TypeDescription
int

getOutputsList()

public List<Tensor> getOutputsList()

The prediction output.

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

Returns
TypeDescription
List<Tensor>

getOutputsOrBuilder(int index)

public TensorOrBuilder getOutputsOrBuilder(int index)

The prediction output.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
TensorOrBuilder

getOutputsOrBuilderList()

public List<? extends TensorOrBuilder> getOutputsOrBuilderList()

The prediction output.

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

Returns
TypeDescription
List<? extends com.google.cloud.aiplatform.v1.TensorOrBuilder>

getParameters()

public Tensor getParameters()

The parameters that govern the prediction.

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

Returns
TypeDescription
Tensor

The parameters.

getParametersBuilder()

public Tensor.Builder getParametersBuilder()

The parameters that govern the prediction.

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

Returns
TypeDescription
Tensor.Builder

getParametersOrBuilder()

public TensorOrBuilder getParametersOrBuilder()

The parameters that govern the prediction.

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

Returns
TypeDescription
TensorOrBuilder

hasParameters()

public boolean hasParameters()

The parameters that govern the prediction.

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

Returns
TypeDescription
boolean

Whether the parameters field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DirectPredictResponse other)

public DirectPredictResponse.Builder mergeFrom(DirectPredictResponse other)
Parameter
NameDescription
otherDirectPredictResponse
Returns
TypeDescription
DirectPredictResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DirectPredictResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DirectPredictResponse.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public DirectPredictResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
DirectPredictResponse.Builder
Overrides

mergeParameters(Tensor value)

public DirectPredictResponse.Builder mergeParameters(Tensor value)

The parameters that govern the prediction.

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

Parameter
NameDescription
valueTensor
Returns
TypeDescription
DirectPredictResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DirectPredictResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DirectPredictResponse.Builder
Overrides

removeOutputs(int index)

public DirectPredictResponse.Builder removeOutputs(int index)

The prediction output.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
DirectPredictResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public DirectPredictResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DirectPredictResponse.Builder
Overrides

setOutputs(int index, Tensor value)

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

The prediction output.

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

Parameters
NameDescription
indexint
valueTensor
Returns
TypeDescription
DirectPredictResponse.Builder

setOutputs(int index, Tensor.Builder builderForValue)

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

The prediction output.

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

Parameters
NameDescription
indexint
builderForValueTensor.Builder
Returns
TypeDescription
DirectPredictResponse.Builder

setParameters(Tensor value)

public DirectPredictResponse.Builder setParameters(Tensor value)

The parameters that govern the prediction.

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

Parameter
NameDescription
valueTensor
Returns
TypeDescription
DirectPredictResponse.Builder

setParameters(Tensor.Builder builderForValue)

public DirectPredictResponse.Builder setParameters(Tensor.Builder builderForValue)

The parameters that govern the prediction.

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

Parameter
NameDescription
builderForValueTensor.Builder
Returns
TypeDescription
DirectPredictResponse.Builder

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

public DirectPredictResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
DirectPredictResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final DirectPredictResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DirectPredictResponse.Builder
Overrides