Class StreamDirectRawPredictRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<StreamDirectRawPredictRequest.Builder>
com.google.cloud.aiplatform.v1.StreamDirectRawPredictRequest.Builder
All Implemented Interfaces:
StreamDirectRawPredictRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
StreamDirectRawPredictRequest

public static final class StreamDirectRawPredictRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<StreamDirectRawPredictRequest.Builder> implements StreamDirectRawPredictRequestOrBuilder
 Request message for
 [PredictionService.StreamDirectRawPredict][google.cloud.aiplatform.v1.PredictionService.StreamDirectRawPredict].

 The first message must contain
 [endpoint][google.cloud.aiplatform.v1.StreamDirectRawPredictRequest.endpoint]
 and
 [method_name][google.cloud.aiplatform.v1.StreamDirectRawPredictRequest.method_name]
 fields and optionally
 [input][google.cloud.aiplatform.v1.StreamDirectRawPredictRequest.input]. The
 subsequent messages must contain
 [input][google.cloud.aiplatform.v1.StreamDirectRawPredictRequest.input].
 [method_name][google.cloud.aiplatform.v1.StreamDirectRawPredictRequest.method_name]
 in the subsequent messages have no effect.
 
Protobuf type google.cloud.aiplatform.v1.StreamDirectRawPredictRequest
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<StreamDirectRawPredictRequest.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<StreamDirectRawPredictRequest.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<StreamDirectRawPredictRequest.Builder>
    • getDefaultInstanceForType

      public StreamDirectRawPredictRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public StreamDirectRawPredictRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public StreamDirectRawPredictRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<StreamDirectRawPredictRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<StreamDirectRawPredictRequest.Builder>
    • mergeFrom

      public StreamDirectRawPredictRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<StreamDirectRawPredictRequest.Builder>
      Throws:
      IOException
    • getEndpoint

      public String getEndpoint()
       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) = { ... }
      Specified by:
      getEndpoint in interface StreamDirectRawPredictRequestOrBuilder
      Returns:
      The endpoint.
    • getEndpointBytes

      public com.google.protobuf.ByteString getEndpointBytes()
       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) = { ... }
      Specified by:
      getEndpointBytes in interface StreamDirectRawPredictRequestOrBuilder
      Returns:
      The bytes for endpoint.
    • setEndpoint

      public StreamDirectRawPredictRequest.Builder setEndpoint(String value)
       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) = { ... }
      Parameters:
      value - The endpoint to set.
      Returns:
      This builder for chaining.
    • clearEndpoint

      public StreamDirectRawPredictRequest.Builder clearEndpoint()
       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:
      This builder for chaining.
    • setEndpointBytes

      public StreamDirectRawPredictRequest.Builder setEndpointBytes(com.google.protobuf.ByteString value)
       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) = { ... }
      Parameters:
      value - The bytes for endpoint to set.
      Returns:
      This builder for chaining.
    • getMethodName

      public String getMethodName()
       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];
      Specified by:
      getMethodName in interface StreamDirectRawPredictRequestOrBuilder
      Returns:
      The methodName.
    • getMethodNameBytes

      public com.google.protobuf.ByteString getMethodNameBytes()
       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];
      Specified by:
      getMethodNameBytes in interface StreamDirectRawPredictRequestOrBuilder
      Returns:
      The bytes for methodName.
    • setMethodName

      public StreamDirectRawPredictRequest.Builder setMethodName(String value)
       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];
      Parameters:
      value - The methodName to set.
      Returns:
      This builder for chaining.
    • clearMethodName

      public StreamDirectRawPredictRequest.Builder clearMethodName()
       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:
      This builder for chaining.
    • setMethodNameBytes

      public StreamDirectRawPredictRequest.Builder setMethodNameBytes(com.google.protobuf.ByteString value)
       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];
      Parameters:
      value - The bytes for methodName to set.
      Returns:
      This builder for chaining.
    • getInput

      public com.google.protobuf.ByteString getInput()
       Optional. The prediction input.
       
      bytes input = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getInput in interface StreamDirectRawPredictRequestOrBuilder
      Returns:
      The input.
    • setInput

      public StreamDirectRawPredictRequest.Builder setInput(com.google.protobuf.ByteString value)
       Optional. The prediction input.
       
      bytes input = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The input to set.
      Returns:
      This builder for chaining.
    • clearInput

       Optional. The prediction input.
       
      bytes input = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.