id stringlengths 15 54 | text stringlengths 3 133k | title stringclasses 1
value |
|---|---|---|
message_type/rubygenerated_10.txt | Describes the API of message objects that the protocol buffer compiler
generates for any given protocol definition. | |
message_type/331_54.txt | Already on GitHub? [ Sign in
](/login?return_to=%2Fnanopb%2Fnanopb%2Fissues%2Fnew%2Fchoose) to your account | |
message_type/rubygenerated_72.txt |
message.bar = 0
puts message.bar.inspect # => :VALUE_A
message.bar = :VALUE_B
puts message.bar.inspect # => :VALUE_B
message.bar = 999
puts message.bar.inspect # => 999
# Raises: RangeError: Unknown symbol value for enum field.
message.bar = :UNDEFINED_VALUE
# ... | |
message_type/331_53.txt | By clicking “Sign up for GitHub”, you agree to our [ terms of service
](https://docs.github.com/terms) and [ privacy statement
](https://docs.github.com/privacy) . We’ll occasionally send you account
related emails. | |
message_type/331_59.txt | Closed | |
message_type/n67eEBCx5vI_142.txt | Jun 12, 2019, 4:57:50 PM 6/12/19 | |
message_type/n67eEBCx5vI_88.txt | error_callback.png | |
message_type/331_141.txt | [

](/PetteriAimonen) | |
message_type/rubygenerated_11.txt | You should read the language guides for [ proto2 ](/programming-
guides/proto2/) or [ proto3 ](/programming-guides/proto3/) before reading this
document. | |
message_type/331_10.txt | * [ Enterprise ](/enterprise)
* [ Teams ](/team)
* [ Startups ](/enterprise/startups)
* [ Education ](https://education.github.com) | |
message_type/331_68.txt | I need to create a submessage if "logs" which are variable in length and then
that submessage need to be held within another message which can tell me the
number of logs I have. I then need to pack all this data into buffer which
cannot exceed 512 bytes. | |
message_type/331_82.txt | I'm not sure there is much need to encode log_count - the receiver can just
count the messages when decoding them anyway. | |
message_type/n67eEBCx5vI_127.txt | to nanopb | |
message_type/n67eEBCx5vI_28.txt | Sign in to report message | |
message_type/rubygenerated_48.txt |
m = MyMessage.new
raise unless !m.has_foo?
m.foo = 0
raise unless m.has_foo?
m.clear_foo
raise unless !m.has_foo?
| |
message_type/n67eEBCx5vI_43.txt | function_callback.h | |
message_type/n67eEBCx5vI_161.txt | Jun 12, 2019, 5:05:15 PM 6/12/19 | |
message_type/TibrvMsgaddFieldhtm_6.txt | Description | |
message_type/331_41.txt | * [ Notifications ](/login?return_to=%2Fnanopb%2Fnanopb)
* [ Fork 809 ](/login?return_to=%2Fnanopb%2Fnanopb)
* [ Star 4k ](/login?return_to=%2Fnanopb%2Fnanopb) | |
message_type/rubygenerated_78.txt | The Ruby class corresponding to ` Foo ` will have members called ` name ` and
` serial_number ` with accessor methods just like regular [ fields
](/reference/ruby/ruby-generated/#fields) . However, unlike regular fields, at
most one of the fields in a oneof can be set at a time, so setting one field
will clear the othe... | |
message_type/rubygenerated_32.txt | When you create a message, you can conveniently initialize fields in the
constructor. Here is an example of constructing and using a message: | |
message_type/n67eEBCx5vI_41.txt | encode_callbacks.c | |
message_type/n67eEBCx5vI_128.txt | Hi Petteri, | |
message_type/TibrvMsgaddFieldhtm_3.txt | Declaration
TibrvStatus addField(const TibrvMsgField& field)
Purpose
Add a field object to a message. | |
message_type/331_0.txt | Skip to content | |
message_type/n67eEBCx5vI_50.txt | Sign in to reply to author | |
message_type/331_174.txt | You can’t perform that action at this time. | |
message_type/331_147.txt | Sorry, something went wrong. | |
message_type/331_132.txt | Sorry, something went wrong. | |
message_type/n67eEBCx5vI_78.txt | Show original message | |
message_type/n67eEBCx5vI_35.txt | I have created a function in "function_callback.h" to handle and then encode
values in encode_callbacks.c for the " int32 id " | |
message_type/n67eEBCx5vI_90.txt |  | |
message_type/331_38.txt | You signed in with another tab or window. [ Reload ]() to refresh your
session. You signed out in another tab or window. [ Reload ]() to refresh
your session. You switched accounts on another tab or window. [ Reload ]() to
refresh your session. Dismiss alert | |
message_type/331_124.txt | **[ umanayana ](/umanayana) ** commented Aug 19, 2018 • | |
message_type/331_9.txt | For | |
message_type/n67eEBCx5vI_182.txt | Sign in to reply to author | |
message_type/331_113.txt | ### | |
message_type/n67eEBCx5vI_121.txt | You do not have permission to delete messages in this group | |
message_type/331_160.txt | Labels | |
message_type/331_60.txt | # Help creating repeated submessages #331 | |
message_type/331_16.txt | * [ GitHub Sponsors Fund open source developers ](/sponsors) | |
message_type/rubygenerated_29.txt | * ` Message#dup ` , ` Message#clone ` : Performs a shallow copy of this message and returns the new copy.
* ` Message#== ` : Performs a deep equality comparison between two messages.
* ` Message#hash ` : Computes a shallow hash of the message’s value.
* ` Message#to_hash ` , ` Message#to_h ` : Converts the o... | |
message_type/n67eEBCx5vI_198.txt | Forward | |
message_type/rubygenerated_53.txt |
if message.has_submessage_field?
raise unless message.submessage_field == nil
puts "Submessage field is unset."
else
raise unless message.submessage_field != nil
message.clear_submessage_field
raise unless message.submessage_field == nil
puts "Cleared submessage fie... | |
message_type/331_155.txt | Sorry, something went wrong. | |
message_type/n67eEBCx5vI_55.txt | Copy link | |
message_type/331_140.txt | Sorry, something went wrong. | |
message_type/331_172.txt | ### Footer navigation | |
message_type/331_168.txt | 2 participants | |
message_type/331_19.txt | * [ Topics ](/topics)
* [ Trending ](/trending)
* [ Collections ](/collections) | |
message_type/n67eEBCx5vI_203.txt | Google apps | |
message_type/331_142.txt | Copy link | |
message_type/n67eEBCx5vI_66.txt | ### geekco...@gmail.com | |
message_type/n67eEBCx5vI_168.txt | Copy link | |
message_type/rubygenerated_44.txt | * **Number types** : the value should be a ` Fixnum ` , ` Bignum ` , or ` Float ` . The value you assign must be exactly representable in the target type. So assigning ` 1.0 ` to an int32 field is ok, but assigning ` 1.2 ` is not.
* **Boolean fields** : the value must be ` true ` or ` false ` . No other values wil... | |
message_type/331_109.txt | Sorry, something went wrong. | |
message_type/331_143.txt | Member | |
message_type/331_144.txt | ### | |
message_type/331_136.txt | ### | |
message_type/n67eEBCx5vI_166.txt | Delete | |
message_type/n67eEBCx5vI_173.txt | to nanopb | |
message_type/331_36.txt | [ Sign in
](/login?return_to=https%3A%2F%2Fgithub.com%2Fnanopb%2Fnanopb%2Fissues%2F331) | |
message_type/331_2.txt | [ ](https://github.com/) | |
message_type/rubygenerated_60.txt |
int_repeatedfield = Google::Protobuf::RepeatedField.new(:int32, [1, 2, 3])
raise unless !int_repeatedfield.empty?
# Raises TypeError.
int_repeatedfield[2] = "not an int32"
# Raises RangeError
int_repeatedfield[2] = 2**33
message.int32_repeated_field = int_repeat... | |
message_type/n67eEBCx5vI_155.txt | Hi, | |
message_type/n67eEBCx5vI_16.txt |  | |
message_type/n67eEBCx5vI_132.txt | center_x : 2.2 | |
message_type/n67eEBCx5vI_196.txt | Reply all | |
message_type/TibrvMsgaddFieldhtm_19.txt | • Code readability.
• Type checking.
• Accept constants and literals directly.
(Type-specific methods yield even further advantages when extracting or updating fields.) | |
message_type/n67eEBCx5vI_30.txt | Either email addresses are anonymous for this group or you need the view
member email addresses permission to view the original message | |
message_type/331_20.txt | * [ Pricing ](/pricing) | |
message_type/331_8.txt | * Solutions | |
message_type/n67eEBCx5vI_136.txt | zaxis : {20,50,40,60,12,14,25,19, ....} | |
message_type/331_17.txt | * [ The ReadME Project GitHub community articles ](/readme) | |
message_type/n67eEBCx5vI_151.txt | Sign in to report message | |
message_type/rubygenerated_30.txt | The message classes also define the following methods as static. (In general
we prefer static methods, since regular methods can conflict with field names
you defined in your .proto file.) | |
message_type/rubygenerated_59.txt | Repeated fields are represented using a custom class `
Google::Protobuf::RepeatedField ` . This class acts like a Ruby ` Array ` and
mixes in ` Enumerable ` . Unlike a regular Ruby array, ` RepeatedField ` is
constructed with a specific type and expects all of the array members to have
the correct type. The types and r... | |
message_type/TibrvMsgaddFieldhtm_7.txt | field | |
message_type/rubygenerated_80.txt | For proto2 messages, oneof members have individual ` has_...? ` methods as
well: | |
message_type/n67eEBCx5vI_133.txt | center_y : 3.2 | |
message_type/331_135.txt | Member | |
message_type/rubygenerated_79.txt |
message = Foo.new
# Fields have their defaults.
raise unless message.name == ""
raise unless message.serial_number == 0
raise unless message.test_oneof == nil
message.name = "Bender"
raise unless message.name == "Bender"
raise unless message.serial_number == 0
rai... | |
message_type/331_23.txt | Search | |
message_type/331_111.txt | Copy link | |
message_type/331_99.txt | Sorry, something went wrong. | |
message_type/n67eEBCx5vI_95.txt | Sign in to reply to author | |
message_type/331_86.txt | [

](/umanayana) | |
message_type/331_115.txt | pb_encode_delimited() doesn't work inside callbacks, instead you should use
pb_encode_tag() and then pb_encode_submessage(). | |
message_type/331_117.txt |
pb_encode_tag(stream, PB_WT_STRING, mqtt_log_pl_t_serial_tag);
pb_encode_bytes(...);
pb_encode_tag(stream, PB_WT_STRING, mqtt_log_pl_t_logs_tag);
pb_encode_bytes(...);
| |
message_type/rubygenerated_58.txt | ### Repeated Fields | |
message_type/n67eEBCx5vI_199.txt | 0 new messages | |
message_type/TibrvMsgaddFieldhtm_21.txt | • Add Scalar.
• Add Array.
• Add Nested Message.
• Add String.
• Add Opaque Byte Sequence.
• Add XML Byte Sequence.
• Add DateTime.
See Also
Add Scalar | |
message_type/n67eEBCx5vI_67.txt | unread, | |
message_type/rubygenerated_45.txt | No automatic ` #to_s ` , ` #to_i ` , etc. calls will happen to perform
automatic conversion. You should convert values yourself first, if necessary. | |
message_type/331_156.txt | [

](/PetteriAimonen) [ PetteriAimonen ](/PetteriAimonen) closed this as [
completed
](/nanopb/nanopb/issues?q=is%3Aissue+is%3Aclosed+archived%3Afalse+reason%3Acompleted)
Nov 10, 2018 | |
message_type/331_52.txt |
Sign up for GitHub | |
message_type/331_28.txt | Include my email address so I can be contacted | |
message_type/rubygenerated_51.txt |
if message.submessage_field.nil?
puts "Submessage field is unset."
else
message.submessage_field = nil
puts "Cleared submessage field."
end
| |
message_type/n67eEBCx5vI_20.txt | Reply to author | |
message_type/n67eEBCx5vI_185.txt | Delete |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.