#![allow(unknown_lints)]
#![allow(clippy::all)]
#![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;
const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_7_0;
#[derive(PartialEq,Clone,Default)]
pub struct Maintainer {
pub name: ::std::string::String,
pub email: ::std::string::String,
pub url: ::std::string::String,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a Maintainer {
fn default() -> &'a Maintainer {
<Maintainer as ::protobuf::Message>::default_instance()
}
}
impl Maintainer {
pub fn new() -> Maintainer {
::std::default::Default::default()
}
pub fn get_name(&self) -> &str {
&self.name
}
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_email(&self) -> &str {
&self.email
}
pub fn clear_email(&mut self) {
self.email.clear();
}
pub fn set_email(&mut self, v: ::std::string::String) {
self.email = v;
}
pub fn mut_email(&mut self) -> &mut ::std::string::String {
&mut self.email
}
pub fn take_email(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.email, ::std::string::String::new())
}
pub fn get_url(&self) -> &str {
&self.url
}
pub fn clear_url(&mut self) {
self.url.clear();
}
pub fn set_url(&mut self, v: ::std::string::String) {
self.url = v;
}
pub fn mut_url(&mut self) -> &mut ::std::string::String {
&mut self.url
}
pub fn take_url(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.url, ::std::string::String::new())
}
}
impl ::protobuf::Message for Maintainer {
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_singular_proto3_string_into(wire_type, is, &mut self.email)?;
},
3 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.url)?;
},
_ => {
::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);
}
if !self.email.is_empty() {
my_size += ::protobuf::rt::string_size(2, &self.email);
}
if !self.url.is_empty() {
my_size += ::protobuf::rt::string_size(3, &self.url);
}
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)?;
}
if !self.email.is_empty() {
os.write_string(2, &self.email)?;
}
if !self.url.is_empty() {
os.write_string(3, &self.url)?;
}
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() -> Maintainer {
Maintainer::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: &Maintainer| { &m.name },
|m: &mut Maintainer| { &mut m.name },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"email",
|m: &Maintainer| { &m.email },
|m: &mut Maintainer| { &mut m.email },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"url",
|m: &Maintainer| { &m.url },
|m: &mut Maintainer| { &mut m.url },
));
::protobuf::reflect::MessageDescriptor::new::<Maintainer>(
"Maintainer",
fields,
file_descriptor_proto()
)
})
}
}
fn default_instance() -> &'static Maintainer {
static mut instance: ::protobuf::lazy::Lazy<Maintainer> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const Maintainer,
};
unsafe {
instance.get(Maintainer::new)
}
}
}
impl ::protobuf::Clear for Maintainer {
fn clear(&mut self) {
self.name.clear();
self.email.clear();
self.url.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for Maintainer {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for Maintainer {
fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
::protobuf::reflect::ProtobufValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct Metadata {
pub name: ::std::string::String,
pub home: ::std::string::String,
pub sources: ::protobuf::RepeatedField<::std::string::String>,
pub version: ::std::string::String,
pub description: ::std::string::String,
pub keywords: ::protobuf::RepeatedField<::std::string::String>,
pub maintainers: ::protobuf::RepeatedField<Maintainer>,
pub engine: ::std::string::String,
pub icon: ::std::string::String,
pub apiVersion: ::std::string::String,
pub condition: ::std::string::String,
pub tags: ::std::string::String,
pub appVersion: ::std::string::String,
pub deprecated: bool,
pub tillerVersion: ::std::string::String,
pub annotations: ::std::collections::HashMap<::std::string::String, ::std::string::String>,
pub kubeVersion: ::std::string::String,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a Metadata {
fn default() -> &'a Metadata {
<Metadata as ::protobuf::Message>::default_instance()
}
}
impl Metadata {
pub fn new() -> Metadata {
::std::default::Default::default()
}
pub fn get_name(&self) -> &str {
&self.name
}
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_home(&self) -> &str {
&self.home
}
pub fn clear_home(&mut self) {
self.home.clear();
}
pub fn set_home(&mut self, v: ::std::string::String) {
self.home = v;
}
pub fn mut_home(&mut self) -> &mut ::std::string::String {
&mut self.home
}
pub fn take_home(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.home, ::std::string::String::new())
}
pub fn get_sources(&self) -> &[::std::string::String] {
&self.sources
}
pub fn clear_sources(&mut self) {
self.sources.clear();
}
pub fn set_sources(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) {
self.sources = v;
}
pub fn mut_sources(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> {
&mut self.sources
}
pub fn take_sources(&mut self) -> ::protobuf::RepeatedField<::std::string::String> {
::std::mem::replace(&mut self.sources, ::protobuf::RepeatedField::new())
}
pub fn get_version(&self) -> &str {
&self.version
}
pub fn clear_version(&mut self) {
self.version.clear();
}
pub fn set_version(&mut self, v: ::std::string::String) {
self.version = v;
}
pub fn mut_version(&mut self) -> &mut ::std::string::String {
&mut self.version
}
pub fn take_version(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.version, ::std::string::String::new())
}
pub fn get_description(&self) -> &str {
&self.description
}
pub fn clear_description(&mut self) {
self.description.clear();
}
pub fn set_description(&mut self, v: ::std::string::String) {
self.description = v;
}
pub fn mut_description(&mut self) -> &mut ::std::string::String {
&mut self.description
}
pub fn take_description(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.description, ::std::string::String::new())
}
pub fn get_keywords(&self) -> &[::std::string::String] {
&self.keywords
}
pub fn clear_keywords(&mut self) {
self.keywords.clear();
}
pub fn set_keywords(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) {
self.keywords = v;
}
pub fn mut_keywords(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> {
&mut self.keywords
}
pub fn take_keywords(&mut self) -> ::protobuf::RepeatedField<::std::string::String> {
::std::mem::replace(&mut self.keywords, ::protobuf::RepeatedField::new())
}
pub fn get_maintainers(&self) -> &[Maintainer] {
&self.maintainers
}
pub fn clear_maintainers(&mut self) {
self.maintainers.clear();
}
pub fn set_maintainers(&mut self, v: ::protobuf::RepeatedField<Maintainer>) {
self.maintainers = v;
}
pub fn mut_maintainers(&mut self) -> &mut ::protobuf::RepeatedField<Maintainer> {
&mut self.maintainers
}
pub fn take_maintainers(&mut self) -> ::protobuf::RepeatedField<Maintainer> {
::std::mem::replace(&mut self.maintainers, ::protobuf::RepeatedField::new())
}
pub fn get_engine(&self) -> &str {
&self.engine
}
pub fn clear_engine(&mut self) {
self.engine.clear();
}
pub fn set_engine(&mut self, v: ::std::string::String) {
self.engine = v;
}
pub fn mut_engine(&mut self) -> &mut ::std::string::String {
&mut self.engine
}
pub fn take_engine(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.engine, ::std::string::String::new())
}
pub fn get_icon(&self) -> &str {
&self.icon
}
pub fn clear_icon(&mut self) {
self.icon.clear();
}
pub fn set_icon(&mut self, v: ::std::string::String) {
self.icon = v;
}
pub fn mut_icon(&mut self) -> &mut ::std::string::String {
&mut self.icon
}
pub fn take_icon(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.icon, ::std::string::String::new())
}
pub fn get_apiVersion(&self) -> &str {
&self.apiVersion
}
pub fn clear_apiVersion(&mut self) {
self.apiVersion.clear();
}
pub fn set_apiVersion(&mut self, v: ::std::string::String) {
self.apiVersion = v;
}
pub fn mut_apiVersion(&mut self) -> &mut ::std::string::String {
&mut self.apiVersion
}
pub fn take_apiVersion(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.apiVersion, ::std::string::String::new())
}
pub fn get_condition(&self) -> &str {
&self.condition
}
pub fn clear_condition(&mut self) {
self.condition.clear();
}
pub fn set_condition(&mut self, v: ::std::string::String) {
self.condition = v;
}
pub fn mut_condition(&mut self) -> &mut ::std::string::String {
&mut self.condition
}
pub fn take_condition(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.condition, ::std::string::String::new())
}
pub fn get_tags(&self) -> &str {
&self.tags
}
pub fn clear_tags(&mut self) {
self.tags.clear();
}
pub fn set_tags(&mut self, v: ::std::string::String) {
self.tags = v;
}
pub fn mut_tags(&mut self) -> &mut ::std::string::String {
&mut self.tags
}
pub fn take_tags(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.tags, ::std::string::String::new())
}
pub fn get_appVersion(&self) -> &str {
&self.appVersion
}
pub fn clear_appVersion(&mut self) {
self.appVersion.clear();
}
pub fn set_appVersion(&mut self, v: ::std::string::String) {
self.appVersion = v;
}
pub fn mut_appVersion(&mut self) -> &mut ::std::string::String {
&mut self.appVersion
}
pub fn take_appVersion(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.appVersion, ::std::string::String::new())
}
pub fn get_deprecated(&self) -> bool {
self.deprecated
}
pub fn clear_deprecated(&mut self) {
self.deprecated = false;
}
pub fn set_deprecated(&mut self, v: bool) {
self.deprecated = v;
}
pub fn get_tillerVersion(&self) -> &str {
&self.tillerVersion
}
pub fn clear_tillerVersion(&mut self) {
self.tillerVersion.clear();
}
pub fn set_tillerVersion(&mut self, v: ::std::string::String) {
self.tillerVersion = v;
}
pub fn mut_tillerVersion(&mut self) -> &mut ::std::string::String {
&mut self.tillerVersion
}
pub fn take_tillerVersion(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.tillerVersion, ::std::string::String::new())
}
pub fn get_annotations(&self) -> &::std::collections::HashMap<::std::string::String, ::std::string::String> {
&self.annotations
}
pub fn clear_annotations(&mut self) {
self.annotations.clear();
}
pub fn set_annotations(&mut self, v: ::std::collections::HashMap<::std::string::String, ::std::string::String>) {
self.annotations = v;
}
pub fn mut_annotations(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, ::std::string::String> {
&mut self.annotations
}
pub fn take_annotations(&mut self) -> ::std::collections::HashMap<::std::string::String, ::std::string::String> {
::std::mem::replace(&mut self.annotations, ::std::collections::HashMap::new())
}
pub fn get_kubeVersion(&self) -> &str {
&self.kubeVersion
}
pub fn clear_kubeVersion(&mut self) {
self.kubeVersion.clear();
}
pub fn set_kubeVersion(&mut self, v: ::std::string::String) {
self.kubeVersion = v;
}
pub fn mut_kubeVersion(&mut self) -> &mut ::std::string::String {
&mut self.kubeVersion
}
pub fn take_kubeVersion(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.kubeVersion, ::std::string::String::new())
}
}
impl ::protobuf::Message for Metadata {
fn is_initialized(&self) -> bool {
for v in &self.maintainers {
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_proto3_string_into(wire_type, is, &mut self.name)?;
},
2 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.home)?;
},
3 => {
::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.sources)?;
},
4 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.version)?;
},
5 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.description)?;
},
6 => {
::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.keywords)?;
},
7 => {
::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.maintainers)?;
},
8 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.engine)?;
},
9 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.icon)?;
},
10 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.apiVersion)?;
},
11 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.condition)?;
},
12 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.tags)?;
},
13 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.appVersion)?;
},
14 => {
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.deprecated = tmp;
},
15 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.tillerVersion)?;
},
16 => {
::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(wire_type, is, &mut self.annotations)?;
},
17 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.kubeVersion)?;
},
_ => {
::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);
}
if !self.home.is_empty() {
my_size += ::protobuf::rt::string_size(2, &self.home);
}
for value in &self.sources {
my_size += ::protobuf::rt::string_size(3, &value);
};
if !self.version.is_empty() {
my_size += ::protobuf::rt::string_size(4, &self.version);
}
if !self.description.is_empty() {
my_size += ::protobuf::rt::string_size(5, &self.description);
}
for value in &self.keywords {
my_size += ::protobuf::rt::string_size(6, &value);
};
for value in &self.maintainers {
let len = value.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
};
if !self.engine.is_empty() {
my_size += ::protobuf::rt::string_size(8, &self.engine);
}
if !self.icon.is_empty() {
my_size += ::protobuf::rt::string_size(9, &self.icon);
}
if !self.apiVersion.is_empty() {
my_size += ::protobuf::rt::string_size(10, &self.apiVersion);
}
if !self.condition.is_empty() {
my_size += ::protobuf::rt::string_size(11, &self.condition);
}
if !self.tags.is_empty() {
my_size += ::protobuf::rt::string_size(12, &self.tags);
}
if !self.appVersion.is_empty() {
my_size += ::protobuf::rt::string_size(13, &self.appVersion);
}
if self.deprecated != false {
my_size += 2;
}
if !self.tillerVersion.is_empty() {
my_size += ::protobuf::rt::string_size(15, &self.tillerVersion);
}
my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(16, &self.annotations);
if !self.kubeVersion.is_empty() {
my_size += ::protobuf::rt::string_size(17, &self.kubeVersion);
}
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)?;
}
if !self.home.is_empty() {
os.write_string(2, &self.home)?;
}
for v in &self.sources {
os.write_string(3, &v)?;
};
if !self.version.is_empty() {
os.write_string(4, &self.version)?;
}
if !self.description.is_empty() {
os.write_string(5, &self.description)?;
}
for v in &self.keywords {
os.write_string(6, &v)?;
};
for v in &self.maintainers {
os.write_tag(7, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
};
if !self.engine.is_empty() {
os.write_string(8, &self.engine)?;
}
if !self.icon.is_empty() {
os.write_string(9, &self.icon)?;
}
if !self.apiVersion.is_empty() {
os.write_string(10, &self.apiVersion)?;
}
if !self.condition.is_empty() {
os.write_string(11, &self.condition)?;
}
if !self.tags.is_empty() {
os.write_string(12, &self.tags)?;
}
if !self.appVersion.is_empty() {
os.write_string(13, &self.appVersion)?;
}
if self.deprecated != false {
os.write_bool(14, self.deprecated)?;
}
if !self.tillerVersion.is_empty() {
os.write_string(15, &self.tillerVersion)?;
}
::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(16, &self.annotations, os)?;
if !self.kubeVersion.is_empty() {
os.write_string(17, &self.kubeVersion)?;
}
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() -> Metadata {
Metadata::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: &Metadata| { &m.name },
|m: &mut Metadata| { &mut m.name },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"home",
|m: &Metadata| { &m.home },
|m: &mut Metadata| { &mut m.home },
));
fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"sources",
|m: &Metadata| { &m.sources },
|m: &mut Metadata| { &mut m.sources },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"version",
|m: &Metadata| { &m.version },
|m: &mut Metadata| { &mut m.version },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"description",
|m: &Metadata| { &m.description },
|m: &mut Metadata| { &mut m.description },
));
fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"keywords",
|m: &Metadata| { &m.keywords },
|m: &mut Metadata| { &mut m.keywords },
));
fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<Maintainer>>(
"maintainers",
|m: &Metadata| { &m.maintainers },
|m: &mut Metadata| { &mut m.maintainers },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"engine",
|m: &Metadata| { &m.engine },
|m: &mut Metadata| { &mut m.engine },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"icon",
|m: &Metadata| { &m.icon },
|m: &mut Metadata| { &mut m.icon },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"apiVersion",
|m: &Metadata| { &m.apiVersion },
|m: &mut Metadata| { &mut m.apiVersion },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"condition",
|m: &Metadata| { &m.condition },
|m: &mut Metadata| { &mut m.condition },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"tags",
|m: &Metadata| { &m.tags },
|m: &mut Metadata| { &mut m.tags },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"appVersion",
|m: &Metadata| { &m.appVersion },
|m: &mut Metadata| { &mut m.appVersion },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>(
"deprecated",
|m: &Metadata| { &m.deprecated },
|m: &mut Metadata| { &mut m.deprecated },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"tillerVersion",
|m: &Metadata| { &m.tillerVersion },
|m: &mut Metadata| { &mut m.tillerVersion },
));
fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(
"annotations",
|m: &Metadata| { &m.annotations },
|m: &mut Metadata| { &mut m.annotations },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"kubeVersion",
|m: &Metadata| { &m.kubeVersion },
|m: &mut Metadata| { &mut m.kubeVersion },
));
::protobuf::reflect::MessageDescriptor::new::<Metadata>(
"Metadata",
fields,
file_descriptor_proto()
)
})
}
}
fn default_instance() -> &'static Metadata {
static mut instance: ::protobuf::lazy::Lazy<Metadata> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const Metadata,
};
unsafe {
instance.get(Metadata::new)
}
}
}
impl ::protobuf::Clear for Metadata {
fn clear(&mut self) {
self.name.clear();
self.home.clear();
self.sources.clear();
self.version.clear();
self.description.clear();
self.keywords.clear();
self.maintainers.clear();
self.engine.clear();
self.icon.clear();
self.apiVersion.clear();
self.condition.clear();
self.tags.clear();
self.appVersion.clear();
self.deprecated = false;
self.tillerVersion.clear();
self.annotations.clear();
self.kubeVersion.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for Metadata {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for Metadata {
fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
::protobuf::reflect::ProtobufValueRef::Message(self)
}
}
#[derive(Clone,PartialEq,Eq,Debug,Hash)]
pub enum Metadata_Engine {
UNKNOWN = 0,
GOTPL = 1,
}
impl ::protobuf::ProtobufEnum for Metadata_Engine {
fn value(&self) -> i32 {
*self as i32
}
fn from_i32(value: i32) -> ::std::option::Option<Metadata_Engine> {
match value {
0 => ::std::option::Option::Some(Metadata_Engine::UNKNOWN),
1 => ::std::option::Option::Some(Metadata_Engine::GOTPL),
_ => ::std::option::Option::None
}
}
fn values() -> &'static [Self] {
static values: &'static [Metadata_Engine] = &[
Metadata_Engine::UNKNOWN,
Metadata_Engine::GOTPL,
];
values
}
fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor {
static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const ::protobuf::reflect::EnumDescriptor,
};
unsafe {
descriptor.get(|| {
::protobuf::reflect::EnumDescriptor::new("Metadata_Engine", file_descriptor_proto())
})
}
}
}
impl ::std::marker::Copy for Metadata_Engine {
}
impl ::std::default::Default for Metadata_Engine {
fn default() -> Self {
Metadata_Engine::UNKNOWN
}
}
impl ::protobuf::reflect::ProtobufValue for Metadata_Engine {
fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
::protobuf::reflect::ProtobufValueRef::Enum(self.descriptor())
}
}
static file_descriptor_proto_data: &'static [u8] = b"\
\n\x19hapi/chart/metadata.proto\x12\nhapi.chart\"H\n\nMaintainer\x12\x12\
\n\x04name\x18\x01\x20\x01(\tR\x04name\x12\x14\n\x05email\x18\x02\x20\
\x01(\tR\x05email\x12\x10\n\x03url\x18\x03\x20\x01(\tR\x03url\"\x8f\x05\
\n\x08Metadata\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\x12\x12\n\
\x04home\x18\x02\x20\x01(\tR\x04home\x12\x18\n\x07sources\x18\x03\x20\
\x03(\tR\x07sources\x12\x18\n\x07version\x18\x04\x20\x01(\tR\x07version\
\x12\x20\n\x0bdescription\x18\x05\x20\x01(\tR\x0bdescription\x12\x1a\n\
\x08keywords\x18\x06\x20\x03(\tR\x08keywords\x128\n\x0bmaintainers\x18\
\x07\x20\x03(\x0b2\x16.hapi.chart.MaintainerR\x0bmaintainers\x12\x16\n\
\x06engine\x18\x08\x20\x01(\tR\x06engine\x12\x12\n\x04icon\x18\t\x20\x01\
(\tR\x04icon\x12\x1e\n\napiVersion\x18\n\x20\x01(\tR\napiVersion\x12\x1c\
\n\tcondition\x18\x0b\x20\x01(\tR\tcondition\x12\x12\n\x04tags\x18\x0c\
\x20\x01(\tR\x04tags\x12\x1e\n\nappVersion\x18\r\x20\x01(\tR\nappVersion\
\x12\x1e\n\ndeprecated\x18\x0e\x20\x01(\x08R\ndeprecated\x12$\n\rtillerV\
ersion\x18\x0f\x20\x01(\tR\rtillerVersion\x12G\n\x0bannotations\x18\x10\
\x20\x03(\x0b2%.hapi.chart.Metadata.AnnotationsEntryR\x0bannotations\x12\
\x20\n\x0bkubeVersion\x18\x11\x20\x01(\tR\x0bkubeVersion\x1a>\n\x10Annot\
ationsEntry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\x12\x14\n\x05val\
ue\x18\x02\x20\x01(\tR\x05value:\x028\x01\"\x20\n\x06Engine\x12\x0b\n\
\x07UNKNOWN\x10\0\x12\t\n\x05GOTPL\x10\x01B\x07Z\x05chartb\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()
})
}
}