Class StreamingRawPredictRequest.Builder (1.7.0)
Stay organized with collections
Save and categorize content based on your preferences.
publicstaticfinalclass StreamingRawPredictRequest.BuilderextendsGeneratedMessageV3.Builder<StreamingRawPredictRequest.Builder>implementsStreamingRawPredictRequestOrBuilderRequest message for PredictionService.StreamingRawPredict.
The first message must contain endpoint and method_name fields and optionally input. The subsequent messages must contain input. method_name in the subsequent messages have no effect.
Protobuf type google.cloud.vertexai.v1.StreamingRawPredictRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > StreamingRawPredictRequest.BuilderImplements
StreamingRawPredictRequestOrBuilderInherited Members
Static Methods
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
publicStreamingRawPredictRequest.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
StreamingRawPredictRequest.Builder |
|
build()
publicStreamingRawPredictRequestbuild()| Returns | |
|---|---|
| Type | Description |
StreamingRawPredictRequest |
|
buildPartial()
publicStreamingRawPredictRequestbuildPartial()| Returns | |
|---|---|
| Type | Description |
StreamingRawPredictRequest |
|
clear()
publicStreamingRawPredictRequest.Builderclear()| Returns | |
|---|---|
| Type | Description |
StreamingRawPredictRequest.Builder |
|
clearEndpoint()
publicStreamingRawPredictRequest.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 |
StreamingRawPredictRequest.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
publicStreamingRawPredictRequest.BuilderclearField(Descriptors.FieldDescriptorfield)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
StreamingRawPredictRequest.Builder |
|
clearInput()
publicStreamingRawPredictRequest.BuilderclearInput()The prediction input.
bytes input = 3;
| Returns | |
|---|---|
| Type | Description |
StreamingRawPredictRequest.Builder |
This builder for chaining. |
clearMethodName()
publicStreamingRawPredictRequest.BuilderclearMethodName()Fully qualified name of the API method being invoked to perform predictions.
Format:
/namespace.Service/Method/
Example:
/tensorflow.serving.PredictionService/Predict
string method_name = 2;
| Returns | |
|---|---|
| Type | Description |
StreamingRawPredictRequest.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
publicStreamingRawPredictRequest.BuilderclearOneof(Descriptors.OneofDescriptoroneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
StreamingRawPredictRequest.Builder |
|
clone()
publicStreamingRawPredictRequest.Builderclone()| Returns | |
|---|---|
| Type | Description |
StreamingRawPredictRequest.Builder |
|
getDefaultInstanceForType()
publicStreamingRawPredictRequestgetDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
StreamingRawPredictRequest |
|
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. |
getInput()
publicByteStringgetInput()The prediction input.
bytes input = 3;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The input. |
getMethodName()
publicStringgetMethodName()Fully qualified name of the API method being invoked to perform predictions.
Format:
/namespace.Service/Method/
Example:
/tensorflow.serving.PredictionService/Predict
string method_name = 2;
| Returns | |
|---|---|
| Type | Description |
String |
The methodName. |
getMethodNameBytes()
publicByteStringgetMethodNameBytes()Fully qualified name of the API method being invoked to perform predictions.
Format:
/namespace.Service/Method/
Example:
/tensorflow.serving.PredictionService/Predict
string method_name = 2;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for methodName. |
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
publicfinalbooleanisInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(StreamingRawPredictRequest other)
publicStreamingRawPredictRequest.BuildermergeFrom(StreamingRawPredictRequestother)| Parameter | |
|---|---|
| Name | Description |
other |
StreamingRawPredictRequest |
| Returns | |
|---|---|
| Type | Description |
StreamingRawPredictRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
publicStreamingRawPredictRequest.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
StreamingRawPredictRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
publicStreamingRawPredictRequest.BuildermergeFrom(Messageother)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
StreamingRawPredictRequest.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
publicfinalStreamingRawPredictRequest.BuildermergeUnknownFields(UnknownFieldSetunknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
StreamingRawPredictRequest.Builder |
|
setEndpoint(String value)
publicStreamingRawPredictRequest.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 |
StreamingRawPredictRequest.Builder |
This builder for chaining. |
setEndpointBytes(ByteString value)
publicStreamingRawPredictRequest.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 |
StreamingRawPredictRequest.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
publicStreamingRawPredictRequest.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
StreamingRawPredictRequest.Builder |
|
setInput(ByteString value)
publicStreamingRawPredictRequest.BuildersetInput(ByteStringvalue)The prediction input.
bytes input = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The input to set. |
| Returns | |
|---|---|
| Type | Description |
StreamingRawPredictRequest.Builder |
This builder for chaining. |
setMethodName(String value)
publicStreamingRawPredictRequest.BuildersetMethodName(Stringvalue)Fully qualified name of the API method being invoked to perform predictions.
Format:
/namespace.Service/Method/
Example:
/tensorflow.serving.PredictionService/Predict
string method_name = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
String The methodName to set. |
| Returns | |
|---|---|
| Type | Description |
StreamingRawPredictRequest.Builder |
This builder for chaining. |
setMethodNameBytes(ByteString value)
publicStreamingRawPredictRequest.BuildersetMethodNameBytes(ByteStringvalue)Fully qualified name of the API method being invoked to perform predictions.
Format:
/namespace.Service/Method/
Example:
/tensorflow.serving.PredictionService/Predict
string method_name = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The bytes for methodName to set. |
| Returns | |
|---|---|
| Type | Description |
StreamingRawPredictRequest.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
publicStreamingRawPredictRequest.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
StreamingRawPredictRequest.Builder |
|
setUnknownFields(UnknownFieldSet unknownFields)
publicfinalStreamingRawPredictRequest.BuildersetUnknownFields(UnknownFieldSetunknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
StreamingRawPredictRequest.Builder |
|