// This file is generated by rust-protobuf 3.5.1. Do not edit
// .proto file is parsed by pure
// @generated

// https://github.com/rust-lang/rust-clippy/issues/702
#![allow(unknown_lints)]
#![allow(clippy::all)]

#![allow(unused_attributes)]
#![cfg_attr(rustfmt, rustfmt::skip)]

#![allow(dead_code)]
#![allow(missing_docs)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
#![allow(non_upper_case_globals)]
#![allow(trivial_casts)]
#![allow(unused_results)]
#![allow(unused_mut)]

//! Generated file from `steammessages_secrets.steamclient.proto`
// Generated for lite runtime

/// Generated files are compatible only with the same version
/// of protobuf runtime.
const _PROTOBUF_VERSION_CHECK: () = ::steam_vent_proto_common::protobuf::VERSION_3_5_1;

// @@protoc_insertion_point(message:CKeyEscrow_Request)
#[derive(PartialEq,Clone,Default,Debug)]
pub struct CKeyEscrow_Request {
    // message fields
    // @@protoc_insertion_point(field:CKeyEscrow_Request.rsa_oaep_sha_ticket)
    pub rsa_oaep_sha_ticket: ::std::option::Option<::std::vec::Vec<u8>>,
    // @@protoc_insertion_point(field:CKeyEscrow_Request.password)
    pub password: ::std::option::Option<::std::vec::Vec<u8>>,
    // @@protoc_insertion_point(field:CKeyEscrow_Request.usage)
    pub usage: ::std::option::Option<::steam_vent_proto_common::protobuf::EnumOrUnknown<EKeyEscrowUsage>>,
    // @@protoc_insertion_point(field:CKeyEscrow_Request.device_name)
    pub device_name: ::std::option::Option<::std::string::String>,
    // special fields
    // @@protoc_insertion_point(special_field:CKeyEscrow_Request.special_fields)
    pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
}

impl<'a> ::std::default::Default for &'a CKeyEscrow_Request {
    fn default() -> &'a CKeyEscrow_Request {
        <CKeyEscrow_Request as ::steam_vent_proto_common::protobuf::Message>::default_instance()
    }
}

impl CKeyEscrow_Request {
    pub fn new() -> CKeyEscrow_Request {
        ::std::default::Default::default()
    }

    // optional bytes rsa_oaep_sha_ticket = 1;

    pub fn rsa_oaep_sha_ticket(&self) -> &[u8] {
        match self.rsa_oaep_sha_ticket.as_ref() {
            Some(v) => v,
            None => &[],
        }
    }

    pub fn clear_rsa_oaep_sha_ticket(&mut self) {
        self.rsa_oaep_sha_ticket = ::std::option::Option::None;
    }

    pub fn has_rsa_oaep_sha_ticket(&self) -> bool {
        self.rsa_oaep_sha_ticket.is_some()
    }

    // Param is passed by value, moved
    pub fn set_rsa_oaep_sha_ticket(&mut self, v: ::std::vec::Vec<u8>) {
        self.rsa_oaep_sha_ticket = ::std::option::Option::Some(v);
    }

    // Mutable pointer to the field.
    // If field is not initialized, it is initialized with default value first.
    pub fn mut_rsa_oaep_sha_ticket(&mut self) -> &mut ::std::vec::Vec<u8> {
        if self.rsa_oaep_sha_ticket.is_none() {
            self.rsa_oaep_sha_ticket = ::std::option::Option::Some(::std::vec::Vec::new());
        }
        self.rsa_oaep_sha_ticket.as_mut().unwrap()
    }

    // Take field
    pub fn take_rsa_oaep_sha_ticket(&mut self) -> ::std::vec::Vec<u8> {
        self.rsa_oaep_sha_ticket.take().unwrap_or_else(|| ::std::vec::Vec::new())
    }

    // optional bytes password = 2;

    pub fn password(&self) -> &[u8] {
        match self.password.as_ref() {
            Some(v) => v,
            None => &[],
        }
    }

