Class AIInference.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AIInference.Builder>
com.google.pubsub.v1.AIInference.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, AIInferenceOrBuilder, Cloneable
Enclosing class:
AIInference

public static final class AIInference.Builder extends com.google.protobuf.GeneratedMessage.Builder<AIInference.Builder> implements AIInferenceOrBuilder
 Configuration for making inference requests against Vertex AI models.
 
Protobuf type google.pubsub.v1.AIInference
  • 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<AIInference.Builder>
    • clear

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

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

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

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

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

      public AIInference.Builder mergeFrom(AIInference other)
    • isInitialized

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

      public AIInference.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<AIInference.Builder>
      Throws:
      IOException
    • getInferenceModeCase

      public AIInference.InferenceModeCase getInferenceModeCase()
      Specified by:
      getInferenceModeCase in interface AIInferenceOrBuilder
    • clearInferenceMode

      public AIInference.Builder clearInferenceMode()
    • getEndpoint

      public String getEndpoint()
       Required. An endpoint to a Vertex AI model of the form
       `projects/{project}/locations/{location}/endpoints/{endpoint}` or
       `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`.
       Vertex AI API requests will be sent to this endpoint.
       
      string endpoint = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEndpoint in interface AIInferenceOrBuilder
      Returns:
      The endpoint.
    • getEndpointBytes

      public com.google.protobuf.ByteString getEndpointBytes()
       Required. An endpoint to a Vertex AI model of the form
       `projects/{project}/locations/{location}/endpoints/{endpoint}` or
       `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`.
       Vertex AI API requests will be sent to this endpoint.
       
      string endpoint = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEndpointBytes in interface AIInferenceOrBuilder
      Returns:
      The bytes for endpoint.
    • setEndpoint

      public AIInference.Builder setEndpoint(String value)
       Required. An endpoint to a Vertex AI model of the form
       `projects/{project}/locations/{location}/endpoints/{endpoint}` or
       `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`.
       Vertex AI API requests will be sent to this endpoint.
       
      string endpoint = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The endpoint to set.
      Returns:
      This builder for chaining.
    • clearEndpoint

      public AIInference.Builder clearEndpoint()
       Required. An endpoint to a Vertex AI model of the form
       `projects/{project}/locations/{location}/endpoints/{endpoint}` or
       `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`.
       Vertex AI API requests will be sent to this endpoint.
       
      string endpoint = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setEndpointBytes

      public AIInference.Builder setEndpointBytes(com.google.protobuf.ByteString value)
       Required. An endpoint to a Vertex AI model of the form
       `projects/{project}/locations/{location}/endpoints/{endpoint}` or
       `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`.
       Vertex AI API requests will be sent to this endpoint.
       
      string endpoint = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for endpoint to set.
      Returns:
      This builder for chaining.
    • hasUnstructuredInference

      public boolean hasUnstructuredInference()
       Optional. Requests and responses can be any arbitrary JSON object.
       
      .google.pubsub.v1.AIInference.UnstructuredInference unstructured_inference = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasUnstructuredInference in interface AIInferenceOrBuilder
      Returns:
      Whether the unstructuredInference field is set.
    • getUnstructuredInference

      public AIInference.UnstructuredInference getUnstructuredInference()
       Optional. Requests and responses can be any arbitrary JSON object.
       
      .google.pubsub.v1.AIInference.UnstructuredInference unstructured_inference = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getUnstructuredInference in interface AIInferenceOrBuilder
      Returns:
      The unstructuredInference.
    • setUnstructuredInference

      public AIInference.Builder setUnstructuredInference(AIInference.UnstructuredInference value)
       Optional. Requests and responses can be any arbitrary JSON object.
       
      .google.pubsub.v1.AIInference.UnstructuredInference unstructured_inference = 2 [(.google.api.field_behavior) = OPTIONAL];
    • setUnstructuredInference

      public AIInference.Builder setUnstructuredInference(AIInference.UnstructuredInference.Builder builderForValue)
       Optional. Requests and responses can be any arbitrary JSON object.
       
      .google.pubsub.v1.AIInference.UnstructuredInference unstructured_inference = 2 [(.google.api.field_behavior) = OPTIONAL];
    • mergeUnstructuredInference

      public AIInference.Builder mergeUnstructuredInference(AIInference.UnstructuredInference value)
       Optional. Requests and responses can be any arbitrary JSON object.
       
      .google.pubsub.v1.AIInference.UnstructuredInference unstructured_inference = 2 [(.google.api.field_behavior) = OPTIONAL];
    • clearUnstructuredInference

      public AIInference.Builder clearUnstructuredInference()
       Optional. Requests and responses can be any arbitrary JSON object.
       
      .google.pubsub.v1.AIInference.UnstructuredInference unstructured_inference = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getUnstructuredInferenceBuilder

      public AIInference.UnstructuredInference.Builder getUnstructuredInferenceBuilder()
       Optional. Requests and responses can be any arbitrary JSON object.
       
      .google.pubsub.v1.AIInference.UnstructuredInference unstructured_inference = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getUnstructuredInferenceOrBuilder

      public AIInference.UnstructuredInferenceOrBuilder getUnstructuredInferenceOrBuilder()
       Optional. Requests and responses can be any arbitrary JSON object.
       
      .google.pubsub.v1.AIInference.UnstructuredInference unstructured_inference = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getUnstructuredInferenceOrBuilder in interface AIInferenceOrBuilder
    • getServiceAccountEmail

      public String getServiceAccountEmail()
       Optional. The service account to use to make prediction requests against
       endpoints. The resource creator or updater that specifies this field must
       have `iam.serviceAccounts.actAs` permission on the service account. If not
       specified, the Pub/Sub [service
       agent]({$universe.dns_names.final_documentation_domain}/iam/docs/service-agents),
       service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
       
      string service_account_email = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getServiceAccountEmail in interface AIInferenceOrBuilder
      Returns:
      The serviceAccountEmail.
    • getServiceAccountEmailBytes

      public com.google.protobuf.ByteString getServiceAccountEmailBytes()
       Optional. The service account to use to make prediction requests against
       endpoints. The resource creator or updater that specifies this field must
       have `iam.serviceAccounts.actAs` permission on the service account. If not
       specified, the Pub/Sub [service
       agent]({$universe.dns_names.final_documentation_domain}/iam/docs/service-agents),
       service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
       
      string service_account_email = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getServiceAccountEmailBytes in interface AIInferenceOrBuilder
      Returns:
      The bytes for serviceAccountEmail.
    • setServiceAccountEmail

      public AIInference.Builder setServiceAccountEmail(String value)
       Optional. The service account to use to make prediction requests against
       endpoints. The resource creator or updater that specifies this field must
       have `iam.serviceAccounts.actAs` permission on the service account. If not
       specified, the Pub/Sub [service
       agent]({$universe.dns_names.final_documentation_domain}/iam/docs/service-agents),
       service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
       
      string service_account_email = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The serviceAccountEmail to set.
      Returns:
      This builder for chaining.
    • clearServiceAccountEmail

      public AIInference.Builder clearServiceAccountEmail()
       Optional. The service account to use to make prediction requests against
       endpoints. The resource creator or updater that specifies this field must
       have `iam.serviceAccounts.actAs` permission on the service account. If not
       specified, the Pub/Sub [service
       agent]({$universe.dns_names.final_documentation_domain}/iam/docs/service-agents),
       service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
       
      string service_account_email = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setServiceAccountEmailBytes

      public AIInference.Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value)
       Optional. The service account to use to make prediction requests against
       endpoints. The resource creator or updater that specifies this field must
       have `iam.serviceAccounts.actAs` permission on the service account. If not
       specified, the Pub/Sub [service
       agent]({$universe.dns_names.final_documentation_domain}/iam/docs/service-agents),
       service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
       
      string service_account_email = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for serviceAccountEmail to set.
      Returns:
      This builder for chaining.