Struct protobuf::descriptor::FieldDescriptorProto
[−]
[src]
pub struct FieldDescriptorProto { /* fields omitted */ }
Methods
impl FieldDescriptorProto
[src]
fn new() -> FieldDescriptorProto
fn default_instance() -> &'static FieldDescriptorProto
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_number(&mut self)
fn has_number(&self) -> bool
fn set_number(&mut self, v: i32)
fn get_number(&self) -> i32
fn clear_label(&mut self)
fn has_label(&self) -> bool
fn set_label(&mut self, v: FieldDescriptorProto_Label)
fn get_label(&self) -> FieldDescriptorProto_Label
fn clear_field_type(&mut self)
fn has_field_type(&self) -> bool
fn set_field_type(&mut self, v: FieldDescriptorProto_Type)
fn get_field_type(&self) -> FieldDescriptorProto_Type
fn clear_type_name(&mut self)
fn has_type_name(&self) -> bool
fn set_type_name(&mut self, v: String)
fn mut_type_name(&mut self) -> &mut String
fn take_type_name(&mut self) -> String
fn get_type_name(&self) -> &str
fn clear_extendee(&mut self)
fn has_extendee(&self) -> bool
fn set_extendee(&mut self, v: String)
fn mut_extendee(&mut self) -> &mut String
fn take_extendee(&mut self) -> String
fn get_extendee(&self) -> &str
fn clear_default_value(&mut self)
fn has_default_value(&self) -> bool
fn set_default_value(&mut self, v: String)
fn mut_default_value(&mut self) -> &mut String
fn take_default_value(&mut self) -> String
fn get_default_value(&self) -> &str
fn clear_oneof_index(&mut self)
fn has_oneof_index(&self) -> bool
fn set_oneof_index(&mut self, v: i32)
fn get_oneof_index(&self) -> i32
fn clear_json_name(&mut self)
fn has_json_name(&self) -> bool
fn set_json_name(&mut self, v: String)
fn mut_json_name(&mut self) -> &mut String
fn take_json_name(&mut self) -> String
fn get_json_name(&self) -> &str
fn clear_options(&mut self)
fn has_options(&self) -> bool
fn set_options(&mut self, v: FieldOptions)
fn mut_options(&mut self) -> &mut FieldOptions
fn take_options(&mut self) -> FieldOptions
fn get_options(&self) -> &FieldOptions
Trait Implementations
impl Clone for FieldDescriptorProto
[src]
fn clone(&self) -> FieldDescriptorProto
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 FieldDescriptorProto
[src]
fn default() -> FieldDescriptorProto
Returns the "default value" for a type. Read more
impl Sync for FieldDescriptorProto
[src]
impl Message for FieldDescriptorProto
[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 FieldDescriptorProto
[src]
fn new() -> FieldDescriptorProto
fn descriptor_static(_: Option<FieldDescriptorProto>)
-> &'static MessageDescriptor
-> &'static MessageDescriptor
impl Clear for FieldDescriptorProto
[src]
fn clear(&mut self)
impl PartialEq for FieldDescriptorProto
[src]
fn eq(&self, other: &FieldDescriptorProto) -> 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 !=
.