    pub fn clear_password(&mut self) {
        self.password = ::std::option::Option::None;
    }

    pub fn has_password(&self) -> bool {
        self.password.is_some()
    }

    // Param is passed by value, moved
    pub fn set_password(&mut self, v: ::std::vec::Vec<u8>) {
        self.password = ::std::option::Option::Some(v);
    }

    // Mutable pointer to the field.
    // If field is not initialized, it is initialized with default value first.
    pub fn mut_password(&mut self) -> &mut ::std::vec::Vec<u8> {
        if self.password.is_none() {
            self.password = ::std::option::Option::Some(::std::vec::Vec::new());
        }
        self.password.as_mut().unwrap()
    }

    // Take field
    pub fn take_password(&mut self) -> ::std::vec::Vec<u8> {
        self.password.take().unwrap_or_else(|| ::std::vec::Vec::new())
    }

    // optional .EKeyEscrowUsage usage = 3;

    pub fn usage(&self) -> EKeyEscrowUsage {
        match self.usage {
            Some(e) => e.enum_value_or(EKeyEscrowUsage::k_EKeyEscrowUsageStreamingDevice),
            None => EKeyEscrowUsage::k_EKeyEscrowUsageStreamingDevice,
        }
    }

    pub fn clear_usage(&mut self) {
        self.usage = ::std::option::Option::None;
    }

    pub fn has_usage(&self) -> bool {
        self.usage.is_some()
    }

    // Param is passed by value, moved
    pub fn set_usage(&mut self, v: EKeyEscrowUsage) {
        self.usage = ::std::option::Option::Some(::steam_vent_proto_common::protobuf::EnumOrUnknown::new(v));
    }

    // optional string device_name = 4;

    pub fn device_name(&self) -> &str {
        match self.device_name.as_ref() {
            Some(v) => v,
            None => "",
        }
    }

    pub fn clear_device_name(&mut self) {
        self.device_name = ::std::option::Option::None;
    }

    pub fn has_device_name(&self) -> bool {
        self.device_name.is_some()
    }

    // Param is passed by value, moved
    pub fn set_device_name(&mut self, v: ::std::string::String) {
        self.device_name = ::std::option::Option::Some(v);
    }

    // Mutable pointer to the field.
    // If field is not initialized, it is initialized with default value first.
    pub fn mut_device_name(&mut self) -> &mut ::std::string::String {
        if self.device_name.is_none() {
            self.device_name = ::std::option::Option::Some(::std::string::String::new());
        }
        self.device_name.as_mut().unwrap()
    }

    // Take field
    pub fn take_device_name(&mut self) -> ::std::string::String {
        self.device_name.take().unwrap_or_else(|| ::std::string::String::new())
    }
}

impl ::steam_vent_proto_common::protobuf::Message for CKeyEscrow_Request {
    const NAME: &'static str = "CKeyEscrow_Request";

    fn is_initialized(&self) -> bool {
        true
    }

    fn merge_from(&mut self, is: &mut ::steam_vent_proto_common::protobuf::CodedInputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
        while let Some(tag) = is.read_raw_tag_or_eof()? {
            match tag {
                10 => {
                    self.rsa_oaep_sha_ticket = ::std::option::Option::Some(is.read_bytes()?);
                },
                18 => {
                    self.password = ::std::option::Option::Some(is.read_bytes()?);
                },
                24 => {
                    self.usage = ::std::option::Option::Some(is.read_enum_or_unknown()?);
                },
                34 => {
                    self.device_name = ::std::option::Option::Some(is.read_string()?);
                },
                tag => {
                    ::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
                },
            };
        }
        ::std::result::Result::Ok(())
    }

