Struct protobuf::descriptor::DescriptorProto
[−]
[src]
pub struct DescriptorProto { /* fields omitted */ }
Methods
impl DescriptorProto
[src]
fn new() -> DescriptorProto
fn default_instance() -> &'static DescriptorProto
fn clear_name(&mut self)
fn has_name(&self) -> bool
fn set_name(&mut self, v: String)
fn mut_name(&mut self) -> &mut String
fn take_name(&mut self) -> String
fn get_name(&self) -> &str
fn clear_field(&mut self)
fn set_field(&mut self, v: RepeatedField<FieldDescriptorProto>)
fn mut_field(&mut self) -> &mut RepeatedField<FieldDescriptorProto>
fn take_field(&mut self) -> RepeatedField<FieldDescriptorProto>
fn get_field(&self) -> &[FieldDescriptorProto]
fn clear_extension(&mut self)
fn set_extension(&mut self, v: RepeatedField<FieldDescriptorProto>)
fn mut_extension(&mut self) -> &mut RepeatedField<FieldDescriptorProto>
fn take_extension(&mut self) -> RepeatedField<FieldDescriptorProto>
fn get_extension(&self) -> &[FieldDescriptorProto]
fn clear_nested_type(&mut self)
fn set_nested_type(&mut self, v: RepeatedField<DescriptorProto>)
fn mut_nested_type(&mut self) -> &mut RepeatedField<DescriptorProto>
fn take_nested_type(&mut self) -> RepeatedField<DescriptorProto>
fn get_nested_type(&self) -> &[DescriptorProto]
fn clear_enum_type(&mut self)
fn set_enum_type(&mut self, v: RepeatedField<EnumDescriptorProto>)
fn mut_enum_type(&mut self) -> &mut RepeatedField<EnumDescriptorProto>
fn take_enum_type(&mut self) -> RepeatedField<EnumDescriptorProto>
fn get_enum_type(&self) -> &[EnumDescriptorProto]
fn clear_extension_range(&mut self)
fn set_extension_range(
&mut self,
v: RepeatedField<DescriptorProto_ExtensionRange>
)
&mut self,
v: RepeatedField<DescriptorProto_ExtensionRange>
)
fn mut_extension_range(
&mut self
) -> &mut RepeatedField<DescriptorProto_ExtensionRange>
&mut self
) -> &mut RepeatedField<DescriptorProto_ExtensionRange>
fn take_extension_range(
&mut self
) -> RepeatedField<DescriptorProto_ExtensionRange>
&mut self
) -> RepeatedField<DescriptorProto_ExtensionRange>
fn get_extension_range(&self) -> &[DescriptorProto_ExtensionRange]
fn clear_oneof_decl(&mut self)
fn set_oneof_decl(&mut self, v: RepeatedField<OneofDescriptorProto>)
fn mut_oneof_decl(&mut self) -> &mut RepeatedField<OneofDescriptorProto>
fn take_oneof_decl(&mut self) -> RepeatedField<OneofDescriptorProto>
fn get_oneof_decl(&self) -> &[OneofDescriptorProto]
fn clear_options(&mut self)
fn has_options(&self) -> bool
fn set_options(&mut self, v: MessageOptions)
fn mut_options(&mut self) -> &mut MessageOptions
fn take_options(&mut self) -> MessageOptions
fn get_options(&self) -> &MessageOptions
fn clear_reserved_range(&mut self)
fn set_reserved_range(
&mut self,
v: RepeatedField<DescriptorProto_ReservedRange>
)
&mut self,
v: RepeatedField<DescriptorProto_ReservedRange>
)
fn mut_reserved_range(
&mut self
) -> &mut RepeatedField<DescriptorProto_ReservedRange>
&mut self
) -> &mut RepeatedField<DescriptorProto_ReservedRange>
fn take_reserved_range(
&mut self
) -> RepeatedField<DescriptorProto_ReservedRange>
&mut self
) -> RepeatedField<DescriptorProto_ReservedRange>
fn get_reserved_range(&self) -> &[DescriptorProto_ReservedRange]
fn clear_reserved_name(&mut self)
fn set_reserved_name(&mut self, v: RepeatedField<String>)
fn mut_reserved_name(&mut self) -> &mut RepeatedField<String>
fn take_reserved_name(&mut self) -> RepeatedField<String>
fn get_reserved_name(&self) -> &[String]
Trait Implementations
impl PartialEq for DescriptorProto
[src]
fn eq(&self, __arg_0: &DescriptorProto) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &DescriptorProto) -> bool
This method tests for !=
.
impl Clone for DescriptorProto
[src]
fn clone(&self) -> DescriptorProto
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Default for DescriptorProto
[src]
fn default() -> DescriptorProto
Returns the "default value" for a type. Read more
impl Sync for DescriptorProto
[src]
impl Message for DescriptorProto
[src]
fn is_initialized(&self) -> bool
fn merge_from(&mut self, is: &mut CodedInputStream) -> ProtobufResult<()>
fn compute_size(&self) -> u32
fn write_to_with_cached_sizes(
&self,
os: &mut CodedOutputStream
) -> ProtobufResult<()>
&self,
os: &mut CodedOutputStream
) -> ProtobufResult<()>
fn get_cached_size(&self) -> u32
fn get_unknown_fields(&self) -> &UnknownFields
fn mut_unknown_fields(&mut self) -> &mut UnknownFields
fn as_any(&self) -> &Any
fn as_any_mut(&mut self) -> &mut Any
fn into_any(self: Box<Self>) -> Box<Any>
fn descriptor(&self) -> &'static MessageDescriptor
fn write_to(&self, os: &mut CodedOutputStream) -> ProtobufResult<()>
fn write_length_delimited_to(
&self,
os: &mut CodedOutputStream
) -> ProtobufResult<()>
&self,
os: &mut CodedOutputStream
) -> ProtobufResult<()>