Class StreamDirectRawPredictRequest.Builder (1.38.0)
Stay organized with collections
Save and categorize content based on your preferences.
publicstaticfinalclass StreamDirectRawPredictRequest.BuilderextendsGeneratedMessageV3.Builder<StreamDirectRawPredictRequest.Builder>implementsStreamDirectRawPredictRequestOrBuilderRequest message for PredictionService.StreamDirectRawPredict.
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.StreamDirectRawPredictRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > StreamDirectRawPredictRequest.BuilderImplements
StreamDirectRawPredictRequestOrBuilderInherited Members
Static Methods
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
publicStreamDirectRawPredictRequest.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
StreamDirectRawPredictRequest.Builder |
|
build()
publicStreamDirectRawPredictRequestbuild()| Returns | |
|---|---|
| Type | Description |
StreamDirectRawPredictRequest |
|
buildPartial()
publicStreamDirectRawPredictRequestbuildPartial()| Returns | |
|---|---|
| Type | Description |
StreamDirectRawPredictRequest |
|
clear()
publicStreamDirectRawPredictRequest.Builderclear()| Returns | |
|---|---|
| Type | Description |
StreamDirectRawPredictRequest.Builder |
|
clearEndpoint()
publicStreamDirectRawPredictRequest.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 |
StreamDirectRawPredictRequest.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
publicStreamDirectRawPredictRequest.BuilderclearField(Descriptors.FieldDescriptorfield)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
StreamDirectRawPredictRequest.Builder |
|
clearInput()
publicStreamDirectRawPredictRequest.BuilderclearInput()Optional. The prediction input.
bytes input = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
StreamDirectRawPredictRequest.Builder |
This builder for chaining. |
clearMethodName()
publicStreamDirectRawPredictRequest.BuilderclearMethodName()Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
StreamDirectRawPredictRequest.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
publicStreamDirectRawPredictRequest.BuilderclearOneof(Descriptors.OneofDescriptoroneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
StreamDirectRawPredictRequest.Builder |
|
clone()
publicStreamDirectRawPredictRequest.Builderclone()| Returns | |
|---|---|
| Type | Description |
StreamDirectRawPredictRequest.Builder |
|
getDefaultInstanceForType()
publicStreamDirectRawPredictRequestgetDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
StreamDirectRawPredictRequest |
|
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()Optional. The prediction input.
bytes input = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The input. |
getMethodName()
publicStringgetMethodName()Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The methodName. |
getMethodNameBytes()
publicByteStringgetMethodNameBytes()Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for methodName. |
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
publicfinalbooleanisInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(StreamDirectRawPredictRequest other)
publicStreamDirectRawPredictRequest.BuildermergeFrom(StreamDirectRawPredictRequestother)| Parameter | |
|---|---|
| Name | Description |
other |
StreamDirectRawPredictRequest |
| Returns | |
|---|---|
| Type | Description |
StreamDirectRawPredictRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
publicStreamDirectRawPredictRequest.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
StreamDirectRawPredictRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
publicStreamDirectRawPredictRequest.BuildermergeFrom(Messageother)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
StreamDirectRawPredictRequest.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
publicfinalStreamDirectRawPredictRequest.BuildermergeUnknownFields(UnknownFieldSetunknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
StreamDirectRawPredictRequest.Builder |
|
setEndpoint(String value)
publicStreamDirectRawPredictRequest.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 |
StreamDirectRawPredictRequest.Builder |
This builder for chaining. |
setEndpointBytes(ByteString value)
publicStreamDirectRawPredictRequest.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 |
StreamDirectRawPredictRequest.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
publicStreamDirectRawPredictRequest.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
StreamDirectRawPredictRequest.Builder |
|
setInput(ByteString value)
publicStreamDirectRawPredictRequest.BuildersetInput(ByteStringvalue)Optional. The prediction input.
bytes input = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The input to set. |
| Returns | |
|---|---|
| Type | Description |
StreamDirectRawPredictRequest.Builder |
This builder for chaining. |
setMethodName(String value)
publicStreamDirectRawPredictRequest.BuildersetMethodName(Stringvalue)Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
String The methodName to set. |
| Returns | |
|---|---|
| Type | Description |
StreamDirectRawPredictRequest.Builder |
This builder for chaining. |
setMethodNameBytes(ByteString value)
publicStreamDirectRawPredictRequest.BuildersetMethodNameBytes(ByteStringvalue)Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The bytes for methodName to set. |
| Returns | |
|---|---|
| Type | Description |
StreamDirectRawPredictRequest.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
publicStreamDirectRawPredictRequest.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
StreamDirectRawPredictRequest.Builder |
|
setUnknownFields(UnknownFieldSet unknownFields)
publicfinalStreamDirectRawPredictRequest.BuildersetUnknownFields(UnknownFieldSetunknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
StreamDirectRawPredictRequest.Builder |
|