    // Compute sizes of nested messages
    #[allow(unused_variables)]
    fn compute_size(&self) -> u64 {
        let mut my_size = 0;
        if let Some(v) = self.rsa_oaep_sha_ticket.as_ref() {
            my_size += ::steam_vent_proto_common::protobuf::rt::bytes_size(1, &v);
        }
        if let Some(v) = self.password.as_ref() {
            my_size += ::steam_vent_proto_common::protobuf::rt::bytes_size(2, &v);
        }
        if let Some(v) = self.usage {
            my_size += ::steam_vent_proto_common::protobuf::rt::int32_size(3, v.value());
        }
        if let Some(v) = self.device_name.as_ref() {
            my_size += ::steam_vent_proto_common::protobuf::rt::string_size(4, &v);
        }
        my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
        self.special_fields.cached_size().set(my_size as u32);
        my_size
    }

    fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
        if let Some(v) = self.rsa_oaep_sha_ticket.as_ref() {
            os.write_bytes(1, v)?;
        }
        if let Some(v) = self.password.as_ref() {
            os.write_bytes(2, v)?;
        }
        if let Some(v) = self.usage {
            os.write_enum(3, ::steam_vent_proto_common::protobuf::EnumOrUnknown::value(&v))?;
        }
        if let Some(v) = self.device_name.as_ref() {
            os.write_string(4, v)?;
        }
        os.write_unknown_fields(self.special_fields.unknown_fields())?;
        ::std::result::Result::Ok(())
    }

    fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
        &self.special_fields
    }

    fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
        &mut self.special_fields
    }

    fn new() -> CKeyEscrow_Request {
        CKeyEscrow_Request::new()
    }

    fn clear(&mut self) {
        self.rsa_oaep_sha_ticket = ::std::option::Option::None;
        self.password = ::std::option::Option::None;
        self.usage = ::std::option::Option::None;
        self.device_name = ::std::option::Option::None;
        self.special_fields.clear();
    }

    fn default_instance() -> &'static CKeyEscrow_Request {
        static instance: CKeyEscrow_Request = CKeyEscrow_Request {
            rsa_oaep_sha_ticket: ::std::option::Option::None,
            password: ::std::option::Option::None,
            usage: ::std::option::Option::None,
            device_name: ::std::option::Option::None,
            special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
        };
        &instance
    }
}

// @@protoc_insertion_point(message:CKeyEscrow_Ticket)
#[derive(PartialEq,Clone,Default,Debug)]
pub struct CKeyEscrow_Ticket {
    // message fields
    // @@protoc_insertion_point(field:CKeyEscrow_Ticket.password)
    pub password: ::std::option::Option<::std::vec::Vec<u8>>,
    // @@protoc_insertion_point(field:CKeyEscrow_Ticket.identifier)
    pub identifier: ::std::option::Option<u64>,
    // @@protoc_insertion_point(field:CKeyEscrow_Ticket.payload)
    pub payload: ::std::option::Option<::std::vec::Vec<u8>>,
    // @@protoc_insertion_point(field:CKeyEscrow_Ticket.timestamp)
    pub timestamp: ::std::option::Option<u32>,
    // @@protoc_insertion_point(field:CKeyEscrow_Ticket.usage)
    pub usage: ::std::option::Option<::steam_vent_proto_common::protobuf::EnumOrUnknown<EKeyEscrowUsage>>,
    // @@protoc_insertion_point(field:CKeyEscrow_Ticket.device_name)
    pub device_name: ::std::option::Option<::std::string::String>,
    // @@protoc_insertion_point(field:CKeyEscrow_Ticket.device_model)
    pub device_model: ::std::option::Option<::std::string::String>,
    // @@protoc_insertion_point(field:CKeyEscrow_Ticket.device_serial)
    pub device_serial: ::std::option::Option<::std::string::String>,
    // @@protoc_insertion_point(field:CKeyEscrow_Ticket.device_provisioning_id)
    pub device_provisioning_id: ::std::option::Option<u32>,
    // special fields
    // @@protoc_insertion_point(special_field:CKeyEscrow_Ticket.special_fields)
    pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
}

