#![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)]
const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_6_0;
#[derive(PartialEq,Clone,Default,Debug)]
pub struct SetProjectIdReply {
pub success: bool,
pub error: i32,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a SetProjectIdReply {
fn default() -> &'a SetProjectIdReply {
<SetProjectIdReply as ::protobuf::Message>::default_instance()
}
}
impl SetProjectIdReply {
pub fn new() -> SetProjectIdReply {
::std::default::Default::default()
}
}
impl ::protobuf::Message for SetProjectIdReply {
const NAME: &'static str = "SetProjectIdReply";
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
8 => {
self.success = is.read_bool()?;
},
16 => {
self.error = is.read_int32()?;
},
tag => {
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
if self.success != false {
my_size += 1 + 1;
}
if self.error != 0 {
my_size += ::protobuf::rt::int32_size(2, self.error);
}
my_size += ::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 ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
if self.success != false {
os.write_bool(1, self.success)?;
}
if self.error != 0 {
os.write_int32(2, self.error)?;
}
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &::protobuf::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
&mut self.special_fields
}
fn new() -> SetProjectIdReply {
SetProjectIdReply::new()
}
fn clear(&mut self) {
self.success = false;
self.error = 0;
self.special_fields.clear();
}
fn default_instance() -> &'static SetProjectIdReply {
static instance: SetProjectIdReply = SetProjectIdReply {
success: false,
error: 0,
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct SetProjectInheritanceFlagReply {
pub success: bool,
pub error: i32,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a SetProjectInheritanceFlagReply {
fn default() -> &'a SetProjectInheritanceFlagReply {
<SetProjectInheritanceFlagReply as ::protobuf::Message>::default_instance()
}
}
impl SetProjectInheritanceFlagReply {
pub fn new() -> SetProjectInheritanceFlagReply {
::std::default::Default::default()
}
}
impl ::protobuf::Message for SetProjectInheritanceFlagReply {
const NAME: &'static str = "SetProjectInheritanceFlagReply";
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
8 => {
self.success = is.read_bool()?;
},
16 => {
self.error = is.read_int32()?;
},
tag => {
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
if self.success != false {
my_size += 1 + 1;
}
if self.error != 0 {
my_size += ::protobuf::rt::int32_size(2, self.error);
}
my_size += ::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 ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
if self.success != false {
os.write_bool(1, self.success)?;
}
if self.error != 0 {
os.write_int32(2, self.error)?;
}
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &::protobuf::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
&mut self.special_fields
}
fn new() -> SetProjectInheritanceFlagReply {
SetProjectInheritanceFlagReply::new()
}
fn clear(&mut self) {
self.success = false;
self.error = 0;
self.special_fields.clear();
}
fn default_instance() -> &'static SetProjectInheritanceFlagReply {
static instance: SetProjectInheritanceFlagReply = SetProjectInheritanceFlagReply {
success: false,
error: 0,
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct StatefulDiskSpaceUpdate {
pub state: ::protobuf::EnumOrUnknown<StatefulDiskSpaceState>,
pub free_space_bytes: i64,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a StatefulDiskSpaceUpdate {
fn default() -> &'a StatefulDiskSpaceUpdate {
<StatefulDiskSpaceUpdate as ::protobuf::Message>::default_instance()
}
}
impl StatefulDiskSpaceUpdate {
pub fn new() -> StatefulDiskSpaceUpdate {
::std::default::Default::default()
}
}
impl ::protobuf::Message for StatefulDiskSpaceUpdate {
const NAME: &'static str = "StatefulDiskSpaceUpdate";
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
8 => {
self.state = is.read_enum_or_unknown()?;
},
16 => {
self.free_space_bytes = is.read_int64()?;
},
tag => {
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
if self.state != ::protobuf::EnumOrUnknown::new(StatefulDiskSpaceState::NONE) {
my_size += ::protobuf::rt::int32_size(1, self.state.value());
}
if self.free_space_bytes != 0 {
my_size += ::protobuf::rt::int64_size(2, self.free_space_bytes);
}
my_size += ::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 ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
if self.state != ::protobuf::EnumOrUnknown::new(StatefulDiskSpaceState::NONE) {
os.write_enum(1, ::protobuf::EnumOrUnknown::value(&self.state))?;
}
if self.free_space_bytes != 0 {
os.write_int64(2, self.free_space_bytes)?;
}
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &::protobuf::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
&mut self.special_fields
}
fn new() -> StatefulDiskSpaceUpdate {
StatefulDiskSpaceUpdate::new()
}
fn clear(&mut self) {
self.state = ::protobuf::EnumOrUnknown::new(StatefulDiskSpaceState::NONE);
self.free_space_bytes = 0;
self.special_fields.clear();
}
fn default_instance() -> &'static StatefulDiskSpaceUpdate {
static instance: StatefulDiskSpaceUpdate = StatefulDiskSpaceUpdate {
state: ::protobuf::EnumOrUnknown::from_i32(0),
free_space_bytes: 0,
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct GetQuotaCurrentSpacesForIdsRequest {
pub path: ::std::string::String,
pub uids: ::std::vec::Vec<u32>,
pub gids: ::std::vec::Vec<u32>,
pub project_ids: ::std::vec::Vec<u32>,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a GetQuotaCurrentSpacesForIdsRequest {
fn default() -> &'a GetQuotaCurrentSpacesForIdsRequest {
<GetQuotaCurrentSpacesForIdsRequest as ::protobuf::Message>::default_instance()
}
}
impl GetQuotaCurrentSpacesForIdsRequest {
pub fn new() -> GetQuotaCurrentSpacesForIdsRequest {
::std::default::Default::default()
}
}
impl ::protobuf::Message for GetQuotaCurrentSpacesForIdsRequest {
const NAME: &'static str = "GetQuotaCurrentSpacesForIdsRequest";
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
10 => {
self.path = is.read_string()?;
},
18 => {
is.read_repeated_packed_uint32_into(&mut self.uids)?;
},
16 => {
self.uids.push(is.read_uint32()?);
},
26 => {
is.read_repeated_packed_uint32_into(&mut self.gids)?;
},
24 => {
self.gids.push(is.read_uint32()?);
},
34 => {
is.read_repeated_packed_uint32_into(&mut self.project_ids)?;
},
32 => {
self.project_ids.push(is.read_uint32()?);
},
tag => {
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
if !self.path.is_empty() {
my_size += ::protobuf::rt::string_size(1, &self.path);
}
my_size += ::protobuf::rt::vec_packed_uint32_size(2, &self.uids);
my_size += ::protobuf::rt::vec_packed_uint32_size(3, &self.gids);
my_size += ::protobuf::rt::vec_packed_uint32_size(4, &self.project_ids);
my_size += ::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 ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
if !self.path.is_empty() {
os.write_string(1, &self.path)?;
}
os.write_repeated_packed_uint32(2, &self.uids)?;
os.write_repeated_packed_uint32(3, &self.gids)?;
os.write_repeated_packed_uint32(4, &self.project_ids)?;
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &::protobuf::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
&mut self.special_fields
}
fn new() -> GetQuotaCurrentSpacesForIdsRequest {
GetQuotaCurrentSpacesForIdsRequest::new()
}
fn clear(&mut self) {
self.path.clear();
self.uids.clear();
self.gids.clear();
self.project_ids.clear();
self.special_fields.clear();
}
fn default_instance() -> &'static GetQuotaCurrentSpacesForIdsRequest {
static instance: GetQuotaCurrentSpacesForIdsRequest = GetQuotaCurrentSpacesForIdsRequest {
path: ::std::string::String::new(),
uids: ::std::vec::Vec::new(),
gids: ::std::vec::Vec::new(),
project_ids: ::std::vec::Vec::new(),
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct GetQuotaCurrentSpacesForIdsReply {
pub curspaces_for_uids: ::std::collections::HashMap<u32, i64>,
pub curspaces_for_gids: ::std::collections::HashMap<u32, i64>,
pub curspaces_for_project_ids: ::std::collections::HashMap<u32, i64>,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a GetQuotaCurrentSpacesForIdsReply {
fn default() -> &'a GetQuotaCurrentSpacesForIdsReply {
<GetQuotaCurrentSpacesForIdsReply as ::protobuf::Message>::default_instance()
}
}
impl GetQuotaCurrentSpacesForIdsReply {
pub fn new() -> GetQuotaCurrentSpacesForIdsReply {
::std::default::Default::default()
}
}
impl ::protobuf::Message for GetQuotaCurrentSpacesForIdsReply {
const NAME: &'static str = "GetQuotaCurrentSpacesForIdsReply";
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
10 => {
let len = is.read_raw_varint32()?;
let old_limit = is.push_limit(len as u64)?;
let mut key = ::std::default::Default::default();
let mut value = ::std::default::Default::default();
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
8 => key = is.read_uint32()?,
16 => value = is.read_int64()?,
_ => ::protobuf::rt::skip_field_for_tag(tag, is)?,
};
}
is.pop_limit(old_limit);
self.curspaces_for_uids.insert(key, value);
},
18 => {
let len = is.read_raw_varint32()?;
let old_limit = is.push_limit(len as u64)?;
let mut key = ::std::default::Default::default();
let mut value = ::std::default::Default::default();
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
8 => key = is.read_uint32()?,
16 => value = is.read_int64()?,
_ => ::protobuf::rt::skip_field_for_tag(tag, is)?,
};
}
is.pop_limit(old_limit);
self.curspaces_for_gids.insert(key, value);
},
26 => {
let len = is.read_raw_varint32()?;
let old_limit = is.push_limit(len as u64)?;
let mut key = ::std::default::Default::default();
let mut value = ::std::default::Default::default();
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
8 => key = is.read_uint32()?,
16 => value = is.read_int64()?,
_ => ::protobuf::rt::skip_field_for_tag(tag, is)?,
};
}
is.pop_limit(old_limit);
self.curspaces_for_project_ids.insert(key, value);
},
tag => {
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
for (k, v) in &self.curspaces_for_uids {
let mut entry_size = 0;
entry_size += ::protobuf::rt::uint32_size(1, *k);
entry_size += ::protobuf::rt::int64_size(2, *v);
my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(entry_size) + entry_size
};
for (k, v) in &self.curspaces_for_gids {
let mut entry_size = 0;
entry_size += ::protobuf::rt::uint32_size(1, *k);
entry_size += ::protobuf::rt::int64_size(2, *v);
my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(entry_size) + entry_size
};
for (k, v) in &self.curspaces_for_project_ids {
let mut entry_size = 0;
entry_size += ::protobuf::rt::uint32_size(1, *k);
entry_size += ::protobuf::rt::int64_size(2, *v);
my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(entry_size) + entry_size
};
my_size += ::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 ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
for (k, v) in &self.curspaces_for_uids {
let mut entry_size = 0;
entry_size += ::protobuf::rt::uint32_size(1, *k);
entry_size += ::protobuf::rt::int64_size(2, *v);
os.write_raw_varint32(10)?; os.write_raw_varint32(entry_size as u32)?;
os.write_uint32(1, *k)?;
os.write_int64(2, *v)?;
};
for (k, v) in &self.curspaces_for_gids {
let mut entry_size = 0;
entry_size += ::protobuf::rt::uint32_size(1, *k);
entry_size += ::protobuf::rt::int64_size(2, *v);
os.write_raw_varint32(18)?; os.write_raw_varint32(entry_size as u32)?;
os.write_uint32(1, *k)?;
os.write_int64(2, *v)?;
};
for (k, v) in &self.curspaces_for_project_ids {
let mut entry_size = 0;
entry_size += ::protobuf::rt::uint32_size(1, *k);
entry_size += ::protobuf::rt::int64_size(2, *v);
os.write_raw_varint32(26)?; os.write_raw_varint32(entry_size as u32)?;
os.write_uint32(1, *k)?;
os.write_int64(2, *v)?;
};
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &::protobuf::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
&mut self.special_fields
}
fn new() -> GetQuotaCurrentSpacesForIdsReply {
GetQuotaCurrentSpacesForIdsReply::new()
}
fn clear(&mut self) {
self.curspaces_for_uids.clear();
self.curspaces_for_gids.clear();
self.curspaces_for_project_ids.clear();
self.special_fields.clear();
}
fn default_instance() -> &'static GetQuotaCurrentSpacesForIdsReply {
static instance: ::protobuf::rt::Lazy<GetQuotaCurrentSpacesForIdsReply> = ::protobuf::rt::Lazy::new();
instance.get(GetQuotaCurrentSpacesForIdsReply::new)
}
}
#[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)]
pub enum StatefulDiskSpaceState {
NONE = 0,
NORMAL = 1,
LOW = 2,
CRITICAL = 3,
}
impl ::protobuf::Enum for StatefulDiskSpaceState {
const NAME: &'static str = "StatefulDiskSpaceState";
fn value(&self) -> i32 {
*self as i32
}
fn from_i32(value: i32) -> ::std::option::Option<StatefulDiskSpaceState> {
match value {
0 => ::std::option::Option::Some(StatefulDiskSpaceState::NONE),
1 => ::std::option::Option::Some(StatefulDiskSpaceState::NORMAL),
2 => ::std::option::Option::Some(StatefulDiskSpaceState::LOW),
3 => ::std::option::Option::Some(StatefulDiskSpaceState::CRITICAL),
_ => ::std::option::Option::None
}
}
fn from_str(str: &str) -> ::std::option::Option<StatefulDiskSpaceState> {
match str {
"NONE" => ::std::option::Option::Some(StatefulDiskSpaceState::NONE),
"NORMAL" => ::std::option::Option::Some(StatefulDiskSpaceState::NORMAL),
"LOW" => ::std::option::Option::Some(StatefulDiskSpaceState::LOW),
"CRITICAL" => ::std::option::Option::Some(StatefulDiskSpaceState::CRITICAL),
_ => ::std::option::Option::None
}
}
const VALUES: &'static [StatefulDiskSpaceState] = &[
StatefulDiskSpaceState::NONE,
StatefulDiskSpaceState::NORMAL,
StatefulDiskSpaceState::LOW,
StatefulDiskSpaceState::CRITICAL,
];
}
impl ::std::default::Default for StatefulDiskSpaceState {
fn default() -> Self {
StatefulDiskSpaceState::NONE
}
}