Example #1
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10: {
                    Name = input.ReadString();
                    break;
                }

                case 26: {
                    Destination = input.ReadString();
                    break;
                }

                case 42: {
                    Filter = input.ReadString();
                    break;
                }

                case 48: {
                    outputVersionFormat_ = (global::Google.Logging.V2.LogSink.Types.VersionFormat)input.ReadEnum();
                    break;
                }
                }
            }
        }
Example #2
0
 public void MergeFrom(LogSink other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.Destination.Length != 0)
     {
         Destination = other.Destination;
     }
     if (other.Filter.Length != 0)
     {
         Filter = other.Filter;
     }
     if (other.OutputVersionFormat != 0)
     {
         OutputVersionFormat = other.OutputVersionFormat;
     }
 }
 public void MergeFrom(LogSink other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.Destination.Length != 0)
     {
         Destination = other.Destination;
     }
     if (other.Filter.Length != 0)
     {
         Filter = other.Filter;
     }
     if (other.OutputVersionFormat != global::Google.Logging.V2.LogSink.Types.VersionFormat.VERSION_FORMAT_UNSPECIFIED)
     {
         OutputVersionFormat = other.OutputVersionFormat;
     }
 }