#![allow(unknown_lints)]
#![allow(clippy::all)]
#![allow(unused_attributes)]
#![cfg_attr(rustfmt, rustfmt::skip)]
#![allow(box_pointers)]
#![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_imports)]
#![allow(unused_results)]
#[derive(PartialEq,Clone,Default)]
pub struct CKeyEscrow_Request {
rsa_oaep_sha_ticket: ::protobuf::SingularField<::std::vec::Vec<u8>>,
password: ::protobuf::SingularField<::std::vec::Vec<u8>>,
usage: ::std::option::Option<EKeyEscrowUsage>,
device_name: ::protobuf::SingularField<::std::string::String>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a CKeyEscrow_Request {
fn default() -> &'a CKeyEscrow_Request {
<CKeyEscrow_Request as ::protobuf::Message>::default_instance()
}
}
impl CKeyEscrow_Request {
pub fn new() -> CKeyEscrow_Request {
::std::default::Default::default()
}
pub fn get_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.clear();
}
pub fn has_rsa_oaep_sha_ticket(&self) -> bool {
self.rsa_oaep_sha_ticket.is_some()
}
pub fn set_rsa_oaep_sha_ticket(&mut self, v: ::std::vec::Vec<u8>) {
self.rsa_oaep_sha_ticket = ::protobuf::SingularField::some(v);
}
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.set_default();
}
self.rsa_oaep_sha_ticket.as_mut().unwrap()
}
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())
}
pub fn get_password(&self) -> &[u8] {
match self.password.as_ref() {
Some(v) => &v,
None => &[],
}
}
pub fn clear_password(&mut self) {
self.password.clear();
}
pub fn has_password(&self) -> bool {
self.password.is_some()
}
pub fn set_password(&mut self, v: ::std::vec::Vec<u8>) {
self.password = ::protobuf::SingularField::some(v);
}
pub fn mut_password(&mut self) -> &mut ::std::vec::Vec<u8> {
if self.password.is_none() {
self.password.set_default();
}
self.password.as_mut().unwrap()
}
pub fn take_password(&mut self) -> ::std::vec::Vec<u8> {
self.password.take().unwrap_or_else(|| ::std::vec::Vec::new())
}
pub fn get_usage(&self) -> EKeyEscrowUsage {
self.usage.unwrap_or(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()
}
pub fn set_usage(&mut self, v: EKeyEscrowUsage) {
self.usage = ::std::option::Option::Some(v);
}
pub fn get_device_name(&self) -> &str {
match self.device_name.as_ref() {
Some(v) => &v,
None => "",
}
}
pub fn clear_device_name(&mut self) {
self.device_name.clear();
}
pub fn has_device_name(&self) -> bool {
self.device_name.is_some()
}
pub fn set_device_name(&mut self, v: ::std::string::String) {
self.device_name = ::protobuf::SingularField::some(v);
}
pub fn mut_device_name(&mut self) -> &mut ::std::string::String {
if self.device_name.is_none() {
self.device_name.set_default();
}
self.device_name.as_mut().unwrap()
}
pub fn take_device_name(&mut self) -> ::std::string::String {
self.device_name.take().unwrap_or_else(|| ::std::string::String::new())
}
}
impl ::protobuf::Message for CKeyEscrow_Request {
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.rsa_oaep_sha_ticket)?;
},
2 => {
::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.password)?;
},
3 => {
::protobuf::rt::read_proto2_enum_with_unknown_fields_into(wire_type, is, &mut self.usage, 3, &mut self.unknown_fields)?
},
4 => {
::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.device_name)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if let Some(ref v) = self.rsa_oaep_sha_ticket.as_ref() {
my_size += ::protobuf::rt::bytes_size(1, &v);
}
if let Some(ref v) = self.password.as_ref() {
my_size += ::protobuf::rt::bytes_size(2, &v);
}
if let Some(v) = self.usage {
my_size += ::protobuf::rt::enum_size(3, v);
}
if let Some(ref v) = self.device_name.as_ref() {
my_size += ::protobuf::rt::string_size(4, &v);
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if let Some(ref v) = self.rsa_oaep_sha_ticket.as_ref() {
os.write_bytes(1, &v)?;
}
if let Some(ref v) = self.password.as_ref() {
os.write_bytes(2, &v)?;
}
if let Some(v) = self.usage {
os.write_enum(3, ::protobuf::ProtobufEnum::value(&v))?;
}
if let Some(ref v) = self.device_name.as_ref() {
os.write_string(4, &v)?;
}
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> CKeyEscrow_Request {
CKeyEscrow_Request::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
"rsa_oaep_sha_ticket",
|m: &CKeyEscrow_Request| { &m.rsa_oaep_sha_ticket },
|m: &mut CKeyEscrow_Request| { &mut m.rsa_oaep_sha_ticket },
));
fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
"password",
|m: &CKeyEscrow_Request| { &m.password },
|m: &mut CKeyEscrow_Request| { &mut m.password },
));
fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeEnum<EKeyEscrowUsage>>(
"usage",
|m: &CKeyEscrow_Request| { &m.usage },
|m: &mut CKeyEscrow_Request| { &mut m.usage },
));
fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"device_name",
|m: &CKeyEscrow_Request| { &m.device_name },
|m: &mut CKeyEscrow_Request| { &mut m.device_name },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<CKeyEscrow_Request>(
"CKeyEscrow_Request",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static CKeyEscrow_Request {
static instance: ::protobuf::rt::LazyV2<CKeyEscrow_Request> = ::protobuf::rt::LazyV2::INIT;
instance.get(CKeyEscrow_Request::new)
}
}
impl ::protobuf::Clear for CKeyEscrow_Request {
fn clear(&mut self) {
self.rsa_oaep_sha_ticket.clear();
self.password.clear();
self.usage = ::std::option::Option::None;
self.device_name.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for CKeyEscrow_Request {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for CKeyEscrow_Request {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct CKeyEscrow_Ticket {
password: ::protobuf::SingularField<::std::vec::Vec<u8>>,
identifier: ::std::option::Option<u64>,
payload: ::protobuf::SingularField<::std::vec::Vec<u8>>,
timestamp: ::std::option::Option<u32>,
usage: ::std::option::Option<EKeyEscrowUsage>,
device_name: ::protobuf::SingularField<::std::string::String>,
device_model: ::protobuf::SingularField<::std::string::String>,
device_serial: ::protobuf::SingularField<::std::string::String>,
device_provisioning_id: ::std::option::Option<u32>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a CKeyEscrow_Ticket {
fn default() -> &'a CKeyEscrow_Ticket {
<CKeyEscrow_Ticket as ::protobuf::Message>::default_instance()
}
}
impl CKeyEscrow_Ticket {
pub fn new() -> CKeyEscrow_Ticket {
::std::default::Default::default()
}
pub fn get_password(&self) -> &[u8] {
match self.password.as_ref() {
Some(v) => &v,
None => &[],
}
}
pub fn clear_password(&mut self) {
self.password.clear();
}
pub fn has_password(&self) -> bool {
self.password.is_some()
}
pub fn set_password(&mut self, v: ::std::vec::Vec<u8>) {
self.password = ::protobuf::SingularField::some(v);
}
pub fn mut_password(&mut self) -> &mut ::std::vec::Vec<u8> {
if self.password.is_none() {
self.password.set_default();
}
self.password.as_mut().unwrap()
}
pub fn take_password(&mut self) -> ::std::vec::Vec<u8> {
self.password.take().unwrap_or_else(|| ::std::vec::Vec::new())
}
pub fn get_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()
}
pub fn set_identifier(&mut self, v: u64) {
self.identifier = ::std::option::Option::Some(v);
}
pub fn get_payload(&self) -> &[u8] {
match self.payload.as_ref() {
Some(v) => &v,
None => &[],
}
}
pub fn clear_payload(&mut self) {
self.payload.clear();
}
pub fn has_payload(&self) -> bool {
self.payload.is_some()
}
pub fn set_payload(&mut self, v: ::std::vec::Vec<u8>) {
self.payload = ::protobuf::SingularField::some(v);
}
pub fn mut_payload(&mut self) -> &mut ::std::vec::Vec<u8> {
if self.payload.is_none() {
self.payload.set_default();
}
self.payload.as_mut().unwrap()
}
pub fn take_payload(&mut self) -> ::std::vec::Vec<u8> {
self.payload.take().unwrap_or_else(|| ::std::vec::Vec::new())
}
pub fn get_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()
}
pub fn set_timestamp(&mut self, v: u32) {
self.timestamp = ::std::option::Option::Some(v);
}
pub fn get_usage(&self) -> EKeyEscrowUsage {
self.usage.unwrap_or(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()
}
pub fn set_usage(&mut self, v: EKeyEscrowUsage) {
self.usage = ::std::option::Option::Some(v);
}
pub fn get_device_name(&self) -> &str {
match self.device_name.as_ref() {
Some(v) => &v,
None => "",
}
}
pub fn clear_device_name(&mut self) {
self.device_name.clear();
}
pub fn has_device_name(&self) -> bool {
self.device_name.is_some()
}
pub fn set_device_name(&mut self, v: ::std::string::String) {
self.device_name = ::protobuf::SingularField::some(v);
}
pub fn mut_device_name(&mut self) -> &mut ::std::string::String {
if self.device_name.is_none() {
self.device_name.set_default();
}
self.device_name.as_mut().unwrap()
}
pub fn take_device_name(&mut self) -> ::std::string::String {
self.device_name.take().unwrap_or_else(|| ::std::string::String::new())
}
pub fn get_device_model(&self) -> &str {
match self.device_model.as_ref() {
Some(v) => &v,
None => "",
}
}
pub fn clear_device_model(&mut self) {
self.device_model.clear();
}
pub fn has_device_model(&self) -> bool {
self.device_model.is_some()
}
pub fn set_device_model(&mut self, v: ::std::string::String) {
self.device_model = ::protobuf::SingularField::some(v);
}
pub fn mut_device_model(&mut self) -> &mut ::std::string::String {
if self.device_model.is_none() {
self.device_model.set_default();
}
self.device_model.as_mut().unwrap()
}
pub fn take_device_model(&mut self) -> ::std::string::String {
self.device_model.take().unwrap_or_else(|| ::std::string::String::new())
}
pub fn get_device_serial(&self) -> &str {
match self.device_serial.as_ref() {
Some(v) => &v,
None => "",
}
}
pub fn clear_device_serial(&mut self) {
self.device_serial.clear();
}
pub fn has_device_serial(&self) -> bool {
self.device_serial.is_some()
}
pub fn set_device_serial(&mut self, v: ::std::string::String) {
self.device_serial = ::protobuf::SingularField::some(v);
}
pub fn mut_device_serial(&mut self) -> &mut ::std::string::String {
if self.device_serial.is_none() {
self.device_serial.set_default();
}
self.device_serial.as_mut().unwrap()
}
pub fn take_device_serial(&mut self) -> ::std::string::String {
self.device_serial.take().unwrap_or_else(|| ::std::string::String::new())
}
pub fn get_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()
}
pub fn set_device_provisioning_id(&mut self, v: u32) {
self.device_provisioning_id = ::std::option::Option::Some(v);
}
}
impl ::protobuf::Message for CKeyEscrow_Ticket {
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.password)?;
},
2 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_uint64()?;
self.identifier = ::std::option::Option::Some(tmp);
},
3 => {
::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.payload)?;
},
4 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_uint32()?;
self.timestamp = ::std::option::Option::Some(tmp);
},
5 => {
::protobuf::rt::read_proto2_enum_with_unknown_fields_into(wire_type, is, &mut self.usage, 5, &mut self.unknown_fields)?
},
6 => {
::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.device_name)?;
},
7 => {
::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.device_model)?;
},
8 => {
::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.device_serial)?;
},
9 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_uint32()?;
self.device_provisioning_id = ::std::option::Option::Some(tmp);
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if let Some(ref v) = self.password.as_ref() {
my_size += ::protobuf::rt::bytes_size(1, &v);
}
if let Some(v) = self.identifier {
my_size += ::protobuf::rt::value_size(2, v, ::protobuf::wire_format::WireTypeVarint);
}
if let Some(ref v) = self.payload.as_ref() {
my_size += ::protobuf::rt::bytes_size(3, &v);
}
if let Some(v) = self.timestamp {
my_size += ::protobuf::rt::value_size(4, v, ::protobuf::wire_format::WireTypeVarint);
}
if let Some(v) = self.usage {
my_size += ::protobuf::rt::enum_size(5, v);
}
if let Some(ref v) = self.device_name.as_ref() {
my_size += ::protobuf::rt::string_size(6, &v);
}
if let Some(ref v) = self.device_model.as_ref() {
my_size += ::protobuf::rt::string_size(7, &v);
}
if let Some(ref v) = self.device_serial.as_ref() {
my_size += ::protobuf::rt::string_size(8, &v);
}
if let Some(v) = self.device_provisioning_id {
my_size += ::protobuf::rt::value_size(9, v, ::protobuf::wire_format::WireTypeVarint);
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if let Some(ref v) = self.password.as_ref() {
os.write_bytes(1, &v)?;
}
if let Some(v) = self.identifier {
os.write_uint64(2, v)?;
}
if let Some(ref 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, ::protobuf::ProtobufEnum::value(&v))?;
}
if let Some(ref v) = self.device_name.as_ref() {
os.write_string(6, &v)?;
}
if let Some(ref v) = self.device_model.as_ref() {
os.write_string(7, &v)?;
}
if let Some(ref 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.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> CKeyEscrow_Ticket {
CKeyEscrow_Ticket::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
"password",
|m: &CKeyEscrow_Ticket| { &m.password },
|m: &mut CKeyEscrow_Ticket| { &mut m.password },
));
fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeUint64>(
"identifier",
|m: &CKeyEscrow_Ticket| { &m.identifier },
|m: &mut CKeyEscrow_Ticket| { &mut m.identifier },
));
fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
"payload",
|m: &CKeyEscrow_Ticket| { &m.payload },
|m: &mut CKeyEscrow_Ticket| { &mut m.payload },
));
fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeUint32>(
"timestamp",
|m: &CKeyEscrow_Ticket| { &m.timestamp },
|m: &mut CKeyEscrow_Ticket| { &mut m.timestamp },
));
fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeEnum<EKeyEscrowUsage>>(
"usage",
|m: &CKeyEscrow_Ticket| { &m.usage },
|m: &mut CKeyEscrow_Ticket| { &mut m.usage },
));
fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"device_name",
|m: &CKeyEscrow_Ticket| { &m.device_name },
|m: &mut CKeyEscrow_Ticket| { &mut m.device_name },
));
fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"device_model",
|m: &CKeyEscrow_Ticket| { &m.device_model },
|m: &mut CKeyEscrow_Ticket| { &mut m.device_model },
));
fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"device_serial",
|m: &CKeyEscrow_Ticket| { &m.device_serial },
|m: &mut CKeyEscrow_Ticket| { &mut m.device_serial },
));
fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeUint32>(
"device_provisioning_id",
|m: &CKeyEscrow_Ticket| { &m.device_provisioning_id },
|m: &mut CKeyEscrow_Ticket| { &mut m.device_provisioning_id },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<CKeyEscrow_Ticket>(
"CKeyEscrow_Ticket",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static CKeyEscrow_Ticket {
static instance: ::protobuf::rt::LazyV2<CKeyEscrow_Ticket> = ::protobuf::rt::LazyV2::INIT;
instance.get(CKeyEscrow_Ticket::new)
}
}
impl ::protobuf::Clear for CKeyEscrow_Ticket {
fn clear(&mut self) {
self.password.clear();
self.identifier = ::std::option::Option::None;
self.payload.clear();
self.timestamp = ::std::option::Option::None;
self.usage = ::std::option::Option::None;
self.device_name.clear();
self.device_model.clear();
self.device_serial.clear();
self.device_provisioning_id = ::std::option::Option::None;
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for CKeyEscrow_Ticket {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for CKeyEscrow_Ticket {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct CKeyEscrow_Response {
pub ticket: ::protobuf::SingularPtrField<CKeyEscrow_Ticket>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a CKeyEscrow_Response {
fn default() -> &'a CKeyEscrow_Response {
<CKeyEscrow_Response as ::protobuf::Message>::default_instance()
}
}
impl CKeyEscrow_Response {
pub fn new() -> CKeyEscrow_Response {
::std::default::Default::default()
}
pub fn get_ticket(&self) -> &CKeyEscrow_Ticket {
self.ticket.as_ref().unwrap_or_else(|| <CKeyEscrow_Ticket as ::protobuf::Message>::default_instance())
}
pub fn clear_ticket(&mut self) {
self.ticket.clear();
}
pub fn has_ticket(&self) -> bool {
self.ticket.is_some()
}
pub fn set_ticket(&mut self, v: CKeyEscrow_Ticket) {
self.ticket = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_ticket(&mut self) -> &mut CKeyEscrow_Ticket {
if self.ticket.is_none() {
self.ticket.set_default();
}
self.ticket.as_mut().unwrap()
}
pub fn take_ticket(&mut self) -> CKeyEscrow_Ticket {
self.ticket.take().unwrap_or_else(|| CKeyEscrow_Ticket::new())
}
}
impl ::protobuf::Message for CKeyEscrow_Response {
fn is_initialized(&self) -> bool {
for v in &self.ticket {
if !v.is_initialized() {
return false;
}
};
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.ticket)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if let Some(ref v) = self.ticket.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if let Some(ref v) = self.ticket.as_ref() {
os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
}
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> CKeyEscrow_Response {
CKeyEscrow_Response::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<CKeyEscrow_Ticket>>(
"ticket",
|m: &CKeyEscrow_Response| { &m.ticket },
|m: &mut CKeyEscrow_Response| { &mut m.ticket },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<CKeyEscrow_Response>(
"CKeyEscrow_Response",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static CKeyEscrow_Response {
static instance: ::protobuf::rt::LazyV2<CKeyEscrow_Response> = ::protobuf::rt::LazyV2::INIT;
instance.get(CKeyEscrow_Response::new)
}
}
impl ::protobuf::Clear for CKeyEscrow_Response {
fn clear(&mut self) {
self.ticket.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for CKeyEscrow_Response {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for CKeyEscrow_Response {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(Clone,PartialEq,Eq,Debug,Hash)]
pub enum EKeyEscrowUsage {
k_EKeyEscrowUsageStreamingDevice = 0,
}
impl ::protobuf::ProtobufEnum for 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 values() -> &'static [Self] {
static values: &'static [EKeyEscrowUsage] = &[
EKeyEscrowUsage::k_EKeyEscrowUsageStreamingDevice,
];
values
}
fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
::protobuf::reflect::EnumDescriptor::new_pb_name::<EKeyEscrowUsage>("EKeyEscrowUsage", file_descriptor_proto())
})
}
}
impl ::std::marker::Copy for EKeyEscrowUsage {
}
impl ::std::default::Default for EKeyEscrowUsage {
fn default() -> Self {
EKeyEscrowUsage::k_EKeyEscrowUsageStreamingDevice
}
}
impl ::protobuf::reflect::ProtobufValue for EKeyEscrowUsage {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self))
}
}
static file_descriptor_proto_data: &'static [u8] = b"\
\n'steammessages_secrets.steamclient.proto\x1a,steammessages_unified_bas\
e.steamclient.proto\"\xca\x01\n\x12CKeyEscrow_Request\x12-\n\x13rsa_oaep\
_sha_ticket\x18\x01\x20\x01(\x0cR\x10rsaOaepShaTicket\x12\x1a\n\x08passw\
ord\x18\x02\x20\x01(\x0cR\x08password\x12H\n\x05usage\x18\x03\x20\x01(\
\x0e2\x10.EKeyEscrowUsage:\x20k_EKeyEscrowUsageStreamingDeviceR\x05usage\
\x12\x1f\n\x0bdevice_name\x18\x04\x20\x01(\tR\ndeviceName\"\xf0\x02\n\
\x11CKeyEscrow_Ticket\x12\x1a\n\x08password\x18\x01\x20\x01(\x0cR\x08pas\
sword\x12\x1e\n\nidentifier\x18\x02\x20\x01(\x04R\nidentifier\x12\x18\n\
\x07payload\x18\x03\x20\x01(\x0cR\x07payload\x12\x1c\n\ttimestamp\x18\
\x04\x20\x01(\rR\ttimestamp\x12H\n\x05usage\x18\x05\x20\x01(\x0e2\x10.EK\
eyEscrowUsage:\x20k_EKeyEscrowUsageStreamingDeviceR\x05usage\x12\x1f\n\
\x0bdevice_name\x18\x06\x20\x01(\tR\ndeviceName\x12!\n\x0cdevice_model\
\x18\x07\x20\x01(\tR\x0bdeviceModel\x12#\n\rdevice_serial\x18\x08\x20\
\x01(\tR\x0cdeviceSerial\x124\n\x16device_provisioning_id\x18\t\x20\x01(\
\rR\x14deviceProvisioningId\"A\n\x13CKeyEscrow_Response\x12*\n\x06ticket\
\x18\x01\x20\x01(\x0b2\x12.CKeyEscrow_TicketR\x06ticket*7\n\x0fEKeyEscro\
wUsage\x12$\n\x20k_EKeyEscrowUsageStreamingDevice\x10\02\xc8\x01\n\x07Se\
crets\x12\x80\x01\n\tKeyEscrow\x12\x13.CKeyEscrow_Request\x1a\x14.CKeyEs\
crow_Response\"H\x82\xb5\x18DService\x20to\x20perform\x20authenticated\
\x20key-exchange\x20involving\x20Steam\x20Client\x1a:\x82\xb5\x186Servic\
e\x20for\x20accessing\x20credentials\x20and\x20guarding\x20secretsB\x03\
\x80\x01\x01J\xb9\n\n\x06\x12\x04\0\0%\x01\n\t\n\x02\x03\0\x12\x03\0\06\
\n\x08\n\x01\x08\x12\x03\x02\0\"\n\t\n\x02\x08\x10\x12\x03\x02\0\"\n\n\n\
\x02\x05\0\x12\x04\x04\0\x06\x01\n\n\n\x03\x05\0\x01\x12\x03\x04\x05\x14\
\n\x0b\n\x04\x05\0\x02\0\x12\x03\x05\x08-\n\x0c\n\x05\x05\0\x02\0\x01\
\x12\x03\x05\x08(\n\x0c\n\x05\x05\0\x02\0\x02\x12\x03\x05+,\n\n\n\x02\
\x04\0\x12\x04\x08\0\r\x01\n\n\n\x03\x04\0\x01\x12\x03\x08\x08\x1a\n\x0b\
\n\x04\x04\0\x02\0\x12\x03\t\x08/\n\x0c\n\x05\x04\0\x02\0\x04\x12\x03\t\
\x08\x10\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03\t\x11\x16\n\x0c\n\x05\x04\0\
\x02\0\x01\x12\x03\t\x17*\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03\t-.\n\x0b\
\n\x04\x04\0\x02\x01\x12\x03\n\x08$\n\x0c\n\x05\x04\0\x02\x01\x04\x12\
\x03\n\x08\x10\n\x0c\n\x05\x04\0\x02\x01\x05\x12\x03\n\x11\x16\n\x0c\n\
\x05\x04\0\x02\x01\x01\x12\x03\n\x17\x1f\n\x0c\n\x05\x04\0\x02\x01\x03\
\x12\x03\n\"#\n\x0b\n\x04\x04\0\x02\x02\x12\x03\x0b\x08Y\n\x0c\n\x05\x04\
\0\x02\x02\x04\x12\x03\x0b\x08\x10\n\x0c\n\x05\x04\0\x02\x02\x06\x12\x03\
\x0b\x11!\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x03\x0b\"'\n\x0c\n\x05\x04\0\
\x02\x02\x03\x12\x03\x0b*+\n\x0c\n\x05\x04\0\x02\x02\x08\x12\x03\x0b,X\n\
\x0c\n\x05\x04\0\x02\x02\x07\x12\x03\x0b7W\n\x0b\n\x04\x04\0\x02\x03\x12\
\x03\x0c\x08(\n\x0c\n\x05\x04\0\x02\x03\x04\x12\x03\x0c\x08\x10\n\x0c\n\
\x05\x04\0\x02\x03\x05\x12\x03\x0c\x11\x17\n\x0c\n\x05\x04\0\x02\x03\x01\
\x12\x03\x0c\x18#\n\x0c\n\x05\x04\0\x02\x03\x03\x12\x03\x0c&'\n\n\n\x02\
\x04\x01\x12\x04\x0f\0\x19\x01\n\n\n\x03\x04\x01\x01\x12\x03\x0f\x08\x19\
\n\x0b\n\x04\x04\x01\x02\0\x12\x03\x10\x08$\n\x0c\n\x05\x04\x01\x02\0\
\x04\x12\x03\x10\x08\x10\n\x0c\n\x05\x04\x01\x02\0\x05\x12\x03\x10\x11\
\x16\n\x0c\n\x05\x04\x01\x02\0\x01\x12\x03\x10\x17\x1f\n\x0c\n\x05\x04\
\x01\x02\0\x03\x12\x03\x10\"#\n\x0b\n\x04\x04\x01\x02\x01\x12\x03\x11\
\x08'\n\x0c\n\x05\x04\x01\x02\x01\x04\x12\x03\x11\x08\x10\n\x0c\n\x05\
\x04\x01\x02\x01\x05\x12\x03\x11\x11\x17\n\x0c\n\x05\x04\x01\x02\x01\x01\
\x12\x03\x11\x18\"\n\x0c\n\x05\x04\x01\x02\x01\x03\x12\x03\x11%&\n\x0b\n\
\x04\x04\x01\x02\x02\x12\x03\x12\x08#\n\x0c\n\x05\x04\x01\x02\x02\x04\
\x12\x03\x12\x08\x10\n\x0c\n\x05\x04\x01\x02\x02\x05\x12\x03\x12\x11\x16\
\n\x0c\n\x05\x04\x01\x02\x02\x01\x12\x03\x12\x17\x1e\n\x0c\n\x05\x04\x01\
\x02\x02\x03\x12\x03\x12!\"\n\x0b\n\x04\x04\x01\x02\x03\x12\x03\x13\x08&\
\n\x0c\n\x05\x04\x01\x02\x03\x04\x12\x03\x13\x08\x10\n\x0c\n\x05\x04\x01\
\x02\x03\x05\x12\x03\x13\x11\x17\n\x0c\n\x05\x04\x01\x02\x03\x01\x12\x03\
\x13\x18!\n\x0c\n\x05\x04\x01\x02\x03\x03\x12\x03\x13$%\n\x0b\n\x04\x04\
\x01\x02\x04\x12\x03\x14\x08Y\n\x0c\n\x05\x04\x01\x02\x04\x04\x12\x03\
\x14\x08\x10\n\x0c\n\x05\x04\x01\x02\x04\x06\x12\x03\x14\x11!\n\x0c\n\
\x05\x04\x01\x02\x04\x01\x12\x03\x14\"'\n\x0c\n\x05\x04\x01\x02\x04\x03\
\x12\x03\x14*+\n\x0c\n\x05\x04\x01\x02\x04\x08\x12\x03\x14,X\n\x0c\n\x05\
\x04\x01\x02\x04\x07\x12\x03\x147W\n\x0b\n\x04\x04\x01\x02\x05\x12\x03\
\x15\x08(\n\x0c\n\x05\x04\x01\x02\x05\x04\x12\x03\x15\x08\x10\n\x0c\n\
\x05\x04\x01\x02\x05\x05\x12\x03\x15\x11\x17\n\x0c\n\x05\x04\x01\x02\x05\
\x01\x12\x03\x15\x18#\n\x0c\n\x05\x04\x01\x02\x05\x03\x12\x03\x15&'\n\
\x0b\n\x04\x04\x01\x02\x06\x12\x03\x16\x08)\n\x0c\n\x05\x04\x01\x02\x06\
\x04\x12\x03\x16\x08\x10\n\x0c\n\x05\x04\x01\x02\x06\x05\x12\x03\x16\x11\
\x17\n\x0c\n\x05\x04\x01\x02\x06\x01\x12\x03\x16\x18$\n\x0c\n\x05\x04\
\x01\x02\x06\x03\x12\x03\x16'(\n\x0b\n\x04\x04\x01\x02\x07\x12\x03\x17\
\x08*\n\x0c\n\x05\x04\x01\x02\x07\x04\x12\x03\x17\x08\x10\n\x0c\n\x05\
\x04\x01\x02\x07\x05\x12\x03\x17\x11\x17\n\x0c\n\x05\x04\x01\x02\x07\x01\
\x12\x03\x17\x18%\n\x0c\n\x05\x04\x01\x02\x07\x03\x12\x03\x17()\n\x0b\n\
\x04\x04\x01\x02\x08\x12\x03\x18\x083\n\x0c\n\x05\x04\x01\x02\x08\x04\
\x12\x03\x18\x08\x10\n\x0c\n\x05\x04\x01\x02\x08\x05\x12\x03\x18\x11\x17\
\n\x0c\n\x05\x04\x01\x02\x08\x01\x12\x03\x18\x18.\n\x0c\n\x05\x04\x01\
\x02\x08\x03\x12\x03\x1812\n\n\n\x02\x04\x02\x12\x04\x1b\0\x1d\x01\n\n\n\
\x03\x04\x02\x01\x12\x03\x1b\x08\x1b\n\x0b\n\x04\x04\x02\x02\0\x12\x03\
\x1c\x08/\n\x0c\n\x05\x04\x02\x02\0\x04\x12\x03\x1c\x08\x10\n\x0c\n\x05\
\x04\x02\x02\0\x06\x12\x03\x1c\x11#\n\x0c\n\x05\x04\x02\x02\0\x01\x12\
\x03\x1c$*\n\x0c\n\x05\x04\x02\x02\0\x03\x12\x03\x1c-.\n\n\n\x02\x06\0\
\x12\x04\x1f\0%\x01\n\n\n\x03\x06\0\x01\x12\x03\x1f\x08\x0f\n\n\n\x03\
\x06\0\x03\x12\x03\x20\x08`\n\r\n\x06\x06\0\x03\xd0\x86\x03\x12\x03\x20\
\x08`\n\x0c\n\x04\x06\0\x02\0\x12\x04\"\x08$\t\n\x0c\n\x05\x06\0\x02\0\
\x01\x12\x03\"\x0c\x15\n\x0c\n\x05\x06\0\x02\0\x02\x12\x03\"\x17*\n\x0c\
\n\x05\x06\0\x02\0\x03\x12\x03\"5I\n\x0c\n\x05\x06\0\x02\0\x04\x12\x03#\
\x10u\n\x0f\n\x08\x06\0\x02\0\x04\xd0\x86\x03\x12\x03#\x10u\
";
static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT;
fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto {
::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
}
pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
file_descriptor_proto_lazy.get(|| {
parse_descriptor_proto()
})
}