Class StreamDirectPredictResponse.Builder (3.38.0)

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

Response message for PredictionService.StreamDirectPredict.

Protobuf type google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse

Static Methods

getDescriptor()

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

Methods

addAllOutputs(Iterable<? extends Tensor> values)

public StreamDirectPredictResponse.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
StreamDirectPredictResponse.Builder

addOutputs(Tensor value)

public StreamDirectPredictResponse.Builder addOutputs(Tensor value)

The prediction output.

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

Parameter
NameDescription
valueTensor
Returns
TypeDescription
StreamDirectPredictResponse.Builder

addOutputs(Tensor.Builder builderForValue)

public StreamDirectPredictResponse.Builder addOutputs(Tensor.Builder builderForValue)

The prediction output.

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

Parameter
NameDescription
builderForValueTensor.Builder
Returns
TypeDescription
StreamDirectPredictResponse.Builder

addOutputs(int index, Tensor value)

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

The prediction output.

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

Parameters
NameDescription
indexint
valueTensor
Returns
TypeDescription
StreamDirectPredictResponse.Builder

addOutputs(int index, Tensor.Builder builderForValue)

public StreamDirectPredictResponse.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
StreamDirectPredictResponse.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 StreamDirectPredictResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
StreamDirectPredictResponse.Builder
Overrides

build()

public StreamDirectPredictResponse build()
Returns
TypeDescription
StreamDirectPredictResponse

buildPartial()

public StreamDirectPredictResponse buildPartial()
Returns
TypeDescription
StreamDirectPredictResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOutputs()

public StreamDirectPredictResponse.Builder clearOutputs()

The prediction output.

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

Returns
TypeDescription
StreamDirectPredictResponse.Builder

clearParameters()

public StreamDirectPredictResponse.Builder clearParameters()

The parameters that govern the prediction.

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

Returns
TypeDescription
StreamDirectPredictResponse.Builder

clone()

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

getDefaultInstanceForType()

public StreamDirectPredictResponse getDefaultInstanceForType()
Returns
TypeDescription
StreamDirectPredictResponse

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(StreamDirectPredictResponse other)

public StreamDirectPredictResponse.Builder mergeFrom(StreamDirectPredictResponse other)
Parameter
NameDescription
otherStreamDirectPredictResponse
Returns
TypeDescription
StreamDirectPredictResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeParameters(Tensor value)

public StreamDirectPredictResponse.Builder mergeParameters(Tensor value)

The parameters that govern the prediction.

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

Parameter
NameDescription
valueTensor
Returns
TypeDescription
StreamDirectPredictResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeOutputs(int index)

public StreamDirectPredictResponse.Builder removeOutputs(int index)

The prediction output.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
StreamDirectPredictResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setOutputs(int index, Tensor value)

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

The prediction output.

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

Parameters
NameDescription
indexint
valueTensor
Returns
TypeDescription
StreamDirectPredictResponse.Builder

setOutputs(int index, Tensor.Builder builderForValue)

public StreamDirectPredictResponse.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
StreamDirectPredictResponse.Builder

setParameters(Tensor value)

public StreamDirectPredictResponse.Builder setParameters(Tensor value)

The parameters that govern the prediction.

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

Parameter
NameDescription
valueTensor
Returns
TypeDescription
StreamDirectPredictResponse.Builder

setParameters(Tensor.Builder builderForValue)

public StreamDirectPredictResponse.Builder setParameters(Tensor.Builder builderForValue)

The parameters that govern the prediction.

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

Parameter
NameDescription
builderForValueTensor.Builder
Returns
TypeDescription
StreamDirectPredictResponse.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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