Class StreamingPredictResponse (3.36.0)

public final class StreamingPredictResponse extends GeneratedMessageV3 implements StreamingPredictResponseOrBuilder

Response message for PredictionService.StreamingPredict.

Protobuf type google.cloud.aiplatform.v1beta1.StreamingPredictResponse

Static Fields

OUTPUTS_FIELD_NUMBER

public static final int OUTPUTS_FIELD_NUMBER
Field Value
TypeDescription
int

PARAMETERS_FIELD_NUMBER

public static final int PARAMETERS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static StreamingPredictResponse getDefaultInstance()
Returns
TypeDescription
StreamingPredictResponse

getDescriptor()

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

newBuilder()

public static StreamingPredictResponse.Builder newBuilder()
Returns
TypeDescription
StreamingPredictResponse.Builder

newBuilder(StreamingPredictResponse prototype)

public static StreamingPredictResponse.Builder newBuilder(StreamingPredictResponse prototype)
Parameter
NameDescription
prototypeStreamingPredictResponse
Returns
TypeDescription
StreamingPredictResponse.Builder

parseDelimitedFrom(InputStream input)

public static StreamingPredictResponse parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
StreamingPredictResponse
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static StreamingPredictResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StreamingPredictResponse
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static StreamingPredictResponse parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
StreamingPredictResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static StreamingPredictResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StreamingPredictResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static StreamingPredictResponse parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
StreamingPredictResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static StreamingPredictResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StreamingPredictResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static StreamingPredictResponse parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
StreamingPredictResponse
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static StreamingPredictResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StreamingPredictResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static StreamingPredictResponse parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
StreamingPredictResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static StreamingPredictResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StreamingPredictResponse
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static StreamingPredictResponse parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
StreamingPredictResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static StreamingPredictResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StreamingPredictResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<StreamingPredictResponse> parser()
Returns
TypeDescription
Parser<StreamingPredictResponse>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public StreamingPredictResponse getDefaultInstanceForType()
Returns
TypeDescription
StreamingPredictResponse

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

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.

getParametersOrBuilder()

public TensorOrBuilder getParametersOrBuilder()

The parameters that govern the prediction.

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

Returns
TypeDescription
TensorOrBuilder

getParserForType()

public Parser<StreamingPredictResponse> getParserForType()
Returns
TypeDescription
Parser<StreamingPredictResponse>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public StreamingPredictResponse.Builder newBuilderForType()
Returns
TypeDescription
StreamingPredictResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected StreamingPredictResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
StreamingPredictResponse.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public StreamingPredictResponse.Builder toBuilder()
Returns
TypeDescription
StreamingPredictResponse.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException