Class RawPredictRequest.Builder

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

public static final class RawPredictRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<RawPredictRequest.Builder> implements RawPredictRequestOrBuilder
 Request message for
 [PredictionService.RawPredict][google.cloud.aiplatform.v1.PredictionService.RawPredict].
 
Protobuf type google.cloud.aiplatform.v1.RawPredictRequest
  • 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<RawPredictRequest.Builder>
    • clear

      public RawPredictRequest.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<RawPredictRequest.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<RawPredictRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public RawPredictRequest.Builder mergeFrom(RawPredictRequest other)
    • isInitialized

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

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

      public RawPredictRequest.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 RawPredictRequest.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 RawPredictRequest.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.
    • hasHttpBody

      public boolean hasHttpBody()
       The prediction input. Supports HTTP headers and arbitrary data payload.
      
       A [DeployedModel][google.cloud.aiplatform.v1.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][google.cloud.aiplatform.v1.PredictionService.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][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri]
       field when you create a [Model][google.cloud.aiplatform.v1.Model]. This
       schema applies when you deploy the `Model` as a `DeployedModel` to an
       [Endpoint][google.cloud.aiplatform.v1.Endpoint] and use the `RawPredict`
       method.
       
      .google.api.HttpBody http_body = 2;
      Specified by:
      hasHttpBody in interface RawPredictRequestOrBuilder
      Returns:
      Whether the httpBody field is set.
    • getHttpBody

      public HttpBody getHttpBody()
       The prediction input. Supports HTTP headers and arbitrary data payload.
      
       A [DeployedModel][google.cloud.aiplatform.v1.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][google.cloud.aiplatform.v1.PredictionService.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][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri]
       field when you create a [Model][google.cloud.aiplatform.v1.Model]. This
       schema applies when you deploy the `Model` as a `DeployedModel` to an
       [Endpoint][google.cloud.aiplatform.v1.Endpoint] and use the `RawPredict`
       method.
       
      .google.api.HttpBody http_body = 2;
      Specified by:
      getHttpBody in interface RawPredictRequestOrBuilder
      Returns:
      The httpBody.
    • setHttpBody

      public RawPredictRequest.Builder setHttpBody(HttpBody value)
       The prediction input. Supports HTTP headers and arbitrary data payload.
      
       A [DeployedModel][google.cloud.aiplatform.v1.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][google.cloud.aiplatform.v1.PredictionService.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][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri]
       field when you create a [Model][google.cloud.aiplatform.v1.Model]. This
       schema applies when you deploy the `Model` as a `DeployedModel` to an
       [Endpoint][google.cloud.aiplatform.v1.Endpoint] and use the `RawPredict`
       method.
       
      .google.api.HttpBody http_body = 2;
    • setHttpBody

      public RawPredictRequest.Builder setHttpBody(HttpBody.Builder builderForValue)
       The prediction input. Supports HTTP headers and arbitrary data payload.
      
       A [DeployedModel][google.cloud.aiplatform.v1.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][google.cloud.aiplatform.v1.PredictionService.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][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri]
       field when you create a [Model][google.cloud.aiplatform.v1.Model]. This
       schema applies when you deploy the `Model` as a `DeployedModel` to an
       [Endpoint][google.cloud.aiplatform.v1.Endpoint] and use the `RawPredict`
       method.
       
      .google.api.HttpBody http_body = 2;
    • mergeHttpBody

      public RawPredictRequest.Builder mergeHttpBody(HttpBody value)
       The prediction input. Supports HTTP headers and arbitrary data payload.
      
       A [DeployedModel][google.cloud.aiplatform.v1.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][google.cloud.aiplatform.v1.PredictionService.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][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri]
       field when you create a [Model][google.cloud.aiplatform.v1.Model]. This
       schema applies when you deploy the `Model` as a `DeployedModel` to an
       [Endpoint][google.cloud.aiplatform.v1.Endpoint] and use the `RawPredict`
       method.
       
      .google.api.HttpBody http_body = 2;
    • clearHttpBody

      public RawPredictRequest.Builder clearHttpBody()
       The prediction input. Supports HTTP headers and arbitrary data payload.
      
       A [DeployedModel][google.cloud.aiplatform.v1.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][google.cloud.aiplatform.v1.PredictionService.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][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri]
       field when you create a [Model][google.cloud.aiplatform.v1.Model]. This
       schema applies when you deploy the `Model` as a `DeployedModel` to an
       [Endpoint][google.cloud.aiplatform.v1.Endpoint] and use the `RawPredict`
       method.
       
      .google.api.HttpBody http_body = 2;
    • getHttpBodyBuilder

      public HttpBody.Builder getHttpBodyBuilder()
       The prediction input. Supports HTTP headers and arbitrary data payload.
      
       A [DeployedModel][google.cloud.aiplatform.v1.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][google.cloud.aiplatform.v1.PredictionService.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][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri]
       field when you create a [Model][google.cloud.aiplatform.v1.Model]. This
       schema applies when you deploy the `Model` as a `DeployedModel` to an
       [Endpoint][google.cloud.aiplatform.v1.Endpoint] and use the `RawPredict`
       method.
       
      .google.api.HttpBody http_body = 2;
    • getHttpBodyOrBuilder

      public HttpBodyOrBuilder getHttpBodyOrBuilder()
       The prediction input. Supports HTTP headers and arbitrary data payload.
      
       A [DeployedModel][google.cloud.aiplatform.v1.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][google.cloud.aiplatform.v1.PredictionService.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][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri]
       field when you create a [Model][google.cloud.aiplatform.v1.Model]. This
       schema applies when you deploy the `Model` as a `DeployedModel` to an
       [Endpoint][google.cloud.aiplatform.v1.Endpoint] and use the `RawPredict`
       method.
       
      .google.api.HttpBody http_body = 2;
      Specified by:
      getHttpBodyOrBuilder in interface RawPredictRequestOrBuilder