# frozen_string_literal: true
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: deviceapis/device/v1/deviceapis_device_ftp_v1.proto

require 'google/protobuf'

require 'deviceapis/device/v1/deviceapis_device_common_v1_pb'
require 'google/api/annotations_pb'
require 'google/api/field_behavior_pb'
require 'google/protobuf/field_mask_pb'
require 'protoc-gen-openapiv2/options/annotations_pb'


descriptor_data = "\n3deviceapis/device/v1/deviceapis_device_ftp_v1.proto\x12\x14\x64\x65viceapis.device.v1\x1a\x36\x64\x65viceapis/device/v1/deviceapis_device_common_v1.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a google/protobuf/field_mask.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\"o\n\x0e\x45\x64itFtpRequest\x12,\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x19.deviceapis.device.v1.FtpB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\xd2\x01\n\x0f\x45\x64itFtpResponse\x12)\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x19.deviceapis.device.v1.FtpH\x00\x12<\n\x05\x65rror\x18\x02 \x01(\x0b\x32+.deviceapis.device.v1.EditFtpResponse.ErrorH\x00\x1aN\n\x05\x45rror\x12;\n\nvalidation\x18\x01 \x01(\x0b\x32%.deviceapis.device.v1.ValidationErrorH\x00\x42\x08\n\x06reasonB\x06\n\x04type\"\x7f\n\x03\x46tp\x12\x34\n\x12reg_server_address\x18\x01 \x01(\tB\x18\x92\x41\x15J\x10\"ftp.acme.io:21\"\x80\x01\x05\x12\x1b\n\x05login\x18\x02 \x01(\tB\x0c\x92\x41\tJ\x07\"admin\"\x12%\n\x08password\x18\x03 \x01(\tB\x13\xe0\x41\x04\x92\x41\rJ\x0b\"pwd_admin\"\"\x0f\n\rGetFtpRequest\"C\n\x0eGetFtpResponse\x12)\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x19.deviceapis.device.v1.FtpH\x00\x42\x06\n\x04type\"\xa5\x01\n\x19PostFtpBackupApplyRequest\x12*\n\x08\x66tp_path\x18\x01 \x01(\tB\x18\xe0\x41\x02\x92\x41\x12J\x10\"backups/annual\"\x12.\n\tfile_name\x18\x02 \x01(\tB\x1b\xe0\x41\x02\x92\x41\x15J\x13\"backup01012000.gz\"\x12,\n\x0frestore_options\x18\x03 \x01(\tB\x13\x92\x41\x10J\x0e\"after_reboot\"\"\xbd\x01\n\x1aPostFtpBackupApplyResponse\x12G\n\x05\x65rror\x18\x01 \x01(\x0b\x32\x36.deviceapis.device.v1.PostFtpBackupApplyResponse.ErrorH\x00\x1aN\n\x05\x45rror\x12;\n\nvalidation\x18\x01 \x01(\x0b\x32%.deviceapis.device.v1.ValidationErrorH\x00\x42\x08\n\x06reasonB\x06\n\x04type\"\x99\x01\n\x14PostFtpBackupRequest\x12*\n\x08\x66tp_path\x18\x01 \x01(\tB\x18\xe0\x41\x02\x92\x41\x12J\x10\"backups/annual\"\x12.\n\tfile_name\x18\x02 \x01(\tB\x1b\xe0\x41\x02\x92\x41\x15J\x13\"backup01012000.gz\"\x12%\n\x0b\x62\x61\x63kup_type\x18\x03 \x01(\tB\x10\xe0\x41\x02\x92\x41\nJ\x08\"annual\"\"\xb3\x01\n\x15PostFtpBackupResponse\x12\x42\n\x05\x65rror\x18\x01 \x01(\x0b\x32\x31.deviceapis.device.v1.PostFtpBackupResponse.ErrorH\x00\x1aN\n\x05\x45rror\x12;\n\nvalidation\x18\x01 \x01(\x0b\x32%.deviceapis.device.v1.ValidationErrorH\x00\x42\x08\n\x06reasonB\x06\n\x04type2\xae\x04\n\nFtpService\x12x\n\x07\x45\x64itFtp\x12$.deviceapis.device.v1.EditFtpRequest\x1a%.deviceapis.device.v1.EditFtpResponse\" \x82\xd3\xe4\x93\x02\x1a\x32\x12/device/api/v1/ftp:\x04\x64\x61ta\x12o\n\x06GetFtp\x12#.deviceapis.device.v1.GetFtpRequest\x1a$.deviceapis.device.v1.GetFtpResponse\"\x1a\x82\xd3\xe4\x93\x02\x14\x12\x12/device/api/v1/ftp\x12\x8e\x01\n\rPostFtpBackup\x12*.deviceapis.device.v1.PostFtpBackupRequest\x1a+.deviceapis.device.v1.PostFtpBackupResponse\"$\x82\xd3\xe4\x93\x02\x1e\"\x19/device/api/v1/ftp/backup:\x01*\x12\xa3\x01\n\x12PostFtpBackupApply\x12/.deviceapis.device.v1.PostFtpBackupApplyRequest\x1a\x30.deviceapis.device.v1.PostFtpBackupApplyResponse\"*\x82\xd3\xe4\x93\x02$\"\x1f/device/api/v1/ftp/backup/apply:\x01*B\xaf\x01\n\x17ru.deviceapis.device.v1B\x17\x44\x65viceapisDeviceV1ProtoH\x03P\x00Z\x15/deviceapis_device_v1\xd8\x01\x01\xf8\x01\x01\xa2\x02\x12\x44\x45VICEAPISDEVICEV1\xaa\x02\x14\x44\x65viceapis.Device.V1\xca\x02\x14\x44\x65viceapis\\Device\\V1\xea\x02\x16\x44\x65viceapis::Device::V1b\x06proto3"

