Hello All,

I have a message as below:

message DynamicGroupPlot
{
  extend GroupPlot {
    optional DynamicGroupPlot plot = 100; 
  }

  repeated int32 line = 1 
  optional bool overlay = 5;
  optional bool tdc_shift = 6;
  optional bool smoothing = 7;
  optional bool valve_events = 8;
  optional bool theoretical = 9;
}


I am using c# compiler. With extends what I understood is, it will create a 
mapping between DynamicGroupPlot and GroupPlot  i.e some kind of 
inheritance. But the generated .cs files doesn't show any relationship 
between  DynamicGroupPlot  and GroupPlot .

Here is the snippet from generated .cs file

 public sealed partial class DynamicGroupPlot : 
pb::IMessage<DynamicGroupPlot>
  
  {
 .
.
.
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public DynamicGroupPlot() {
      OnConstruction();
    }

    partial void OnConstruction();

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public DynamicGroupPlot(DynamicGroupPlot other) : this() {
      _hasBits0 = other._hasBits0;
      line_ = other.line_.Clone();
      dynamicType_ = other.dynamicType_;
      phasing_ = other.phasing_;
      autoscale_ = other.autoscale_;
      overlay_ = other.overlay_;
      tdcShift_ = other.tdcShift_;
      smoothing_ = other.smoothing_;
      valveEvents_ = other.valveEvents_;
      theoretical_ = other.theoretical_;
      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
    }


I am new to protobuf. Any help is much appreciated.


Regards
Geervani

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/protobuf/77c427d5-624e-4de5-a32d-031e5e97e7c2n%40googlegroups.com.

Reply via email to