package com.google.cloud.dialogflow.v2beta1;

import static io.grpc.MethodDescriptor.generateFullMethodName;
import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall;
import static io.grpc.stub.ClientCalls.asyncClientStreamingCall;
import static io.grpc.stub.ClientCalls.asyncServerStreamingCall;
import static io.grpc.stub.ClientCalls.asyncUnaryCall;
import static io.grpc.stub.ClientCalls.blockingServerStreamingCall;
import static io.grpc.stub.ClientCalls.blockingUnaryCall;
import static io.grpc.stub.ClientCalls.futureUnaryCall;
import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall;
import static io.grpc.stub.ServerCalls.asyncClientStreamingCall;
import static io.grpc.stub.ServerCalls.asyncServerStreamingCall;
import static io.grpc.stub.ServerCalls.asyncUnaryCall;
import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall;
import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall;

/**
 * <pre>
 * An intent represents a mapping between input from a user and an action to
 * be taken by your application. When you pass user input to the
 * [DetectIntent][google.cloud.dialogflow.v2beta1.Sessions.DetectIntent] (or
 * [StreamingDetectIntent][google.cloud.dialogflow.v2beta1.Sessions.StreamingDetectIntent]) method, the
 * Dialogflow API analyzes the input and searches
 * for a matching intent. If no match is found, the Dialogflow API returns a
 * fallback intent (`is_fallback` = true).
 * You can provide additional information for the Dialogflow API to use to
 * match user input to an intent by adding the following to your intent.
 * *   **Contexts** - provide additional context for intent analysis. For
 *     example, if an intent is related to an object in your application that
 *     plays music, you can provide a context to determine when to match the
 *     intent if the user input is “turn it off”.  You can include a context
 *     that matches the intent when there is previous user input of
 *     "play music", and not when there is previous user input of
 *     "turn on the light".
 * *   **Events** - allow for matching an intent by using an event name
 *     instead of user input. Your application can provide an event name and
 *     related parameters to the Dialogflow API to match an intent. For
 *     example, when your application starts, you can send a welcome event
 *     with a user name parameter to the Dialogflow API to match an intent with
 *     a personalized welcome message for the user.
 * *   **Training phrases** - provide examples of user input to train the
 *     Dialogflow API agent to better match intents.
 * For more information about intents, see the
 * [Dialogflow documentation](https://dialogflow.com/docs/intents).
 * </pre>
 */
@javax.annotation.Generated(
    value = "by gRPC proto compiler (version 1.10.0)",
    comments = "Source: google/cloud/dialogflow/v2beta1/intent.proto")
public final class IntentsGrpc {

  private IntentsGrpc() {}

  public static final String SERVICE_NAME = "google.cloud.dialogflow.v2beta1.Intents";

  // Static method descriptors that strictly reflect the proto.
  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
  @java.lang.Deprecated // Use {@link #getListIntentsMethod()} instead. 
  public static final io.grpc.MethodDescriptor<com.google.cloud.dialogflow.v2beta1.ListIntentsRequest,
      com.google.cloud.dialogflow.v2beta1.ListIntentsResponse> METHOD_LIST_INTENTS = getListIntentsMethodHelper();

  private static volatile io.grpc.MethodDescriptor<com.google.cloud.dialogflow.v2beta1.ListIntentsRequest,
      com.google.cloud.dialogflow.v2beta1.ListIntentsResponse> getListIntentsMethod;

  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
  public static io.grpc.MethodDescriptor<com.google.cloud.dialogflow.v2beta1.ListIntentsRequest,
      com.google.cloud.dialogflow.v2beta1.ListIntentsResponse> getListIntentsMethod() {
    return getListIntentsMethodHelper();
  }