pool = Google::Protobuf::DescriptorPool.generated_pool

begin
  pool.add_serialized_file(descriptor_data)
rescue TypeError => e
  # Compatibility code: will be removed in the next major version.
  require 'google/protobuf/descriptor_pb'
  parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
  parsed.clear_dependency
  serialized = parsed.class.encode(parsed)
  file = pool.add_serialized_file(serialized)
  warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
  imports = [
    ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
    ["deviceapis.device.v1.ValidationError", "deviceapis/device/v1/deviceapis_device_common_v1.proto"],
  ]
  imports.each do |type_name, expected_filename|
    import_file = pool.lookup(type_name).file_descriptor
    if import_file.name != expected_filename
      warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
    end
  end
  warn "Each proto file must use a consistent fully-qualified name."
  warn "This will become an error in the next major version."
end

module Deviceapis
  module Device
    module V1
      EditFtpRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("deviceapis.device.v1.EditFtpRequest").msgclass
      EditFtpResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("deviceapis.device.v1.EditFtpResponse").msgclass
      EditFtpResponse::Error = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("deviceapis.device.v1.EditFtpResponse.Error").msgclass
      Ftp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("deviceapis.device.v1.Ftp").msgclass
      GetFtpRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("deviceapis.device.v1.GetFtpRequest").msgclass
      GetFtpResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("deviceapis.device.v1.GetFtpResponse").msgclass
      PostFtpBackupApplyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("deviceapis.device.v1.PostFtpBackupApplyRequest").msgclass
      PostFtpBackupApplyResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("deviceapis.device.v1.PostFtpBackupApplyResponse").msgclass
      PostFtpBackupApplyResponse::Error = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("deviceapis.device.v1.PostFtpBackupApplyResponse.Error").msgclass
      PostFtpBackupRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("deviceapis.device.v1.PostFtpBackupRequest").msgclass
      PostFtpBackupResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("deviceapis.device.v1.PostFtpBackupResponse").msgclass
      PostFtpBackupResponse::Error = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("deviceapis.device.v1.PostFtpBackupResponse.Error").msgclass
    end
  end
end
