Class PredictRequest.Builder

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

public static final class PredictRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<PredictRequest.Builder> implements PredictRequestOrBuilder
 Request message for
 [PredictionService.Predict][google.cloud.aiplatform.v1.PredictionService.Predict].
 
Protobuf type google.cloud.aiplatform.v1.PredictRequest
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<PredictRequest.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<PredictRequest.Builder>
    • internalGetFieldAccessorTable

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

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

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

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

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

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

      public PredictRequest.Builder mergeFrom(PredictRequest other)
    • isInitialized

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

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

      public PredictRequest.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 PredictRequest.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 PredictRequest.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.
    • getInstancesList

      public List<com.google.protobuf.Value> getInstancesList()
       Required. The instances that are the input to the prediction call.
       A DeployedModel may have an upper limit on the number of instances it
       supports per request, and when it is exceeded the prediction call errors
       in case of AutoML Models, or, in case of customer created Models, the
       behaviour is as documented by that Model.
       The schema of any single instance may be specified via Endpoint's
       DeployedModels' [Model's][google.cloud.aiplatform.v1.DeployedModel.model]
       [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata]
       [instance_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri].
       
      repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getInstancesList in interface PredictRequestOrBuilder
    • getInstancesCount

      public int getInstancesCount()
       Required. The instances that are the input to the prediction call.
       A DeployedModel may have an upper limit on the number of instances it
       supports per request, and when it is exceeded the prediction call errors
       in case of AutoML Models, or, in case of customer created Models, the
       behaviour is as documented by that Model.
       The schema of any single instance may be specified via Endpoint's
       DeployedModels' [Model's][google.cloud.aiplatform.v1.DeployedModel.model]
       [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata]
       [instance_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri].
       
      repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getInstancesCount in interface PredictRequestOrBuilder
    • getInstances

      public com.google.protobuf.Value getInstances(int index)
       Required. The instances that are the input to the prediction call.
       A DeployedModel may have an upper limit on the number of instances it
       supports per request, and when it is exceeded the prediction call errors
       in case of AutoML Models, or, in case of customer created Models, the
       behaviour is as documented by that Model.
       The schema of any single instance may be specified via Endpoint's
       DeployedModels' [Model's][google.cloud.aiplatform.v1.DeployedModel.model]
       [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata]
       [instance_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri].
       
      repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getInstances in interface PredictRequestOrBuilder
    • setInstances

      public PredictRequest.Builder setInstances(int index, com.google.protobuf.Value value)
       Required. The instances that are the input to the prediction call.
       A DeployedModel may have an upper limit on the number of instances it
       supports per request, and when it is exceeded the prediction call errors
       in case of AutoML Models, or, in case of customer created Models, the
       behaviour is as documented by that Model.
       The schema of any single instance may be specified via Endpoint's
       DeployedModels' [Model's][google.cloud.aiplatform.v1.DeployedModel.model]
       [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata]
       [instance_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri].
       
      repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];
    • setInstances

      public PredictRequest.Builder setInstances(int index, com.google.protobuf.Value.Builder builderForValue)
       Required. The instances that are the input to the prediction call.
       A DeployedModel may have an upper limit on the number of instances it
       supports per request, and when it is exceeded the prediction call errors
       in case of AutoML Models, or, in case of customer created Models, the
       behaviour is as documented by that Model.
       The schema of any single instance may be specified via Endpoint's
       DeployedModels' [Model's][google.cloud.aiplatform.v1.DeployedModel.model]
       [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata]
       [instance_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri].
       
      repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];
    • addInstances

      public PredictRequest.Builder addInstances(com.google.protobuf.Value value)
       Required. The instances that are the input to the prediction call.
       A DeployedModel may have an upper limit on the number of instances it
       supports per request, and when it is exceeded the prediction call errors
       in case of AutoML Models, or, in case of customer created Models, the
       behaviour is as documented by that Model.
       The schema of any single instance may be specified via Endpoint's
       DeployedModels' [Model's][google.cloud.aiplatform.v1.DeployedModel.model]
       [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata]
       [instance_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri].
       
      repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];
    • addInstances

      public PredictRequest.Builder addInstances(int index, com.google.protobuf.Value value)
       Required. The instances that are the input to the prediction call.
       A DeployedModel may have an upper limit on the number of instances it
       supports per request, and when it is exceeded the prediction call errors
       in case of AutoML Models, or, in case of customer created Models, the
       behaviour is as documented by that Model.
       The schema of any single instance may be specified via Endpoint's
       DeployedModels' [Model's][google.cloud.aiplatform.v1.DeployedModel.model]
       [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata]
       [instance_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri].
       
      repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];
    • addInstances

      public PredictRequest.Builder addInstances(com.google.protobuf.Value.Builder builderForValue)
       Required. The instances that are the input to the prediction call.
       A DeployedModel may have an upper limit on the number of instances it
       supports per request, and when it is exceeded the prediction call errors
       in case of AutoML Models, or, in case of customer created Models, the
       behaviour is as documented by that Model.
       The schema of any single instance may be specified via Endpoint's
       DeployedModels' [Model's][google.cloud.aiplatform.v1.DeployedModel.model]
       [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata]
       [instance_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri].
       
      repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];
    • addInstances

      public PredictRequest.Builder addInstances(int index, com.google.protobuf.Value.Builder builderForValue)
       Required. The instances that are the input to the prediction call.
       A DeployedModel may have an upper limit on the number of instances it
       supports per request, and when it is exceeded the prediction call errors
       in case of AutoML Models, or, in case of customer created Models, the
       behaviour is as documented by that Model.
       The schema of any single instance may be specified via Endpoint's
       DeployedModels' [Model's][google.cloud.aiplatform.v1.DeployedModel.model]
       [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata]
       [instance_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri].
       
      repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];
    • addAllInstances

      public PredictRequest.Builder addAllInstances(Iterable<? extends com.google.protobuf.Value> values)
       Required. The instances that are the input to the prediction call.
       A DeployedModel may have an upper limit on the number of instances it
       supports per request, and when it is exceeded the prediction call errors
       in case of AutoML Models, or, in case of customer created Models, the
       behaviour is as documented by that Model.
       The schema of any single instance may be specified via Endpoint's
       DeployedModels' [Model's][google.cloud.aiplatform.v1.DeployedModel.model]
       [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata]
       [instance_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri].
       
      repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearInstances

      public PredictRequest.Builder clearInstances()
       Required. The instances that are the input to the prediction call.
       A DeployedModel may have an upper limit on the number of instances it
       supports per request, and when it is exceeded the prediction call errors
       in case of AutoML Models, or, in case of customer created Models, the
       behaviour is as documented by that Model.
       The schema of any single instance may be specified via Endpoint's
       DeployedModels' [Model's][google.cloud.aiplatform.v1.DeployedModel.model]
       [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata]
       [instance_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri].
       
      repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];
    • removeInstances

      public PredictRequest.Builder removeInstances(int index)
       Required. The instances that are the input to the prediction call.
       A DeployedModel may have an upper limit on the number of instances it
       supports per request, and when it is exceeded the prediction call errors
       in case of AutoML Models, or, in case of customer created Models, the
       behaviour is as documented by that Model.
       The schema of any single instance may be specified via Endpoint's
       DeployedModels' [Model's][google.cloud.aiplatform.v1.DeployedModel.model]
       [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata]
       [instance_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri].
       
      repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];
    • getInstancesBuilder

      public com.google.protobuf.Value.Builder getInstancesBuilder(int index)
       Required. The instances that are the input to the prediction call.
       A DeployedModel may have an upper limit on the number of instances it
       supports per request, and when it is exceeded the prediction call errors
       in case of AutoML Models, or, in case of customer created Models, the
       behaviour is as documented by that Model.
       The schema of any single instance may be specified via Endpoint's
       DeployedModels' [Model's][google.cloud.aiplatform.v1.DeployedModel.model]
       [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata]
       [instance_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri].
       
      repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];
    • getInstancesOrBuilder

      public com.google.protobuf.ValueOrBuilder getInstancesOrBuilder(int index)
       Required. The instances that are the input to the prediction call.
       A DeployedModel may have an upper limit on the number of instances it
       supports per request, and when it is exceeded the prediction call errors
       in case of AutoML Models, or, in case of customer created Models, the
       behaviour is as documented by that Model.
       The schema of any single instance may be specified via Endpoint's
       DeployedModels' [Model's][google.cloud.aiplatform.v1.DeployedModel.model]
       [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata]
       [instance_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri].
       
      repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getInstancesOrBuilder in interface PredictRequestOrBuilder
    • getInstancesOrBuilderList

      public List<? extends com.google.protobuf.ValueOrBuilder> getInstancesOrBuilderList()
       Required. The instances that are the input to the prediction call.
       A DeployedModel may have an upper limit on the number of instances it
       supports per request, and when it is exceeded the prediction call errors
       in case of AutoML Models, or, in case of customer created Models, the
       behaviour is as documented by that Model.
       The schema of any single instance may be specified via Endpoint's
       DeployedModels' [Model's][google.cloud.aiplatform.v1.DeployedModel.model]
       [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata]
       [instance_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri].
       
      repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getInstancesOrBuilderList in interface PredictRequestOrBuilder
    • addInstancesBuilder

      public com.google.protobuf.Value.Builder addInstancesBuilder()
       Required. The instances that are the input to the prediction call.
       A DeployedModel may have an upper limit on the number of instances it
       supports per request, and when it is exceeded the prediction call errors
       in case of AutoML Models, or, in case of customer created Models, the
       behaviour is as documented by that Model.
       The schema of any single instance may be specified via Endpoint's
       DeployedModels' [Model's][google.cloud.aiplatform.v1.DeployedModel.model]
       [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata]
       [instance_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri].
       
      repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];
    • addInstancesBuilder

      public com.google.protobuf.Value.Builder addInstancesBuilder(int index)
       Required. The instances that are the input to the prediction call.
       A DeployedModel may have an upper limit on the number of instances it
       supports per request, and when it is exceeded the prediction call errors
       in case of AutoML Models, or, in case of customer created Models, the
       behaviour is as documented by that Model.
       The schema of any single instance may be specified via Endpoint's
       DeployedModels' [Model's][google.cloud.aiplatform.v1.DeployedModel.model]
       [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata]
       [instance_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri].
       
      repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];
    • getInstancesBuilderList

      public List<com.google.protobuf.Value.Builder> getInstancesBuilderList()
       Required. The instances that are the input to the prediction call.
       A DeployedModel may have an upper limit on the number of instances it
       supports per request, and when it is exceeded the prediction call errors
       in case of AutoML Models, or, in case of customer created Models, the
       behaviour is as documented by that Model.
       The schema of any single instance may be specified via Endpoint's
       DeployedModels' [Model's][google.cloud.aiplatform.v1.DeployedModel.model]
       [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata]
       [instance_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri].
       
      repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];
    • hasParameters

      public boolean hasParameters()
       The parameters that govern the prediction. The schema of the parameters may
       be specified via Endpoint's DeployedModels' [Model's
       ][google.cloud.aiplatform.v1.DeployedModel.model]
       [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata]
       [parameters_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.parameters_schema_uri].
       
      .google.protobuf.Value parameters = 3;
      Specified by:
      hasParameters in interface PredictRequestOrBuilder
      Returns:
      Whether the parameters field is set.
    • getParameters

      public com.google.protobuf.Value getParameters()
       The parameters that govern the prediction. The schema of the parameters may
       be specified via Endpoint's DeployedModels' [Model's
       ][google.cloud.aiplatform.v1.DeployedModel.model]
       [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata]
       [parameters_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.parameters_schema_uri].
       
      .google.protobuf.Value parameters = 3;
      Specified by:
      getParameters in interface PredictRequestOrBuilder
      Returns:
      The parameters.
    • setParameters

      public PredictRequest.Builder setParameters(com.google.protobuf.Value value)
       The parameters that govern the prediction. The schema of the parameters may
       be specified via Endpoint's DeployedModels' [Model's
       ][google.cloud.aiplatform.v1.DeployedModel.model]
       [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata]
       [parameters_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.parameters_schema_uri].
       
      .google.protobuf.Value parameters = 3;
    • setParameters

      public PredictRequest.Builder setParameters(com.google.protobuf.Value.Builder builderForValue)
       The parameters that govern the prediction. The schema of the parameters may
       be specified via Endpoint's DeployedModels' [Model's
       ][google.cloud.aiplatform.v1.DeployedModel.model]
       [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata]
       [parameters_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.parameters_schema_uri].
       
      .google.protobuf.Value parameters = 3;
    • mergeParameters

      public PredictRequest.Builder mergeParameters(com.google.protobuf.Value value)
       The parameters that govern the prediction. The schema of the parameters may
       be specified via Endpoint's DeployedModels' [Model's
       ][google.cloud.aiplatform.v1.DeployedModel.model]
       [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata]
       [parameters_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.parameters_schema_uri].
       
      .google.protobuf.Value parameters = 3;
    • clearParameters

      public PredictRequest.Builder clearParameters()
       The parameters that govern the prediction. The schema of the parameters may
       be specified via Endpoint's DeployedModels' [Model's
       ][google.cloud.aiplatform.v1.DeployedModel.model]
       [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata]
       [parameters_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.parameters_schema_uri].
       
      .google.protobuf.Value parameters = 3;
    • getParametersBuilder

      public com.google.protobuf.Value.Builder getParametersBuilder()
       The parameters that govern the prediction. The schema of the parameters may
       be specified via Endpoint's DeployedModels' [Model's
       ][google.cloud.aiplatform.v1.DeployedModel.model]
       [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata]
       [parameters_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.parameters_schema_uri].
       
      .google.protobuf.Value parameters = 3;
    • getParametersOrBuilder

      public com.google.protobuf.ValueOrBuilder getParametersOrBuilder()
       The parameters that govern the prediction. The schema of the parameters may
       be specified via Endpoint's DeployedModels' [Model's
       ][google.cloud.aiplatform.v1.DeployedModel.model]
       [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata]
       [parameters_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.parameters_schema_uri].
       
      .google.protobuf.Value parameters = 3;
      Specified by:
      getParametersOrBuilder in interface PredictRequestOrBuilder
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: PredictRequestOrBuilder
       Optional. The user labels for Imagen billing usage only. Only Imagen
       supports labels. For other use cases, it will be ignored.
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsCount in interface PredictRequestOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       Optional. The user labels for Imagen billing usage only. Only Imagen
       supports labels. For other use cases, it will be ignored.
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsLabels in interface PredictRequestOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface PredictRequestOrBuilder
    • getLabelsMap

      public Map<String,String> getLabelsMap()
       Optional. The user labels for Imagen billing usage only. Only Imagen
       supports labels. For other use cases, it will be ignored.
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsMap in interface PredictRequestOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       Optional. The user labels for Imagen billing usage only. Only Imagen
       supports labels. For other use cases, it will be ignored.
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrDefault in interface PredictRequestOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       Optional. The user labels for Imagen billing usage only. Only Imagen
       supports labels. For other use cases, it will be ignored.
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrThrow in interface PredictRequestOrBuilder
    • clearLabels

      public PredictRequest.Builder clearLabels()
    • removeLabels

      public PredictRequest.Builder removeLabels(String key)
       Optional. The user labels for Imagen billing usage only. Only Imagen
       supports labels. For other use cases, it will be ignored.
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getMutableLabels

      @Deprecated public Map<String,String> getMutableLabels()
      Deprecated.
      Use alternate mutation accessors instead.
    • putLabels

      public PredictRequest.Builder putLabels(String key, String value)
       Optional. The user labels for Imagen billing usage only. Only Imagen
       supports labels. For other use cases, it will be ignored.
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    • putAllLabels

      public PredictRequest.Builder putAllLabels(Map<String,String> values)
       Optional. The user labels for Imagen billing usage only. Only Imagen
       supports labels. For other use cases, it will be ignored.
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];