Class RawPredictRequest.Builder (1.40.0)

publicstaticfinalclass RawPredictRequest.BuilderextendsGeneratedMessageV3.Builder<RawPredictRequest.Builder>implementsRawPredictRequestOrBuilder

Request message for PredictionService.RawPredict.

Protobuf type google.cloud.vertexai.v1.RawPredictRequest

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicRawPredictRequest.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RawPredictRequest.Builder
Overrides

build()

publicRawPredictRequestbuild()
Returns
Type Description
RawPredictRequest

buildPartial()

publicRawPredictRequestbuildPartial()
Returns
Type Description
RawPredictRequest

clear()

publicRawPredictRequest.Builderclear()
Returns
Type Description
RawPredictRequest.Builder
Overrides

clearEndpoint()

publicRawPredictRequest.BuilderclearEndpoint()

Required. The name of the Endpoint requested to serve the prediction. Format: projects/{project}/locations/{location}/endpoints/{endpoint}

string endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
RawPredictRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

publicRawPredictRequest.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
RawPredictRequest.Builder
Overrides

clearHttpBody()

publicRawPredictRequest.BuilderclearHttpBody()

The prediction input. Supports HTTP headers and arbitrary data payload.

A DeployedModel may have an upper limit on the number of instances it supports per request. When this limit it is exceeded for an AutoML model, the RawPredict method returns an error. When this limit is exceeded for a custom-trained model, the behavior varies depending on the model.

You can specify the schema for each instance in the predict_schemata.instance_schema_uri field when you create a Model. This schema applies when you deploy the Model as a DeployedModel to an Endpoint and use the RawPredict method.

.google.api.HttpBody http_body = 2;

Returns
Type Description
RawPredictRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

publicRawPredictRequest.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
RawPredictRequest.Builder
Overrides

clone()

publicRawPredictRequest.Builderclone()
Returns
Type Description
RawPredictRequest.Builder
Overrides

getDefaultInstanceForType()

publicRawPredictRequestgetDefaultInstanceForType()
Returns
Type Description
RawPredictRequest

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEndpoint()

publicStringgetEndpoint()

Required. The name of the Endpoint requested to serve the prediction. Format: projects/{project}/locations/{location}/endpoints/{endpoint}

string endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The endpoint.

getEndpointBytes()

publicByteStringgetEndpointBytes()

Required. The name of the Endpoint requested to serve the prediction. Format: projects/{project}/locations/{location}/endpoints/{endpoint}

string endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for endpoint.

getHttpBody()

publicHttpBodygetHttpBody()

The prediction input. Supports HTTP headers and arbitrary data payload.

A DeployedModel may have an upper limit on the number of instances it supports per request. When this limit it is exceeded for an AutoML model, the RawPredict method returns an error. When this limit is exceeded for a custom-trained model, the behavior varies depending on the model.

You can specify the schema for each instance in the predict_schemata.instance_schema_uri field when you create a Model. This schema applies when you deploy the Model as a DeployedModel to an Endpoint and use the RawPredict method.

.google.api.HttpBody http_body = 2;

Returns
Type Description
com.google.api.HttpBody

The httpBody.

getHttpBodyBuilder()

publicHttpBody.BuildergetHttpBodyBuilder()

The prediction input. Supports HTTP headers and arbitrary data payload.

A DeployedModel may have an upper limit on the number of instances it supports per request. When this limit it is exceeded for an AutoML model, the RawPredict method returns an error. When this limit is exceeded for a custom-trained model, the behavior varies depending on the model.

You can specify the schema for each instance in the predict_schemata.instance_schema_uri field when you create a Model. This schema applies when you deploy the Model as a DeployedModel to an Endpoint and use the RawPredict method.

.google.api.HttpBody http_body = 2;

Returns
Type Description
com.google.api.HttpBody.Builder

getHttpBodyOrBuilder()

publicHttpBodyOrBuildergetHttpBodyOrBuilder()

The prediction input. Supports HTTP headers and arbitrary data payload.

A DeployedModel may have an upper limit on the number of instances it supports per request. When this limit it is exceeded for an AutoML model, the RawPredict method returns an error. When this limit is exceeded for a custom-trained model, the behavior varies depending on the model.

You can specify the schema for each instance in the predict_schemata.instance_schema_uri field when you create a Model. This schema applies when you deploy the Model as a DeployedModel to an Endpoint and use the RawPredict method.

