Class StreamDirectPredictResponse (3.36.0)

public final class StreamDirectPredictResponse extends GeneratedMessageV3 implements StreamDirectPredictResponseOrBuilder

Response message for PredictionService.StreamDirectPredict.

Protobuf type google.cloud.aiplatform.v1.StreamDirectPredictResponse

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 StreamDirectPredictResponse getDefaultInstance()
Returns
TypeDescription
StreamDirectPredictResponse

getDescriptor()

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

newBuilder()

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

newBuilder(StreamDirectPredictResponse prototype)

public static StreamDirectPredictResponse.Builder newBuilder(StreamDirectPredictResponse prototype)
Parameter
NameDescription
prototypeStreamDirectPredictResponse
Returns
TypeDescription
StreamDirectPredictResponse.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public StreamDirectPredictResponse getDefaultInstanceForType()
Returns
TypeDescription
StreamDirectPredictResponse

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

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.

getParametersOrBuilder()

public TensorOrBuilder getParametersOrBuilder()

The parameters that govern the prediction.

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

Returns
TypeDescription
TensorOrBuilder

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.

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 StreamDirectPredictResponse.Builder newBuilderForType()
Returns
TypeDescription
StreamDirectPredictResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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