Struct protobuf::descriptor::FileDescriptorProto
[−]
[src]
pub struct FileDescriptorProto { /* fields omitted */ }
Methods
impl FileDescriptorProto
[src]
fn new() -> FileDescriptorProto
fn default_instance() -> &'static FileDescriptorProto
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_package(&mut self)
fn has_package(&self) -> bool
fn set_package(&mut self, v: String)
fn mut_package(&mut self) -> &mut String
fn take_package(&mut self) -> String
fn get_package(&self) -> &str
fn clear_dependency(&mut self)
fn set_dependency(&mut self, v: RepeatedField<String>)
fn mut_dependency(&mut self) -> &mut RepeatedField<String>
fn take_dependency(&mut self) -> RepeatedField<String>
fn get_dependency(&self) -> &[String]
fn clear_public_dependency(&mut self)
fn set_public_dependency(&mut self, v: Vec<i32>)
fn mut_public_dependency(&mut self) -> &mut Vec<i32>
fn take_public_dependency(&mut self) -> Vec<i32>
fn get_public_dependency(&self) -> &[i32]
fn clear_weak_dependency(&mut self)
fn set_weak_dependency(&mut self, v: Vec<i32>)
fn mut_weak_dependency(&mut self) -> &mut Vec<i32>
fn take_weak_dependency(&mut self) -> Vec<i32>
fn get_weak_dependency(&self) -> &[i32]
fn clear_message_type(&mut self)
fn set_message_type(&mut self, v: RepeatedField<DescriptorProto>)
fn mut_message_type(&mut self) -> &mut RepeatedField<DescriptorProto>
fn take_message_type(&mut self) -> RepeatedField<DescriptorProto>
fn get_message_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_service(&mut self)
fn set_service(&mut self, v: RepeatedField<ServiceDescriptorProto>)
fn mut_service(&mut self) -> &mut RepeatedField<ServiceDescriptorProto>
fn take_service(&mut self) -> RepeatedField<ServiceDescriptorProto>
fn get_service(&self) -> &[ServiceDescriptorProto]
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_options(&mut self)
fn has_options(&self) -> bool
fn set_options(&mut self, v: FileOptions)
fn mut_options(&mut self) -> &mut FileOptions
fn take_options(&mut self) -> FileOptions
fn get_options(&self) -> &FileOptions
fn clear_source_code_info(&mut self)
fn has_source_code_info(&self) -> bool
fn set_source_code_info(&mut self, v: SourceCodeInfo)
fn mut_source_code_info(&mut self) -> &mut SourceCodeInfo
fn take_source_code_info(&mut self) -> SourceCodeInfo
fn get_source_code_info(&self) -> &SourceCodeInfo
fn clear_syntax(&mut self)
fn has_syntax(&self) -> bool
fn set_syntax(&mut self, v: String)
fn mut_syntax(&mut self) -> &mut String
fn take_syntax(&mut self) -> String
fn get_syntax(&self) -> &str
Trait Implementations
impl Clone for FileDescriptorProto
[src]
fn clone(&self) -> FileDescriptorProto
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 FileDescriptorProto
[src]
fn default() -> FileDescriptorProto
Returns the "default value" for a type. Read more
impl Sync for FileDescriptorProto
[src]
impl Message for FileDescriptorProto
[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<()>
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 type_id(&self) -> TypeId
fn as_any(&self) -> &Any
fn descriptor(&self) -> &'static MessageDescriptor
fn write_to(&self, os: &mut CodedOutputStream) -> ProtobufResult<()>
fn write_length_delimited_to(&self,
os: &mut CodedOutputStream)
-> ProtobufResult<()>
os: &mut CodedOutputStream)
-> ProtobufResult<()>
fn merge_from_bytes(&mut self, bytes: &[u8]) -> ProtobufResult<()>
fn check_initialized(&self) -> ProtobufResult<()>
fn write_to_writer(&self, w: &mut Write) -> ProtobufResult<()>
fn write_to_vec(&self, v: &mut Vec<u8>) -> ProtobufResult<()>
fn write_to_bytes(&self) -> ProtobufResult<Vec<u8>>
fn write_length_delimited_to_writer(&self, w: &mut Write) -> ProtobufResult<()>
fn write_length_delimited_to_bytes(&self) -> ProtobufResult<Vec<u8>>
impl MessageStatic for FileDescriptorProto
[src]
fn new() -> FileDescriptorProto
fn descriptor_static(_: Option<FileDescriptorProto>)
-> &'static MessageDescriptor
-> &'static MessageDescriptor
impl Clear for FileDescriptorProto
[src]
fn clear(&mut self)
impl PartialEq for FileDescriptorProto
[src]
fn eq(&self, other: &FileDescriptorProto) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.