Class StreamingPredictResponse.Builder (3.34.0)

public static final class StreamingPredictResponse.Builder extends GeneratedMessageV3.Builder<StreamingPredictResponse.Builder> implements StreamingPredictResponseOrBuilder

Response message for PredictionService.StreamingPredict.

Protobuf type google.cloud.aiplatform.v1beta1.StreamingPredictResponse

Static Methods

getDescriptor()

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

Methods

addAllOutputs(Iterable<? extends Tensor> values)

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

The prediction output.

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

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

addOutputs(Tensor value)

public StreamingPredictResponse.Builder addOutputs(Tensor value)

The prediction output.

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

Parameter
NameDescription
valueTensor
Returns
TypeDescription
StreamingPredictResponse.Builder

addOutputs(Tensor.Builder builderForValue)

public StreamingPredictResponse.Builder addOutputs(Tensor.Builder builderForValue)

The prediction output.

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

Parameter
NameDescription
builderForValueTensor.Builder
Returns
TypeDescription
StreamingPredictResponse.Builder

addOutputs(int index, Tensor value)

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

The prediction output.

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

Parameters
NameDescription
indexint
valueTensor
Returns
TypeDescription
StreamingPredictResponse.Builder

addOutputs(int index, Tensor.Builder builderForValue)

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

The prediction output.

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

Parameters
NameDescription
indexint
builderForValueTensor.Builder
Returns
TypeDescription
StreamingPredictResponse.Builder

addOutputsBuilder()

public Tensor.Builder addOutputsBuilder()

The prediction output.

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

Returns
TypeDescription
Tensor.Builder

addOutputsBuilder(int index)

public Tensor.Builder addOutputsBuilder(int index)

The prediction output.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Tensor.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public StreamingPredictResponse build()
Returns
TypeDescription
StreamingPredictResponse

buildPartial()

public StreamingPredictResponse buildPartial()
Returns
TypeDescription
StreamingPredictResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOutputs()

public StreamingPredictResponse.Builder clearOutputs()

The prediction output.

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

Returns
TypeDescription
StreamingPredictResponse.Builder

clearParameters()

public StreamingPredictResponse.Builder clearParameters()

The parameters that govern the prediction.

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

Returns
TypeDescription
StreamingPredictResponse.Builder

clone()

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

getDefaultInstanceForType()

public StreamingPredictResponse getDefaultInstanceForType()
Returns
TypeDescription
StreamingPredictResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getOutputs(int index)

public Tensor getOutputs(int index)

The prediction output.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Tensor.Builder

getOutputsBuilderList()

public List<Tensor.Builder> getOutputsBuilderList()

The prediction output.

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

Returns
TypeDescription
List<Builder>

getOutputsCount()

public int getOutputsCount()

The prediction output.

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

Returns
TypeDescription
int

getOutputsList()

public List<Tensor> getOutputsList()

The prediction output.

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

Returns
TypeDescription
List<Tensor>

getOutputsOrBuilder(int index)

public TensorOrBuilder getOutputsOrBuilder(int index)

The prediction output.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
TensorOrBuilder

getOutputsOrBuilderList()

public List<? extends TensorOrBuilder> getOutputsOrBuilderList()

The prediction output.

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

Returns
TypeDescription
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
TypeDescription
Tensor

The parameters.

getParametersBuilder()

public Tensor.Builder getParametersBuilder()

The parameters that govern the prediction.

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

Returns
TypeDescription
Tensor.Builder

getParametersOrBuilder()

public TensorOrBuilder getParametersOrBuilder()

The parameters that govern the prediction.

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

Returns
TypeDescription
TensorOrBuilder

hasParameters()

public boolean hasParameters()

The parameters that govern the prediction.

.google.cloud.aiplatform.v1beta1.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(StreamingPredictResponse other)

public StreamingPredictResponse.Builder mergeFrom(StreamingPredictResponse other)
Parameter
NameDescription
otherStreamingPredictResponse
Returns
TypeDescription
StreamingPredictResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeParameters(Tensor value)

public StreamingPredictResponse.Builder mergeParameters(Tensor value)

The parameters that govern the prediction.

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

Parameter
NameDescription
valueTensor
Returns
TypeDescription
StreamingPredictResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeOutputs(int index)

public StreamingPredictResponse.Builder removeOutputs(int index)

The prediction output.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
StreamingPredictResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setOutputs(int index, Tensor value)

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

The prediction output.

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

Parameters
NameDescription
indexint
valueTensor
Returns
TypeDescription
StreamingPredictResponse.Builder

setOutputs(int index, Tensor.Builder builderForValue)

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

The prediction output.

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

Parameters
NameDescription
indexint
builderForValueTensor.Builder
Returns
TypeDescription
StreamingPredictResponse.Builder

setParameters(Tensor value)

public StreamingPredictResponse.Builder setParameters(Tensor value)

The parameters that govern the prediction.

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

Parameter
NameDescription
valueTensor
Returns
TypeDescription
StreamingPredictResponse.Builder

setParameters(Tensor.Builder builderForValue)

public StreamingPredictResponse.Builder setParameters(Tensor.Builder builderForValue)

The parameters that govern the prediction.

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

Parameter
NameDescription
builderForValueTensor.Builder
Returns
TypeDescription
StreamingPredictResponse.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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