impl<'a> ::std::default::Default for &'a CKeyEscrow_Ticket {
    fn default() -> &'a CKeyEscrow_Ticket {
        <CKeyEscrow_Ticket as ::steam_vent_proto_common::protobuf::Message>::default_instance()
    }
}

impl CKeyEscrow_Ticket {
    pub fn new() -> CKeyEscrow_Ticket {
        ::std::default::Default::default()
    }

    // optional bytes password = 1;

    pub fn password(&self) -> &[u8] {
        match self.password.as_ref() {
            Some(v) => v,
            None => &[],
        }
    }

    pub fn clear_password(&mut self) {
        self.password = ::std::option::Option::None;
    }

    pub fn has_password(&self) -> bool {
        self.password.is_some()
    }

    // Param is passed by value, moved
    pub fn set_password(&mut self, v: ::std::vec::Vec<u8>) {
        self.password = ::std::option::Option::Some(v);
    }

    // Mutable pointer to the field.
    // If field is not initialized, it is initialized with default value first.
    pub fn mut_password(&mut self) -> &mut ::std::vec::Vec<u8> {
        if self.password.is_none() {
            self.password = ::std::option::Option::Some(::std::vec::Vec::new());
        }
        self.password.as_mut().unwrap()
    }

    // Take field
    pub fn take_password(&mut self) -> ::std::vec::Vec<u8> {
        self.password.take().unwrap_or_else(|| ::std::vec::Vec::new())
    }

    // optional uint64 identifier = 2;

    pub fn identifier(&self) -> u64 {
        self.identifier.unwrap_or(0)
    }

    pub fn clear_identifier(&mut self) {
        self.identifier = ::std::option::Option::None;
    }

    pub fn has_identifier(&self) -> bool {
        self.identifier.is_some()
    }

    // Param is passed by value, moved
    pub fn set_identifier(&mut self, v: u64) {
        self.identifier = ::std::option::Option::Some(v);
    }

    // optional bytes payload = 3;

    pub fn payload(&self) -> &[u8] {
        match self.payload.as_ref() {
            Some(v) => v,
            None => &[],
        }
    }

    pub fn clear_payload(&mut self) {
        self.payload = ::std::option::Option::None;
    }

    pub fn has_payload(&self) -> bool {
        self.payload.is_some()
    }

    // Param is passed by value, moved
    pub fn set_payload(&mut self, v: ::std::vec::Vec<u8>) {
        self.payload = ::std::option::Option::Some(v);
    }

    // Mutable pointer to the field.
    // If field is not initialized, it is initialized with default value first.
    pub fn mut_payload(&mut self) -> &mut ::std::vec::Vec<u8> {
        if self.payload.is_none() {
            self.payload = ::std::option::Option::Some(::std::vec::Vec::new());
        }
        self.payload.as_mut().unwrap()
    }

    // Take field
    pub fn take_payload(&mut self) -> ::std::vec::Vec<u8> {
        self.payload.take().unwrap_or_else(|| ::std::vec::Vec::new())
    }

    // optional uint32 timestamp = 4;

    pub fn timestamp(&self) -> u32 {
        self.timestamp.unwrap_or(0)
    }

    pub fn clear_timestamp(&mut self) {
        self.timestamp = ::std::option::Option::None;
    }

    pub fn has_timestamp(&self) -> bool {
        self.timestamp.is_some()
    }

    // Param is passed by value, moved
    pub fn set_timestamp(&mut self, v: u32) {
        self.timestamp = ::std::option::Option::Some(v);
    }

    // optional .EKeyEscrowUsage usage = 5;

    pub fn usage(&self) -> EKeyEscrowUsage {
        match self.usage {
            Some(e) => e.enum_value_or(EKeyEscrowUsage::k_EKeyEscrowUsageStreamingDevice),
            None => EKeyEscrowUsage::k_EKeyEscrowUsageStreamingDevice,
        }
    }

    pub fn clear_usage(&mut self) {
        self.usage = ::std::option::Option::None;
    }