  private static io.grpc.MethodDescriptor<com.google.cloud.dialogflow.v2beta1.ListIntentsRequest,
      com.google.cloud.dialogflow.v2beta1.ListIntentsResponse> getListIntentsMethodHelper() {
    io.grpc.MethodDescriptor<com.google.cloud.dialogflow.v2beta1.ListIntentsRequest, com.google.cloud.dialogflow.v2beta1.ListIntentsResponse> getListIntentsMethod;
    if ((getListIntentsMethod = IntentsGrpc.getListIntentsMethod) == null) {
      synchronized (IntentsGrpc.class) {
        if ((getListIntentsMethod = IntentsGrpc.getListIntentsMethod) == null) {
          IntentsGrpc.getListIntentsMethod = getListIntentsMethod = 
              io.grpc.MethodDescriptor.<com.google.cloud.dialogflow.v2beta1.ListIntentsRequest, com.google.cloud.dialogflow.v2beta1.ListIntentsResponse>newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(
                  "google.cloud.dialogflow.v2beta1.Intents", "ListIntents"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.google.cloud.dialogflow.v2beta1.ListIntentsRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.google.cloud.dialogflow.v2beta1.ListIntentsResponse.getDefaultInstance()))
                  .setSchemaDescriptor(new IntentsMethodDescriptorSupplier("ListIntents"))
                  .build();
          }
        }
     }
     return getListIntentsMethod;
  }
  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
  @java.lang.Deprecated // Use {@link #getGetIntentMethod()} instead. 
  public static final io.grpc.MethodDescriptor<com.google.cloud.dialogflow.v2beta1.GetIntentRequest,
      com.google.cloud.dialogflow.v2beta1.Intent> METHOD_GET_INTENT = getGetIntentMethodHelper();

  private static volatile io.grpc.MethodDescriptor<com.google.cloud.dialogflow.v2beta1.GetIntentRequest,
      com.google.cloud.dialogflow.v2beta1.Intent> getGetIntentMethod;

  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
  public static io.grpc.MethodDescriptor<com.google.cloud.dialogflow.v2beta1.GetIntentRequest,
      com.google.cloud.dialogflow.v2beta1.Intent> getGetIntentMethod() {
    return getGetIntentMethodHelper();
  }

  private static io.grpc.MethodDescriptor<com.google.cloud.dialogflow.v2beta1.GetIntentRequest,
      com.google.cloud.dialogflow.v2beta1.Intent> getGetIntentMethodHelper() {
    io.grpc.MethodDescriptor<com.google.cloud.dialogflow.v2beta1.GetIntentRequest, com.google.cloud.dialogflow.v2beta1.Intent> getGetIntentMethod;
    if ((getGetIntentMethod = IntentsGrpc.getGetIntentMethod) == null) {
      synchronized (IntentsGrpc.class) {
        if ((getGetIntentMethod = IntentsGrpc.getGetIntentMethod) == null) {
          IntentsGrpc.getGetIntentMethod = getGetIntentMethod = 
              io.grpc.MethodDescriptor.<com.google.cloud.dialogflow.v2beta1.GetIntentRequest, com.google.cloud.dialogflow.v2beta1.Intent>newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(
                  "google.cloud.dialogflow.v2beta1.Intents", "GetIntent"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.google.cloud.dialogflow.v2beta1.GetIntentRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.google.cloud.dialogflow.v2beta1.Intent.getDefaultInstance()))
                  .setSchemaDescriptor(new IntentsMethodDescriptorSupplier("GetIntent"))
                  .build();
          }
        }
     }
     return getGetIntentMethod;
  }
  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
  @java.lang.Deprecated // Use {@link #getCreateIntentMethod()} instead. 
  public static final io.grpc.MethodDescriptor<com.google.cloud.dialogflow.v2beta1.CreateIntentRequest,
      com.google.cloud.dialogflow.v2beta1.Intent> METHOD_CREATE_INTENT = getCreateIntentMethodHelper();

  private static volatile io.grpc.MethodDescriptor<com.google.cloud.dialogflow.v2beta1.CreateIntentRequest,
      com.google.cloud.dialogflow.v2beta1.Intent> getCreateIntentMethod;

  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
  public static io.grpc.MethodDescriptor<com.google.cloud.dialogflow.v2beta1.CreateIntentRequest,
      com.google.cloud.dialogflow.v2beta1.Intent> getCreateIntentMethod() {
    return getCreateIntentMethodHelper();
  }

  private static io.grpc.MethodDescriptor<com.google.cloud.dialogflow.v2beta1.CreateIntentRequest,
      com.google.cloud.dialogflow.v2beta1.Intent> getCreateIntentMethodHelper() {
    io.grpc.MethodDescriptor<com.google.cloud.dialogflow.v2beta1.CreateIntentRequest, com.google.cloud.dialogflow.v2beta1.Intent> getCreateIntentMethod;
    if ((getCreateIntentMethod = IntentsGrpc.getCreateIntentMethod) == null) {
      synchronized (IntentsGrpc.class) {
        if ((getCreateIntentMethod = IntentsGrpc.getCreateIntentMethod) == null) {
          IntentsGrpc.getCreateIntentMethod = getCreateIntentMethod = 
              io.grpc.MethodDescriptor.<com.google.cloud.dialogflow.v2beta1.CreateIntentRequest, com.google.cloud.dialogflow.v2beta1.Intent>newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(
                  "google.cloud.dialogflow.v2beta1.Intents", "CreateIntent"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.google.cloud.dialogflow.v2beta1.CreateIntentRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.google.cloud.dialogflow.v2beta1.Intent.getDefaultInstance()))
                  .setSchemaDescriptor(new IntentsMethodDescriptorSupplier("CreateIntent"))
                  .build();
          }
        }
     }
     return getCreateIntentMethod;
  }
  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
  @java.lang.Deprecated // Use {@link #getUpdateIntentMethod()} instead. 
  public static final io.grpc.MethodDescriptor<com.google.cloud.dialogflow.v2beta1.UpdateIntentRequest,
      com.google.cloud.dialogflow.v2beta1.Intent> METHOD_UPDATE_INTENT = getUpdateIntentMethodHelper();

  private static volatile io.grpc.MethodDescriptor<com.google.cloud.dialogflow.v2beta1.UpdateIntentRequest,
      com.google.cloud.dialogflow.v2beta1.Intent> getUpdateIntentMethod;

  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
  public static io.grpc.MethodDescriptor<com.google.cloud.dialogflow.v2beta1.UpdateIntentRequest,
      com.google.cloud.dialogflow.v2beta1.Intent> getUpdateIntentMethod() {
    return getUpdateIntentMethodHelper();
  }

  private static io.grpc.MethodDescriptor<com.google.cloud.dialogflow.v2beta1.UpdateIntentRequest,
      com.google.cloud.dialogflow.v2beta1.Intent> getUpdateIntentMethodHelper() {
    io.grpc.MethodDescriptor<com.google.cloud.dialogflow.v2beta1.UpdateIntentRequest, com.google.cloud.dialogflow.v2beta1.Intent> getUpdateIntentMethod;
    if ((getUpdateIntentMethod = IntentsGrpc.getUpdateIntentMethod) == null) {
      synchronized (IntentsGrpc.class) {
        if ((getUpdateIntentMethod = IntentsGrpc.getUpdateIntentMethod) == null) {
          IntentsGrpc.getUpdateIntentMethod = getUpdateIntentMethod = 
              io.grpc.MethodDescriptor.<com.google.cloud.dialogflow.v2beta1.UpdateIntentRequest, com.google.cloud.dialogflow.v2beta1.Intent>newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(
                  "google.cloud.dialogflow.v2beta1.Intents", "UpdateIntent"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.google.cloud.dialogflow.v2beta1.UpdateIntentRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.google.cloud.dialogflow.v2beta1.Intent.getDefaultInstance()))
                  .setSchemaDescriptor(new IntentsMethodDescriptorSupplier("UpdateIntent"))
                  .build();
          }
        }
     }
     return getUpdateIntentMethod;
  }
  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
  @java.lang.Deprecated // Use {@link #getDeleteIntentMethod()} instead. 
  public static final io.grpc.MethodDescriptor<com.google.cloud.dialogflow.v2beta1.DeleteIntentRequest,
      com.google.protobuf.Empty> METHOD_DELETE_INTENT = getDeleteIntentMethodHelper();

  private static volatile io.grpc.MethodDescriptor<com.google.cloud.dialogflow.v2beta1.DeleteIntentRequest,
      com.google.protobuf.Empty> getDeleteIntentMethod;

  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
  public static io.grpc.MethodDescriptor<com.google.cloud.dialogflow.v2beta1.DeleteIntentRequest,
      com.google.protobuf.Empty> getDeleteIntentMethod() {
    return getDeleteIntentMethodHelper();
  }

  private static io.grpc.MethodDescriptor<com.google.cloud.dialogflow.v2beta1.DeleteIntentRequest,
      com.google.protobuf.Empty> getDeleteIntentMethodHelper() {
    io.grpc.MethodDescriptor<com.google.cloud.dialogflow.v2beta1.DeleteIntentRequest, com.google.protobuf.Empty> getDeleteIntentMethod;
    if ((getDeleteIntentMethod = IntentsGrpc.getDeleteIntentMethod) == null) {
      synchronized (IntentsGrpc.class) {
        if ((getDeleteIntentMethod = IntentsGrpc.getDeleteIntentMethod) == null) {
          IntentsGrpc.getDeleteIntentMethod = getDeleteIntentMethod = 
              io.grpc.MethodDescriptor.<com.google.cloud.dialogflow.v2beta1.DeleteIntentRequest, com.google.protobuf.Empty>newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(
                  "google.cloud.dialogflow.v2beta1.Intents", "DeleteIntent"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.google.cloud.dialogflow.v2beta1.DeleteIntentRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.google.protobuf.Empty.getDefaultInstance()))
                  .setSchemaDescriptor(new IntentsMethodDescriptorSupplier("DeleteIntent"))
                  .build();
          }
        }
     }
     return getDeleteIntentMethod;
  }
  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
  @java.lang.Deprecated // Use {@link #getBatchUpdateIntentsMethod()} instead. 
  public static final io.grpc.MethodDescriptor<com.google.cloud.dialogflow.v2beta1.BatchUpdateIntentsRequest,
      com.google.longrunning.Operation> METHOD_BATCH_UPDATE_INTENTS = getBatchUpdateIntentsMethodHelper();

  private static volatile io.grpc.MethodDescriptor<com.google.cloud.dialogflow.v2beta1.BatchUpdateIntentsRequest,
      com.google.longrunning.Operation> getBatchUpdateIntentsMethod;

  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
  public static io.grpc.MethodDescriptor<com.google.cloud.dialogflow.v2beta1.BatchUpdateIntentsRequest,
      com.google.longrunning.Operation> getBatchUpdateIntentsMethod() {
    return getBatchUpdateIntentsMethodHelper();
  }

  private static io.grpc.MethodDescriptor<com.google.cloud.dialogflow.v2beta1.BatchUpdateIntentsRequest,
      com.google.longrunning.Operation> getBatchUpdateIntentsMethodHelper() {
    io.grpc.MethodDescriptor<com.google.cloud.dialogflow.v2beta1.BatchUpdateIntentsRequest, com.google.longrunning.Operation> getBatchUpdateIntentsMethod;
    if ((getBatchUpdateIntentsMethod = IntentsGrpc.getBatchUpdateIntentsMethod) == null) {
      synchronized (IntentsGrpc.class) {
        if ((getBatchUpdateIntentsMethod = IntentsGrpc.getBatchUpdateIntentsMethod) == null) {
          IntentsGrpc.getBatchUpdateIntentsMethod = getBatchUpdateIntentsMethod = 
              io.grpc.MethodDescriptor.<com.google.cloud.dialogflow.v2beta1.BatchUpdateIntentsRequest, com.google.longrunning.Operation>newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(
                  "google.cloud.dialogflow.v2beta1.Intents", "BatchUpdateIntents"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.google.cloud.dialogflow.v2beta1.BatchUpdateIntentsRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.google.longrunning.Operation.getDefaultInstance()))
                  .setSchemaDescriptor(new IntentsMethodDescriptorSupplier("BatchUpdateIntents"))
                  .build();
          }
        }
     }
     return getBatchUpdateIntentsMethod;
  }
  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
  @java.lang.Deprecated // Use {@link #getBatchDeleteIntentsMethod()} instead. 
  public static final io.grpc.MethodDescriptor<com.google.cloud.dialogflow.v2beta1.BatchDeleteIntentsRequest,
      com.google.longrunning.Operation> METHOD_BATCH_DELETE_INTENTS = getBatchDeleteIntentsMethodHelper();

  private static volatile io.grpc.MethodDescriptor<com.google.cloud.dialogflow.v2beta1.BatchDeleteIntentsRequest,
      com.google.longrunning.Operation> getBatchDeleteIntentsMethod;

  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
  public static io.grpc.MethodDescriptor<com.google.cloud.dialogflow.v2beta1.BatchDeleteIntentsRequest,
      com.google.longrunning.Operation> getBatchDeleteIntentsMethod() {
    return getBatchDeleteIntentsMethodHelper();
  }

  private static io.grpc.MethodDescriptor<com.google.cloud.dialogflow.v2beta1.BatchDeleteIntentsRequest,
      com.google.longrunning.Operation> getBatchDeleteIntentsMethodHelper() {
    io.grpc.MethodDescriptor<com.google.cloud.dialogflow.v2beta1.BatchDeleteIntentsRequest, com.google.longrunning.Operation> getBatchDeleteIntentsMethod;
    if ((getBatchDeleteIntentsMethod = IntentsGrpc.getBatchDeleteIntentsMethod) == null) {
      synchronized (IntentsGrpc.class) {
        if ((getBatchDeleteIntentsMethod = IntentsGrpc.getBatchDeleteIntentsMethod) == null) {
          IntentsGrpc.getBatchDeleteIntentsMethod = getBatchDeleteIntentsMethod = 
              io.grpc.MethodDescriptor.<com.google.cloud.dialogflow.v2beta1.BatchDeleteIntentsRequest, com.google.longrunning.Operation>newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(
                  "google.cloud.dialogflow.v2beta1.Intents", "BatchDeleteIntents"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.google.cloud.dialogflow.v2beta1.BatchDeleteIntentsRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.google.longrunning.Operation.getDefaultInstance()))
                  .setSchemaDescriptor(new IntentsMethodDescriptorSupplier("BatchDeleteIntents"))
                  .build();
          }
        }
     }
     return getBatchDeleteIntentsMethod;
  }

  /**
   * Creates a new async stub that supports all call types for the service
   */
  public static IntentsStub newStub(io.grpc.Channel channel) {
    return new IntentsStub(channel);
  }

  /**
   * Creates a new blocking-style stub that supports unary and streaming output calls on the service
   */
  public static IntentsBlockingStub newBlockingStub(
      io.grpc.Channel channel) {
    return new IntentsBlockingStub(channel);
  }

  /**
   * Creates a new ListenableFuture-style stub that supports unary calls on the service
   */
  public static IntentsFutureStub newFutureStub(
      io.grpc.Channel channel) {
    return new IntentsFutureStub(channel);
  }

  /**
   * <pre>
   * An intent represents a mapping between input from a user and an action to
   * be taken by your application. When you pass user input to the
   * [DetectIntent][google.cloud.dialogflow.v2beta1.Sessions.DetectIntent] (or
   * [StreamingDetectIntent][google.cloud.dialogflow.v2beta1.Sessions.StreamingDetectIntent]) method, the
   * Dialogflow API analyzes the input and searches
   * for a matching intent. If no match is found, the Dialogflow API returns a
   * fallback intent (`is_fallback` = true).
   * You can provide additional information for the Dialogflow API to use to
   * match user input to an intent by adding the following to your intent.
   * *   **Contexts** - provide additional context for intent analysis. For
   *     example, if an intent is related to an object in your application that
   *     plays music, you can provide a context to determine when to match the
   *     intent if the user input is “turn it off”.  You can include a context
   *     that matches the intent when there is previous user input of
   *     "play music", and not when there is previous user input of
   *     "turn on the light".
   * *   **Events** - allow for matching an intent by using an event name
   *     instead of user input. Your application can provide an event name and
   *     related parameters to the Dialogflow API to match an intent. For
   *     example, when your application starts, you can send a welcome event
   *     with a user name parameter to the Dialogflow API to match an intent with
   *     a personalized welcome message for the user.
   * *   **Training phrases** - provide examples of user input to train the
   *     Dialogflow API agent to better match intents.
   * For more information about intents, see the
   * [Dialogflow documentation](https://dialogflow.com/docs/intents).
   * </pre>
   */
  public static abstract class IntentsImplBase implements io.grpc.BindableService {

    /**
     * <pre>
     * Returns the list of all intents in the specified agent.
     * </pre>
     */
    public void listIntents(com.google.cloud.dialogflow.v2beta1.ListIntentsRequest request,
        io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2beta1.ListIntentsResponse> responseObserver) {
      asyncUnimplementedUnaryCall(getListIntentsMethodHelper(), responseObserver);
    }

    /**
     * <pre>
     * Retrieves the specified intent.
     * </pre>
     */
    public void getIntent(com.google.cloud.dialogflow.v2beta1.GetIntentRequest request,
        io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2beta1.Intent> responseObserver) {
      asyncUnimplementedUnaryCall(getGetIntentMethodHelper(), responseObserver);
    }

    /**
     * <pre>
     * Creates an intent in the specified agent.
     * </pre>
     */
    public void createIntent(com.google.cloud.dialogflow.v2beta1.CreateIntentRequest request,
        io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2beta1.Intent> responseObserver) {
      asyncUnimplementedUnaryCall(getCreateIntentMethodHelper(), responseObserver);
    }

    /**
     * <pre>
     * Updates the specified intent.
     * </pre>
     */
    public void updateIntent(com.google.cloud.dialogflow.v2beta1.UpdateIntentRequest request,
        io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2beta1.Intent> responseObserver) {
      asyncUnimplementedUnaryCall(getUpdateIntentMethodHelper(), responseObserver);
    }

    /**
     * <pre>
     * Deletes the specified intent.
     * </pre>
     */
    public void deleteIntent(com.google.cloud.dialogflow.v2beta1.DeleteIntentRequest request,
        io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) {
      asyncUnimplementedUnaryCall(getDeleteIntentMethodHelper(), responseObserver);
    }

    /**
     * <pre>
     * Updates/Creates multiple intents in the specified agent.
     * Operation &lt;response: [BatchUpdateIntentsResponse][google.cloud.dialogflow.v2beta1.BatchUpdateIntentsResponse]&gt;
     * </pre>
     */
    public void batchUpdateIntents(com.google.cloud.dialogflow.v2beta1.BatchUpdateIntentsRequest request,
        io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {
      asyncUnimplementedUnaryCall(getBatchUpdateIntentsMethodHelper(), responseObserver);
    }

    /**
     * <pre>
     * Deletes intents in the specified agent.
     * Operation &lt;response: [google.protobuf.Empty][google.protobuf.Empty]&gt;
     * </pre>
     */
    public void batchDeleteIntents(com.google.cloud.dialogflow.v2beta1.BatchDeleteIntentsRequest request,
        io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {
      asyncUnimplementedUnaryCall(getBatchDeleteIntentsMethodHelper(), responseObserver);
    }

    @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
      return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
          .addMethod(
            getListIntentsMethodHelper(),
            asyncUnaryCall(
              new MethodHandlers<
                com.google.cloud.dialogflow.v2beta1.ListIntentsRequest,
                com.google.cloud.dialogflow.v2beta1.ListIntentsResponse>(
                  this, METHODID_LIST_INTENTS)))
          .addMethod(
            getGetIntentMethodHelper(),
            asyncUnaryCall(
              new MethodHandlers<
                com.google.cloud.dialogflow.v2beta1.GetIntentRequest,
                com.google.cloud.dialogflow.v2beta1.Intent>(
                  this, METHODID_GET_INTENT)))
          .addMethod(
            getCreateIntentMethodHelper(),
            asyncUnaryCall(
              new MethodHandlers<
                com.google.cloud.dialogflow.v2beta1.CreateIntentRequest,
                com.google.cloud.dialogflow.v2beta1.Intent>(
                  this, METHODID_CREATE_INTENT)))
          .addMethod(
            getUpdateIntentMethodHelper(),
            asyncUnaryCall(
              new MethodHandlers<
                com.google.cloud.dialogflow.v2beta1.UpdateIntentRequest,
                com.google.cloud.dialogflow.v2beta1.Intent>(
                  this, METHODID_UPDATE_INTENT)))
          .addMethod(
            getDeleteIntentMethodHelper(),
            asyncUnaryCall(
              new MethodHandlers<
                com.google.cloud.dialogflow.v2beta1.DeleteIntentRequest,
                com.google.protobuf.Empty>(
                  this, METHODID_DELETE_INTENT)))
          .addMethod(
            getBatchUpdateIntentsMethodHelper(),
            asyncUnaryCall(
              new MethodHandlers<
                com.google.cloud.dialogflow.v2beta1.BatchUpdateIntentsRequest,
                com.google.longrunning.Operation>(
                  this, METHODID_BATCH_UPDATE_INTENTS)))
          .addMethod(
            getBatchDeleteIntentsMethodHelper(),
            asyncUnaryCall(
              new MethodHandlers<
                com.google.cloud.dialogflow.v2beta1.BatchDeleteIntentsRequest,
                com.google.longrunning.Operation>(
                  this, METHODID_BATCH_DELETE_INTENTS)))
          .build();
    }
  }

  /**
   * <pre>
   * An intent represents a mapping between input from a user and an action to
   * be taken by your application. When you pass user input to the
   * [DetectIntent][google.cloud.dialogflow.v2beta1.Sessions.DetectIntent] (or
   * [StreamingDetectIntent][google.cloud.dialogflow.v2beta1.Sessions.StreamingDetectIntent]) method, the
   * Dialogflow API analyzes the input and searches
   * for a matching intent. If no match is found, the Dialogflow API returns a
   * fallback intent (`is_fallback` = true).
   * You can provide additional information for the Dialogflow API to use to
   * match user input to an intent by adding the following to your intent.
   * *   **Contexts** - provide additional context for intent analysis. For
   *     example, if an intent is related to an object in your application that
   *     plays music, you can provide a context to determine when to match the
   *     intent if the user input is “turn it off”.  You can include a context
   *     that matches the intent when there is previous user input of
   *     "play music", and not when there is previous user input of
   *     "turn on the light".
   * *   **Events** - allow for matching an intent by using an event name
   *     instead of user input. Your application can provide an event name and
   *     related parameters to the Dialogflow API to match an intent. For
   *     example, when your application starts, you can send a welcome event
   *     with a user name parameter to the Dialogflow API to match an intent with
   *     a personalized welcome message for the user.
   * *   **Training phrases** - provide examples of user input to train the
   *     Dialogflow API agent to better match intents.
   * For more information about intents, see the
   * [Dialogflow documentation](https://dialogflow.com/docs/intents).
   * </pre>
   */
  public static final class IntentsStub extends io.grpc.stub.AbstractStub<IntentsStub> {
    private IntentsStub(io.grpc.Channel channel) {
      super(channel);
    }

    private IntentsStub(io.grpc.Channel channel,
        io.grpc.CallOptions callOptions) {
      super(channel, callOptions);
    }

    @java.lang.Override
    protected IntentsStub build(io.grpc.Channel channel,
        io.grpc.CallOptions callOptions) {
      return new IntentsStub(channel, callOptions);
    }

    /**
     * <pre>
     * Returns the list of all intents in the specified agent.
     * </pre>
     */
    public void listIntents(com.google.cloud.dialogflow.v2beta1.ListIntentsRequest request,
        io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2beta1.ListIntentsResponse> responseObserver) {
      asyncUnaryCall(
          getChannel().newCall(getListIntentsMethodHelper(), getCallOptions()), request, responseObserver);
    }

    /**
     * <pre>
     * Retrieves the specified intent.
     * </pre>
     */
    public void getIntent(com.google.cloud.dialogflow.v2beta1.GetIntentRequest request,
        io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2beta1.Intent> responseObserver) {
      asyncUnaryCall(
          getChannel().newCall(getGetIntentMethodHelper(), getCallOptions()), request, responseObserver);
    }

    /**
     * <pre>
     * Creates an intent in the specified agent.
     * </pre>
     */
    public void createIntent(com.google.cloud.dialogflow.v2beta1.CreateIntentRequest request,
        io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2beta1.Intent> responseObserver) {
      asyncUnaryCall(
          getChannel().newCall(getCreateIntentMethodHelper(), getCallOptions()), request, responseObserver);
    }

    /**
     * <pre>
     * Updates the specified intent.
     * </pre>
     */
    public void updateIntent(com.google.cloud.dialogflow.v2beta1.UpdateIntentRequest request,
        io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2beta1.Intent> responseObserver) {
      asyncUnaryCall(
          getChannel().newCall(getUpdateIntentMethodHelper(), getCallOptions()), request, responseObserver);
    }

    /**
     * <pre>
     * Deletes the specified intent.
     * </pre>
     */
    public void deleteIntent(com.google.cloud.dialogflow.v2beta1.DeleteIntentRequest request,
        io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) {
      asyncUnaryCall(
          getChannel().newCall(getDeleteIntentMethodHelper(), getCallOptions()), request, responseObserver);
    }

    /**
     * <pre>
     * Updates/Creates multiple intents in the specified agent.
     * Operation &lt;response: [BatchUpdateIntentsResponse][google.cloud.dialogflow.v2beta1.BatchUpdateIntentsResponse]&gt;
     * </pre>
     */
    public void batchUpdateIntents(com.google.cloud.dialogflow.v2beta1.BatchUpdateIntentsRequest request,
        io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {
      asyncUnaryCall(
          getChannel().newCall(getBatchUpdateIntentsMethodHelper(), getCallOptions()), request, responseObserver);
    }

    /**
     * <pre>
     * Deletes intents in the specified agent.
     * Operation &lt;response: [google.protobuf.Empty][google.protobuf.Empty]&gt;
     * </pre>
     */
    public void batchDeleteIntents(com.google.cloud.dialogflow.v2beta1.BatchDeleteIntentsRequest request,
        io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {
      asyncUnaryCall(
          getChannel().newCall(getBatchDeleteIntentsMethodHelper(), getCallOptions()), request, responseObserver);
    }
  }

  /**
   * <pre>
   * An intent represents a mapping between input from a user and an action to
   * be taken by your application. When you pass user input to the
   * [DetectIntent][google.cloud.dialogflow.v2beta1.Sessions.DetectIntent] (or
   * [StreamingDetectIntent][google.cloud.dialogflow.v2beta1.Sessions.StreamingDetectIntent]) method, the
   * Dialogflow API analyzes the input and searches
   * for a matching intent. If no match is found, the Dialogflow API returns a
   * fallback intent (`is_fallback` = true).
   * You can provide additional information for the Dialogflow API to use to
   * match user input to an intent by adding the following to your intent.
   * *   **Contexts** - provide additional context for intent analysis. For
   *     example, if an intent is related to an object in your application that
   *     plays music, you can provide a context to determine when to match the
   *     intent if the user input is “turn it off”.  You can include a context
   *     that matches the intent when there is previous user input of
   *     "play music", and not when there is previous user input of
   *     "turn on the light".
   * *   **Events** - allow for matching an intent by using an event name
   *     instead of user input. Your application can provide an event name and
   *     related parameters to the Dialogflow API to match an intent. For
   *     example, when your application starts, you can send a welcome event
   *     with a user name parameter to the Dialogflow API to match an intent with
   *     a personalized welcome message for the user.
   * *   **Training phrases** - provide examples of user input to train the
   *     Dialogflow API agent to better match intents.
   * For more information about intents, see the
   * [Dialogflow documentation](https://dialogflow.com/docs/intents).
   * </pre>
   */
  public static final class IntentsBlockingStub extends io.grpc.stub.AbstractStub<IntentsBlockingStub> {
    private IntentsBlockingStub(io.grpc.Channel channel) {
      super(channel);
    }

    private IntentsBlockingStub(io.grpc.Channel channel,
        io.grpc.CallOptions callOptions) {
      super(channel, callOptions);
    }

    @java.lang.Override
    protected IntentsBlockingStub build(io.grpc.Channel channel,
        io.grpc.CallOptions callOptions) {
      return new IntentsBlockingStub(channel, callOptions);
    }

    /**
     * <pre>
     * Returns the list of all intents in the specified agent.
     * </pre>
     */
    public com.google.cloud.dialogflow.v2beta1.ListIntentsResponse listIntents(com.google.cloud.dialogflow.v2beta1.ListIntentsRequest request) {
      return blockingUnaryCall(
          getChannel(), getListIntentsMethodHelper(), getCallOptions(), request);
    }

    /**
     * <pre>
     * Retrieves the specified intent.
     * </pre>
     */
    public com.google.cloud.dialogflow.v2beta1.Intent getIntent(com.google.cloud.dialogflow.v2beta1.GetIntentRequest request) {
      return blockingUnaryCall(
          getChannel(), getGetIntentMethodHelper(), getCallOptions(), request);
    }

    /**
     * <pre>
     * Creates an intent in the specified agent.
     * </pre>
     */
    public com.google.cloud.dialogflow.v2beta1.Intent createIntent(com.google.cloud.dialogflow.v2beta1.CreateIntentRequest request) {
      return blockingUnaryCall(
          getChannel(), getCreateIntentMethodHelper(), getCallOptions(), request);
    }

    /**
     * <pre>
     * Updates the specified intent.
     * </pre>
     */
    public com.google.cloud.dialogflow.v2beta1.Intent updateIntent(com.google.cloud.dialogflow.v2beta1.UpdateIntentRequest request) {
      return blockingUnaryCall(
          getChannel(), getUpdateIntentMethodHelper(), getCallOptions(), request);
    }

    /**
     * <pre>
     * Deletes the specified intent.
     * </pre>
     */
    public com.google.protobuf.Empty deleteIntent(com.google.cloud.dialogflow.v2beta1.DeleteIntentRequest request) {
      return blockingUnaryCall(
          getChannel(), getDeleteIntentMethodHelper(), getCallOptions(), request);
    }

    /**
     * <pre>
     * Updates/Creates multiple intents in the specified agent.
     * Operation &lt;response: [BatchUpdateIntentsResponse][google.cloud.dialogflow.v2beta1.BatchUpdateIntentsResponse]&gt;
     * </pre>
     */
    public com.google.longrunning.Operation batchUpdateIntents(com.google.cloud.dialogflow.v2beta1.BatchUpdateIntentsRequest request) {
      return blockingUnaryCall(
          getChannel(), getBatchUpdateIntentsMethodHelper(), getCallOptions(), request);
    }

    /**
     * <pre>
     * Deletes intents in the specified agent.
     * Operation &lt;response: [google.protobuf.Empty][google.protobuf.Empty]&gt;
     * </pre>
     */
    public com.google.longrunning.Operation batchDeleteIntents(com.google.cloud.dialogflow.v2beta1.BatchDeleteIntentsRequest request) {
      return blockingUnaryCall(
          getChannel(), getBatchDeleteIntentsMethodHelper(), getCallOptions(), request);
    }
  }

  /**
   * <pre>
   * An intent represents a mapping between input from a user and an action to
   * be taken by your application. When you pass user input to the
   * [DetectIntent][google.cloud.dialogflow.v2beta1.Sessions.DetectIntent] (or
   * [StreamingDetectIntent][google.cloud.dialogflow.v2beta1.Sessions.StreamingDetectIntent]) method, the
   * Dialogflow API analyzes the input and searches
   * for a matching intent. If no match is found, the Dialogflow API returns a
   * fallback intent (`is_fallback` = true).
   * You can provide additional information for the Dialogflow API to use to
   * match user input to an intent by adding the following to your intent.
   * *   **Contexts** - provide additional context for intent analysis. For
   *     example, if an intent is related to an object in your application that
   *     plays music, you can provide a context to determine when to match the
   *     intent if the user input is “turn it off”.  You can include a context
   *     that matches the intent when there is previous user input of
   *     "play music", and not when there is previous user input of
   *     "turn on the light".
   * *   **Events** - allow for matching an intent by using an event name
   *     instead of user input. Your application can provide an event name and
   *     related parameters to the Dialogflow API to match an intent. For
   *     example, when your application starts, you can send a welcome event
   *     with a user name parameter to the Dialogflow API to match an intent with
   *     a personalized welcome message for the user.
   * *   **Training phrases** - provide examples of user input to train the
   *     Dialogflow API agent to better match intents.
   * For more information about intents, see the
   * [Dialogflow documentation](https://dialogflow.com/docs/intents).
   * </pre>
   */
  public static final class IntentsFutureStub extends io.grpc.stub.AbstractStub<IntentsFutureStub> {
    private IntentsFutureStub(io.grpc.Channel channel) {
      super(channel);
    }

    private IntentsFutureStub(io.grpc.Channel channel,
        io.grpc.CallOptions callOptions) {
      super(channel, callOptions);
    }

    @java.lang.Override
    protected IntentsFutureStub build(io.grpc.Channel channel,
        io.grpc.CallOptions callOptions) {
      return new IntentsFutureStub(channel, callOptions);
    }

    /**
     * <pre>
     * Returns the list of all intents in the specified agent.
     * </pre>
     */
    public com.google.common.util.concurrent.ListenableFuture<com.google.cloud.dialogflow.v2beta1.ListIntentsResponse> listIntents(
        com.google.cloud.dialogflow.v2beta1.ListIntentsRequest request) {
      return futureUnaryCall(
          getChannel().newCall(getListIntentsMethodHelper(), getCallOptions()), request);
    }

    /**
     * <pre>
     * Retrieves the specified intent.
     * </pre>
     */
    public com.google.common.util.concurrent.ListenableFuture<com.google.cloud.dialogflow.v2beta1.Intent> getIntent(
        com.google.cloud.dialogflow.v2beta1.GetIntentRequest request) {
      return futureUnaryCall(
          getChannel().newCall(getGetIntentMethodHelper(), getCallOptions()), request);
    }

    /**
     * <pre>
     * Creates an intent in the specified agent.
     * </pre>
     */
    public com.google.common.util.concurrent.ListenableFuture<com.google.cloud.dialogflow.v2beta1.Intent> createIntent(
        com.google.cloud.dialogflow.v2beta1.CreateIntentRequest request) {
      return futureUnaryCall(
          getChannel().newCall(getCreateIntentMethodHelper(), getCallOptions()), request);
    }

    /**
     * <pre>
     * Updates the specified intent.
     * </pre>
     */
    public com.google.common.util.concurrent.ListenableFuture<com.google.cloud.dialogflow.v2beta1.Intent> updateIntent(
        com.google.cloud.dialogflow.v2beta1.UpdateIntentRequest request) {
      return futureUnaryCall(
          getChannel().newCall(getUpdateIntentMethodHelper(), getCallOptions()), request);
    }

    /**
     * <pre>
     * Deletes the specified intent.
     * </pre>
     */
    public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> deleteIntent(
        com.google.cloud.dialogflow.v2beta1.DeleteIntentRequest request) {
      return futureUnaryCall(
          getChannel().newCall(getDeleteIntentMethodHelper(), getCallOptions()), request);
    }

    /**
     * <pre>
     * Updates/Creates multiple intents in the specified agent.
     * Operation &lt;response: [BatchUpdateIntentsResponse][google.cloud.dialogflow.v2beta1.BatchUpdateIntentsResponse]&gt;
     * </pre>
     */
    public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> batchUpdateIntents(
        com.google.cloud.dialogflow.v2beta1.BatchUpdateIntentsRequest request) {
      return futureUnaryCall(
          getChannel().newCall(getBatchUpdateIntentsMethodHelper(), getCallOptions()), request);
    }

    /**
     * <pre>
     * Deletes intents in the specified agent.
     * Operation &lt;response: [google.protobuf.Empty][google.protobuf.Empty]&gt;
     * </pre>
     */
    public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> batchDeleteIntents(
        com.google.cloud.dialogflow.v2beta1.BatchDeleteIntentsRequest request) {
      return futureUnaryCall(
          getChannel().newCall(getBatchDeleteIntentsMethodHelper(), getCallOptions()), request);
    }
  }

  private static final int METHODID_LIST_INTENTS = 0;
  private static final int METHODID_GET_INTENT = 1;
  private static final int METHODID_CREATE_INTENT = 2;
  private static final int METHODID_UPDATE_INTENT = 3;
  private static final int METHODID_DELETE_INTENT = 4;
  private static final int METHODID_BATCH_UPDATE_INTENTS = 5;
  private static final int METHODID_BATCH_DELETE_INTENTS = 6;

  private static final class MethodHandlers<Req, Resp> implements
      io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
      io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>,
      io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>,
      io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> {
    private final IntentsImplBase serviceImpl;
    private final int methodId;

    MethodHandlers(IntentsImplBase serviceImpl, int methodId) {
      this.serviceImpl = serviceImpl;
      this.methodId = methodId;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("unchecked")
    public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver) {
      switch (methodId) {
        case METHODID_LIST_INTENTS:
          serviceImpl.listIntents((com.google.cloud.dialogflow.v2beta1.ListIntentsRequest) request,
              (io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2beta1.ListIntentsResponse>) responseObserver);
          break;
        case METHODID_GET_INTENT:
          serviceImpl.getIntent((com.google.cloud.dialogflow.v2beta1.GetIntentRequest) request,
              (io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2beta1.Intent>) responseObserver);
          break;
        case METHODID_CREATE_INTENT:
          serviceImpl.createIntent((com.google.cloud.dialogflow.v2beta1.CreateIntentRequest) request,
              (io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2beta1.Intent>) responseObserver);
          break;
        case METHODID_UPDATE_INTENT:
          serviceImpl.updateIntent((com.google.cloud.dialogflow.v2beta1.UpdateIntentRequest) request,
              (io.grpc.stub.StreamObserver<com.google.cloud.dialogflow.v2beta1.Intent>) responseObserver);
          break;
        case METHODID_DELETE_INTENT:
          serviceImpl.deleteIntent((com.google.cloud.dialogflow.v2beta1.DeleteIntentRequest) request,
              (io.grpc.stub.StreamObserver<com.google.protobuf.Empty>) responseObserver);
          break;
        case METHODID_BATCH_UPDATE_INTENTS:
          serviceImpl.batchUpdateIntents((com.google.cloud.dialogflow.v2beta1.BatchUpdateIntentsRequest) request,
              (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver);
          break;
        case METHODID_BATCH_DELETE_INTENTS:
          serviceImpl.batchDeleteIntents((com.google.cloud.dialogflow.v2beta1.BatchDeleteIntentsRequest) request,
              (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver);
          break;
        default:
          throw new AssertionError();
      }
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("unchecked")
    public io.grpc.stub.StreamObserver<Req> invoke(
        io.grpc.stub.StreamObserver<Resp> responseObserver) {
      switch (methodId) {
        default:
          throw new AssertionError();
      }
    }
  }

  private static abstract class IntentsBaseDescriptorSupplier
      implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
    IntentsBaseDescriptorSupplier() {}

    @java.lang.Override
    public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
      return com.google.cloud.dialogflow.v2beta1.IntentProto.getDescriptor();
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
      return getFileDescriptor().findServiceByName("Intents");
    }
  }

  private static final class IntentsFileDescriptorSupplier
      extends IntentsBaseDescriptorSupplier {
    IntentsFileDescriptorSupplier() {}
  }

  private static final class IntentsMethodDescriptorSupplier
      extends IntentsBaseDescriptorSupplier
      implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
    private final String methodName;

    IntentsMethodDescriptorSupplier(String methodName) {
      this.methodName = methodName;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
      return getServiceDescriptor().findMethodByName(methodName);
    }
  }

  private static volatile io.grpc.ServiceDescriptor serviceDescriptor;

  public static io.grpc.ServiceDescriptor getServiceDescriptor() {
    io.grpc.ServiceDescriptor result = serviceDescriptor;
    if (result == null) {
      synchronized (IntentsGrpc.class) {
        result = serviceDescriptor;
        if (result == null) {
          serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
              .setSchemaDescriptor(new IntentsFileDescriptorSupplier())
              .addMethod(getListIntentsMethodHelper())
              .addMethod(getGetIntentMethodHelper())
              .addMethod(getCreateIntentMethodHelper())
              .addMethod(getUpdateIntentMethodHelper())
              .addMethod(getDeleteIntentMethodHelper())
              .addMethod(getBatchUpdateIntentsMethodHelper())
              .addMethod(getBatchDeleteIntentsMethodHelper())
              .build();
        }
      }
    }
    return result;
  }
}
