Class StreamingPredictRequest.Builder

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

public static final class StreamingPredictRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<StreamingPredictRequest.Builder> implements StreamingPredictRequestOrBuilder
 Request message for
 [PredictionService.StreamingPredict][google.cloud.aiplatform.v1.PredictionService.StreamingPredict].

 The first message must contain
 [endpoint][google.cloud.aiplatform.v1.StreamingPredictRequest.endpoint] field
 and optionally [input][]. The subsequent messages must contain [input][].
 
Protobuf type google.cloud.aiplatform.v1.StreamingPredictRequest
  • 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<StreamingPredictRequest.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<StreamingPredictRequest.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<StreamingPredictRequest.Builder>
    • getDefaultInstanceForType

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

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

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

      public StreamingPredictRequest.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<StreamingPredictRequest.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<StreamingPredictRequest.Builder>
    • mergeFrom

      public StreamingPredictRequest.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<StreamingPredictRequest.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 StreamingPredictRequestOrBuilder
      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 StreamingPredictRequestOrBuilder
      Returns:
      The bytes for endpoint.
    • setEndpoint

      public StreamingPredictRequest.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 StreamingPredictRequest.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 StreamingPredictRequest.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.
    • getInputsList

      public List<Tensor> getInputsList()
       The prediction input.
       
      repeated .google.cloud.aiplatform.v1.Tensor inputs = 2;
      Specified by:
      getInputsList in interface StreamingPredictRequestOrBuilder
    • getInputsCount

      public int getInputsCount()
       The prediction input.
       
      repeated .google.cloud.aiplatform.v1.Tensor inputs = 2;
      Specified by:
      getInputsCount in interface StreamingPredictRequestOrBuilder
    • getInputs

      public Tensor getInputs(int index)
       The prediction input.
       
      repeated .google.cloud.aiplatform.v1.Tensor inputs = 2;
      Specified by:
      getInputs in interface StreamingPredictRequestOrBuilder
    • setInputs

      public StreamingPredictRequest.Builder setInputs(int index, Tensor value)
       The prediction input.
       
      repeated .google.cloud.aiplatform.v1.Tensor inputs = 2;
    • setInputs

      public StreamingPredictRequest.Builder setInputs(int index, Tensor.Builder builderForValue)
       The prediction input.
       
      repeated .google.cloud.aiplatform.v1.Tensor inputs = 2;
    • addInputs

      public StreamingPredictRequest.Builder addInputs(Tensor value)
       The prediction input.
       
      repeated .google.cloud.aiplatform.v1.Tensor inputs = 2;
    • addInputs

      public StreamingPredictRequest.Builder addInputs(int index, Tensor value)
       The prediction input.
       
      repeated .google.cloud.aiplatform.v1.Tensor inputs = 2;
    • addInputs

      public StreamingPredictRequest.Builder addInputs(Tensor.Builder builderForValue)
       The prediction input.
       
      repeated .google.cloud.aiplatform.v1.Tensor inputs = 2;
    • addInputs

      public StreamingPredictRequest.Builder addInputs(int index, Tensor.Builder builderForValue)
       The prediction input.
       
      repeated .google.cloud.aiplatform.v1.Tensor inputs = 2;
    • addAllInputs

      public StreamingPredictRequest.Builder addAllInputs(Iterable<? extends Tensor> values)
       The prediction input.
       
      repeated .google.cloud.aiplatform.v1.Tensor inputs = 2;
    • clearInputs

      public StreamingPredictRequest.Builder clearInputs()
       The prediction input.
       
      repeated .google.cloud.aiplatform.v1.Tensor inputs = 2;
    • removeInputs

      public StreamingPredictRequest.Builder removeInputs(int index)
       The prediction input.
       
      repeated .google.cloud.aiplatform.v1.Tensor inputs = 2;
    • getInputsBuilder

      public Tensor.Builder getInputsBuilder(int index)
       The prediction input.
       
      repeated .google.cloud.aiplatform.v1.Tensor inputs = 2;
    • getInputsOrBuilder

      public TensorOrBuilder getInputsOrBuilder(int index)
       The prediction input.
       
      repeated .google.cloud.aiplatform.v1.Tensor inputs = 2;
      Specified by:
      getInputsOrBuilder in interface StreamingPredictRequestOrBuilder
    • getInputsOrBuilderList

      public List<? extends TensorOrBuilder> getInputsOrBuilderList()
       The prediction input.
       
      repeated .google.cloud.aiplatform.v1.Tensor inputs = 2;
      Specified by:
      getInputsOrBuilderList in interface StreamingPredictRequestOrBuilder
    • addInputsBuilder

      public Tensor.Builder addInputsBuilder()
       The prediction input.
       
      repeated .google.cloud.aiplatform.v1.Tensor inputs = 2;
    • addInputsBuilder

      public Tensor.Builder addInputsBuilder(int index)
       The prediction input.
       
      repeated .google.cloud.aiplatform.v1.Tensor inputs = 2;
    • getInputsBuilderList

      public List<Tensor.Builder> getInputsBuilderList()
       The prediction input.
       
      repeated .google.cloud.aiplatform.v1.Tensor inputs = 2;
    • hasParameters

      public boolean hasParameters()
       The parameters that govern the prediction.
       
      .google.cloud.aiplatform.v1.Tensor parameters = 3;
      Specified by:
      hasParameters in interface StreamingPredictRequestOrBuilder
      Returns:
      Whether the parameters field is set.
    • getParameters

      public Tensor getParameters()
       The parameters that govern the prediction.
       
      .google.cloud.aiplatform.v1.Tensor parameters = 3;
      Specified by:
      getParameters in interface StreamingPredictRequestOrBuilder
      Returns:
      The parameters.
    • setParameters

      public StreamingPredictRequest.Builder setParameters(Tensor value)
       The parameters that govern the prediction.
       
      .google.cloud.aiplatform.v1.Tensor parameters = 3;
    • setParameters

      public StreamingPredictRequest.Builder setParameters(Tensor.Builder builderForValue)
       The parameters that govern the prediction.
       
      .google.cloud.aiplatform.v1.Tensor parameters = 3;
    • mergeParameters

      public StreamingPredictRequest.Builder mergeParameters(Tensor value)
       The parameters that govern the prediction.
       
      .google.cloud.aiplatform.v1.Tensor parameters = 3;
    • clearParameters

      public StreamingPredictRequest.Builder clearParameters()
       The parameters that govern the prediction.
       
      .google.cloud.aiplatform.v1.Tensor parameters = 3;
    • getParametersBuilder

      public Tensor.Builder getParametersBuilder()
       The parameters that govern the prediction.
       
      .google.cloud.aiplatform.v1.Tensor parameters = 3;
    • getParametersOrBuilder

      public TensorOrBuilder getParametersOrBuilder()
       The parameters that govern the prediction.
       
      .google.cloud.aiplatform.v1.Tensor parameters = 3;
      Specified by:
      getParametersOrBuilder in interface StreamingPredictRequestOrBuilder