    pub fn has_usage(&self) -> bool {
        self.usage.is_some()
    }

    // Param is passed by value, moved
    pub fn set_usage(&mut self, v: EKeyEscrowUsage) {
        self.usage = ::std::option::Option::Some(::steam_vent_proto_common::protobuf::EnumOrUnknown::new(v));
    }

    // optional string device_name = 6;

    pub fn device_name(&self) -> &str {
        match self.device_name.as_ref() {
            Some(v) => v,
            None => "",
        }
    }

    pub fn clear_device_name(&mut self) {
        self.device_name = ::std::option::Option::None;
    }

    pub fn has_device_name(&self) -> bool {
        self.device_name.is_some()
    }

    // Param is passed by value, moved
    pub fn set_device_name(&mut self, v: ::std::string::String) {
        self.device_name = ::std::option::Option::Some(v);
    }

    // Mutable pointer to the field.
    // If field is not initialized, it is initialized with default value first.
    pub fn mut_device_name(&mut self) -> &mut ::std::string::String {
        if self.device_name.is_none() {
            self.device_name = ::std::option::Option::Some(::std::string::String::new());
        }
        self.device_name.as_mut().unwrap()
    }

    // Take field
    pub fn take_device_name(&mut self) -> ::std::string::String {
        self.device_name.take().unwrap_or_else(|| ::std::string::String::new())
    }

    // optional string device_model = 7;

    pub fn device_model(&self) -> &str {
        match self.device_model.as_ref() {
            Some(v) => v,
            None => "",
        }
    }

    pub fn clear_device_model(&mut self) {
        self.device_model = ::std::option::Option::None;
    }

    pub fn has_device_model(&self) -> bool {
        self.device_model.is_some()
    }

    // Param is passed by value, moved
    pub fn set_device_model(&mut self, v: ::std::string::String) {
        self.device_model = ::std::option::Option::Some(v);
    }

    // Mutable pointer to the field.
    // If field is not initialized, it is initialized with default value first.
    pub fn mut_device_model(&mut self) -> &mut ::std::string::String {
        if self.device_model.is_none() {
            self.device_model = ::std::option::Option::Some(::std::string::String::new());
        }
        self.device_model.as_mut().unwrap()
    }

    // Take field
    pub fn take_device_model(&mut self) -> ::std::string::String {
        self.device_model.take().unwrap_or_else(|| ::std::string::String::new())
    }

    // optional string device_serial = 8;

    pub fn device_serial(&self) -> &str {
        match self.device_serial.as_ref() {
            Some(v) => v,
            None => "",
        }
    }

    pub fn clear_device_serial(&mut self) {
        self.device_serial = ::std::option::Option::None;
    }

    pub fn has_device_serial(&self) -> bool {
        self.device_serial.is_some()
    }

    // Param is passed by value, moved
    pub fn set_device_serial(&mut self, v: ::std::string::String) {
        self.device_serial = ::std::option::Option::Some(v);
    }

    // Mutable pointer to the field.
    // If field is not initialized, it is initialized with default value first.
    pub fn mut_device_serial(&mut self) -> &mut ::std::string::String {
        if self.device_serial.is_none() {
            self.device_serial = ::std::option::Option::Some(::std::string::String::new());
        }
        self.device_serial.as_mut().unwrap()
    }

    // Take field
    pub fn take_device_serial(&mut self) -> ::std::string::String {
        self.device_serial.take().unwrap_or_else(|| ::std::string::String::new())
    }

    // optional uint32 device_provisioning_id = 9;

    pub fn device_provisioning_id(&self) -> u32 {
        self.device_provisioning_id.unwrap_or(0)
    }

    pub fn clear_device_provisioning_id(&mut self) {
        self.device_provisioning_id = ::std::option::Option::None;
    }

    pub fn has_device_provisioning_id(&self) -> bool {
        self.device_provisioning_id.is_some()
    }

    // Param is passed by value, moved
    pub fn set_device_provisioning_id(&mut self, v: u32) {
        self.device_provisioning_id = ::std::option::Option::Some(v);
    }
}