.google.api.HttpBody http_body = 2;

Returns
Type Description
com.google.api.HttpBodyOrBuilder

hasHttpBody()

publicbooleanhasHttpBody()

The prediction input. Supports HTTP headers and arbitrary data payload.

A DeployedModel may have an upper limit on the number of instances it supports per request. When this limit it is exceeded for an AutoML model, the RawPredict method returns an error. When this limit is exceeded for a custom-trained model, the behavior varies depending on the model.

You can specify the schema for each instance in the predict_schemata.instance_schema_uri field when you create a Model. This schema applies when you deploy the Model as a DeployedModel to an Endpoint and use the RawPredict method.

.google.api.HttpBody http_body = 2;

Returns
Type Description
boolean

Whether the httpBody field is set.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RawPredictRequest other)

publicRawPredictRequest.BuildermergeFrom(RawPredictRequestother)
Parameter
Name Description
other RawPredictRequest
Returns
Type Description
RawPredictRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicRawPredictRequest.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RawPredictRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicRawPredictRequest.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
RawPredictRequest.Builder
Overrides

mergeHttpBody(HttpBody value)

publicRawPredictRequest.BuildermergeHttpBody(HttpBodyvalue)

The prediction input. Supports HTTP headers and arbitrary data payload.

A DeployedModel may have an upper limit on the number of instances it supports per request. When this limit it is exceeded for an AutoML model, the RawPredict method returns an error. When this limit is exceeded for a custom-trained model, the behavior varies depending on the model.

You can specify the schema for each instance in the predict_schemata.instance_schema_uri field when you create a Model. This schema applies when you deploy the Model as a DeployedModel to an Endpoint and use the RawPredict method.

.google.api.HttpBody http_body = 2;

Parameter
Name Description
value com.google.api.HttpBody
Returns
Type Description
RawPredictRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalRawPredictRequest.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RawPredictRequest.Builder
Overrides

setEndpoint(String value)

publicRawPredictRequest.BuildersetEndpoint(Stringvalue)

Required. The name of the Endpoint requested to serve the prediction. Format: projects/{project}/locations/{location}/endpoints/{endpoint}

string endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The endpoint to set.

Returns
Type Description
RawPredictRequest.Builder

This builder for chaining.

setEndpointBytes(ByteString value)

publicRawPredictRequest.BuildersetEndpointBytes(ByteStringvalue)

Required. The name of the Endpoint requested to serve the prediction. Format: projects/{project}/locations/{location}/endpoints/{endpoint}

string endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for endpoint to set.

Returns
Type Description
RawPredictRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

publicRawPredictRequest.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RawPredictRequest.Builder
Overrides

setHttpBody(HttpBody value)

publicRawPredictRequest.BuildersetHttpBody(HttpBodyvalue)

The prediction input. Supports HTTP headers and arbitrary data payload.

A DeployedModel may have an upper limit on the number of instances it supports per request. When this limit it is exceeded for an AutoML model, the RawPredict method returns an error. When this limit is exceeded for a custom-trained model, the behavior varies depending on the model.

You can specify the schema for each instance in the predict_schemata.instance_schema_uri field when you create a Model. This schema applies when you deploy the Model as a DeployedModel to an Endpoint and use the RawPredict method.

.google.api.HttpBody http_body = 2;

Parameter
Name Description
value com.google.api.HttpBody
Returns
Type Description
RawPredictRequest.Builder

setHttpBody(HttpBody.Builder builderForValue)

publicRawPredictRequest.BuildersetHttpBody(HttpBody.BuilderbuilderForValue)

The prediction input. Supports HTTP headers and arbitrary data payload.

A DeployedModel may have an upper limit on the number of instances it supports per request. When this limit it is exceeded for an AutoML model, the RawPredict method returns an error. When this limit is exceeded for a custom-trained model, the behavior varies depending on the model.

You can specify the schema for each instance in the predict_schemata.instance_schema_uri field when you create a Model. This schema applies when you deploy the Model as a DeployedModel to an Endpoint and use the RawPredict method.

.google.api.HttpBody http_body = 2;

Parameter
Name Description
builderForValue com.google.api.HttpBody.Builder
Returns
Type Description
RawPredictRequest.Builder

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

publicRawPredictRequest.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
RawPredictRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalRawPredictRequest.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RawPredictRequest.Builder
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.