/*
 * Copyright 2026 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: google/pubsub/v1/pubsub.proto
// Protobuf Java Version: 4.33.2

package com.google.pubsub.v1;

@com.google.protobuf.Generated
public interface AIInferenceOrBuilder
    extends
    // @@protoc_insertion_point(interface_extends:google.pubsub.v1.AIInference)
    com.google.protobuf.MessageOrBuilder {

  /**
   *
   *
   * <pre>
   * 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.
   * </pre>
   *
   * <code>string endpoint = 1 [(.google.api.field_behavior) = REQUIRED];</code>
   *
   * @return The endpoint.
   */
  java.lang.String getEndpoint();

  /**
   *
   *
   * <pre>
   * 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.
   * </pre>
   *
   * <code>string endpoint = 1 [(.google.api.field_behavior) = REQUIRED];</code>
   *
   * @return The bytes for endpoint.
   */
  com.google.protobuf.ByteString getEndpointBytes();

  /**
   *
   *
   * <pre>
   * Optional. Requests and responses can be any arbitrary JSON object.
   * </pre>
   *
   * <code>
   * .google.pubsub.v1.AIInference.UnstructuredInference unstructured_inference = 2 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return Whether the unstructuredInference field is set.
   */
  boolean hasUnstructuredInference();

  /**
   *
   *
   * <pre>
   * Optional. Requests and responses can be any arbitrary JSON object.
   * </pre>
   *
   * <code>
   * .google.pubsub.v1.AIInference.UnstructuredInference unstructured_inference = 2 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return The unstructuredInference.
   */
  com.google.pubsub.v1.AIInference.UnstructuredInference getUnstructuredInference();

  /**
   *
   *
   * <pre>
   * Optional. Requests and responses can be any arbitrary JSON object.
   * </pre>
   *
   * <code>
   * .google.pubsub.v1.AIInference.UnstructuredInference unstructured_inference = 2 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   */
  com.google.pubsub.v1.AIInference.UnstructuredInferenceOrBuilder
      getUnstructuredInferenceOrBuilder();

  /**
   *
   *
   * <pre>
   * 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}&#64;gcp-sa-pubsub.iam.gserviceaccount.com, is used.
   * </pre>
   *
   * <code>string service_account_email = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @return The serviceAccountEmail.
   */
  java.lang.String getServiceAccountEmail();

  /**
   *
   *
   * <pre>
   * 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}&#64;gcp-sa-pubsub.iam.gserviceaccount.com, is used.
   * </pre>
   *
   * <code>string service_account_email = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @return The bytes for serviceAccountEmail.
   */
  com.google.protobuf.ByteString getServiceAccountEmailBytes();

  com.google.pubsub.v1.AIInference.InferenceModeCase getInferenceModeCase();
}
