Пример #1
0
 public void MergeFrom(ExportMetricsServiceRequest other)
 {
     if (other == null)
     {
         return;
     }
     if (other.node_ != null)
     {
         if (node_ == null)
         {
             Node = new global::Opencensus.Proto.Agent.Common.V1.Node();
         }
         Node.MergeFrom(other.Node);
     }
     metrics_.Add(other.metrics_);
     if (other.resource_ != null)
     {
         if (resource_ == null)
         {
             Resource = new global::Opencensus.Proto.Resource.V1.Resource();
         }
         Resource.MergeFrom(other.Resource);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Пример #2
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
                    break;

                case 10: {
                    if (node_ == null)
                    {
                        node_ = new global::Opencensus.Proto.Agent.Common.V1.Node();
                    }
                    input.ReadMessage(node_);
                    break;
                }

                case 18: {
                    spans_.AddEntriesFrom(input, _repeated_spans_codec);
                    break;
                }
                }
            }
        }
Пример #3
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
                    break;

                case 10: {
                    if (node_ == null)
                    {
                        node_ = new global::Opencensus.Proto.Agent.Common.V1.Node();
                    }
                    input.ReadMessage(node_);
                    break;
                }

                case 18: {
                    if (config_ == null)
                    {
                        config_ = new global::Opencensus.Proto.Trace.V1.TraceConfig();
                    }
                    input.ReadMessage(config_);
                    break;
                }
                }
            }
        }
Пример #4
0
 public void MergeFrom(ExportTraceServiceRequest other)
 {
     if (other == null)
     {
         return;
     }
     if (other.node_ != null)
     {
         if (node_ == null)
         {
             node_ = new global::Opencensus.Proto.Agent.Common.V1.Node();
         }
         Node.MergeFrom(other.Node);
     }
     spans_.Add(other.spans_);
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Пример #5
0
 public void MergeFrom(UpdatedLibraryConfig other)
 {
     if (other == null)
     {
         return;
     }
     if (other.node_ != null)
     {
         if (node_ == null)
         {
             node_ = new global::Opencensus.Proto.Agent.Common.V1.Node();
         }
         Node.MergeFrom(other.Node);
     }
     if (other.config_ != null)
     {
         if (config_ == null)
         {
             config_ = new global::Opencensus.Proto.Trace.V1.TraceConfig();
         }
         Config.MergeFrom(other.Config);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }