Class AIInference

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.pubsub.v1.AIInference
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, AIInferenceOrBuilder, Serializable

@Generated public final class AIInference extends com.google.protobuf.GeneratedMessage implements AIInferenceOrBuilder
 Configuration for making inference requests against Vertex AI models.
 
Protobuf type google.pubsub.v1.AIInference
See Also:
  • Field Details

    • ENDPOINT_FIELD_NUMBER

      public static final int ENDPOINT_FIELD_NUMBER
      See Also:
    • UNSTRUCTURED_INFERENCE_FIELD_NUMBER

      public static final int UNSTRUCTURED_INFERENCE_FIELD_NUMBER
      See Also:
    • SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER

      public static final int SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER
      See Also:
  • 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
    • getInferenceModeCase

      public AIInference.InferenceModeCase getInferenceModeCase()
      Specified by:
      getInferenceModeCase in interface AIInferenceOrBuilder
    • 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.
    • 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.
    • 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.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static AIInference parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AIInference parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AIInference parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AIInference parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AIInference parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AIInference parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AIInference parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AIInference parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static AIInference parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static AIInference parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AIInference parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AIInference parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static AIInference.Builder newBuilder()
    • newBuilder

      public static AIInference.Builder newBuilder(AIInference prototype)
    • toBuilder

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

      protected AIInference.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static AIInference getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<AIInference> parser()
    • getParserForType

      public com.google.protobuf.Parser<AIInference> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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