public static VerifyWebCredentialsRequest DeserializeLengthDelimited(Stream stream, VerifyWebCredentialsRequest instance)
        {
            long num = (long)((ulong)ProtocolParser.ReadUInt32(stream));

            num += stream.get_Position();
            return(VerifyWebCredentialsRequest.Deserialize(stream, instance, num));
        }
 public static VerifyWebCredentialsRequest Deserialize(Stream stream, VerifyWebCredentialsRequest instance, long limit)
 {
     while (limit < 0L || stream.Position < limit)
     {
         int num = stream.ReadByte();
         if (num == -1)
         {
             if (limit >= 0L)
             {
                 throw new EndOfStreamException();
             }
             return(instance);
         }
         else if (num != 10)
         {
             Key  key   = ProtocolParser.ReadKey((byte)num, stream);
             uint field = key.Field;
             if (field == 0u)
             {
                 throw new ProtocolBufferException("Invalid field id: 0, something went wrong in the stream");
             }
             ProtocolParser.SkipKey(stream, key);
         }
         else
         {
             instance.WebCredentials = ProtocolParser.ReadBytes(stream);
         }
     }
     if (stream.Position == limit)
     {
         return(instance);
     }
     throw new ProtocolBufferException("Read past max limit");
 }
        public static VerifyWebCredentialsRequest DeserializeLengthDelimited(Stream stream)
        {
            VerifyWebCredentialsRequest verifyWebCredentialsRequest = new VerifyWebCredentialsRequest();

            VerifyWebCredentialsRequest.DeserializeLengthDelimited(stream, verifyWebCredentialsRequest);
            return(verifyWebCredentialsRequest);
        }
        public static VerifyWebCredentialsRequest DeserializeLengthDelimited(Stream stream, VerifyWebCredentialsRequest instance)
        {
            long position = (long)ProtocolParser.ReadUInt32(stream);

            position += stream.Position;
            return(VerifyWebCredentialsRequest.Deserialize(stream, instance, position));
        }
 public static void Serialize(Stream stream, VerifyWebCredentialsRequest instance)
 {
     if (instance.HasWebCredentials)
     {
         stream.WriteByte(10);
         ProtocolParser.WriteBytes(stream, instance.WebCredentials);
     }
 }
        public override bool Equals(object obj)
        {
            VerifyWebCredentialsRequest verifyWebCredentialsRequest = obj as VerifyWebCredentialsRequest;

            if (verifyWebCredentialsRequest == null)
            {
                return(false);
            }
            if (this.HasWebCredentials == verifyWebCredentialsRequest.HasWebCredentials && (!this.HasWebCredentials || this.WebCredentials.Equals(verifyWebCredentialsRequest.WebCredentials)))
            {
                return(true);
            }
            return(false);
        }
 public void Serialize(Stream stream)
 {
     VerifyWebCredentialsRequest.Serialize(stream, this);
 }
 public static VerifyWebCredentialsRequest Deserialize(Stream stream, VerifyWebCredentialsRequest instance)
 {
     return(VerifyWebCredentialsRequest.Deserialize(stream, instance, -1L));
 }
        public override bool Equals(object obj)
        {
            VerifyWebCredentialsRequest verifyWebCredentialsRequest = obj as VerifyWebCredentialsRequest;

            return(verifyWebCredentialsRequest != null && this.HasWebCredentials == verifyWebCredentialsRequest.HasWebCredentials && (!this.HasWebCredentials || this.WebCredentials.Equals(verifyWebCredentialsRequest.WebCredentials)));
        }