Struct protobuf::descriptor::GeneratedCodeInfo_Annotation
source · pub struct GeneratedCodeInfo_Annotation {
pub unknown_fields: UnknownFields,
pub cached_size: CachedSize,
/* private fields */
}
Fields§
§unknown_fields: UnknownFields
§cached_size: CachedSize
Implementations§
source§impl GeneratedCodeInfo_Annotation
impl GeneratedCodeInfo_Annotation
pub fn new() -> GeneratedCodeInfo_Annotation
pub fn clear_path(&mut self)
pub fn set_path(&mut self, v: Vec<i32>)
pub fn mut_path(&mut self) -> &mut Vec<i32>
pub fn take_path(&mut self) -> Vec<i32>
pub fn get_path(&self) -> &[i32]
pub fn clear_source_file(&mut self)
pub fn has_source_file(&self) -> bool
pub fn set_source_file(&mut self, v: String)
pub fn mut_source_file(&mut self) -> &mut String
pub fn take_source_file(&mut self) -> String
pub fn get_source_file(&self) -> &str
pub fn clear_begin(&mut self)
pub fn has_begin(&self) -> bool
pub fn set_begin(&mut self, v: i32)
pub fn get_begin(&self) -> i32
pub fn clear_end(&mut self)
pub fn has_end(&self) -> bool
pub fn set_end(&mut self, v: i32)
pub fn get_end(&self) -> i32
Trait Implementations§
source§impl Clear for GeneratedCodeInfo_Annotation
impl Clear for GeneratedCodeInfo_Annotation
source§impl Clone for GeneratedCodeInfo_Annotation
impl Clone for GeneratedCodeInfo_Annotation
source§fn clone(&self) -> GeneratedCodeInfo_Annotation
fn clone(&self) -> GeneratedCodeInfo_Annotation
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for GeneratedCodeInfo_Annotation
impl Debug for GeneratedCodeInfo_Annotation
source§impl Default for GeneratedCodeInfo_Annotation
impl Default for GeneratedCodeInfo_Annotation
source§fn default() -> GeneratedCodeInfo_Annotation
fn default() -> GeneratedCodeInfo_Annotation
Returns the “default value” for a type. Read more
source§impl Message for GeneratedCodeInfo_Annotation
impl Message for GeneratedCodeInfo_Annotation
source§fn is_initialized(&self) -> bool
fn is_initialized(&self) -> bool
True iff all required fields are initialized.
Always returns
true
for protobuf 3. Read moresource§fn merge_from(&mut self, is: &mut CodedInputStream<'_>) -> ProtobufResult<()>
fn merge_from(&mut self, is: &mut CodedInputStream<'_>) -> ProtobufResult<()>
Update this message object with fields read from given stream.
source§fn compute_size(&self) -> u32
fn compute_size(&self) -> u32
Compute and cache size of this message and all nested messages
source§fn write_to_with_cached_sizes(
&self,
os: &mut CodedOutputStream<'_>
) -> ProtobufResult<()>
fn write_to_with_cached_sizes(
&self,
os: &mut CodedOutputStream<'_>
) -> ProtobufResult<()>
Write message to the stream. Read more
source§fn get_cached_size(&self) -> u32
fn get_cached_size(&self) -> u32
Get size previously computed by
compute_size
.source§fn get_unknown_fields(&self) -> &UnknownFields
fn get_unknown_fields(&self) -> &UnknownFields
Get a reference to unknown fields.
source§fn mut_unknown_fields(&mut self) -> &mut UnknownFields
fn mut_unknown_fields(&mut self) -> &mut UnknownFields
Get a mutable reference to unknown fields.
source§fn as_any_mut(&mut self) -> &mut dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
View self as mutable
Any
.source§fn descriptor(&self) -> &'static MessageDescriptor
fn descriptor(&self) -> &'static MessageDescriptor
Message descriptor for this message, used for reflection.
source§fn new() -> GeneratedCodeInfo_Annotation
fn new() -> GeneratedCodeInfo_Annotation
Create an empty message object.
source§fn descriptor_static() -> &'static MessageDescriptor
fn descriptor_static() -> &'static MessageDescriptor
Get message descriptor for message type.
source§fn default_instance() -> &'static GeneratedCodeInfo_Annotation
fn default_instance() -> &'static GeneratedCodeInfo_Annotation
Return a pointer to default immutable message.
source§fn write_to(&self, os: &mut CodedOutputStream<'_>) -> ProtobufResult<()>
fn write_to(&self, os: &mut CodedOutputStream<'_>) -> ProtobufResult<()>
Write the message to the stream. Read more
source§fn write_length_delimited_to(
&self,
os: &mut CodedOutputStream<'_>
) -> ProtobufResult<()>
fn write_length_delimited_to(
&self,
os: &mut CodedOutputStream<'_>
) -> ProtobufResult<()>
Write the message to the stream prepending the message with message length
encoded as varint. Read more
source§fn write_length_delimited_to_vec(&self, vec: &mut Vec<u8>) -> ProtobufResult<()>
fn write_length_delimited_to_vec(&self, vec: &mut Vec<u8>) -> ProtobufResult<()>
Write the message to the vec, prepend the message with message length
encoded as varint. Read more
source§fn merge_from_bytes(&mut self, bytes: &[u8]) -> ProtobufResult<()>
fn merge_from_bytes(&mut self, bytes: &[u8]) -> ProtobufResult<()>
Update this message object with fields read from given stream.
source§fn check_initialized(&self) -> ProtobufResult<()>
fn check_initialized(&self) -> ProtobufResult<()>
Check if all required fields of this object are initialized.
source§fn write_to_writer(&self, w: &mut dyn Write) -> ProtobufResult<()>
fn write_to_writer(&self, w: &mut dyn Write) -> ProtobufResult<()>
Write the message to the writer.
source§fn write_to_vec(&self, v: &mut Vec<u8>) -> ProtobufResult<()>
fn write_to_vec(&self, v: &mut Vec<u8>) -> ProtobufResult<()>
Write the message to bytes vec.
source§fn write_to_bytes(&self) -> ProtobufResult<Vec<u8>>
fn write_to_bytes(&self) -> ProtobufResult<Vec<u8>>
Write the message to bytes vec.
source§fn write_length_delimited_to_writer(
&self,
w: &mut dyn Write
) -> ProtobufResult<()>
fn write_length_delimited_to_writer(
&self,
w: &mut dyn Write
) -> ProtobufResult<()>
Write the message to the writer, prepend the message with message length
encoded as varint. Read more
source§fn write_length_delimited_to_bytes(&self) -> ProtobufResult<Vec<u8>>
fn write_length_delimited_to_bytes(&self) -> ProtobufResult<Vec<u8>>
Write the message to the bytes vec, prepend the message with message length
encoded as varint. Read more