id stringlengths 15 54 | text stringlengths 3 133k | title stringclasses 1
value |
|---|---|---|
message_type/n67eEBCx5vI_125.txt | Show original message | |
message_type/331_134.txt | Copy link | |
message_type/n67eEBCx5vI_74.txt | You do not have permission to delete messages in this group | |
message_type/n67eEBCx5vI_102.txt | Sign in to report message | |
message_type/rubygenerated_18.txt | The compiler will read the files ` src/foo.proto ` and ` src/bar/baz.proto `
and produce two output files: ` build/gen/foo_pb.rb ` and `
build/gen/bar/baz_pb.rb ` . The compiler will automatically create the
directory ` build/gen/bar ` if necessary, but it will _not_ create ` build `
or ` build/gen ` ; they must alread... | |
message_type/331_108.txt |
bool CallBack_mqtt_logs_pl_t(pb_ostream_t *stream, const pb_field_t *field, void * const *arg)
{
/*Setup mqtt_log_pl_t callbacks
Encode 1 mqtt_log_pl_t and return*/
pb_encode_delimited(stream, mqtt_log_pl_t_field, ¤t_log)
}
Encode_As_Many_Logs_As_Possible
{
... | |
message_type/331_5.txt | * [ Actions Automate any workflow ](/features/actions)
* [ Packages Host and manage packages ](/features/packages)
* [ Security Find and fix vulnerabilities ](/features/security)
* [ Codespaces Instant dev environments ](/features/codespaces)
* [ Copilot Write better code with AI ](/featur... | |
message_type/331_149.txt | Copy link | |
message_type/n67eEBCx5vI_110.txt | So inside the xaxis repeated field, do you want one item, a few items or
unlimited items? If it's only a few, just set a maximum count for that
field. Otherwise you'll need nested callbacks.
\--
Petteri | |
message_type/331_102.txt | Author | |
message_type/rubygenerated_63.txt | ### Map Fields | |
message_type/n67eEBCx5vI_37.txt | I cannot define the size of it in .proto file as I dont know the size so I
have to use callbacks. | |
message_type/rubygenerated_5.txt | * [ Search Results ](/search/) | |
message_type/331_67.txt | Hello, | |
message_type/rubygenerated_64.txt | Map fields are represented using a special class that acts like a Ruby ` Hash
` ( ` Google::Protobuf::Map ` ). Unlike a regular Ruby hash, ` Map ` is
constructed with a specific type for the key and value and expects all of the
map’s keys and values to have the correct type. The types and ranges are
checked just like m... | |
message_type/rubygenerated_2.txt | * [ Generated Code Guide ](/reference/go/go-generated/ "Go Generated Code Guide")
* [ FAQ ](/reference/go/faq/ "Go FAQ")
* [ ](/reference/go/api-docs-link/)
* [ Java ](/reference/java/ "Java Reference")
* [ Generated Code Guide ](/reference/java/java-generated/ "Java Generated ... | |
message_type/n67eEBCx5vI_18.txt | unread, | |
message_type/n67eEBCx5vI_71.txt | Forward | |
message_type/331_151.txt | ### | |
message_type/331_158.txt | Assignees | |
message_type/n67eEBCx5vI_61.txt | Hi, | |
message_type/n67eEBCx5vI_180.txt | Jun 12, 2019, 5:12:54 PM 6/12/19 | |
message_type/n67eEBCx5vI_187.txt | Copy link | |
message_type/n67eEBCx5vI_79.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/n67eEBCx5vI_169.txt | Report message | |
message_type/n67eEBCx5vI_197.txt | Reply to author | |
message_type/331_139.txt | But you can work it out by e.g. encoding the data you want with some test
code, and then compare the output of your more memory-efficient version until
you get it to match.
---
All reactions | |
message_type/331_122.txt | Author | |
message_type/331_34.txt | To see all available qualifiers, see our [ documentation
](https://docs.github.com/search-github/github-code-search/understanding-
github-code-search-syntax) . | |
message_type/n67eEBCx5vI_137.txt | and all of this will be repeated a number of times.
On Wednesday, 12 June 2019 10:31:50 UTC+2, Grooo wrote: | |
message_type/n67eEBCx5vI_149.txt | Copy link | |
message_type/n67eEBCx5vI_83.txt | [
](https://groups.google.com/group/nanopb/attach/3816eefd406f9/callbacks.proto?part=0.1) | |
message_type/TibrvMsgaddFieldhtm_2.txt | CPP Reference > Data > TibrvMsg > TibrvMsg::addField()
TibrvMsg::addField()
Method | |
message_type/n67eEBCx5vI_27.txt | Report message | |
message_type/n67eEBCx5vI_130.txt | id: 20 | |
message_type/rubygenerated_77.txt |
message Foo {
oneof test_oneof {
string name = 1;
int32 serial_number = 2;
}
}
| |
message_type/331_116.txt | Though if you need particularly tight control of memory usage and the encoding
process, you can bypass pb_encode() completely. Instead doing something like: | |
message_type/331_110.txt | [

](/PetteriAimonen) | |
message_type/n67eEBCx5vI_29.txt | Show original message | |
message_type/rubygenerated_36.txt |
message Foo {
message Bar { }
}
| |
message_type/rubygenerated_40.txt |
message.foo = get_value()
print message.foo
| |
message_type/rubygenerated_52.txt | In addition to comparing and assigning ` nil ` , generated messages have `
has_... ` and ` clear_... ` methods, which behave the same as for basic types: | |
message_type/331_27.txt | We read every piece of feedback, and take your input very seriously. | |
message_type/rubygenerated_9.txt | # Ruby Generated Code Guide | |
message_type/n67eEBCx5vI_160.txt | unread, | |
message_type/331_121.txt | Copy link | |
message_type/TibrvMsgaddFieldhtm_11.txt | 1. Extract the nested submessage (see Get Nested Message).
2. Add the new fields to the extracted submessage, using type-specific convenience methods or this method. The field is added to a snapshot copy of the submessage, and modifies the copy rather than the original parent message.
3. Store the modified submessage b... | |
message_type/n67eEBCx5vI_158.txt |  | |
message_type/rubygenerated_13.txt | ## Compiler Invocation | |
message_type/331_96.txt | Callback for ` mqtt_logs_pl_t ` | |
message_type/n67eEBCx5vI_105.txt | to nan...@googlegroups.com | |
message_type/331_166.txt | Development | |
message_type/n67eEBCx5vI_138.txt | > Hi Petteri,
>
>
>
>
> I was trying to assign a single item just to check if it works.
>
>
>
>
> What I want is 3 repeated fields i.e.
>
>
>
>
> repeated int32 xaxis;
>
> repeated int32 yaxis;
>
> repeated int32 zaxis;
>
>
>
>
> and they all would have unlimited values or number of values that I cannot
> fix w... | |
message_type/331_31.txt | ## Use saved searches to filter your results more quickly | |
message_type/331_74.txt | * Holds an array of ` mqtt_log_pl_t ` message depends on how many I can fit into my 512 byte buffer.
* ` log_count ` : Intended to indicate the total number of ` log ` which were encoded? I am not sure about this but I need some way to know how many log messages were encoded. Is there a better way to do this. | |
message_type/n67eEBCx5vI_129.txt | The data packet will look something like: | |
message_type/331_95.txt | My objective here is to fill up the 512byte buffer with as much data as
possible, but I don't know how much data I can fill it with unless I start
reading the source stream. After encoding 1 ` mqtt_log_pl_t ` message I need
to bump a counter so that ` mqtt_logs_pl_t ` know it has 1 more message in it,
but how do I enco... | |
message_type/n67eEBCx5vI_22.txt | Forward | |
message_type/n67eEBCx5vI_139.txt |  | |
message_type/rubygenerated_39.txt | For each field in a message type, there are accessor methods to set and get
the field. So given a field ` foo ` you can write: | |
message_type/331_161.txt | None yet | |
message_type/n67eEBCx5vI_192.txt | to nan...@googlegroups.com | |
message_type/rubygenerated_46.txt | #### Checking Presence | |
message_type/331_150.txt | Author | |
message_type/n67eEBCx5vI_34.txt | message Cluster {
required int32 id = 1;
repeated int32 xaxis = 2;
}
message ClusterArray {
repeated Cluster clusters = 1;
} | |
message_type/n67eEBCx5vI_141.txt | unread, | |
message_type/331_35.txt | Cancel Create saved search | |
message_type/n67eEBCx5vI_152.txt | Show original message | |
message_type/n67eEBCx5vI_188.txt | Report message | |
message_type/331_71.txt | **mqtt_log_pl_t** | |
message_type/rubygenerated_17.txt |
protoc --proto_path=src --ruby_out=build/gen src/foo.proto src/bar/baz.proto
| |
message_type/n67eEBCx5vI_111.txt | Message has been deleted | |
message_type/331_114.txt | **[ PetteriAimonen ](/PetteriAimonen) ** commented Aug 18, 2018 | |
message_type/n67eEBCx5vI_100.txt | Copy link | |
message_type/TibrvMsgaddFieldhtm_23.txt | YesNo
Copyright © 1997-2024. Cloud Software Group, Inc. All Rights Reserved. | |
message_type/n67eEBCx5vI_72.txt | Sign in to forward | |
message_type/331_146.txt | That's because those are repeated fields, so to make them into (two-
dimensional) arrays, you need to specify ` max_count ` also.
---
All reactions | |
message_type/n67eEBCx5vI_21.txt | Sign in to reply to author | |
message_type/rubygenerated_34.txt | ### Nested Types | |
message_type/n67eEBCx5vI_63.txt | So here you are encoding one of the submessages:
> if (!pb_encode_submessage(ostream, Cluster_fields, &(source->rep[i])))
> {
> const char * error = PB_GET_ERROR(ostream);
> printf("SimpleMessage_encode_numbers error: %s\n", error);
> return false;
> }
You could do before pb_encode_submessage() call... | |
message_type/indexmsghtml_0.txt | # geometry_msgs Msg/Srv Documentation
See also:
* [ Website ](http://wiki.ros.org/geometry_msgs)
* [ Code API Documentation ](index.html)
## Message types
* [ Accel ](msg/Accel.html)
* [ AccelStamped ](msg/AccelStamped.html)
* [ AccelWithCovariance ](msg/AccelWithCovariance.html)
* [ AccelWithCovarianceSt... | |
message_type/n67eEBCx5vI_44.txt | [
](https://groups.google.com/group/nanopb/attach/25028042845d5/function_callback.h?part=0.3) | |
message_type/n67eEBCx5vI_52.txt | Sign in to forward | |
message_type/TibrvMsgaddFieldhtm_14.txt | Reserved Field Name
Warning | |
message_type/n67eEBCx5vI_145.txt | Forward | |
message_type/n67eEBCx5vI_106.txt | Hi,
In your proto you have 'repeated' which can contain many items: | |
message_type/331_89.txt | ### | |
message_type/331_66.txt | **[ umanayana ](/umanayana) ** commented Aug 17, 2018 | |
message_type/331_91.txt | edited | |
message_type/n67eEBCx5vI_68.txt | Jun 12, 2019, 1:01:46 AM 6/12/19 | |
message_type/331_154.txt | On Mon., Aug. 20, 2018, 10:27 a.m. Petteri Aimonen, < ***@***.***> wrote:
That's because those are repeated fields, so to make them into (two-
dimensional) arrays, you need to specify max_count also. — You are receiving
this because you authored the thread. Reply to this email directly, view it on
GitHub < [ #331 (comm... | |
message_type/rubygenerated_8.txt | 1. [ Reference Guides ](https://protobuf.dev/reference/)
2. [ Ruby ](https://protobuf.dev/reference/ruby/)
3. [ Generated Code Guide ](https://protobuf.dev/reference/ruby/ruby-generated/) | |
message_type/TibrvMsgaddFieldhtm_1.txt | TIBCO Rendezvous® 8.7.0 | |
message_type/n67eEBCx5vI_143.txt | Reply to author | |
message_type/331_39.txt | {{ message }} | |
message_type/n67eEBCx5vI_26.txt | Copy link | |
message_type/n67eEBCx5vI_159.txt | ### Grooo | |
message_type/rubygenerated_26.txt | The protocol buffer compiler generates a class called ` Foo ` . The generated
class derives from the Ruby ` Object ` class (protos have no common base
class). Unlike C++ and Java, Ruby generated code is unaffected by the `
optimize_for ` option in the ` .proto ` file; in effect, all Ruby code is
optimized for code size... | |
message_type/331_133.txt | [

](/PetteriAimonen) | |
message_type/331_101.txt | Copy link |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.