Class 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.GeneratedMessageV3.Builder<RawPredictRequest.Builder>
    implements RawPredictRequestOrBuilder
     Request message for
     [PredictionService.RawPredict][google.cloud.aiplatform.v1.PredictionService.RawPredict].
     
    Protobuf type google.cloud.aiplatform.v1.RawPredictRequest
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public RawPredictRequest.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<RawPredictRequest.Builder>
      • setField

        public RawPredictRequest.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                  Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<RawPredictRequest.Builder>
      • clearField

        public RawPredictRequest.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<RawPredictRequest.Builder>
      • clearOneof

        public RawPredictRequest.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<RawPredictRequest.Builder>
      • setRepeatedField

        public RawPredictRequest.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                          int index,
                                                          Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RawPredictRequest.Builder>
      • addRepeatedField

        public RawPredictRequest.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                          Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RawPredictRequest.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>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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 com.google.api.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​(com.google.api.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​(com.google.api.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​(com.google.api.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 com.google.api.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 com.google.api.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
      • setUnknownFields

        public final RawPredictRequest.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RawPredictRequest.Builder>
      • mergeUnknownFields

        public final RawPredictRequest.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RawPredictRequest.Builder>