Class RawPredictRequest.Builder (1.40.0)
Stay organized with collections
Save and categorize content based on your preferences.
publicstaticfinalclass RawPredictRequest.BuilderextendsGeneratedMessageV3.Builder<RawPredictRequest.Builder>implementsRawPredictRequestOrBuilderRequest message for PredictionService.RawPredict.
Protobuf type google.cloud.vertexai.v1.RawPredictRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > RawPredictRequest.BuilderImplements
RawPredictRequestOrBuilderInherited Members
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 |
|
build()
publicRawPredictRequestbuild()| Returns | |
|---|---|
| Type | Description |
RawPredictRequest |
|
buildPartial()
publicRawPredictRequestbuildPartial()| Returns | |
|---|---|
| Type | Description |
RawPredictRequest |
|
clear()
publicRawPredictRequest.Builderclear()| Returns | |
|---|---|
| Type | Description |
RawPredictRequest.Builder |
|
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 |
|
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 |
|
clone()
publicRawPredictRequest.Builderclone()| Returns | |
|---|---|
| Type | Description |
RawPredictRequest.Builder |
|
getDefaultInstanceForType()
publicRawPredictRequestgetDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
RawPredictRequest |
|
getDescriptorForType()
publicDescriptors.DescriptorgetDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 |
|
isInitialized()
publicfinalbooleanisInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
publicRawPredictRequest.BuildermergeFrom(Messageother)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
RawPredictRequest.Builder |
|
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 |
|
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 |
|
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 |
|
setUnknownFields(UnknownFieldSet unknownFields)
publicfinalRawPredictRequest.BuildersetUnknownFields(UnknownFieldSetunknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
RawPredictRequest.Builder |
|