Esempio n. 1
0
 public void MergeFrom(Enum other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     enumvalue_.Add(other.enumvalue_);
     options_.Add(other.options_);
     if (other.sourceContext_ != null)
     {
         if (sourceContext_ == null)
         {
             sourceContext_ = new global::Google.Protobuf.WellKnownTypes.SourceContext();
         }
         SourceContext.MergeFrom(other.SourceContext);
     }
     if (other.Syntax != global::Google.Protobuf.WellKnownTypes.Syntax.SYNTAX_PROTO2)
     {
         Syntax = other.Syntax;
     }
 }
Esempio n. 2
0
 public void MergeFrom(Api other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     methods_.Add(other.methods_);
     options_.Add(other.options_);
     if (other.Version.Length != 0)
     {
         Version = other.Version;
     }
     if (other.sourceContext_ != null)
     {
         if (sourceContext_ == null)
         {
             sourceContext_ = new global::Google.Protobuf.WellKnownTypes.SourceContext();
         }
         SourceContext.MergeFrom(other.SourceContext);
     }
     mixins_.Add(other.mixins_);
     if (other.Syntax != 0)
     {
         Syntax = other.Syntax;
     }
 }
Esempio n. 3
0
 public void MergeFrom(Api other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     methods_.MergeFrom(other.methods_);
     options_.MergeFrom(other.options_);
     if (other.Version.Length != 0)
     {
         Version = other.Version;
     }
     if (other.sourceContext_ != null)
     {
         if (sourceContext_ == null)
         {
             SourceContext = new global::Google.Protobuf.WellKnownTypes.SourceContext();
         }
         SourceContext.MergeFrom(other.SourceContext);
     }
     mixins_.MergeFrom(other.mixins_);
     if (other.Syntax != global::Google.Protobuf.WellKnownTypes.Syntax.Proto2)
     {
         Syntax = other.Syntax;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }