#![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 GetPolicyOptions {
pub requested_policy_version: i32,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a GetPolicyOptions {
fn default() -> &'a GetPolicyOptions {
<GetPolicyOptions as ::protobuf::Message>::default_instance()
}
}
impl GetPolicyOptions {
pub fn new() -> GetPolicyOptions {
::std::default::Default::default()
}
pub fn get_requested_policy_version(&self) -> i32 {
self.requested_policy_version
}
pub fn clear_requested_policy_version(&mut self) {
self.requested_policy_version = 0;
}
pub fn set_requested_policy_version(&mut self, v: i32) {
self.requested_policy_version = v;
}
}
impl ::protobuf::Message for GetPolicyOptions {
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 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_int32()?;
self.requested_policy_version = 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 self.requested_policy_version != 0 {
my_size += ::protobuf::rt::value_size(1, self.requested_policy_version, ::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 self.requested_policy_version != 0 {
os.write_int32(1, self.requested_policy_version)?;
}
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() -> GetPolicyOptions {
GetPolicyOptions::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_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
"requested_policy_version",
|m: &GetPolicyOptions| { &m.requested_policy_version },
|m: &mut GetPolicyOptions| { &mut m.requested_policy_version },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<GetPolicyOptions>(
"GetPolicyOptions",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static GetPolicyOptions {
static instance: ::protobuf::rt::LazyV2<GetPolicyOptions> = ::protobuf::rt::LazyV2::INIT;
instance.get(GetPolicyOptions::new)
}
}
impl ::protobuf::Clear for GetPolicyOptions {
fn clear(&mut self) {
self.requested_policy_version = 0;
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for GetPolicyOptions {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for GetPolicyOptions {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
static file_descriptor_proto_data: &'static [u8] = b"\
\n\x1bgoogle/iam/v1/options.proto\x12\rgoogle.iam.v1\"L\n\x10GetPolicyOp\
tions\x128\n\x18requested_policy_version\x18\x01\x20\x01(\x05R\x16reques\
tedPolicyVersionB}\n\x11com.google.iam.v1B\x0cOptionsProtoP\x01Z)cloud.g\
oogle.com/go/iam/apiv1/iampb;iampb\xf8\x01\x01\xaa\x02\x13Google.Cloud.I\
am.V1\xca\x02\x13Google\\Cloud\\Iam\\V1J\xd9\x0c\n\x06\x12\x04\x0e\0/\
\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202022\
\x20Google\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\
\x20Version\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20us\
e\x20this\x20file\x20except\x20in\x20compliance\x20with\x20the\x20Licens\
e.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\
\n\n\x20\x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\
\x20Unless\x20required\x20by\x20applicable\x20law\x20or\x20agreed\x20to\
\x20in\x20writing,\x20software\n\x20distributed\x20under\x20the\x20Licen\
se\x20is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHO\
UT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20\
express\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20sp\
ecific\x20language\x20governing\x20permissions\x20and\n\x20limitations\
\x20under\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0\x16\n\x08\n\
\x01\x08\x12\x03\x12\0\x1f\n\t\n\x02\x08\x1f\x12\x03\x12\0\x1f\n\x08\n\
\x01\x08\x12\x03\x13\00\n\t\n\x02\x08%\x12\x03\x13\00\n\x08\n\x01\x08\
\x12\x03\x14\0@\n\t\n\x02\x08\x0b\x12\x03\x14\0@\n\x08\n\x01\x08\x12\x03\
\x15\0\"\n\t\n\x02\x08\n\x12\x03\x15\0\"\n\x08\n\x01\x08\x12\x03\x16\0-\
\n\t\n\x02\x08\x08\x12\x03\x16\0-\n\x08\n\x01\x08\x12\x03\x17\0*\n\t\n\
\x02\x08\x01\x12\x03\x17\0*\n\x08\n\x01\x08\x12\x03\x18\00\n\t\n\x02\x08\
)\x12\x03\x18\00\n=\n\x02\x04\0\x12\x04\x1b\0/\x01\x1a1\x20Encapsulates\
\x20settings\x20provided\x20to\x20GetIamPolicy.\n\n\n\n\x03\x04\0\x01\
\x12\x03\x1b\x08\x18\n\xfd\x05\n\x04\x04\0\x02\0\x12\x03.\x02%\x1a\xef\
\x05\x20Optional.\x20The\x20maximum\x20policy\x20version\x20that\x20will\
\x20be\x20used\x20to\x20format\x20the\n\x20policy.\n\n\x20Valid\x20value\
s\x20are\x200,\x201,\x20and\x203.\x20Requests\x20specifying\x20an\x20inv\
alid\x20value\x20will\x20be\n\x20rejected.\n\n\x20Requests\x20for\x20pol\
icies\x20with\x20any\x20conditional\x20role\x20bindings\x20must\x20speci\
fy\n\x20version\x203.\x20Policies\x20with\x20no\x20conditional\x20role\
\x20bindings\x20may\x20specify\x20any\x20valid\n\x20value\x20or\x20leave\
\x20the\x20field\x20unset.\n\n\x20The\x20policy\x20in\x20the\x20response\
\x20might\x20use\x20the\x20policy\x20version\x20that\x20you\x20specified\
,\n\x20or\x20it\x20might\x20use\x20a\x20lower\x20policy\x20version.\x20F\
or\x20example,\x20if\x20you\x20specify\x20version\n\x203,\x20but\x20the\
\x20policy\x20has\x20no\x20conditional\x20role\x20bindings,\x20the\x20re\
sponse\x20uses\n\x20version\x201.\n\n\x20To\x20learn\x20which\x20resourc\
es\x20support\x20conditions\x20in\x20their\x20IAM\x20policies,\x20see\
\x20the\n\x20[IAM\n\x20documentation](https://cloud.google.com/iam/help/\
conditions/resource-policies).\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03.\
\x02\x07\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03.\x08\x20\n\x0c\n\x05\x04\0\
\x02\0\x03\x12\x03.#$b\x06proto3\
";
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()
})
}