# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/dialogflow/cx/v3/intent.proto

require 'google/protobuf'

require 'google/api/annotations_pb'
require 'google/api/client_pb'
require 'google/api/field_behavior_pb'
require 'google/api/resource_pb'
require 'google/protobuf/empty_pb'
require 'google/protobuf/field_mask_pb'

Google::Protobuf::DescriptorPool.generated_pool.build do
  add_file("google/cloud/dialogflow/cx/v3/intent.proto", :syntax => :proto3) do
    add_message "google.cloud.dialogflow.cx.v3.Intent" do
      optional :name, :string, 1
      optional :display_name, :string, 2
      repeated :training_phrases, :message, 3, "google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase"
      repeated :parameters, :message, 4, "google.cloud.dialogflow.cx.v3.Intent.Parameter"
      optional :priority, :int32, 5
      optional :is_fallback, :bool, 6
      map :labels, :string, :string, 7
      optional :description, :string, 8
    end
    add_message "google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase" do
      optional :id, :string, 1
      repeated :parts, :message, 2, "google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part"
      optional :repeat_count, :int32, 3
    end
    add_message "google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part" do
      optional :text, :string, 1
      optional :parameter_id, :string, 2
    end
    add_message "google.cloud.dialogflow.cx.v3.Intent.Parameter" do
      optional :id, :string, 1
      optional :entity_type, :string, 2
      optional :is_list, :bool, 3
      optional :redact, :bool, 4
    end
    add_message "google.cloud.dialogflow.cx.v3.ListIntentsRequest" do
      optional :parent, :string, 1
      optional :language_code, :string, 2
      optional :intent_view, :enum, 5, "google.cloud.dialogflow.cx.v3.IntentView"
      optional :page_size, :int32, 3
      optional :page_token, :string, 4
    end
    add_message "google.cloud.dialogflow.cx.v3.ListIntentsResponse" do
      repeated :intents, :message, 1, "google.cloud.dialogflow.cx.v3.Intent"
      optional :next_page_token, :string, 2
    end
    add_message "google.cloud.dialogflow.cx.v3.GetIntentRequest" do
      optional :name, :string, 1
      optional :language_code, :string, 2
    end
    add_message "google.cloud.dialogflow.cx.v3.CreateIntentRequest" do
      optional :parent, :string, 1
      optional :intent, :message, 2, "google.cloud.dialogflow.cx.v3.Intent"
      optional :language_code, :string, 3
    end
    add_message "google.cloud.dialogflow.cx.v3.UpdateIntentRequest" do
      optional :intent, :message, 1, "google.cloud.dialogflow.cx.v3.Intent"
      optional :language_code, :string, 2
      optional :update_mask, :message, 3, "google.protobuf.FieldMask"
    end
    add_message "google.cloud.dialogflow.cx.v3.DeleteIntentRequest" do
      optional :name, :string, 1
    end
    add_enum "google.cloud.dialogflow.cx.v3.IntentView" do
      value :INTENT_VIEW_UNSPECIFIED, 0
      value :INTENT_VIEW_PARTIAL, 1
      value :INTENT_VIEW_FULL, 2
    end
  end
end

module Google
  module Cloud
    module Dialogflow
      module CX
        module V3
          Intent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.Intent").msgclass
          Intent::TrainingPhrase = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase").msgclass
          Intent::TrainingPhrase::Part = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part").msgclass
          Intent::Parameter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.Intent.Parameter").msgclass
          ListIntentsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ListIntentsRequest").msgclass
          ListIntentsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ListIntentsResponse").msgclass
          GetIntentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.GetIntentRequest").msgclass
          CreateIntentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.CreateIntentRequest").msgclass
          UpdateIntentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.UpdateIntentRequest").msgclass
          DeleteIntentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.DeleteIntentRequest").msgclass
          IntentView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.IntentView").enummodule
        end
      end
    end
  end
end