#![allow(unknown_lints)]
#![allow(clippy)]
#![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(unsafe_code)]
#![allow(unused_imports)]
#![allow(unused_results)]
use protobuf::Message as Message_imported_for_functions;
use protobuf::ProtobufEnum as ProtobufEnum_imported_for_functions;
#[derive(PartialEq,Clone,Default)]
pub struct Endpoint {
pub name: ::std::string::String,
pub aliases: ::protobuf::RepeatedField<::std::string::String>,
pub apis: ::protobuf::RepeatedField<::std::string::String>,
pub features: ::protobuf::RepeatedField<::std::string::String>,
pub target: ::std::string::String,
pub allow_cors: bool,
unknown_fields: ::protobuf::UnknownFields,
cached_size: ::protobuf::CachedSize,
}
impl Endpoint {
pub fn new() -> Endpoint {
::std::default::Default::default()
}
pub fn clear_name(&mut self) {
self.name.clear();
}
pub fn set_name(&mut self, v: ::std::string::String) {
self.name = v;
}
pub fn mut_name(&mut self) -> &mut ::std::string::String {
&mut self.name
}
pub fn take_name(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.name, ::std::string::String::new())
}
pub fn get_name(&self) -> &str {
&self.name
}
pub fn clear_aliases(&mut self) {
self.aliases.clear();
}
pub fn set_aliases(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) {
self.aliases = v;
}
pub fn mut_aliases(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> {
&mut self.aliases
}
pub fn take_aliases(&mut self) -> ::protobuf::RepeatedField<::std::string::String> {
::std::mem::replace(&mut self.aliases, ::protobuf::RepeatedField::new())
}
pub fn get_aliases(&self) -> &[::std::string::String] {
&self.aliases
}
pub fn clear_apis(&mut self) {
self.apis.clear();
}
pub fn set_apis(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) {
self.apis = v;
}
pub fn mut_apis(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> {
&mut self.apis
}
pub fn take_apis(&mut self) -> ::protobuf::RepeatedField<::std::string::String> {
::std::mem::replace(&mut self.apis, ::protobuf::RepeatedField::new())
}
pub fn get_apis(&self) -> &[::std::string::String] {
&self.apis
}
pub fn clear_features(&mut self) {
self.features.clear();
}
pub fn set_features(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) {
self.features = v;
}
pub fn mut_features(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> {
&mut self.features
}
pub fn take_features(&mut self) -> ::protobuf::RepeatedField<::std::string::String> {
::std::mem::replace(&mut self.features, ::protobuf::RepeatedField::new())
}
pub fn get_features(&self) -> &[::std::string::String] {
&self.features
}
pub fn clear_target(&mut self) {
self.target.clear();
}
pub fn set_target(&mut self, v: ::std::string::String) {
self.target = v;
}
pub fn mut_target(&mut self) -> &mut ::std::string::String {
&mut self.target
}
pub fn take_target(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.target, ::std::string::String::new())
}
pub fn get_target(&self) -> &str {
&self.target
}
pub fn clear_allow_cors(&mut self) {
self.allow_cors = false;
}
pub fn set_allow_cors(&mut self, v: bool) {
self.allow_cors = v;
}
pub fn get_allow_cors(&self) -> bool {
self.allow_cors
}
}
impl ::protobuf::Message for Endpoint {
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_proto3_string_into(wire_type, is, &mut self.name)?;
},
2 => {
::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.aliases)?;
},
3 => {
::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.apis)?;
},
4 => {
::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.features)?;
},
101 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.target)?;
},
5 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_bool()?;
self.allow_cors = 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.name.is_empty() {
my_size += ::protobuf::rt::string_size(1, &self.name);
}
for value in &self.aliases {
my_size += ::protobuf::rt::string_size(2, &value);
};
for value in &self.apis {
my_size += ::protobuf::rt::string_size(3, &value);
};
for value in &self.features {
my_size += ::protobuf::rt::string_size(4, &value);
};
if !self.target.is_empty() {
my_size += ::protobuf::rt::string_size(101, &self.target);
}
if self.allow_cors != false {
my_size += 2;
}
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.name.is_empty() {
os.write_string(1, &self.name)?;
}
for v in &self.aliases {
os.write_string(2, &v)?;
};
for v in &self.apis {
os.write_string(3, &v)?;
};
for v in &self.features {
os.write_string(4, &v)?;
};
if !self.target.is_empty() {
os.write_string(101, &self.target)?;
}
if self.allow_cors != false {
os.write_bool(5, self.allow_cors)?;
}
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) -> &::std::any::Any {
self as &::std::any::Any
}
fn as_any_mut(&mut self) -> &mut ::std::any::Any {
self as &mut ::std::any::Any
}
fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> Endpoint {
Endpoint::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
};
unsafe {
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"name",
|m: &Endpoint| { &m.name },
|m: &mut Endpoint| { &mut m.name },
));
fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"aliases",
|m: &Endpoint| { &m.aliases },
|m: &mut Endpoint| { &mut m.aliases },
));
fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"apis",
|m: &Endpoint| { &m.apis },
|m: &mut Endpoint| { &mut m.apis },
));
fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"features",
|m: &Endpoint| { &m.features },
|m: &mut Endpoint| { &mut m.features },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"target",
|m: &Endpoint| { &m.target },
|m: &mut Endpoint| { &mut m.target },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>(
"allow_cors",
|m: &Endpoint| { &m.allow_cors },
|m: &mut Endpoint| { &mut m.allow_cors },
));
::protobuf::reflect::MessageDescriptor::new::<Endpoint>(
"Endpoint",
fields,
file_descriptor_proto()
)
})
}
}
fn default_instance() -> &'static Endpoint {
static mut instance: ::protobuf::lazy::Lazy<Endpoint> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const Endpoint,
};
unsafe {
instance.get(Endpoint::new)
}
}
}
impl ::protobuf::Clear for Endpoint {
fn clear(&mut self) {
self.clear_name();
self.clear_aliases();
self.clear_apis();
self.clear_features();
self.clear_target();
self.clear_allow_cors();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for Endpoint {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for Endpoint {
fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
::protobuf::reflect::ProtobufValueRef::Message(self)
}
}
static file_descriptor_proto_data: &'static [u8] = b"\
\n\x19google/api/endpoint.proto\x12\ngoogle.api\x1a\x1cgoogle/api/annota\
tions.proto\"\x9f\x01\n\x08Endpoint\x12\x12\n\x04name\x18\x01\x20\x01(\t\
R\x04name\x12\x18\n\x07aliases\x18\x02\x20\x03(\tR\x07aliases\x12\x12\n\
\x04apis\x18\x03\x20\x03(\tR\x04apis\x12\x1a\n\x08features\x18\x04\x20\
\x03(\tR\x08features\x12\x16\n\x06target\x18e\x20\x01(\tR\x06target\x12\
\x1d\n\nallow_cors\x18\x05\x20\x01(\x08R\tallowCorsBo\n\x0ecom.google.ap\
iB\rEndpointProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/servic\
econfig;serviceconfig\xa2\x02\x04GAPIJ\xe0\x18\n\x06\x12\x04\x0e\0I\x01\
\n\xbd\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb2\x04\x20Copyright\x202017\x20\
Google\x20Inc.\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20\
Version\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\
\x20this\x20file\x20except\x20in\x20compliance\x20with\x20the\x20License\
.\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\x20\
Unless\x20required\x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20i\
n\x20writing,\x20software\n\x20distributed\x20under\x20the\x20License\
\x20is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\
\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20ex\
press\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20spec\
ific\x20language\x20governing\x20permissions\x20and\n\x20limitations\x20\
under\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\x08\x12\n\t\n\x02\
\x03\0\x12\x03\x12\x07%\n\x08\n\x01\x08\x12\x03\x14\0\\\n\x0b\n\x04\x08\
\xe7\x07\0\x12\x03\x14\0\\\n\x0c\n\x05\x08\xe7\x07\0\x02\x12\x03\x14\x07\
\x11\n\r\n\x06\x08\xe7\x07\0\x02\0\x12\x03\x14\x07\x11\n\x0e\n\x07\x08\
\xe7\x07\0\x02\0\x01\x12\x03\x14\x07\x11\n\x0c\n\x05\x08\xe7\x07\0\x07\
\x12\x03\x14\x14[\n\x08\n\x01\x08\x12\x03\x15\0\"\n\x0b\n\x04\x08\xe7\
\x07\x01\x12\x03\x15\0\"\n\x0c\n\x05\x08\xe7\x07\x01\x02\x12\x03\x15\x07\
\x1a\n\r\n\x06\x08\xe7\x07\x01\x02\0\x12\x03\x15\x07\x1a\n\x0e\n\x07\x08\
\xe7\x07\x01\x02\0\x01\x12\x03\x15\x07\x1a\n\x0c\n\x05\x08\xe7\x07\x01\
\x03\x12\x03\x15\x1d!\n\x08\n\x01\x08\x12\x03\x16\0.\n\x0b\n\x04\x08\xe7\
\x07\x02\x12\x03\x16\0.\n\x0c\n\x05\x08\xe7\x07\x02\x02\x12\x03\x16\x07\
\x1b\n\r\n\x06\x08\xe7\x07\x02\x02\0\x12\x03\x16\x07\x1b\n\x0e\n\x07\x08\
\xe7\x07\x02\x02\0\x01\x12\x03\x16\x07\x1b\n\x0c\n\x05\x08\xe7\x07\x02\
\x07\x12\x03\x16\x1e-\n\x08\n\x01\x08\x12\x03\x17\0'\n\x0b\n\x04\x08\xe7\
\x07\x03\x12\x03\x17\0'\n\x0c\n\x05\x08\xe7\x07\x03\x02\x12\x03\x17\x07\
\x13\n\r\n\x06\x08\xe7\x07\x03\x02\0\x12\x03\x17\x07\x13\n\x0e\n\x07\x08\
\xe7\x07\x03\x02\0\x01\x12\x03\x17\x07\x13\n\x0c\n\x05\x08\xe7\x07\x03\
\x07\x12\x03\x17\x16&\n\x08\n\x01\x08\x12\x03\x18\0\"\n\x0b\n\x04\x08\
\xe7\x07\x04\x12\x03\x18\0\"\n\x0c\n\x05\x08\xe7\x07\x04\x02\x12\x03\x18\
\x07\x18\n\r\n\x06\x08\xe7\x07\x04\x02\0\x12\x03\x18\x07\x18\n\x0e\n\x07\
\x08\xe7\x07\x04\x02\0\x01\x12\x03\x18\x07\x18\n\x0c\n\x05\x08\xe7\x07\
\x04\x07\x12\x03\x18\x1b!\n\xce\x05\n\x02\x04\0\x12\x04+\0I\x01\x1a\xc1\
\x05\x20`Endpoint`\x20describes\x20a\x20network\x20endpoint\x20that\x20s\
erves\x20a\x20set\x20of\x20APIs.\n\x20A\x20service\x20may\x20expose\x20a\
ny\x20number\x20of\x20endpoints,\x20and\x20all\x20endpoints\x20share\x20\
the\n\x20same\x20service\x20configuration,\x20such\x20as\x20quota\x20con\
figuration\x20and\x20monitoring\n\x20configuration.\n\n\x20Example\x20se\
rvice\x20configuration:\n\n\x20\x20\x20\x20\x20name:\x20library-example.\
googleapis.com\n\x20\x20\x20\x20\x20endpoints:\n\x20\x20\x20\x20\x20\x20\
\x20#\x20Below\x20entry\x20makes\x20'google.example.library.v1.Library'\
\n\x20\x20\x20\x20\x20\x20\x20#\x20API\x20be\x20served\x20from\x20endpoi\
nt\x20address\x20library-example.googleapis.com.\n\x20\x20\x20\x20\x20\
\x20\x20#\x20It\x20also\x20allows\x20HTTP\x20OPTIONS\x20calls\x20to\x20b\
e\x20passed\x20to\x20the\x20backend,\x20for\n\x20\x20\x20\x20\x20\x20\
\x20#\x20it\x20to\x20decide\x20whether\x20the\x20subsequent\x20cross-ori\
gin\x20request\x20is\n\x20\x20\x20\x20\x20\x20\x20#\x20allowed\x20to\x20\
proceed.\n\x20\x20\x20\x20\x20-\x20name:\x20library-example.googleapis.c\
om\n\x20\x20\x20\x20\x20\x20\x20allow_cors:\x20true\n\n\n\n\x03\x04\0\
\x01\x12\x03+\x08\x10\n3\n\x04\x04\0\x02\0\x12\x03-\x02\x12\x1a&\x20The\
\x20canonical\x20name\x20of\x20this\x20endpoint.\n\n\r\n\x05\x04\0\x02\0\
\x04\x12\x04-\x02+\x12\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03-\x02\x08\n\
\x0c\n\x05\x04\0\x02\0\x01\x12\x03-\t\r\n\x0c\n\x05\x04\0\x02\0\x03\x12\
\x03-\x10\x11\n\xf6\x01\n\x04\x04\0\x02\x01\x12\x034\x02\x1e\x1a\xe8\x01\
\x20DEPRECATED:\x20This\x20field\x20is\x20no\x20longer\x20supported.\x20\
Instead\x20of\x20using\x20aliases,\n\x20please\x20specify\x20multiple\
\x20[google.api.Endpoint][google.api.Endpoint]\x20for\x20each\x20of\x20t\
he\x20intented\n\x20alias.\n\n\x20Additional\x20names\x20that\x20this\
\x20endpoint\x20will\x20be\x20hosted\x20on.\n\n\x0c\n\x05\x04\0\x02\x01\
\x04\x12\x034\x02\n\n\x0c\n\x05\x04\0\x02\x01\x05\x12\x034\x0b\x11\n\x0c\
\n\x05\x04\0\x02\x01\x01\x12\x034\x12\x19\n\x0c\n\x05\x04\0\x02\x01\x03\
\x12\x034\x1c\x1d\n8\n\x04\x04\0\x02\x02\x12\x037\x02\x1b\x1a+\x20The\
\x20list\x20of\x20APIs\x20served\x20by\x20this\x20endpoint.\n\n\x0c\n\
\x05\x04\0\x02\x02\x04\x12\x037\x02\n\n\x0c\n\x05\x04\0\x02\x02\x05\x12\
\x037\x0b\x11\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x037\x12\x16\n\x0c\n\x05\
\x04\0\x02\x02\x03\x12\x037\x19\x1a\n=\n\x04\x04\0\x02\x03\x12\x03:\x02\
\x1f\x1a0\x20The\x20list\x20of\x20features\x20enabled\x20on\x20this\x20e\
ndpoint.\n\n\x0c\n\x05\x04\0\x02\x03\x04\x12\x03:\x02\n\n\x0c\n\x05\x04\
\0\x02\x03\x05\x12\x03:\x0b\x11\n\x0c\n\x05\x04\0\x02\x03\x01\x12\x03:\
\x12\x1a\n\x0c\n\x05\x04\0\x02\x03\x03\x12\x03:\x1d\x1e\n\xb3\x02\n\x04\
\x04\0\x02\x04\x12\x03@\x02\x16\x1a\xa5\x02\x20The\x20specification\x20o\
f\x20an\x20Internet\x20routable\x20address\x20of\x20API\x20frontend\x20t\
hat\x20will\n\x20handle\x20requests\x20to\x20this\x20[API\x20Endpoint](h\
ttps://cloud.google.com/apis/design/glossary).\n\x20It\x20should\x20be\
\x20either\x20a\x20valid\x20IPv4\x20address\x20or\x20a\x20fully-qualifie\
d\x20domain\x20name.\n\x20For\x20example,\x20\"8.8.8.8\"\x20or\x20\"myse\
rvice.appspot.com\".\n\n\r\n\x05\x04\0\x02\x04\x04\x12\x04@\x02:\x1f\n\
\x0c\n\x05\x04\0\x02\x04\x05\x12\x03@\x02\x08\n\x0c\n\x05\x04\0\x02\x04\
\x01\x12\x03@\t\x0f\n\x0c\n\x05\x04\0\x02\x04\x03\x12\x03@\x12\x15\n\xd9\
\x02\n\x04\x04\0\x02\x05\x12\x03H\x02\x16\x1a\xcb\x02\x20Allowing\n\x20[\
CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing),\x20a\
ka\n\x20cross-domain\x20traffic,\x20would\x20allow\x20the\x20backends\
\x20served\x20from\x20this\x20endpoint\x20to\n\x20receive\x20and\x20resp\
ond\x20to\x20HTTP\x20OPTIONS\x20requests.\x20The\x20response\x20will\x20\
be\x20used\x20by\n\x20the\x20browser\x20to\x20determine\x20whether\x20th\
e\x20subsequent\x20cross-origin\x20request\x20is\n\x20allowed\x20to\x20p\
roceed.\n\n\r\n\x05\x04\0\x02\x05\x04\x12\x04H\x02@\x16\n\x0c\n\x05\x04\
\0\x02\x05\x05\x12\x03H\x02\x06\n\x0c\n\x05\x04\0\x02\x05\x01\x12\x03H\
\x07\x11\n\x0c\n\x05\x04\0\x02\x05\x03\x12\x03H\x14\x15b\x06proto3\
";
static mut file_descriptor_proto_lazy: ::protobuf::lazy::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const ::protobuf::descriptor::FileDescriptorProto,
};
fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto {
::protobuf::parse_from_bytes(file_descriptor_proto_data).unwrap()
}
pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
unsafe {
file_descriptor_proto_lazy.get(|| {
parse_descriptor_proto()
})
}
}