From 8cccefb8aa4a20609568c9c55862e2deaaa1407c Mon Sep 17 00:00:00 2001 From: sophia Date: Wed, 6 Jan 2021 11:19:33 -0600 Subject: [PATCH] Add plugin protos --- .../serve/service/proto/gen/plugin/core_pb.rb | 189 ++++++++++ .../proto/gen/plugin/core_services_pb.rb | 34 ++ .../service/proto/gen/plugin/plugin_pb.rb | 329 ++++++++++++++++++ .../proto/gen/plugin/plugin_services_pb.rb | 258 ++++++++++++++ 4 files changed, 810 insertions(+) create mode 100644 plugins/commands/serve/service/proto/gen/plugin/core_pb.rb create mode 100644 plugins/commands/serve/service/proto/gen/plugin/core_services_pb.rb create mode 100644 plugins/commands/serve/service/proto/gen/plugin/plugin_pb.rb create mode 100644 plugins/commands/serve/service/proto/gen/plugin/plugin_services_pb.rb diff --git a/plugins/commands/serve/service/proto/gen/plugin/core_pb.rb b/plugins/commands/serve/service/proto/gen/plugin/core_pb.rb new file mode 100644 index 000000000..dfefa7c58 --- /dev/null +++ b/plugins/commands/serve/service/proto/gen/plugin/core_pb.rb @@ -0,0 +1,189 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: core.proto + +require 'google/protobuf' + +require 'google/protobuf/any_pb' +Google::Protobuf::DescriptorPool.generated_pool.build do + add_file("core.proto", :syntax => :proto3) do + add_message "hashicorp.vagrant.sdk.StateBag" do + map :data, :string, :message, 1, "hashicorp.vagrant.sdk.StateBag.Value" + end + add_message "hashicorp.vagrant.sdk.StateBag.Value" do + oneof :value do + optional :text, :string, 1 + optional :map, :message, 2, "google.protobuf.Any" + end + end + add_message "hashicorp.vagrant.sdk.LabelSet" do + map :labels, :string, :string, 1 + end + add_message "hashicorp.vagrant.sdk.Options" do + optional :opt, :message, 1, "hashicorp.vagrant.sdk.LabelSet" + end + add_message "hashicorp.vagrant.sdk.SSHInfo" do + optional :host, :string, 1 + optional :port, :string, 2 + optional :private_key_path, :string, 3 + optional :keys_only, :bool, 4 + optional :verify_host_key, :bool, 5 + optional :username, :string, 6 + optional :remote_user, :string, 7 + optional :compression, :bool, 8 + optional :dsa_authentication, :bool, 9 + optional :config, :string, 10 + repeated :extra_args, :string, 11 + optional :forward_agent, :bool, 12 + optional :forward_x11, :bool, 13 + repeated :forward_env, :string, 14 + optional :connect_timeout, :int64, 15 + optional :ssh_command, :string, 16 + optional :proxy_command, :string, 17 + end + add_message "hashicorp.vagrant.sdk.WinrmInfo" do + optional :username, :string, 1 + optional :password, :string, 2 + optional :host, :string, 3 + optional :port, :int64, 4 + optional :guest_port, :int64, 5 + optional :max_tries, :int64, 6 + optional :retry_delay, :int64, 7 + optional :timeout, :int64, 8 + optional :transport, :enum, 9, "hashicorp.vagrant.sdk.WinrmInfo.Transport" + optional :ssl_peer_verification, :bool, 10 + optional :execution_time_limit, :string, 11 + optional :basic_auth_only, :bool, 12 + optional :codepage, :string, 13 + end + add_enum "hashicorp.vagrant.sdk.WinrmInfo.Transport" do + value :NEGOTIATE, 0 + value :SSL, 1 + value :PLAINTEXT, 2 + end + add_message "hashicorp.vagrant.sdk.MachineState" do + optional :id, :string, 1 + optional :short_description, :string, 2 + optional :long_description, :string, 3 + end + add_message "hashicorp.vagrant.sdk.MachineIndex" do + end + add_message "hashicorp.vagrant.sdk.MachineIndex.Entry" do + optional :id, :string, 1 + optional :local_data_path, :string, 2 + optional :name, :string, 3 + optional :provider, :string, 4 + optional :state, :string, 5 + optional :vagrantfile_name, :string, 6 + optional :vagrantfile_path, :string, 7 + optional :updated_at, :string, 8 + optional :extra_data, :message, 9, "hashicorp.vagrant.sdk.Options" + end + add_message "hashicorp.vagrant.sdk.BoxCollection" do + optional :directory, :string, 1 + end + add_message "hashicorp.vagrant.sdk.Box" do + optional :name, :string, 1 + optional :provider, :string, 2 + optional :version, :string, 3 + optional :directory, :string, 4 + optional :metadata, :message, 5, "hashicorp.vagrant.sdk.Options" + optional :metadata_url, :string, 6 + end + add_message "hashicorp.vagrant.sdk.Environment" do + optional :cwd, :string, 1 + optional :data_dir, :string, 2 + optional :vagrantfile_name, :string, 3 + optional :ui, :message, 4, "hashicorp.vagrant.sdk.UI" + optional :home_path, :string, 5 + optional :local_data_path, :string, 6 + optional :tmp_path, :string, 7 + optional :aliases_path, :string, 8 + optional :boxes_path, :string, 9 + optional :gems_path, :string, 10 + optional :default_private_key_path, :string, 11 + end + add_message "hashicorp.vagrant.sdk.MachineProvider" do + end + add_message "hashicorp.vagrant.sdk.Configuration" do + end + add_message "hashicorp.vagrant.sdk.Machine" do + optional :box, :message, 1, "hashicorp.vagrant.sdk.Box" + optional :config, :message, 2, "hashicorp.vagrant.sdk.Configuration" + optional :data_dir, :string, 3 + optional :env, :message, 4, "hashicorp.vagrant.sdk.Environment" + optional :id, :string, 5 + optional :name, :string, 6 + optional :provider, :message, 7, "hashicorp.vagrant.sdk.MachineProvider" + optional :provider_config, :message, 8, "hashicorp.vagrant.sdk.Configuration" + optional :provider_name, :string, 9 + optional :provider_options, :message, 10, "hashicorp.vagrant.sdk.Options" + optional :ui, :message, 11, "hashicorp.vagrant.sdk.UI" + optional :vagrantfile, :message, 12, "hashicorp.vagrant.sdk.Vagrantfile" + end + add_message "hashicorp.vagrant.sdk.Vagrantfile" do + end + add_message "hashicorp.vagrant.sdk.UI" do + optional :stream_id, :uint32, 1 + end + add_message "hashicorp.vagrant.sdk.Ref" do + end + add_message "hashicorp.vagrant.sdk.Ref.Machine" do + optional :id, :string, 1 + end + add_message "hashicorp.vagrant.sdk.Ref.Workspace" do + optional :workspace, :string, 1 + end + add_message "hashicorp.vagrant.sdk.UpsertMachineRequest" do + optional :machine, :message, 1, "hashicorp.vagrant.sdk.Machine" + end + add_message "hashicorp.vagrant.sdk.UpsertMachineResponse" do + optional :machine, :message, 1, "hashicorp.vagrant.sdk.Machine" + end + add_message "hashicorp.vagrant.sdk.GetMachineRequest" do + optional :ref, :message, 1, "hashicorp.vagrant.sdk.Ref.Machine" + end + add_message "hashicorp.vagrant.sdk.GetMachineResponse" do + optional :machine, :message, 1, "hashicorp.vagrant.sdk.Machine" + end + add_message "hashicorp.vagrant.sdk.ListMachineRequest" do + optional :workspace, :message, 2, "hashicorp.vagrant.sdk.Ref.Workspace" + end + add_message "hashicorp.vagrant.sdk.ListMachineResponse" do + repeated :machines, :message, 1, "hashicorp.vagrant.sdk.Machine" + end + end +end + +module Hashicorp + module Vagrant + module Sdk + StateBag = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.StateBag").msgclass + StateBag::Value = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.StateBag.Value").msgclass + LabelSet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.LabelSet").msgclass + Options = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Options").msgclass + SSHInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.SSHInfo").msgclass + WinrmInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.WinrmInfo").msgclass + WinrmInfo::Transport = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.WinrmInfo.Transport").enummodule + MachineState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.MachineState").msgclass + MachineIndex = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.MachineIndex").msgclass + MachineIndex::Entry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.MachineIndex.Entry").msgclass + BoxCollection = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.BoxCollection").msgclass + Box = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Box").msgclass + Environment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Environment").msgclass + MachineProvider = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.MachineProvider").msgclass + Configuration = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Configuration").msgclass + Machine = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Machine").msgclass + Vagrantfile = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Vagrantfile").msgclass + UI = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.UI").msgclass + Ref = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Ref").msgclass + Ref::Machine = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Ref.Machine").msgclass + Ref::Workspace = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Ref.Workspace").msgclass + UpsertMachineRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.UpsertMachineRequest").msgclass + UpsertMachineResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.UpsertMachineResponse").msgclass + GetMachineRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.GetMachineRequest").msgclass + GetMachineResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.GetMachineResponse").msgclass + ListMachineRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.ListMachineRequest").msgclass + ListMachineResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.ListMachineResponse").msgclass + end + end +end diff --git a/plugins/commands/serve/service/proto/gen/plugin/core_services_pb.rb b/plugins/commands/serve/service/proto/gen/plugin/core_services_pb.rb new file mode 100644 index 000000000..7297857c8 --- /dev/null +++ b/plugins/commands/serve/service/proto/gen/plugin/core_services_pb.rb @@ -0,0 +1,34 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# Source: core.proto for package 'hashicorp.vagrant.sdk' + +require 'grpc' +require 'core_pb' + +module Hashicorp + module Vagrant + module Sdk + module MachineService + # ******************************************************************* + # Core services + # ****************************************************************** + class Service + + include GRPC::GenericService + + self.marshal_class_method = :encode + self.unmarshal_class_method = :decode + self.service_name = 'hashicorp.vagrant.sdk.MachineService' + + # GetMachine returns the achine. + rpc :GetMachine, ::Hashicorp::Vagrant::Sdk::GetMachineRequest, ::Hashicorp::Vagrant::Sdk::GetMachineResponse + # ListMachines returns a list of all the machine. + rpc :ListMachines, ::Hashicorp::Vagrant::Sdk::ListMachineRequest, ::Hashicorp::Vagrant::Sdk::ListMachineResponse + # UpsertMachine updates or inserts a machine. + rpc :UpsertMachine, ::Hashicorp::Vagrant::Sdk::UpsertMachineRequest, ::Hashicorp::Vagrant::Sdk::UpsertMachineResponse + end + + Stub = Service.rpc_stub_class + end + end + end +end diff --git a/plugins/commands/serve/service/proto/gen/plugin/plugin_pb.rb b/plugins/commands/serve/service/proto/gen/plugin/plugin_pb.rb new file mode 100644 index 000000000..e15dbb213 --- /dev/null +++ b/plugins/commands/serve/service/proto/gen/plugin/plugin_pb.rb @@ -0,0 +1,329 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: plugin.proto + +require 'google/protobuf' + +require 'google/protobuf/any_pb' +require 'google/protobuf/empty_pb' +require 'google/rpc/status_pb' +require 'protostructure_pb' +require 'core_pb' +Google::Protobuf::DescriptorPool.generated_pool.build do + add_file("plugin.proto", :syntax => :proto3) do + add_message "hashicorp.vagrant.sdk.Args" do + end + add_message "hashicorp.vagrant.sdk.Args.Machine" do + optional :machineId, :string, 1 + optional :serverAddr, :string, 2 + end + add_message "hashicorp.vagrant.sdk.Args.Configuration" do + end + add_message "hashicorp.vagrant.sdk.Args.Configuration.Vagrant" do + end + add_message "hashicorp.vagrant.sdk.Args.Configuration.VM" do + end + add_message "hashicorp.vagrant.sdk.Args.Configuration.Provider" do + end + add_message "hashicorp.vagrant.sdk.Args.LabelSet" do + map :labels, :string, :string, 1 + end + add_message "hashicorp.vagrant.sdk.Args.Options" do + optional :opt, :message, 1, "hashicorp.vagrant.sdk.Args.LabelSet" + end + add_message "hashicorp.vagrant.sdk.Args.Source" do + optional :app, :string, 1 + optional :path, :string, 2 + end + add_message "hashicorp.vagrant.sdk.Args.JobInfo" do + optional :local, :bool, 1 + optional :workspace, :string, 2 + optional :id, :string, 3 + end + add_message "hashicorp.vagrant.sdk.Args.Logger" do + optional :name, :string, 1 + end + add_message "hashicorp.vagrant.sdk.Args.TerminalUI" do + optional :stream_id, :uint32, 1 + end + add_message "hashicorp.vagrant.sdk.FuncSpec" do + optional :name, :string, 1 + repeated :args, :message, 2, "hashicorp.vagrant.sdk.FuncSpec.Value" + repeated :result, :message, 3, "hashicorp.vagrant.sdk.FuncSpec.Value" + end + add_message "hashicorp.vagrant.sdk.FuncSpec.Value" do + optional :name, :string, 1 + optional :type, :string, 2 + optional :value, :message, 3, "google.protobuf.Any" + end + add_message "hashicorp.vagrant.sdk.FuncSpec.Args" do + repeated :args, :message, 1, "hashicorp.vagrant.sdk.FuncSpec.Value" + end + add_message "hashicorp.vagrant.sdk.Config" do + end + add_message "hashicorp.vagrant.sdk.Config.ConfigureRequest" do + optional :json, :bytes, 1 + end + add_message "hashicorp.vagrant.sdk.Config.StructResp" do + optional :struct, :message, 1, "protostructure.Struct" + end + add_message "hashicorp.vagrant.sdk.Config.FieldDocumentation" do + optional :name, :string, 1 + optional :synopsis, :string, 2 + optional :summary, :string, 3 + optional :optional, :bool, 4 + optional :env_var, :string, 5 + optional :type, :string, 6 + optional :default, :string, 7 + end + add_message "hashicorp.vagrant.sdk.Config.MapperDocumentation" do + optional :input, :string, 1 + optional :output, :string, 2 + optional :description, :string, 3 + end + add_message "hashicorp.vagrant.sdk.Config.Documentation" do + optional :description, :string, 1 + optional :example, :string, 2 + optional :input, :string, 3 + optional :output, :string, 4 + map :fields, :string, :message, 5, "hashicorp.vagrant.sdk.Config.FieldDocumentation" + repeated :mappers, :message, 6, "hashicorp.vagrant.sdk.Config.MapperDocumentation" + end + add_message "hashicorp.vagrant.sdk.Auth" do + end + add_message "hashicorp.vagrant.sdk.Auth.AuthResponse" do + optional :authenticated, :bool, 1 + end + add_message "hashicorp.vagrant.sdk.ImplementsResp" do + optional :implements, :bool, 1 + end + add_message "hashicorp.vagrant.sdk.TerminalUI" do + end + add_message "hashicorp.vagrant.sdk.TerminalUI.IsInteractiveResponse" do + optional :interactive, :bool, 1 + end + add_message "hashicorp.vagrant.sdk.TerminalUI.OutputRequest" do + repeated :lines, :string, 1 + end + add_message "hashicorp.vagrant.sdk.TerminalUI.Response" do + oneof :event do + optional :input, :message, 1, "hashicorp.vagrant.sdk.TerminalUI.Event.InputResp" + end + end + add_message "hashicorp.vagrant.sdk.TerminalUI.Event" do + oneof :event do + optional :line, :message, 1, "hashicorp.vagrant.sdk.TerminalUI.Event.Line" + optional :status, :message, 2, "hashicorp.vagrant.sdk.TerminalUI.Event.Status" + optional :named_values, :message, 3, "hashicorp.vagrant.sdk.TerminalUI.Event.NamedValues" + optional :raw, :message, 4, "hashicorp.vagrant.sdk.TerminalUI.Event.Raw" + optional :table, :message, 5, "hashicorp.vagrant.sdk.TerminalUI.Event.Table" + optional :step_group, :message, 6, "hashicorp.vagrant.sdk.TerminalUI.Event.StepGroup" + optional :step, :message, 7, "hashicorp.vagrant.sdk.TerminalUI.Event.Step" + optional :input, :message, 8, "hashicorp.vagrant.sdk.TerminalUI.Event.Input" + end + end + add_message "hashicorp.vagrant.sdk.TerminalUI.Event.Input" do + optional :prompt, :string, 1 + optional :style, :string, 2 + optional :secret, :bool, 3 + end + add_message "hashicorp.vagrant.sdk.TerminalUI.Event.InputResp" do + optional :input, :string, 1 + optional :error, :message, 2, "google.rpc.Status" + end + add_message "hashicorp.vagrant.sdk.TerminalUI.Event.Status" do + optional :status, :string, 1 + optional :msg, :string, 2 + optional :step, :bool, 3 + end + add_message "hashicorp.vagrant.sdk.TerminalUI.Event.Line" do + optional :msg, :string, 1 + optional :style, :string, 2 + end + add_message "hashicorp.vagrant.sdk.TerminalUI.Event.Raw" do + optional :data, :bytes, 1 + optional :stderr, :bool, 2 + end + add_message "hashicorp.vagrant.sdk.TerminalUI.Event.NamedValue" do + optional :name, :string, 1 + optional :value, :string, 2 + end + add_message "hashicorp.vagrant.sdk.TerminalUI.Event.NamedValues" do + repeated :values, :message, 1, "hashicorp.vagrant.sdk.TerminalUI.Event.NamedValue" + end + add_message "hashicorp.vagrant.sdk.TerminalUI.Event.TableEntry" do + optional :value, :string, 1 + optional :color, :string, 2 + end + add_message "hashicorp.vagrant.sdk.TerminalUI.Event.TableRow" do + repeated :entries, :message, 1, "hashicorp.vagrant.sdk.TerminalUI.Event.TableEntry" + end + add_message "hashicorp.vagrant.sdk.TerminalUI.Event.Table" do + repeated :headers, :string, 1 + repeated :rows, :message, 2, "hashicorp.vagrant.sdk.TerminalUI.Event.TableRow" + end + add_message "hashicorp.vagrant.sdk.TerminalUI.Event.StepGroup" do + optional :close, :bool, 1 + end + add_message "hashicorp.vagrant.sdk.TerminalUI.Event.Step" do + optional :id, :int32, 1 + optional :close, :bool, 2 + optional :msg, :string, 3 + optional :status, :string, 4 + optional :output, :bytes, 5 + end + add_message "hashicorp.vagrant.sdk.Map" do + end + add_message "hashicorp.vagrant.sdk.Map.Request" do + optional :args, :message, 1, "hashicorp.vagrant.sdk.FuncSpec.Args" + optional :result, :string, 2 + end + add_message "hashicorp.vagrant.sdk.Map.Response" do + optional :result, :message, 1, "google.protobuf.Any" + end + add_message "hashicorp.vagrant.sdk.Map.ListResponse" do + repeated :funcs, :message, 1, "hashicorp.vagrant.sdk.FuncSpec" + end + add_message "hashicorp.vagrant.sdk.Provider" do + end + add_message "hashicorp.vagrant.sdk.Provider.UsableResp" do + optional :is_usable, :bool, 1 + end + add_message "hashicorp.vagrant.sdk.Provider.InstalledResp" do + optional :is_installed, :bool, 1 + end + add_message "hashicorp.vagrant.sdk.Provider.ActionResp" do + optional :result, :message, 1, "google.protobuf.Any" + end + add_message "hashicorp.vagrant.sdk.Communicator" do + end + add_message "hashicorp.vagrant.sdk.Communicator.MatchResp" do + optional :match, :bool, 1 + end + add_message "hashicorp.vagrant.sdk.Communicator.InitResp" do + end + add_message "hashicorp.vagrant.sdk.Communicator.ReadyResp" do + optional :ready, :bool, 1 + end + add_message "hashicorp.vagrant.sdk.Communicator.FileTransferResp" do + end + add_message "hashicorp.vagrant.sdk.Communicator.ExecutionRequest" do + optional :machine, :message, 1, "hashicorp.vagrant.sdk.Machine" + optional :command, :string, 2 + optional :options, :message, 3, "hashicorp.vagrant.sdk.LabelSet" + end + add_message "hashicorp.vagrant.sdk.Communicator.ExecuteResp" do + optional :exit_code, :int32, 1 + end + add_message "hashicorp.vagrant.sdk.Communicator.TestResp" do + optional :valid, :bool, 1 + end + add_message "hashicorp.vagrant.sdk.Communicator.ResetResp" do + end + add_message "hashicorp.vagrant.sdk.Guest" do + end + add_message "hashicorp.vagrant.sdk.Guest.DetectResp" do + optional :detected, :bool, 1 + end + add_message "hashicorp.vagrant.sdk.Guest.Capability" do + end + add_message "hashicorp.vagrant.sdk.Guest.Capability.NamedRequest" do + optional :name, :string, 1 + optional :func_args, :message, 2, "hashicorp.vagrant.sdk.FuncSpec.Args" + end + add_message "hashicorp.vagrant.sdk.Guest.Capability.CheckResp" do + optional :has_capability, :bool, 1 + end + add_message "hashicorp.vagrant.sdk.Guest.Capability.Resp" do + optional :result, :message, 1, "google.protobuf.Any" + end + add_message "hashicorp.vagrant.sdk.Host" do + end + add_message "hashicorp.vagrant.sdk.Host.DetectResp" do + optional :detected, :bool, 1 + end + add_message "hashicorp.vagrant.sdk.Host.Capability" do + end + add_message "hashicorp.vagrant.sdk.Host.Capability.CheckResp" do + optional :has_capability, :bool, 1 + end + add_message "hashicorp.vagrant.sdk.Host.Capability.Resp" do + optional :result, :message, 1, "google.protobuf.Any" + end + end +end + +module Hashicorp + module Vagrant + module Sdk + Args = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Args").msgclass + Args::Machine = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Args.Machine").msgclass + Args::Configuration = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Args.Configuration").msgclass + Args::Configuration::Vagrant = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Args.Configuration.Vagrant").msgclass + Args::Configuration::VM = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Args.Configuration.VM").msgclass + Args::Configuration::Provider = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Args.Configuration.Provider").msgclass + Args::LabelSet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Args.LabelSet").msgclass + Args::Options = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Args.Options").msgclass + Args::Source = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Args.Source").msgclass + Args::JobInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Args.JobInfo").msgclass + Args::Logger = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Args.Logger").msgclass + Args::TerminalUI = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Args.TerminalUI").msgclass + FuncSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.FuncSpec").msgclass + FuncSpec::Value = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.FuncSpec.Value").msgclass + FuncSpec::Args = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.FuncSpec.Args").msgclass + Config = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Config").msgclass + Config::ConfigureRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Config.ConfigureRequest").msgclass + Config::StructResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Config.StructResp").msgclass + Config::FieldDocumentation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Config.FieldDocumentation").msgclass + Config::MapperDocumentation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Config.MapperDocumentation").msgclass + Config::Documentation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Config.Documentation").msgclass + Auth = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Auth").msgclass + Auth::AuthResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Auth.AuthResponse").msgclass + ImplementsResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.ImplementsResp").msgclass + TerminalUI = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.TerminalUI").msgclass + TerminalUI::IsInteractiveResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.TerminalUI.IsInteractiveResponse").msgclass + TerminalUI::OutputRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.TerminalUI.OutputRequest").msgclass + TerminalUI::Response = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.TerminalUI.Response").msgclass + TerminalUI::Event = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.TerminalUI.Event").msgclass + TerminalUI::Event::Input = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.TerminalUI.Event.Input").msgclass + TerminalUI::Event::InputResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.TerminalUI.Event.InputResp").msgclass + TerminalUI::Event::Status = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.TerminalUI.Event.Status").msgclass + TerminalUI::Event::Line = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.TerminalUI.Event.Line").msgclass + TerminalUI::Event::Raw = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.TerminalUI.Event.Raw").msgclass + TerminalUI::Event::NamedValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.TerminalUI.Event.NamedValue").msgclass + TerminalUI::Event::NamedValues = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.TerminalUI.Event.NamedValues").msgclass + TerminalUI::Event::TableEntry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.TerminalUI.Event.TableEntry").msgclass + TerminalUI::Event::TableRow = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.TerminalUI.Event.TableRow").msgclass + TerminalUI::Event::Table = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.TerminalUI.Event.Table").msgclass + TerminalUI::Event::StepGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.TerminalUI.Event.StepGroup").msgclass + TerminalUI::Event::Step = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.TerminalUI.Event.Step").msgclass + Map = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Map").msgclass + Map::Request = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Map.Request").msgclass + Map::Response = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Map.Response").msgclass + Map::ListResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Map.ListResponse").msgclass + Provider = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Provider").msgclass + Provider::UsableResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Provider.UsableResp").msgclass + Provider::InstalledResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Provider.InstalledResp").msgclass + Provider::ActionResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Provider.ActionResp").msgclass + Communicator = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Communicator").msgclass + Communicator::MatchResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Communicator.MatchResp").msgclass + Communicator::InitResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Communicator.InitResp").msgclass + Communicator::ReadyResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Communicator.ReadyResp").msgclass + Communicator::FileTransferResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Communicator.FileTransferResp").msgclass + Communicator::ExecutionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Communicator.ExecutionRequest").msgclass + Communicator::ExecuteResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Communicator.ExecuteResp").msgclass + Communicator::TestResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Communicator.TestResp").msgclass + Communicator::ResetResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Communicator.ResetResp").msgclass + Guest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Guest").msgclass + Guest::DetectResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Guest.DetectResp").msgclass + Guest::Capability = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Guest.Capability").msgclass + Guest::Capability::NamedRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Guest.Capability.NamedRequest").msgclass + Guest::Capability::CheckResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Guest.Capability.CheckResp").msgclass + Guest::Capability::Resp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Guest.Capability.Resp").msgclass + Host = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Host").msgclass + Host::DetectResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Host.DetectResp").msgclass + Host::Capability = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Host.Capability").msgclass + Host::Capability::CheckResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Host.Capability.CheckResp").msgclass + Host::Capability::Resp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Host.Capability.Resp").msgclass + end + end +end diff --git a/plugins/commands/serve/service/proto/gen/plugin/plugin_services_pb.rb b/plugins/commands/serve/service/proto/gen/plugin/plugin_services_pb.rb new file mode 100644 index 000000000..d9db2a44d --- /dev/null +++ b/plugins/commands/serve/service/proto/gen/plugin/plugin_services_pb.rb @@ -0,0 +1,258 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# Source: plugin.proto for package 'hashicorp.vagrant.sdk' + +require 'grpc' +require 'plugin_pb' + +module Hashicorp + module Vagrant + module Sdk + module TerminalUIService + # ******************************************************************* + # Terminal UI Service + # ****************************************************************** + # + # TerminalUIService is a service that provides "sdk/terminal.UI" interface + # to plugins. Plugins don't interact with this directly, they usually + # interact with it indirectly via a terminal.UI implementation. + class Service + + include GRPC::GenericService + + self.marshal_class_method = :encode + self.unmarshal_class_method = :decode + self.service_name = 'hashicorp.vagrant.sdk.TerminalUIService' + + rpc :Output, ::Hashicorp::Vagrant::Sdk::TerminalUI::OutputRequest, ::Google::Protobuf::Empty + rpc :Events, stream(::Hashicorp::Vagrant::Sdk::TerminalUI::Event), stream(::Hashicorp::Vagrant::Sdk::TerminalUI::Response) + rpc :IsInteractive, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::TerminalUI::IsInteractiveResponse + end + + Stub = Service.rpc_stub_class + end + module Mapper + # Mapper is a specialized type of plugin that provides type mappers + # to convert to/from various types. + class Service + + include GRPC::GenericService + + self.marshal_class_method = :encode + self.unmarshal_class_method = :decode + self.service_name = 'hashicorp.vagrant.sdk.Mapper' + + # ListMappers returns the list of mappers that this plugin supports. + rpc :ListMappers, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Map::ListResponse + # Map executes a mapper. + rpc :Map, ::Hashicorp::Vagrant::Sdk::Map::Request, ::Hashicorp::Vagrant::Sdk::Map::Response + end + + Stub = Service.rpc_stub_class + end + module ProviderService + # service CommunicatorService { + # rpc Match(Communicator.MatchRequest) returns (Communicator); + # } + # + # ******************************************************************* + # Provider Plugin Service + # ****************************************************************** + # + # Provider service is a provider that takes some set of arguments changes + # the state of a machine + class Service + + include GRPC::GenericService + + self.marshal_class_method = :encode + self.unmarshal_class_method = :decode + self.service_name = 'hashicorp.vagrant.sdk.ProviderService' + + # rpc Usable(google.protobuf.Empty) returns (Provider.UsableResp); + # rpc Installed(google.protobuf.Empty) returns (Provider.InstalledResp); + rpc :Usable, ::Hashicorp::Vagrant::Sdk::FuncSpec::Args, ::Hashicorp::Vagrant::Sdk::Provider::UsableResp + rpc :UsableSpec, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::FuncSpec + rpc :Installed, ::Hashicorp::Vagrant::Sdk::FuncSpec::Args, ::Hashicorp::Vagrant::Sdk::Provider::InstalledResp + rpc :InstalledSpec, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::FuncSpec + rpc :Init, ::Hashicorp::Vagrant::Sdk::FuncSpec::Args, ::Google::Protobuf::Empty + rpc :InitSpec, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::FuncSpec + rpc :ActionUp, ::Hashicorp::Vagrant::Sdk::FuncSpec::Args, ::Hashicorp::Vagrant::Sdk::Provider::ActionResp + rpc :ActionUpSpec, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::FuncSpec + # rpc ActionHalt(FuncSpec.Args) returns (Provider.Action.Resp); + # rpc ActionHaltSpec(google.protobuf.Empty) returns (FuncSpec); + # rpc ActionSuspend(FuncSpec.Args) returns (Provider.Action.Resp); + # rpc ActionSuspendSpec(google.protobuf.Empty) returns (FuncSpec); + # rpc ActionReload(FuncSpec.Args) returns (Provider.Action.Resp); + # rpc ActionReloadSpec(google.protobuf.Empty) returns (FuncSpec); + # rpc ActionResume(FuncSpec.Args) returns (Provider.Action.Resp); + # rpc ActionResumeSpec(google.protobuf.Empty) returns (FuncSpec); + # rpc ActionProvision(FuncSpec.Args) returns (Provider.Action.Resp); + # rpc ActionProvisionSpec(google.protobuf.Empty) returns (FuncSpec); + # rpc ActionSnapshotSave(FuncSpec.Args) returns (Provider.Action.Resp); + # rpc ActionSnapshotSaveSpec(google.protobuf.Empty) returns (FuncSpec); + # rpc ActionSnapshotRestore(FuncSpec.Args) returns (Provider.Action.Resp); + # rpc ActionSnapshotRestoreSpec(google.protobuf.Empty) returns (FuncSpec); + # rpc ActionSnapshotDelete(FuncSpec.Args) returns (Provider.Action.Resp); + # rpc ActionSnapshotDeleteSpec(google.protobuf.Empty) returns (FuncSpec); + # rpc ActionDestroy(FuncSpec.Args) returns (Provider.Action.Resp); + # rpc ActionDestroySpec(google.protobuf.Empty) returns (FuncSpec); + rpc :ConfigStruct, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Config::StructResp + rpc :Configure, ::Hashicorp::Vagrant::Sdk::Config::ConfigureRequest, ::Google::Protobuf::Empty + rpc :Documentation, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Config::Documentation + end + + Stub = Service.rpc_stub_class + end + # rpc IsAuthenticator(google.protobuf.Empty) returns (ImplementsResp); + # rpc Auth(FuncSpec.Args) returns (Auth.AuthResponse); + # rpc AuthSpec(google.protobuf.Empty) returns (FuncSpec); + # rpc ValidateAuth(FuncSpec.Args) returns (google.protobuf.Empty); + # rpc ValidateAuthSpec(google.protobuf.Empty) returns (FuncSpec); + module ProvisionerService + # ******************************************************************* + # Provisioner Plugin Service + # ****************************************************************** + # + # A Provisioner runs actions against a VM + class Service + + include GRPC::GenericService + + self.marshal_class_method = :encode + self.unmarshal_class_method = :decode + self.service_name = 'hashicorp.vagrant.sdk.ProvisionerService' + + rpc :ConfigStruct, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Config::StructResp + rpc :Configure, ::Hashicorp::Vagrant::Sdk::Config::ConfigureRequest, ::Google::Protobuf::Empty + rpc :Documentation, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Config::Documentation + end + + Stub = Service.rpc_stub_class + end + module CommandService + class Service + + include GRPC::GenericService + + self.marshal_class_method = :encode + self.unmarshal_class_method = :decode + self.service_name = 'hashicorp.vagrant.sdk.CommandService' + + rpc :ConfigStruct, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Config::StructResp + rpc :Configure, ::Hashicorp::Vagrant::Sdk::Config::ConfigureRequest, ::Google::Protobuf::Empty + rpc :Documentation, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Config::Documentation + end + + Stub = Service.rpc_stub_class + end + module CommunicatorService + class Service + + include GRPC::GenericService + + self.marshal_class_method = :encode + self.unmarshal_class_method = :decode + self.service_name = 'hashicorp.vagrant.sdk.CommunicatorService' + + rpc :ConfigStruct, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Config::StructResp + rpc :Configure, ::Hashicorp::Vagrant::Sdk::Config::ConfigureRequest, ::Google::Protobuf::Empty + rpc :Documentation, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Config::Documentation + rpc :MatchSpec, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::FuncSpec + rpc :Match, ::Hashicorp::Vagrant::Sdk::FuncSpec::Args, ::Hashicorp::Vagrant::Sdk::Communicator::MatchResp + rpc :InitSpec, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::FuncSpec + rpc :Init, ::Hashicorp::Vagrant::Sdk::FuncSpec::Args, ::Hashicorp::Vagrant::Sdk::Communicator::InitResp + rpc :ReadySpec, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::FuncSpec + rpc :Ready, ::Hashicorp::Vagrant::Sdk::FuncSpec::Args, ::Hashicorp::Vagrant::Sdk::Communicator::ReadyResp + rpc :WaitForReadySpec, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::FuncSpec + rpc :WaitForReady, ::Hashicorp::Vagrant::Sdk::FuncSpec::Args, ::Hashicorp::Vagrant::Sdk::Communicator::ReadyResp + rpc :DownloadSpec, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::FuncSpec + rpc :Download, ::Hashicorp::Vagrant::Sdk::FuncSpec::Args, ::Hashicorp::Vagrant::Sdk::Communicator::FileTransferResp + rpc :UploadSpec, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::FuncSpec + rpc :Upload, ::Hashicorp::Vagrant::Sdk::FuncSpec::Args, ::Hashicorp::Vagrant::Sdk::Communicator::FileTransferResp + rpc :ExecuteSpec, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::FuncSpec + rpc :Execute, ::Hashicorp::Vagrant::Sdk::FuncSpec::Args, ::Hashicorp::Vagrant::Sdk::Communicator::ExecuteResp + rpc :PrivilegedExecuteSpec, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::FuncSpec + rpc :PrivilegedExecute, ::Hashicorp::Vagrant::Sdk::FuncSpec::Args, ::Hashicorp::Vagrant::Sdk::Communicator::ExecuteResp + rpc :TestSpec, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::FuncSpec + rpc :Test, ::Hashicorp::Vagrant::Sdk::FuncSpec::Args, ::Hashicorp::Vagrant::Sdk::Communicator::TestResp + rpc :ResetSpec, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::FuncSpec + rpc :Reset, ::Hashicorp::Vagrant::Sdk::FuncSpec::Args, ::Hashicorp::Vagrant::Sdk::Communicator::ResetResp + end + + Stub = Service.rpc_stub_class + end + module ConfigService + class Service + + include GRPC::GenericService + + self.marshal_class_method = :encode + self.unmarshal_class_method = :decode + self.service_name = 'hashicorp.vagrant.sdk.ConfigService' + + rpc :ConfigStruct, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Config::StructResp + rpc :Configure, ::Hashicorp::Vagrant::Sdk::Config::ConfigureRequest, ::Google::Protobuf::Empty + rpc :Documentation, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Config::Documentation + end + + Stub = Service.rpc_stub_class + end + module GuestService + class Service + + include GRPC::GenericService + + self.marshal_class_method = :encode + self.unmarshal_class_method = :decode + self.service_name = 'hashicorp.vagrant.sdk.GuestService' + + rpc :ConfigStruct, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Config::StructResp + rpc :Configure, ::Hashicorp::Vagrant::Sdk::Config::ConfigureRequest, ::Google::Protobuf::Empty + rpc :Documentation, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Config::Documentation + rpc :Detect, ::Hashicorp::Vagrant::Sdk::FuncSpec::Args, ::Hashicorp::Vagrant::Sdk::Guest::DetectResp + rpc :DetectSpec, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::FuncSpec + rpc :HasCapability, ::Hashicorp::Vagrant::Sdk::Guest::Capability::NamedRequest, ::Hashicorp::Vagrant::Sdk::Guest::Capability::CheckResp + rpc :HasCapabilitySpec, ::Hashicorp::Vagrant::Sdk::Guest::Capability::NamedRequest, ::Hashicorp::Vagrant::Sdk::FuncSpec + rpc :Capability, ::Hashicorp::Vagrant::Sdk::Guest::Capability::NamedRequest, ::Hashicorp::Vagrant::Sdk::Guest::Capability::Resp + rpc :CapabilitySpec, ::Hashicorp::Vagrant::Sdk::Guest::Capability::NamedRequest, ::Hashicorp::Vagrant::Sdk::FuncSpec + end + + Stub = Service.rpc_stub_class + end + module HostService + class Service + + include GRPC::GenericService + + self.marshal_class_method = :encode + self.unmarshal_class_method = :decode + self.service_name = 'hashicorp.vagrant.sdk.HostService' + + rpc :ConfigStruct, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Config::StructResp + rpc :Configure, ::Hashicorp::Vagrant::Sdk::Config::ConfigureRequest, ::Google::Protobuf::Empty + rpc :Documentation, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Config::Documentation + rpc :Detect, ::Hashicorp::Vagrant::Sdk::FuncSpec::Args, ::Hashicorp::Vagrant::Sdk::Host::DetectResp + rpc :DetectSpec, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::FuncSpec + end + + Stub = Service.rpc_stub_class + end + module SyncedFolderService + class Service + + include GRPC::GenericService + + self.marshal_class_method = :encode + self.unmarshal_class_method = :decode + self.service_name = 'hashicorp.vagrant.sdk.SyncedFolderService' + + rpc :ConfigStruct, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Config::StructResp + rpc :Configure, ::Hashicorp::Vagrant::Sdk::Config::ConfigureRequest, ::Google::Protobuf::Empty + rpc :Documentation, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Config::Documentation + end + + Stub = Service.rpc_stub_class + end + end + end +end