Class StreamDirectPredictResponse.Builder (3.52.0)

public static final class StreamDirectPredictResponse.Builder extends GeneratedMessageV3.Builder<StreamDirectPredictResponse.Builder> implements StreamDirectPredictResponseOrBuilder

Response message for PredictionService.StreamDirectPredict.

Protobuf type google.cloud.aiplatform.v1.StreamDirectPredictResponse

Static Methods

getDescriptor()

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

Methods

addAllOutputs(Iterable<? extends Tensor> values)

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

The prediction output.

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

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

addOutputs(Tensor value)

public StreamDirectPredictResponse.Builder addOutputs(Tensor value)

The prediction output.

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

Parameter
Name Description
value Tensor
Returns
Type Description
StreamDirectPredictResponse.Builder

addOutputs(Tensor.Builder builderForValue)

public StreamDirectPredictResponse.Builder addOutputs(Tensor.Builder builderForValue)

The prediction output.

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

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

addOutputs(int index, Tensor value)

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

The prediction output.

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

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

addOutputs(int index, Tensor.Builder builderForValue)

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

The prediction output.

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

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

addOutputsBuilder()

public Tensor.Builder addOutputsBuilder()

The prediction output.

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

Returns
Type Description
Tensor.Builder

addOutputsBuilder(int index)

public Tensor.Builder addOutputsBuilder(int index)

The prediction output.

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

Parameter
Name Description
index int
Returns
Type Description
Tensor.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public StreamDirectPredictResponse build()
Returns
Type Description
StreamDirectPredictResponse

buildPartial()

public StreamDirectPredictResponse buildPartial()
Returns
Type Description
StreamDirectPredictResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOutputs()

public StreamDirectPredictResponse.Builder clearOutputs()

The prediction output.

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

Returns
Type Description
StreamDirectPredictResponse.Builder

clearParameters()

public StreamDirectPredictResponse.Builder clearParameters()

The parameters that govern the prediction.

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

Returns
Type Description
StreamDirectPredictResponse.Builder

clone()

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

getDefaultInstanceForType()

public StreamDirectPredictResponse getDefaultInstanceForType()
Returns
Type Description
StreamDirectPredictResponse

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.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.aiplatform.v1.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.v1.Tensor outputs = 1;

Returns
Type Description
List<Builder>

getOutputsCount()

public int getOutputsCount()

The prediction output.

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

Returns
Type Description
int

getOutputsList()

public List<Tensor> getOutputsList()

The prediction output.

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

Returns
Type Description
List<Tensor>

getOutputsOrBuilder(int index)

public TensorOrBuilder getOutputsOrBuilder(int index)

The prediction output.

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

Returns
Type Description
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
Type Description
Tensor

The parameters.

getParametersBuilder()

public Tensor.Builder getParametersBuilder()

The parameters that govern the prediction.

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

Returns
Type Description
Tensor.Builder

getParametersOrBuilder()

public TensorOrBuilder getParametersOrBuilder()

The parameters that govern the prediction.

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

Returns
Type Description
TensorOrBuilder

hasParameters()

public boolean hasParameters()

The parameters that govern the prediction.

.google.cloud.aiplatform.v1.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(StreamDirectPredictResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeParameters(Tensor value)

public StreamDirectPredictResponse.Builder mergeParameters(Tensor value)

The parameters that govern the prediction.

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

Parameter
Name Description
value Tensor
Returns
Type Description
StreamDirectPredictResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeOutputs(int index)

public StreamDirectPredictResponse.Builder removeOutputs(int index)

The prediction output.

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

Parameter
Name Description
index int
Returns
Type Description
StreamDirectPredictResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setOutputs(int index, Tensor value)

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

The prediction output.

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

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

setOutputs(int index, Tensor.Builder builderForValue)

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

The prediction output.

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

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

setParameters(Tensor value)

public StreamDirectPredictResponse.Builder setParameters(Tensor value)

The parameters that govern the prediction.

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

Parameter
Name Description
value Tensor
Returns
Type Description
StreamDirectPredictResponse.Builder

setParameters(Tensor.Builder builderForValue)

public StreamDirectPredictResponse.Builder setParameters(Tensor.Builder builderForValue)

The parameters that govern the prediction.

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

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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