impl ::steam_vent_proto_common::protobuf::Message for CKeyEscrow_Ticket {
    const NAME: &'static str = "CKeyEscrow_Ticket";

    fn is_initialized(&self) -> bool {
        true
    }

    fn merge_from(&mut self, is: &mut ::steam_vent_proto_common::protobuf::CodedInputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
        while let Some(tag) = is.read_raw_tag_or_eof()? {
            match tag {
                10 => {
                    self.password = ::std::option::Option::Some(is.read_bytes()?);
                },
                16 => {
                    self.identifier = ::std::option::Option::Some(is.read_uint64()?);
                },
                26 => {
                    self.payload = ::std::option::Option::Some(is.read_bytes()?);
                },
                32 => {
                    self.timestamp = ::std::option::Option::Some(is.read_uint32()?);
                },
                40 => {
                    self.usage = ::std::option::Option::Some(is.read_enum_or_unknown()?);
                },
                50 => {
                    self.device_name = ::std::option::Option::Some(is.read_string()?);
                },
                58 => {
                    self.device_model = ::std::option::Option::Some(is.read_string()?);
                },
                66 => {
                    self.device_serial = ::std::option::Option::Some(is.read_string()?);
                },
                72 => {
                    self.device_provisioning_id = ::std::option::Option::Some(is.read_uint32()?);
                },
                tag => {
                    ::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
                },
            };
        }
        ::std::result::Result::Ok(())
    }

    // Compute sizes of nested messages
    #[allow(unused_variables)]
    fn compute_size(&self) -> u64 {
        let mut my_size = 0;
        if let Some(v) = self.password.as_ref() {
            my_size += ::steam_vent_proto_common::protobuf::rt::bytes_size(1, &v);
        }
        if let Some(v) = self.identifier {
            my_size += ::steam_vent_proto_common::protobuf::rt::uint64_size(2, v);
        }
        if let Some(v) = self.payload.as_ref() {
            my_size += ::steam_vent_proto_common::protobuf::rt::bytes_size(3, &v);
        }
        if let Some(v) = self.timestamp {
            my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(4, v);
        }
        if let Some(v) = self.usage {
            my_size += ::steam_vent_proto_common::protobuf::rt::int32_size(5, v.value());
        }
        if let Some(v) = self.device_name.as_ref() {
            my_size += ::steam_vent_proto_common::protobuf::rt::string_size(6, &v);
        }
        if let Some(v) = self.device_model.as_ref() {
            my_size += ::steam_vent_proto_common::protobuf::rt::string_size(7, &v);
        }
        if let Some(v) = self.device_serial.as_ref() {
            my_size += ::steam_vent_proto_common::protobuf::rt::string_size(8, &v);
        }
        if let Some(v) = self.device_provisioning_id {
            my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(9, v);
        }
        my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
        self.special_fields.cached_size().set(my_size as u32);
        my_size
    }

    fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
        if let Some(v) = self.password.as_ref() {
            os.write_bytes(1, v)?;
        }
        if let Some(v) = self.identifier {
            os.write_uint64(2, v)?;
        }
        if let Some(v) = self.payload.as_ref() {
            os.write_bytes(3, v)?;
        }
        if let Some(v) = self.timestamp {
            os.write_uint32(4, v)?;
        }
        if let Some(v) = self.usage {
            os.write_enum(5, ::steam_vent_proto_common::protobuf::EnumOrUnknown::value(&v))?;
        }
        if let Some(v) = self.device_name.as_ref() {
            os.write_string(6, v)?;
        }
        if let Some(v) = self.device_model.as_ref() {
            os.write_string(7, v)?;
        }
        if let Some(v) = self.device_serial.as_ref() {
            os.write_string(8, v)?;
        }
        if let Some(v) = self.device_provisioning_id {
            os.write_uint32(9, v)?;
        }
        os.write_unknown_fields(self.special_fields.unknown_fields())?;
        ::std::result::Result::Ok(())
    }

    fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
        &self.special_fields
    }

    fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
        &mut self.special_fields
    }

    fn new() -> CKeyEscrow_Ticket {
        CKeyEscrow_Ticket::new()
    }

    fn clear(&mut self) {
        self.password = ::std::option::Option::None;
        self.identifier = ::std::option::Option::None;
        self.payload = ::std::option::Option::None;
        self.timestamp = ::std::option::Option::None;
        self.usage = ::std::option::Option::None;
        self.device_name = ::std::option::Option::None;
        self.device_model = ::std::option::Option::None;
        self.device_serial = ::std::option::Option::None;
        self.device_provisioning_id = ::std::option::Option::None;
        self.special_fields.clear();
    }

    fn default_instance() -> &'static CKeyEscrow_Ticket {
        static instance: CKeyEscrow_Ticket = CKeyEscrow_Ticket {
            password: ::std::option::Option::None,
            identifier: ::std::option::Option::None,
            payload: ::std::option::Option::None,
            timestamp: ::std::option::Option::None,
            usage: ::std::option::Option::None,
            device_name: ::std::option::Option::None,
            device_model: ::std::option::Option::None,
            device_serial: ::std::option::Option::None,
            device_provisioning_id: ::std::option::Option::None,
            special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
        };
        &instance
    }
}

// @@protoc_insertion_point(message:CKeyEscrow_Response)
#[derive(PartialEq,Clone,Default,Debug)]
pub struct CKeyEscrow_Response {
    // message fields
    // @@protoc_insertion_point(field:CKeyEscrow_Response.ticket)
    pub ticket: ::steam_vent_proto_common::protobuf::MessageField<CKeyEscrow_Ticket>,
    // special fields
    // @@protoc_insertion_point(special_field:CKeyEscrow_Response.special_fields)
    pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
}

impl<'a> ::std::default::Default for &'a CKeyEscrow_Response {
    fn default() -> &'a CKeyEscrow_Response {
        <CKeyEscrow_Response as ::steam_vent_proto_common::protobuf::Message>::default_instance()
    }
}

impl CKeyEscrow_Response {
    pub fn new() -> CKeyEscrow_Response {
        ::std::default::Default::default()
    }
}

impl ::steam_vent_proto_common::protobuf::Message for CKeyEscrow_Response {
    const NAME: &'static str = "CKeyEscrow_Response";

    fn is_initialized(&self) -> bool {
        true
    }

    fn merge_from(&mut self, is: &mut ::steam_vent_proto_common::protobuf::CodedInputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
        while let Some(tag) = is.read_raw_tag_or_eof()? {
            match tag {
                10 => {
                    ::steam_vent_proto_common::protobuf::rt::read_singular_message_into_field(is, &mut self.ticket)?;
                },
                tag => {
                    ::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
                },
            };
        }
        ::std::result::Result::Ok(())
    }

    // Compute sizes of nested messages
    #[allow(unused_variables)]
    fn compute_size(&self) -> u64 {
        let mut my_size = 0;
        if let Some(v) = self.ticket.as_ref() {
            let len = v.compute_size();
            my_size += 1 + ::steam_vent_proto_common::protobuf::rt::compute_raw_varint64_size(len) + len;
        }
        my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
        self.special_fields.cached_size().set(my_size as u32);
        my_size
    }

    fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
        if let Some(v) = self.ticket.as_ref() {
            ::steam_vent_proto_common::protobuf::rt::write_message_field_with_cached_size(1, v, os)?;
        }
        os.write_unknown_fields(self.special_fields.unknown_fields())?;
        ::std::result::Result::Ok(())
    }

    fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
        &self.special_fields
    }

    fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
        &mut self.special_fields
    }

    fn new() -> CKeyEscrow_Response {
        CKeyEscrow_Response::new()
    }

    fn clear(&mut self) {
        self.ticket.clear();
        self.special_fields.clear();
    }

    fn default_instance() -> &'static CKeyEscrow_Response {
        static instance: CKeyEscrow_Response = CKeyEscrow_Response {
            ticket: ::steam_vent_proto_common::protobuf::MessageField::none(),
            special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
        };
        &instance
    }
}

