Class DirectPredictResponse (3.38.0)

public final class DirectPredictResponse extends GeneratedMessageV3 implements DirectPredictResponseOrBuilder

Response message for PredictionService.DirectPredict.

Protobuf type google.cloud.aiplatform.v1beta1.DirectPredictResponse

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

getDescriptor()

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

newBuilder()

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

newBuilder(DirectPredictResponse prototype)

public static DirectPredictResponse.Builder newBuilder(DirectPredictResponse prototype)
Parameter
NameDescription
prototypeDirectPredictResponse
Returns
TypeDescription
DirectPredictResponse.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public DirectPredictResponse getDefaultInstanceForType()
Returns
TypeDescription
DirectPredictResponse

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<DirectPredictResponse> getParserForType()
Returns
TypeDescription
Parser<DirectPredictResponse>
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 DirectPredictResponse.Builder newBuilderForType()
Returns
TypeDescription
DirectPredictResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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