[protobuf] toBuilder() question and deep trees of messages

2017-07-21 Thread Laird Nelson
If I have a root object of a deep tree of objects (I'm using Java), and I call toBuilder() on it, so that I can manipulate it, do its "subobjects" "become" builders as well? That is, if I do: Top.Builder topBuilder = top.toBuilder(); ...and then later I do: SubObject.Builder subObjectBuilder

Re: [protobuf] How does this .proto file result in this generated code?

2017-07-14 Thread Laird Nelson
On Friday, July 14, 2017 at 12:41:18 PM UTC-7, Josh Humphries wrote: > > This code is emitted by the GRPC plugin for Java. For Go, all code gen is > a plugin (protoc-gen-go > ) and it > includes the GRPC functionality. For Java, the c

[protobuf] How does this .proto file result in this generated code?

2017-07-14 Thread Laird Nelson
(I *believe* this question is about protocol buffers, and not gRPC, but I may be wrong.) There is a .proto file that exists as part of the Helm project: https://github.com/kubernetes/helm/blob/v2.5.0/_proto/hapi/rudder/rudder.proto As part of Helm's build process, a Go binding is generated here

Re: [protobuf] [Java] Proper way to add an item to a List?

2017-07-11 Thread Laird Nelson
On Tuesday, July 11, 2017 at 5:09:30 PM UTC-7, Feng Xiao wrote: > > Actually you can't add a sub-builder to another builder. If you look at > the implementation of addDependencies(Builder), it just calls > builder.build() right away and add the resulted Chart object: > > https://microbean.github.

[protobuf] [Java] Proper way to add an item to a List?

2017-07-11 Thread Laird Nelson
I hope this is the right group. I've generated a Java API for Helm's Tiller using gRPC and protocol buffers. You can see the javadocs here: https://microbean.github.io/microbean-helm/apidocs/index.html Look at the hapi.* packages. As I'm working with the generated API, I need to add one kind