#[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)]
// @@protoc_insertion_point(enum:EKeyEscrowUsage)
pub enum EKeyEscrowUsage {
    // @@protoc_insertion_point(enum_value:EKeyEscrowUsage.k_EKeyEscrowUsageStreamingDevice)
    k_EKeyEscrowUsageStreamingDevice = 0,
}

impl ::steam_vent_proto_common::protobuf::Enum for EKeyEscrowUsage {
    const NAME: &'static str = "EKeyEscrowUsage";

    fn value(&self) -> i32 {
        *self as i32
    }

    fn from_i32(value: i32) -> ::std::option::Option<EKeyEscrowUsage> {
        match value {
            0 => ::std::option::Option::Some(EKeyEscrowUsage::k_EKeyEscrowUsageStreamingDevice),
            _ => ::std::option::Option::None
        }
    }

    fn from_str(str: &str) -> ::std::option::Option<EKeyEscrowUsage> {
        match str {
            "k_EKeyEscrowUsageStreamingDevice" => ::std::option::Option::Some(EKeyEscrowUsage::k_EKeyEscrowUsageStreamingDevice),
            _ => ::std::option::Option::None
        }
    }

    const VALUES: &'static [EKeyEscrowUsage] = &[
        EKeyEscrowUsage::k_EKeyEscrowUsageStreamingDevice,
    ];
}

impl ::std::default::Default for EKeyEscrowUsage {
    fn default() -> Self {
        EKeyEscrowUsage::k_EKeyEscrowUsageStreamingDevice
    }
}



const _VENT_PROTO_VERSION_CHECK: () = ::steam_vent_proto_common::VERSION_0_5_0;

#[allow(unused_imports)]
use crate::steammessages_base::*;
#[allow(unused_imports)]
use crate::steammessages_unified_base_steamclient::*;
impl ::steam_vent_proto_common::RpcMessage for CKeyEscrow_Request {
    fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
        <Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
    }
    fn write(&self, writer: &mut dyn std::io::Write) -> ::steam_vent_proto_common::protobuf::Result<()> {
        use ::steam_vent_proto_common::protobuf::Message;
        self.write_to_writer(writer)
    }
    fn encode_size(&self) -> usize {
        use ::steam_vent_proto_common::protobuf::Message;
        self.compute_size() as usize
    }
}
impl ::steam_vent_proto_common::RpcMessage for CKeyEscrow_Ticket {
    fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
        <Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
    }
    fn write(&self, writer: &mut dyn std::io::Write) -> ::steam_vent_proto_common::protobuf::Result<()> {
        use ::steam_vent_proto_common::protobuf::Message;
        self.write_to_writer(writer)
    }
    fn encode_size(&self) -> usize {
        use ::steam_vent_proto_common::protobuf::Message;
        self.compute_size() as usize
    }
}
impl ::steam_vent_proto_common::RpcMessage for CKeyEscrow_Response {
    fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
        <Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
    }
    fn write(&self, writer: &mut dyn std::io::Write) -> ::steam_vent_proto_common::protobuf::Result<()> {
        use ::steam_vent_proto_common::protobuf::Message;
        self.write_to_writer(writer)
    }
    fn encode_size(&self) -> usize {
        use ::steam_vent_proto_common::protobuf::Message;
        self.compute_size() as usize
    }
}
///
struct Secrets {}
impl ::steam_vent_proto_common::RpcService for Secrets {
    const SERVICE_NAME: &'static str = "Secrets";
}
impl ::steam_vent_proto_common::RpcMethod for CKeyEscrow_Request {
    const METHOD_NAME: &'static str = "Secrets.KeyEscrow#1";
    type Response = CKeyEscrow_Response;
}
