Struct protobuf::descriptor::FileDescriptorProto [] [src]

pub struct FileDescriptorProto {
    // some 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<'a>(&'a mut self) -> &'a mut String

fn take_name(&mut self) -> String

fn get_name<'a>(&'a self) -> &'a str

fn clear_package(&mut self)

fn has_package(&self) -> bool

fn set_package(&mut self, v: String)

fn mut_package<'a>(&'a mut self) -> &'a mut String

fn take_package(&mut self) -> String

fn get_package<'a>(&'a self) -> &'a str

fn clear_dependency(&mut self)

fn set_dependency(&mut self, v: RepeatedField<String>)

fn mut_dependency<'a>(&'a mut self) -> &'a mut RepeatedField<String>

fn take_dependency(&mut self) -> RepeatedField<String>

fn get_dependency<'a>(&'a self) -> &'a [String]

fn clear_public_dependency(&mut self)

fn set_public_dependency(&mut self, v: Vec<i32>)

fn mut_public_dependency<'a>(&'a mut self) -> &'a mut Vec<i32>

fn take_public_dependency(&mut self) -> Vec<i32>

fn get_public_dependency<'a>(&'a self) -> &'a [i32]

fn clear_weak_dependency(&mut self)

fn set_weak_dependency(&mut self, v: Vec<i32>)

fn mut_weak_dependency<'a>(&'a mut self) -> &'a mut Vec<i32>

fn take_weak_dependency(&mut self) -> Vec<i32>

fn get_weak_dependency<'a>(&'a self) -> &'a [i32]

fn clear_message_type(&mut self)

fn set_message_type(&mut self, v: RepeatedField<DescriptorProto>)

fn mut_message_type<'a>(&'a mut self) -> &'a mut RepeatedField<DescriptorProto>

fn take_message_type(&mut self) -> RepeatedField<DescriptorProto>

fn get_message_type<'a>(&'a self) -> &'a [DescriptorProto]

fn clear_enum_type(&mut self)

fn set_enum_type(&mut self, v: RepeatedField<EnumDescriptorProto>)

fn mut_enum_type<'a>(&'a mut self) -> &'a mut RepeatedField<EnumDescriptorProto>

fn take_enum_type(&mut self) -> RepeatedField<EnumDescriptorProto>

fn get_enum_type<'a>(&'a self) -> &'a [EnumDescriptorProto]

fn clear_service(&mut self)

fn set_service(&mut self, v: RepeatedField<ServiceDescriptorProto>)

fn mut_service<'a>(&'a mut self) -> &'a mut RepeatedField<ServiceDescriptorProto>

fn take_service(&mut self) -> RepeatedField<ServiceDescriptorProto>

fn get_service<'a>(&'a self) -> &'a [ServiceDescriptorProto]

fn clear_extension(&mut self)

fn set_extension(&mut self, v: RepeatedField<FieldDescriptorProto>)

fn mut_extension<'a>(&'a mut self) -> &'a mut RepeatedField<FieldDescriptorProto>

fn take_extension(&mut self) -> RepeatedField<FieldDescriptorProto>

fn get_extension<'a>(&'a self) -> &'a [FieldDescriptorProto]

fn clear_options(&mut self)

fn has_options(&self) -> bool

fn set_options(&mut self, v: FileOptions)

fn mut_options<'a>(&'a mut self) -> &'a mut FileOptions

fn take_options(&mut self) -> FileOptions

fn get_options<'a>(&'a self) -> &'a 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<'a>(&'a mut self) -> &'a mut SourceCodeInfo

fn take_source_code_info(&mut self) -> SourceCodeInfo

fn get_source_code_info<'a>(&'a self) -> &'a SourceCodeInfo

Trait Implementations

impl Default for FileDescriptorProto
[src]

fn default() -> FileDescriptorProto

Returns the "default value" for a type. Read more

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 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<()>

fn get_cached_size(&self) -> u32

fn get_unknown_fields<'s>(&'s self) -> &'s UnknownFields

fn mut_unknown_fields<'s>(&'s mut self) -> &'s 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<()>

fn merge_from_bytes(&mut self, bytes: &[u8]) -> ProtobufResult<()>

fn check_initialized(&self)

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]

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 !=.

impl Debug for FileDescriptorProto
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.